/**
 * HOSTX Coin - Styling and Animations
 */

:root {
    --primary-color: #FF6B35;
    --primary-light: #FF8C42;
    --primary-dark: #E55100;
    --secondary-color: #004E89;
    --accent-color: #FFD700;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a3050;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1535 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Container and Layout */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1535 100%);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6b 100%);
    padding: 10px 30px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.4));
    animation: floatLogo 3s ease-in-out infinite;
    transition: transform 0.3s, filter 0.3s;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 16px rgba(0, 212, 255, 0.6));
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.title-section h1 {
    font-size: 1.6em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 2px;
}

.title-section p {
    color: var(--text-secondary);
    font-size: 0.75em;
    margin-top: 2px;
}

.stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex: 1;
    margin-right: 180px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.2;
}

.header-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.game-mode-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-mode-badge.normal {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
    border: 2px solid #2ecc71;
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.game-mode-badge.dark {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(142, 68, 173, 0.2));
    border: 2px solid #9b59b6;
    color: #d4a5ff;
    text-shadow: 0 0 15px rgba(155, 89, 182, 0.8);
    animation: darkModePulse 2s ease-in-out infinite;
}

@keyframes darkModePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(155, 89, 182, 0.8), 0 0 30px rgba(142, 68, 173, 0.4);
    }
}

.game-mode-badge.crusader {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(142, 0, 0, 0.3));
    border: 2px solid #e74c3c;
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
    animation: crusaderModePulse 1.5s ease-in-out infinite;
}

@keyframes crusaderModePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.9), 0 0 40px rgba(142, 0, 0, 0.5);
    }
}

.game-mode-badge .mode-icon {
    font-size: 1em;
    position: relative;
    top: 5px;
}

.game-mode-badge .mode-text {
    font-family: 'Courier New', monospace;
}

.power-warning {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: powerPulse 1s ease-in-out infinite;
    white-space: nowrap;
}

.power-warning.offline {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: powerPulse 1s ease-in-out infinite;
}

.power-warning.overload {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
    animation: powerPulse 1s ease-in-out infinite;
}

.power-warning.online {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
    animation: none;
}

@keyframes powerPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 20px rgba(255, 68, 68, 1);
    }
}

@keyframes antimatterPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), inset 0 0 10px rgba(255, 0, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.5), inset 0 0 12px rgba(255, 0, 255, 0.2);
    }
}

@keyframes darkMatterPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(51, 0, 51, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(51, 0, 51, 0.9), inset 0 0 20px rgba(0, 0, 0, 0.7);
    }
}

/* Tabs Navigation */
.tabs {
    display: flex;
    background: rgba(26, 31, 58, 0.8);
    border-bottom: 1px solid var(--border-color);
    gap: 2px;
    padding: 0 10px;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85em;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.1);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button.locked {
    opacity: 0.5;
    position: relative;
}

.tab-button.locked:hover {
    background: rgba(255, 100, 100, 0.1);
    color: #ff6b6b;
}

.tab-button .lock-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7em;
}

.tab-icon {
    font-size: 1.3em;
}

/* Main Content */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn var(--transition-speed) ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CLICKER TAB ===== */
.clicker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.coin-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.click-coin {
    width: 300px;
    height: 300px;
    cursor: pointer;
    filter: drop-shadow(0 8px 20px rgba(255, 107, 53, 0.5));
    transition: all 0.1s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.click-coin:hover {
    filter: drop-shadow(0 12px 30px rgba(255, 215, 0, 0.6));
}

.click-coin:active {
    transform: scale(0.95);
}

.earnings-display {
    text-align: center;
}

.click-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.earnings-per-click {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--success-color);
    font-family: 'Courier New', monospace;
}

.upgrades-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upgrades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.upgrades-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0;
}

.buy-amount-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.buy-amount-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.buy-amount-indicator {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 50px;
    text-align: center;
    transition: all 0.2s ease;
}

.buy-amount-indicator.active {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

.buy-amount-hint {
    color: var(--text-secondary);
    font-size: 0.75em;
    opacity: 0.7;
}

/* Battery header layout */
.battery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.battery-header h2 {
    margin: 0;
}

/* Buy amount info containers */
.buy-amount-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-amount-info.compact {
    margin-top: 5px;
    font-size: 0.85em;
}

.buy-amount-info.compact .buy-amount-indicator {
    padding: 2px 8px;
    min-width: 40px;
    font-size: 0.9em;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.upgrade-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upgrade-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transform: translateY(-5px);
}

.upgrade-card h3 {
    color: var(--text-primary);
    font-size: 1.2em;
}

.upgrade-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.upgrade-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.upgrade-stats .stat {
    flex: 1;
    align-items: flex-start;
}

.upgrade-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upgrade-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.upgrade-button:active:not(:disabled) {
    transform: translateY(0);
}

.upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SERVERS TAB ===== */
.servers-container {
    max-width: 1200px;
    margin: 0 auto;
}

.servers-container h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.server-tier-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.server-tier-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.server-tier-dropdown {
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.server-tier-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.server-tier-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.server-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

/* Exotic Server Glows - Tier 6 Variants */
.server-card[data-server-key="quantum_x1000"] {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.server-card[data-server-key="quantum_x1000"]:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 15px rgba(0, 255, 255, 0.2), 0 6px 20px rgba(0, 255, 255, 0.3);
}

.server-card[data-server-key="antimatter_x5000"] {
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), inset 0 0 10px rgba(255, 0, 255, 0.1);
    animation: antimatterPulse 2s ease-in-out infinite;
}

.server-card[data-server-key="antimatter_x5000"]:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), inset 0 0 15px rgba(255, 0, 255, 0.2), 0 6px 20px rgba(255, 0, 255, 0.3);
}

.server-card[data-server-key="darkmatter_x9999"] {
    border-color: #330033;
    box-shadow: 0 0 15px rgba(51, 0, 51, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.5);
    animation: darkMatterPulse 2s ease-in-out infinite;
}

.server-card[data-server-key="darkmatter_x9999"]:hover {
    border-color: #cc00cc;
    box-shadow: 0 0 30px rgba(153, 0, 153, 0.8), inset 0 0 15px rgba(153, 0, 153, 0.3), 0 6px 20px rgba(153, 0, 153, 0.4);
}

.server-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.server-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.server-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.server-header h3 {
    font-size: 1em;
    color: var(--text-primary);
    margin: 0;
}

.cpu-brand {
    font-size: 0.75em;
    color: var(--text-secondary);
    font-style: italic;
}

.server-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.spec-value {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9em;
}

.server-production {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}

.production-label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.production-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1em;
}

.server-total-hashrate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 6px;
    font-size: 0.9em;
}

.hashrate-label {
    color: var(--text-secondary);
    font-size: 0.8em;
}

.hashrate-value {
    color: #00ff41;
    font-weight: 700;
    font-size: 0.95em;
}

.server-materials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.materials-label {
    color: #ffd700;
    font-weight: 600;
    margin-right: 5px;
}

.server-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.server-stats .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.server-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.server-stats .label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.server-stats .value {
    font-weight: bold;
    color: var(--accent-color);
}

.buy-button, .buy-ten-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.85em;
}

.buy-button:hover:not(:disabled), .buy-ten-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.buy-button:disabled, .buy-ten-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== POWER TAB ===== */
.power-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
}

.power-sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

.power-sidebar h2 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.power-sidebar h3 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1em;
}

.power-stats {
    margin-bottom: 20px;
}

.power-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.info-item .label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.info-item .value {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--accent-color);
}

.generator-menu {
    flex: 1;
}

.generator-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.generator-button {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    min-height: 45px;
}

.generator-button:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.15);
    transform: translateX(3px);
}

.generator-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.generator-button.grid-upgrade-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.generator-button.grid-upgrade-btn:hover:not(:disabled) {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
}

.gen-emoji {
    font-size: 1.3em;
    flex-shrink: 0;
}

.gen-name {
    font-weight: bold;
    font-size: 0.9em;
    flex: 1;
    text-align: left;
}

.gen-cost {
    font-size: 0.75em;
    color: var(--accent-color);
    white-space: nowrap;
}

.gen-power {
    font-size: 0.7em;
    color: #00D4FF;
    font-weight: bold;
    white-space: nowrap;
}

.gen-warning {
    font-size: 0.65em;
    color: #ff4444;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    white-space: normal;
}

.power-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px 4px;
    row-gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: fit-content;
    max-width: 100%;
    max-height: calc(100vh - 250px);
    overflow: auto;
}

.grid-slot {
    width: auto;
    min-width: 100px;
    height: auto;
    min-height: 100px;
    padding: 8px;
    background: rgba(26, 31, 58, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    flex-shrink: 0;
    user-select: none;
    box-sizing: border-box;
}

.grid-slot:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.generator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    pointer-events: none;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}

.generator-item .gen-emoji {
    font-size: 2.5em;
}

.generator-item .gen-type {
    font-size: 0.75em;
    color: var(--text-secondary);
    line-height: 1.1;
}

.generator-item .gen-power {
    font-size: 0.7em;
    color: #00D4FF;
    font-weight: bold;
    line-height: 1.1;
}

.generator-item .gen-upgrade {
    font-size: 0.65em;
    color: var(--accent-color);
    line-height: 1;
}

.gen-upgrade-btn {
    pointer-events: all;
    padding: 4px 8px;
    font-size: 0.75em;
    background: linear-gradient(135deg, var(--primary-color), #FF6B35);
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    margin-top: 2px;
    box-shadow: 0 0 0 rgba(255, 107, 53, 0);
}

.gen-upgrade-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.8);
}

.gen-upgrade-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== BATTERY TAB ===== */

.battery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.battery-container h2 {
    font-size: 2em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.battery-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.battery-stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.battery-stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.battery-stat-item .value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

.battery-upgrades {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.battery-upgrade-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition-speed);
}

.battery-upgrade-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.upgrade-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 15px;
    width: 100%;
}

.upgrade-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESEARCH TAB ===== */
.research-container {
    max-width: 1200px;
    margin: 0 auto;
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.research-header h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin: 0;
}

.skill-points-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.skill-label {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.skill-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #9D4EDD;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.research-category-header {
    grid-column: 1 / -1;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    padding: 20px 0 10px 0;
    border-bottom: 2px solid var(--primary-color);
    margin-top: 20px;
}

.research-category-header:first-child {
    margin-top: 0;
}

.research-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.research-card.unlocked {
    border-color: var(--success-color);
    background: rgba(46, 204, 113, 0.05);
}

.research-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.research-card h3 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 0;
}

.research-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.research-cost {
    padding: 12px;
    background: rgba(157, 78, 221, 0.15);
    border-radius: 6px;
    color: #9D4EDD;
    font-weight: bold;
    font-size: 0.9em;
}

.research-button {
    background: linear-gradient(135deg, #9D4EDD, #C77DFF);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.research-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

.research-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ACHIEVEMENTS TAB ===== */
.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Header */
.achievements-main-header {
    margin-bottom: 30px;
}

.achievements-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.achievements-title-row h2 {
    font-size: 2em;
    margin: 0;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievements-overall-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievements-overall-progress .progress-bar-container {
    width: 200px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.achievements-overall-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.achievements-overall-progress .progress-text {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Summary Cards */
.achievements-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    font-size: 2em;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.summary-label {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Category Sections */
.achievements-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-category-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.achievement-category-section.complete {
    border-color: var(--success-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 4px solid var(--cat-color, var(--primary-color));
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.category-icon {
    font-size: 1.5em;
}

.category-name {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-primary);
}

.category-progress {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.category-progress-bar {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.category-toggle {
    font-size: 0.8em;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.achievement-category-section.collapsed .category-toggle {
    transform: rotate(-90deg);
}

.achievement-category-section.collapsed .category-achievements {
    display: none;
}

/* Achievement Cards Grid */
.category-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.achievement-card.unlocked {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.achievement-card .achievement-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.achievement-card .achievement-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.achievement-card .achievement-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.95em;
}

.achievement-card .achievement-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
    line-height: 1.3;
}

.achievement-card .achievement-rewards {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.achievement-card .reward {
    font-size: 0.7em;
    padding: 2px 6px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    color: #ffd700;
}

.achievement-card.unlocked .reward {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

/* ===== DAILY CHALLENGES ===== */
.daily-challenges-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 193, 7, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.daily-challenges-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.05) 50%,
        transparent 60%
    );
    animation: dailyShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dailyShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.daily-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--primary-color);
}

.daily-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.timer-icon {
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-text {
    color: #f39c12;
    font-weight: bold;
    font-family: monospace;
}

.daily-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.daily-challenge-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.daily-challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.daily-challenge-card.completed {
    border-color: var(--success-color);
    background: rgba(46, 204, 113, 0.1);
}

.daily-challenge-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: white;
    font-weight: bold;
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-icon {
    font-size: 1.8em;
}

.challenge-title {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1em;
}

.challenge-description {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.4;
}

.challenge-progress-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.challenge-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.daily-challenge-card.completed .challenge-progress-fill {
    background: var(--success-color);
}

.challenge-progress-text {
    font-size: 0.8em;
    color: var(--text-secondary);
    text-align: right;
}

.challenge-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    font-size: 0.85em;
}

.challenge-reward-icon {
    font-size: 1.2em;
}

.challenge-reward-text {
    color: #ffd700;
    font-weight: bold;
}

.daily-challenge-card.completed .challenge-reward {
    background: rgba(46, 204, 113, 0.2);
}

.daily-challenge-card.completed .challenge-reward-text {
    color: var(--success-color);
    text-decoration: line-through;
}

.daily-rewards-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.daily-completed {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.daily-completed span {
    color: var(--primary-color);
    font-weight: bold;
}

.daily-streak {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 107, 53, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #ff6b35;
    font-weight: bold;
}

/* ===== PRESTIGE TAB ===== */
.prestige-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prestige-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.prestige-header h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin: 0;
}

.prestige-level-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.prestige-level-badge .prestige-star {
    font-size: 1.5em;
    animation: starPulse 2s ease-in-out infinite;
}

.prestige-level-badge .prestige-level-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.prestige-container h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.prestige-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.info-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.info-box h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.prestige-stats {
    background: rgba(255, 107, 53, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    color: var(--accent-color);
    font-weight: bold;
}

.prestige-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #FFB700);
    border: none;
    color: #000;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prestige-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.prestige-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prestige-upgrades {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.prestige-upgrade-card {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all var(--transition-speed);
}

.prestige-upgrade-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.15);
}

.prestige-upgrade-card h3 {
    color: var(--text-primary);
    font-size: 1em;
    margin-bottom: 8px;
}

.upgrade-level {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.upgrade-cost {
    color: var(--accent-color);
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
}

.prestige-upgrade-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-speed);
}

.prestige-upgrade-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.prestige-upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Space Station Special Upgrade */
.prestige-upgrade-card.special-upgrade {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(41, 121, 255, 0.1) 100%);
    border: 2px solid #4fc3f7;
    position: relative;
    overflow: hidden;
}

.prestige-upgrade-card.special-upgrade::before {
    content: '🚀';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.prestige-upgrade-card.special-upgrade:hover {
    border-color: #81d4fa;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.prestige-upgrade-card.special-upgrade h3 {
    color: #4fc3f7;
}

.prestige-upgrade-card.maxed {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.prestige-upgrade-card.maxed h3 {
    color: #4caf50;
}

.upgrade-desc {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 8px;
    font-style: italic;
}

/* ===== PARTICLE EFFECTS ===== */
#particleContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.5);
    }
}

/* Notifications */
.achievement-notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    left: auto;
    transform: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    z-index: 1002;
    transition: bottom 0.3s ease-out;
}

.achievement-notification.show {
    bottom: 100px;
}

/* Floating Balance Display */
.floating-balance {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #003d6b);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.floating-balance.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-balance-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-coin-icon {
    font-size: 1.5em;
    animation: coinPulse 2s ease-in-out infinite;
}

@keyframes coinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.floating-coin-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.notification-icon {
    font-size: 1.5em;
}

.notification-text {
    font-weight: bold;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clicker-container {
        grid-template-columns: 1fr;
    }

    .prestige-info {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .content {
        padding: 20px;
    }

    .tabs {
        padding: 0 10px;
    }

    .tab-button {
        font-size: 0.85em;
        padding: 10px 12px;
    }

    .tab-icon {
        font-size: 1.1em;
    }

    .click-coin {
        width: 200px;
        height: 200px;
    }

    .power-container {
        flex-direction: column;
        height: auto;
    }

    .power-sidebar {
        width: 100%;
        max-height: 300px;
    }

    .power-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .achievements-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .achievements-overall-progress .progress-bar-container {
        width: 150px;
    }
    
    .category-achievements {
        grid-template-columns: 1fr;
    }
    
    .category-progress-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 1.8em;
    }

    .stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 1.1em;
    }

    .click-coin {
        width: 150px;
        height: 150px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .power-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-button {
        flex-direction: column;
        font-size: 0.7em;
        gap: 3px;
    }

    .upgrade-card {
        padding: 15px;
    }

    .achievement-card {
        padding: 15px;
    }
}

/* Wallet Display - Sliding Panel */
.wallet-panel {
    position: fixed;
    bottom: 20px;
    left: 0;
    display: flex;
    align-items: flex-end;
    z-index: 100;
    transition: transform 0.3s ease;
}

.wallet-panel.collapsed {
    transform: translateX(calc(-100% + 45px));
}

.wallet-toggle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6b 100%);
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.wallet-toggle:hover {
    background: linear-gradient(135deg, #005a9e 0%, #004a7c 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.wallet-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.wallet-panel.collapsed .wallet-toggle-icon {
    transform: scaleX(-1);
}

.wallet-content {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #00D4FF;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(255, 107, 53, 0.1);
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.wallet-panel:not(.collapsed) .wallet-content {
    border-left: 2px solid var(--primary-color);
}

#walletIdText {
    display: block;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.delete-wallet-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delete-wallet-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.6);
}

.delete-wallet-btn:active {
    transform: scale(0.95);
}

/* Delete Wallet Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    border: 3px solid #ff4444;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    min-width: 350px;
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.5), inset 0 0 20px rgba(255, 68, 68, 0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
    z-index: 10000;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    color: #ff4444;
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.confirm-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff4444;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.confirm-input:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.confirm-input::placeholder {
    color: rgba(255, 68, 68, 0.5);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.confirm-btn {
    background: transparent;
    border-color: #ff4444;
    color: #ff4444;
}

.confirm-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cancel-btn {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Rack System Styling */
.rack-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.rack-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.rack-capacity {
    font-size: 16px;
    font-weight: bold;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rack-capacity-bar {
    display: inline-block;
    width: 150px;
    height: 20px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 3px;
    margin-left: 10px;
    overflow: hidden;
    vertical-align: middle;
}

.rack-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    font-weight: bold;
}

.rack-upgrade-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff4444, #ff2222);
    border: 2px solid #ff4444;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
    font-size: 13px;
}

.rack-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    transform: scale(1.02);
}

.rack-upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Server Corruption/Decay System */
.corruption-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.corruption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.corruption-title {
    font-weight: bold;
    color: #ddd;
    font-size: 14px;
}

.auto-repair-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.corruption-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.corruption-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease, background 0.3s ease;
}

.corruption-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 8px;
}

.corruption-status {
    font-weight: bold;
}

.corruption-penalty {
    color: #ef4444;
    font-size: 11px;
}

.repair-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.repair-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.repair-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.worker-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.worker-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ddd;
    font-size: 12px;
}

.worker-buy-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 1px solid #ff6b35;
    color: white;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.worker-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7a47 0%, #ffaa2e 100%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
}

.worker-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cabinet-style rack wrapper */
.rack-cabinet-wrapper {
    display: flex;
    gap: 10px;
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 15px;
    border: 3px solid #333;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 68, 68, 0.2);
}

/* LED Indicators on the left */
.rack-leds {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    min-width: 40px;
}

.rack-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid #555;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    cursor: default;
}

.rack-led.off {
    background: rgba(50, 50, 50, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.rack-led.on {
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8), inset 0 1px 3px rgba(255, 100, 100, 0.4);
}

.rack-led.green-led {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8), inset 0 1px 3px rgba(100, 200, 100, 0.4);
}

.rack-led.red-led {
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8), inset 0 1px 3px rgba(255, 100, 100, 0.4);
}

.rack-led-label {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    text-align: center;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.power-down-btn {
    background: linear-gradient(135deg, #ff4444, #ff2222);
    border: 1px solid #ff6666;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.power-down-btn:hover {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.power-down-btn:active {
    transform: scale(0.95);
}

/* Main rack display */
.rack-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 68, 68, 0.15);
    min-height: 300px;
    position: relative;
}

.rack-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 68, 68, 0.03) 0px,
        rgba(255, 68, 68, 0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    pointer-events: none;
    z-index: 0;
}

.rack-units {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.rack-unit {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 3px;
    align-items: center;
    min-height: 65px;
    transition: all 0.2s ease;
}

.rack-unit:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
}

.rack-unit-label {
    font-size: 10px;
    color: #888;
    font-weight: bold;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rack-unit-content {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.rack-unit.empty .rack-unit-content::after {
    content: 'EMPTY';
    font-size: 9px;
    color: rgba(255, 68, 68, 0.3);
    font-weight: bold;
    text-transform: uppercase;
}

.rack-server {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #2a1515 0%, #3a2525 100%);
    border: 2px solid #ff4444;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 11px;
    font-weight: bold;
    flex: 1;
    height: 100%;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3), inset 0 0 6px rgba(255, 68, 68, 0.1);
}

.rack-server:hover {
    background: linear-gradient(90deg, #3a2525 0%, #4a3535 100%);
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.5), inset 0 0 6px rgba(255, 68, 68, 0.2);
    transform: translateX(4px);
}

.rack-server-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.rack-server-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.rack-server-header {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

.rack-server-name {
    font-size: 11px;
    font-weight: bold;
    flex: 1;
}

.rack-server-units {
    font-size: 9px;
    opacity: 0.7;
}

.rack-server-hashrate {
    font-size: 10px;
    color: #00ff00;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.5);
    flex-shrink: 0;
    margin-left: 8px;
}

.rack-server-mining {
    font-size: 9px;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mining-text {
    color: #ffaa00;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.mining-progress-bar {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 2px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.mining-progress-fill {
    background: linear-gradient(90deg, #00ff00, #ffff00);
    height: 100%;
    transition: width 0.1s ease;
}

.mining-percentage {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 7px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
    z-index: 1;
}

.rack-server-worker {
    margin-top: 6px;
}

.rack-server-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.worker-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 1px solid #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.worker-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7a47 0%, #ffaa2e 100%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
}

.worker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rack-server-hashrate {
    text-align: center;
    font-size: 10px;
    color: #00ff00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.rack-server-leds {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.rack-server-leds-inline {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
    vertical-align: middle;
}

.led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid #333;
    transition: all 0.1s ease;
}

.rx-led {
    background: #ffaa00;
    box-shadow: 0 0 3px #ffaa00;
}

.tx-led {
    background: #00ff00;
    box-shadow: 0 0 3px #00ff00;
}

.server-rack-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Cookie Consent Modal */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.cookie-consent-modal.hidden {
    display: none;
}

.cookie-consent-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #ff4444;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3), inset 0 0 20px rgba(255, 68, 68, 0.1);
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-content h2 {
    color: #ff4444;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.cookie-consent-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cookie-accept-btn,
.cookie-decline-btn {
    padding: 12px 30px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cookie-accept-btn {
    background: linear-gradient(135deg, #ff4444, #ff2222);
    border-color: #ff4444;
    color: white;
}

.cookie-accept-btn:hover {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transform: scale(1.05);
}

.cookie-decline-btn {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.cookie-decline-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Building Selector */
.building-selector-container {
    margin-bottom: 20px;
}

.building-selector-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
}

.building-selector-wrapper label {
    font-weight: bold;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.building-select {
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #ff4444;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.building-select:hover {
    border-color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.building-select:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.building-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.buy-building-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff4444, #ff2222);
    border: 2px solid #ff4444;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.buy-building-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6666, #ff4444);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transform: scale(1.05);
}

.buy-building-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-building-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6600, #cc3300);
    border: 2px solid #ff6600;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.delete-building-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8822, #ff4400);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
    transform: scale(1.05);
}

.delete-building-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bonus Popup Notifications */
.bonus-popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
    align-items: flex-end;
}

.bonus-popup {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1535 100%);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: popupSlideIn 0.3s ease-out forwards;
    white-space: nowrap;
}

.bonus-popup.rare {
    border-color: #1e90ff;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.4);
}

.bonus-popup.epic {
    border-color: #9d4edd;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.bonus-popup.legendary {
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    animation: popupSlideIn 0.3s ease-out forwards, legendaryGlow 0.6s ease-in-out infinite;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes legendaryGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.9);
    }
}

.bonus-popup.fade-out {
    animation: popupFadeOut 0.3s ease-in forwards;
}

/* Casino Styles */
.casino-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.casino-container h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700, #FF6B35, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: casinoGlow 2s ease-in-out infinite;
}

@keyframes casinoGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.casino-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0 30px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.casino-stat {
    text-align: center;
}

.casino-stat .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.casino-stat .value {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-color);
}

.casino-stat .value.negative {
    color: #ff4444;
}

.casino-stat .value.positive {
    color: #2ecc71;
}

/* Casino Sub-Tabs */
.casino-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    justify-content: center;
}

.casino-tab-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.casino-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.casino-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.casino-tab-btn.locked {
    opacity: 0.5;
    background: rgba(100, 100, 100, 0.3);
    border-color: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    position: relative;
}

.casino-tab-btn.locked::after {
    content: '🔒';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7em;
    background: #333;
    border-radius: 50%;
    padding: 2px 4px;
}

.casino-tab-btn.locked:hover {
    transform: none;
    border-color: #ff4444;
    color: #ff6666;
}

.casino-game-panels {
    position: relative;
}

.casino-game-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.casino-game-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.casino-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.casino-game {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.casino-game:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.3);
}

.casino-game h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.game-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.bet-controls {
    margin-bottom: 20px;
}

.bet-controls label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.bet-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.bet-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-bet-buttons {
    display: flex;
    gap: 8px;
}

.quick-bet {
    flex: 1;
    padding: 8px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00D4FF;
    border-radius: 5px;
    color: #00D4FF;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.quick-bet:hover {
    background: rgba(0, 212, 255, 0.4);
}

/* Coin Flip */
.coin-flip-choices {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.flip-choice {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2em;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6b 100%);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.flip-choice:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.flip-choice:active {
    transform: scale(0.98);
}

/* Dice Roll */
.dice-target {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dice-target label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#diceTargetValue {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.dice-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #2ecc71, #f1c40f, #e74c3c);
    border-radius: 4px;
    outline: none;
    margin-bottom: 10px;
}

.dice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.dice-odds {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.dice-odds span span {
    color: #00D4FF;
    font-weight: bold;
}

.dice-choices {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dice-choice {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6b 100%);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.dice-choice:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Slots */
.slots-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border-radius: 15px;
    border: 3px solid var(--accent-color);
}

.slot-reel {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.1s;
}

.slot-reel.spinning {
    animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
    0% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(-5px); }
}

.spin-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    border: none;
    border-radius: 10px;
    color: #0a0e27;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.spin-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slots-paytable {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.slots-paytable h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
}

.paytable-row:last-child {
    border-bottom: none;
}

/* Game Results */
.game-result {
    min-height: 50px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s;
}

.game-result.win {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #2ecc71;
    animation: winPulse 0.5s ease-out;
}

.game-result.win.jackpot {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 53, 0.3));
    border: 3px solid #FFD700;
    color: #FFD700;
    font-size: 1.4em;
    animation: jackpotWin 0.5s ease-out;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes jackpotWin {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-result.lose {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

@keyframes winPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .casino-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .casino-games {
        grid-template-columns: 1fr;
    }
    
    .slot-reel {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
    
    .casino-tabs {
        gap: 5px;
        padding: 8px;
    }
    
    .casino-tab-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }
}

/* Blackjack Styles */
.blackjack-game {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .blackjack-game {
        grid-column: span 1;
    }
}

.deal-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.deal-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.6);
}

.deal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blackjack-table {
    background: linear-gradient(135deg, #0d5c36 0%, #0a4528 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 15px;
    border: 4px solid #1a8b4c;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.dealer-section, .player-section {
    margin-bottom: 20px;
}

.dealer-section h4, .player-section h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dealer-section h4 span, .player-section h4 span {
    color: var(--accent-color);
    font-weight: bold;
}

.card-hand {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 90px;
}

.playing-card {
    width: 60px;
    height: 84px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: dealCard 0.3s ease-out;
}

@keyframes dealCard {
    from {
        transform: translateY(-50px) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

.playing-card.red {
    color: #e74c3c;
}

.playing-card.black {
    color: #2c3e50;
}

.playing-card.hidden-card {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: transparent;
}

.playing-card.hidden-card::before {
    content: '🂠';
    font-size: 2.5em;
    color: #3498db;
}

.card-value {
    font-size: 0.9em;
}

.card-suit {
    font-size: 1.2em;
}

.blackjack-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.bj-action {
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003d6b 100%);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.bj-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.bj-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#bjDouble {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    border-color: #f39c12;
}

#bjDouble:hover {
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

/* Hand of Midas Slot Styles */
#casino-midas .casino-game {
    max-width: 800px;
}

.midas-slot-container {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    border: 4px solid #FFD700;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.15), 0 0 30px rgba(255, 215, 0, 0.3);
}

.midas-slot-frame {
    position: relative;
    background: linear-gradient(180deg, #0a0a15 0%, #1a1a2e 50%, #0a0a15 100%);
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 10px;
    overflow: hidden;
}

.midas-reels {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.midas-reel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.5) 100%);
    padding: 5px;
    border-radius: 8px;
}

.midas-symbol {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: all 0.3s;
    position: relative;
}

.midas-symbol.golden {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.2);
    background: linear-gradient(180deg, #3d2914 0%, #2a1c0d 100%);
}

.midas-symbol.wild {
    border-color: #FFD700;
    animation: goldenGlow 0.5s ease-in-out infinite alternate;
}

.midas-symbol.winning {
    animation: winningPulse 0.3s ease-in-out 3;
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.midas-symbol.scatter {
    border-color: #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

@keyframes winningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes goldenGlow {
    from { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

.midas-reel.spinning .midas-symbol {
    animation: slotSpinVertical 0.08s linear infinite;
}

@keyframes slotSpinVertical {
    0% { transform: translateY(-100%); opacity: 0.3; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0.3; }
}

.midas-paylines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.midas-payline {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.midas-payline.active {
    opacity: 1;
    animation: paylineFlash 0.5s ease-in-out 3;
}

@keyframes paylineFlash {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.midas-info-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.midas-stat {
    text-align: center;
}

.midas-stat .label {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 3px;
}

.midas-stat .value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.midas-spin-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.midas-spin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.midas-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.midas-golden-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.midas-golden-spin-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #6c3483 100%);
    border: 2px solid #FFD700;
    border-radius: 10px;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.midas-max-golden-btn {
    flex: 0.6;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    border: 2px solid #FFD700;
    border-radius: 10px;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.midas-max-golden-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.15) 50%,
        transparent 70%
    );
    animation: goldenShine 2s ease-in-out infinite;
}

.midas-max-golden-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

.midas-max-golden-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.max-golden-icon {
    font-size: 1.5em;
    animation: scatterPulse 1s ease-in-out infinite;
}

.max-golden-text {
    font-size: 1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.max-golden-cost {
    font-size: 0.8em;
    color: #fff;
}

.midas-golden-spin-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    animation: goldenShine 3s ease-in-out infinite;
}

@keyframes goldenShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.midas-golden-spin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

.midas-golden-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.golden-spin-icon {
    font-size: 1.5em;
    animation: scatterPulse 1s ease-in-out infinite;
}

@keyframes scatterPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px #FFD700); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 15px #FFD700); }
}

.golden-spin-text {
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.golden-spin-cost {
    font-size: 0.9em;
    color: #fff;
}

.golden-spin-desc {
    font-size: 0.75em;
    color: #aaa;
    font-weight: normal;
}

/* Auto Spin Controls */
.midas-auto-spin-controls {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.midas-auto-spin-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1a5276 100%);
    border: 2px solid #5dade2;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.midas-auto-spin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.midas-auto-spin-btn.active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 50%, #1e8449 100%);
    border-color: #2ecc71;
    animation: autoSpinPulse 1s ease-in-out infinite;
}

@keyframes autoSpinPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
    50% { box-shadow: 0 0 25px rgba(46, 204, 113, 0.8); }
}

.auto-spin-icon {
    font-size: 1.3em;
}

.midas-auto-spin-btn.active .auto-spin-icon {
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auto-spin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.auto-spin-options label {
    color: var(--text-secondary);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auto-spin-options select,
.auto-spin-options input[type="number"] {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-color);
    font-size: 0.9em;
    width: 100px;
}

.auto-spin-options input[type="number"] {
    width: 80px;
}

.auto-spin-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.auto-spin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auto-spin-start-btn,
.auto-spin-stop-btn {
    padding: 8px 16px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.auto-spin-start-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.auto-spin-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.auto-spin-stop-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.auto-spin-stop-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.auto-spin-status {
    text-align: center;
    margin-top: 8px;
    font-size: 0.95em;
    color: var(--accent-color);
    min-height: 20px;
}

.midas-free-spins-counter {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    animation: freeSpinsPulse 1s ease-in-out infinite;
}

@keyframes freeSpinsPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(155, 89, 182, 0.5); }
    50% { box-shadow: 0 0 25px rgba(155, 89, 182, 0.8); }
}

.midas-paytable {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.8em;
}

.midas-paytable h4 {
    margin-bottom: 10px;
    color: #FFD700;
}

.midas-paytable .paytable-grid {
    display: grid;
    gap: 5px;
}

.midas-paytable .paytable-row {
    padding: 4px 0;
    color: #ccc;
}

.midas-paytable .paytable-row.special {
    color: #FFD700;
    font-weight: bold;
    margin-top: 8px;
}

/* Game Mode Indicator */
.game-mode-indicator {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e74c3c;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 5px;
    animation: darkModePulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.game-mode-indicator.hidden {
    display: none;
}

@keyframes darkModePulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    }
}

/* Game Mode Selection Modal */
.game-mode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 20, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.game-mode-modal.hidden {
    display: none;
}

.game-mode-content {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    width: 90%;
}

.game-mode-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00D4FF, #FF6B35, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.game-mode-content h2 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.mode-intro {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 40px;
}

.mode-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-card {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card.normal-mode::before {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
}

.mode-card.dark-mode::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card.normal-mode {
    border-color: #2ecc71;
}

.mode-card.normal-mode:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.3);
}

.mode-card.dark-mode {
    border-color: #e74c3c;
}

.mode-card.dark-mode:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.3);
}

.mode-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.mode-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.mode-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.mode-details {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.mode-details li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95em;
}

.mode-details li:last-child {
    border-bottom: none;
}

.mode-card.normal-mode .mode-details li:first-child,
.mode-card.normal-mode .mode-details li:nth-child(2),
.mode-card.normal-mode .mode-details li:nth-child(3),
.mode-card.normal-mode .mode-details li:nth-child(4) {
    color: #2ecc71;
}

.mode-card.dark-mode .mode-details li:first-child,
.mode-card.dark-mode .mode-details li:nth-child(2),
.mode-card.dark-mode .mode-details li:nth-child(3) {
    color: #e74c3c;
}

.mode-card.dark-mode .mode-details li:last-child {
    color: #2ecc71;
    font-weight: bold;
}

.mode-multiplier {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mode-multiplier.dark {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: darkRewardPulse 1.5s ease-in-out infinite;
}

@keyframes darkRewardPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.7);
    }
}

/* Dark Mode Body Styling */
body.dark-mode-active {
    --dark-bg: #050510;
    --card-bg: #0f0f1f;
}

body.dark-mode-active .header {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 100%);
    border-bottom-color: #e74c3c;
}

body.dark-mode-active .tabs {
    background: linear-gradient(135deg, #0a0a15 0%, #15101a 100%);
}

body.dark-mode-active .tab-button.active {
    background: linear-gradient(135deg, #3d1515 0%, #2d0f0f 100%);
    border-color: #e74c3c;
}

@media (max-width: 700px) {
    .mode-options {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-card {
        width: 100%;
        max-width: 320px;
    }
    
    .game-mode-content h1 {
        font-size: 2em;
    }
}

/* Wheel of Fortune Styles */
.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.wheel-pointer {
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    z-index: 10;
    animation: pointerPulse 1s ease-in-out infinite;
    margin-bottom: -10px;
}

@keyframes pointerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wheel-outer {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #0a0a15);
    border: 6px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.wheel-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-spinning .wheel-spinner {
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 50%;
    transform-origin: 0% 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    font-weight: bold;
    font-size: 0.9em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.wheel-segment span {
    transform: rotate(78.75deg) translateX(35px);
    display: block;
}

/* 16 segments, each 22.5 degrees */
.wheel-segment.seg-0 { transform: rotate(0deg) skewY(-67.5deg); background: linear-gradient(135deg, #3498db, #2980b9); }
.wheel-segment.seg-1 { transform: rotate(22.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #27ae60, #229954); }
.wheel-segment.seg-2 { transform: rotate(45deg) skewY(-67.5deg); background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.wheel-segment.seg-3 { transform: rotate(67.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #e67e22, #d35400); }
.wheel-segment.seg-4 { transform: rotate(90deg) skewY(-67.5deg); background: linear-gradient(135deg, #3498db, #2980b9); }
.wheel-segment.seg-5 { transform: rotate(112.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #f39c12, #e67e22); }
.wheel-segment.seg-6 { transform: rotate(135deg) skewY(-67.5deg); background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.wheel-segment.seg-7 { transform: rotate(157.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #27ae60, #229954); }
.wheel-segment.seg-8 { transform: rotate(180deg) skewY(-67.5deg); background: linear-gradient(135deg, #e74c3c, #c0392b); }
.wheel-segment.seg-9 { transform: rotate(202.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #3498db, #2980b9); }
.wheel-segment.seg-10 { transform: rotate(225deg) skewY(-67.5deg); background: linear-gradient(135deg, #e67e22, #d35400); }
.wheel-segment.seg-11 { transform: rotate(247.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #2c3e50, #1a252f); }
.wheel-segment.seg-12 { transform: rotate(270deg) skewY(-67.5deg); background: linear-gradient(135deg, #27ae60, #229954); }
.wheel-segment.seg-13 { transform: rotate(292.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #FFD700, #FFA500); }
.wheel-segment.seg-14 { transform: rotate(315deg) skewY(-67.5deg); background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.wheel-segment.seg-15 { transform: rotate(337.5deg) skewY(-67.5deg); background: linear-gradient(135deg, #FFD700, #FF6B35); animation: jackpotGlow 1s ease-in-out infinite; }

@keyframes jackpotGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    z-index: 5;
}

.wheel-spin-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #6c3483 100%);
    border: 3px solid #FFD700;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
}

.wheel-spin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.5);
}

.wheel-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wheel-paytable {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.wheel-paytable h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.wheel-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wheel-prizes .prize {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
}

.wheel-prizes .prize.low {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
}

.wheel-prizes .prize.med {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.wheel-prizes .prize.high {
    background: rgba(230, 126, 34, 0.3);
    color: #e67e22;
}

.wheel-prizes .prize.jackpot {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.wheel-prizes .prize.mega {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 107, 53, 0.4));
    color: #FFD700;
    animation: megaPulse 1s ease-in-out infinite;
}

.wheel-prizes .prize.bust {
    background: rgba(44, 62, 80, 0.5);
    color: #95a5a6;
}

@keyframes megaPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

/* Video Poker Styles */
.poker-hand {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.poker-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.poker-card {
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #1a5276, #2874a6);
    border: 3px solid #5dade2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #5dade2;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poker-card .card-back {
    font-size: 1em;
}

.poker-card.dealt {
    background: white;
    border-color: #ddd;
}

.poker-card.dealt .card-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.poker-card .card-face.red {
    color: #e74c3c;
}

.poker-card .card-face.black {
    color: #2c3e50;
}

.poker-card .card-rank {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
}

.poker-card .card-suit {
    font-size: 1.6em;
    line-height: 1;
}

.poker-card.held {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
    border-color: #2ecc71 !important;
}

.hold-btn {
    padding: 5px 15px;
    font-size: 0.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #95a5a6;
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.hold-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #2ecc71;
    color: white;
}

.hold-btn.active {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #2ecc71;
    color: white;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.poker-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.poker-btn {
    padding: 15px 50px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60, #229954);
    border: 3px solid #2ecc71;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.poker-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.5);
}

.poker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.poker-paytable {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.poker-paytable h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
    text-align: center;
}

.poker-paytable .paytable-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.paytable-row .mult {
    color: var(--accent-color);
    font-weight: bold;
}

.paytable-row .hand-name.winning {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.paytable-row:has(.hand-name.winning) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.2));
    border: 1px solid #FFD700;
}

/* Texas Hold'em Styles */
.holdem-game {
    max-width: 600px;
    margin: 0 auto;
}

.holdem-table {
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    border: 4px solid #8b4513;
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

.holdem-section {
    margin: 15px 0;
    text-align: center;
}

.section-label {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dealer-section .section-label {
    color: #e74c3c;
}

.player-section .section-label {
    color: #3498db;
}

.community-section .section-label {
    color: #f1c40f;
}

.holdem-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community-cards {
    background: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.holdem-pot {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin: 10px 0;
}

.pot-label {
    font-size: 1em;
    color: #aaa;
}

.pot-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #f1c40f;
    margin-left: 10px;
}

.holdem-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.holdem-btn {
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border: 3px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.holdem-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.deal-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #2ecc71;
    color: white;
}

.deal-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.call-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #5dade2;
    color: white;
}

.call-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.raise-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f1c40f;
    color: white;
}

.raise-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.fold-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: white;
}

.fold-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.holdem-paytable {
    font-size: 0.85em;
}

.holdem-paytable .paytable-row {
    padding: 3px 8px;
}

/* Responsive poker styles */
@media (max-width: 480px) {
    .poker-card {
        width: 55px;
        height: 80px;
    }
    
    .poker-card .card-rank {
        font-size: 1.2em;
    }
    
    .poker-card .card-suit {
        font-size: 1.2em;
    }
    
    .poker-hand, .holdem-cards {
        gap: 6px;
    }
    
    .hold-btn {
        padding: 3px 10px;
        font-size: 0.7em;
    }
    
    .holdem-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .holdem-table {
        padding: 10px;
    }
}

/* ==========================================
   PLINKO STYLES
   ========================================== */

.plinko-game {
    max-width: 450px;
    margin: 0 auto;
}

.plinko-risk-selector {
    margin: 15px 0;
    text-align: center;
}

.plinko-risk-selector label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
}

.risk-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.risk-btn {
    padding: 8px 20px;
    font-size: 0.95em;
    font-weight: bold;
    border: 2px solid #555;
    border-radius: 8px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
}

.risk-btn:hover {
    border-color: #888;
    color: #fff;
}

.risk-btn.active[data-risk="low"] {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #2ecc71;
    color: white;
}

.risk-btn.active[data-risk="medium"] {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f1c40f;
    color: white;
}

.risk-btn.active[data-risk="high"] {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: white;
}

.plinko-container {
    position: relative;
    margin: 15px auto;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #0f3460;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#plinkoCanvas {
    display: block;
}

.plinko-slots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 0 auto 15px;
    max-width: 400px;
}

.plinko-slot {
    flex: 1;
    padding: 8px 2px;
    text-align: center;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 5px;
    color: white;
    min-width: 30px;
}

.plinko-slot.mult-0 {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #e74c3c;
}

.plinko-slot.mult-low {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.plinko-slot.mult-med {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.plinko-slot.mult-high {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.plinko-slot.mult-jackpot {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    animation: jackpotPulse 1s ease-in-out infinite;
}

@keyframes jackpotPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.5); }
    50% { box-shadow: 0 0 15px rgba(155, 89, 182, 0.8); }
}

.plinko-slot.winning {
    animation: slotWin 0.5s ease-in-out 3;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes slotWin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.plinko-drop-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 15px;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: 3px solid #a569bd;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.plinko-drop-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.6);
}

.plinko-drop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Plinko */
@media (max-width: 480px) {
    #plinkoCanvas {
        width: 320px;
        height: 400px;
    }
    
    .plinko-slots {
        max-width: 320px;
    }
    
    .plinko-slot {
        font-size: 0.65em;
        padding: 6px 1px;
    }
    
    .plinko-drop-btn {
        font-size: 1.1em;
        padding: 12px 20px;
    }
}

/* ==========================================
   MINES STYLES
   ========================================== */

.mines-game {
    max-width: 500px;
    margin: 0 auto;
}

.mines-count-selector {
    margin: 15px 0;
    text-align: center;
}

.mines-count-selector label {
    display: block;
    margin-bottom: 10px;
    color: #aaa;
}

.mines-count-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mines-count-btn {
    padding: 10px 18px;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid #555;
    border-radius: 8px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
}

.mines-count-btn:hover {
    border-color: #e74c3c;
    color: #fff;
}

.mines-count-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

.mines-start-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 3px solid #27ae60;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.mines-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.5);
}

.mines-game-area {
    padding: 15px;
}

.mines-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.mines-stat {
    text-align: center;
}

.mines-stat .label {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 3px;
}

.mines-stat .value {
    font-size: 1.2em;
    font-weight: bold;
    color: #f1c40f;
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 350px;
    margin: 0 auto 20px;
}

.mines-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 3px solid #5dade2;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.mines-tile:hover:not(.revealed) {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.mines-tile.revealed {
    cursor: default;
    transform: none;
}

.mines-tile.gem {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #27ae60;
    animation: gemReveal 0.3s ease-out;
}

@keyframes gemReveal {
    0% { transform: scale(0.5) rotateY(180deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.mines-tile.mine {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    animation: mineExplode 0.5s ease-out;
}

@keyframes mineExplode {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.mines-tile.revealed-end {
    opacity: 0.6;
}

.mines-tile.revealed-end.mine {
    opacity: 1;
    background: linear-gradient(135deg, #c0392b, #922b21);
    border-color: #922b21;
}

.mines-cashout-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border: 3px solid #f1c40f;
    border-radius: 12px;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s;
    animation: cashoutPulse 1.5s ease-in-out infinite;
}

@keyframes cashoutPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }
    50% { box-shadow: 0 0 25px rgba(241, 196, 15, 0.7); }
}

.mines-cashout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.8);
}

.mines-cashout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Responsive Mines */
@media (max-width: 480px) {
    .mines-grid {
        max-width: 280px;
        gap: 5px;
    }
    
    .mines-tile {
        font-size: 1.4em;
        border-width: 2px;
    }
    
    .mines-count-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .mines-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mines-stat {
        flex: 1 1 30%;
    }
}

/* ==========================================
   CRASH STYLES
   ========================================== */

.crash-game {
    max-width: 500px;
    margin: 0 auto;
}

.crash-container {
    margin: 15px 0;
}

.crash-graph {
    position: relative;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    border: 3px solid #2c3e50;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

#crashCanvas {
    display: block;
    width: 100%;
    height: auto;
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5em;
    font-weight: bold;
    color: #2ecc71;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
    transition: all 0.1s;
    pointer-events: none;
}

.crash-multiplier.crashed {
    color: #e74c3c;
    text-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
    animation: crashShake 0.5s ease-in-out;
}

@keyframes crashShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    20% { transform: translate(-52%, -48%) rotate(-3deg); }
    40% { transform: translate(-48%, -52%) rotate(3deg); }
    60% { transform: translate(-52%, -50%) rotate(-2deg); }
    80% { transform: translate(-48%, -50%) rotate(2deg); }
}

.crash-multiplier.cashed {
    color: #f1c40f;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.8);
}

.crash-history {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.crash-history-item {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.crash-history-item.low {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.crash-history-item.med {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
}

.crash-history-item.high {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.crash-history-item.mega {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    animation: megaPulse 1s ease-in-out infinite;
}

.crash-controls {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.crash-controls .bet-controls {
    flex: 1;
    min-width: 200px;
}

.crash-auto-cashout {
    display: flex;
    align-items: center;
    gap: 5px;
}

.crash-auto-cashout label {
    white-space: nowrap;
}

.crash-auto-cashout input {
    width: 70px;
}

.auto-label {
    font-weight: bold;
    color: #f1c40f;
}

.crash-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.crash-bet-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 3px solid #27ae60;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.crash-bet-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.5);
}

.crash-bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.crash-bet-btn.waiting {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    animation: waitingPulse 1s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 0 25px rgba(243, 156, 18, 0.7); }
}

.crash-cashout-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border: 3px solid #f1c40f;
    border-radius: 12px;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s;
    animation: cashoutPulse 0.5s ease-in-out infinite;
}

.crash-cashout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.8);
}

/* Responsive Crash */
@media (max-width: 480px) {
    .crash-multiplier {
        font-size: 2.5em;
    }
    
    .crash-controls {
        flex-direction: column;
    }
    
    .crash-auto-cashout {
        width: 100%;
        justify-content: center;
    }
    
    .crash-bet-btn, .crash-cashout-btn {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    .crash-history-item {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

/* ==================== DRAGON'S LAIR SLOT ==================== */
.dragon-game {
    background: linear-gradient(135deg, #1a0a0a 0%, #3d1010 50%, #1a0a0a 100%);
    border: 2px solid #ff4500;
    position: relative;
    overflow: hidden;
}

.dragon-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 140, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.dragon-game h3 {
    color: #ff6347;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.dragon-slot-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.dragon-slot-frame {
    position: relative;
    background: linear-gradient(135deg, #2a0f0f, #4a1515);
    border: 4px solid #8b0000;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 
        0 0 30px rgba(255, 69, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.dragon-reels {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
}

.dragon-reel {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 60px;
}

.dragon-symbol {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background: linear-gradient(135deg, #1a0a0a, #2a1010);
    border: 2px solid #8b0000;
    border-radius: 8px;
    transition: all 0.3s;
}

.dragon-symbol.spinning {
    animation: dragonSpinSymbol 0.1s linear infinite;
}

@keyframes dragonSpinSymbol {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.dragon-symbol.fire-breath {
    animation: fireBreath 0.5s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
}

@keyframes fireBreath {
    0% { transform: scale(1); background: linear-gradient(135deg, #1a0a0a, #2a1010); }
    50% { transform: scale(1.2); background: linear-gradient(135deg, #ff4500, #ff8c00); }
    100% { transform: scale(1); background: linear-gradient(135deg, #1a0a0a, #2a1010); }
}

.dragon-symbol.winning {
    animation: dragonWinSymbol 0.5s ease-in-out 3;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    border-color: gold;
}

@keyframes dragonWinSymbol {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.dragon-info-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.dragon-stat {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(255, 69, 0, 0.2));
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.dragon-stat .label {
    display: block;
    font-size: 0.8em;
    color: #ff8c00;
    text-transform: uppercase;
}

.dragon-stat .value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #ff4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.dragon-spin-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    padding: 18px 40px;
    font-size: 1.4em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff4500, #dc143c);
    border: 3px solid #ff6347;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dragon-spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.6);
}

.dragon-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dragon-bonus-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.dragon-fire-spin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border: 3px solid #ffd700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.dragon-fire-spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
}

.dragon-fire-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fire-spin-icon {
    font-size: 2em;
}

.fire-spin-text {
    font-weight: bold;
    font-size: 1.1em;
}

.fire-spin-cost {
    font-size: 0.9em;
    color: #ffe4b5;
}

.fire-spin-desc {
    font-size: 0.75em;
    color: #ffd700;
}

.dragon-free-spins-counter {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    border: 2px solid #ff4500;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin: 10px 0;
    animation: dragonFirePulse 1s ease-in-out infinite;
}

@keyframes dragonFirePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 69, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 140, 0, 0.7); }
}

.dragon-paytable {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.dragon-paytable h4 {
    color: #ff6347;
    margin-bottom: 10px;
}

.dragon-paytable .paytable-row {
    color: #ffa07a;
}

.dragon-paytable .paytable-row.special {
    color: #ffd700;
    font-weight: bold;
}

/* ==================== COSMIC FORTUNE SLOT ==================== */
.cosmic-game {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    border: 2px solid #4169e1;
    position: relative;
    overflow: hidden;
}

.cosmic-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, white, transparent),
        radial-gradient(1px 1px at 60% 20%, white, transparent),
        radial-gradient(2px 2px at 80% 60%, white, transparent),
        radial-gradient(1px 1px at 90% 90%, white, transparent),
        radial-gradient(1px 1px at 10% 80%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cosmic-game h3 {
    color: #87ceeb;
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.5);
}

.cosmic-slot-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.cosmic-slot-frame {
    position: relative;
    background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
    border: 4px solid #4169e1;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 
        0 0 30px rgba(65, 105, 225, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.cosmic-reels {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

.cosmic-reel {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 60px;
    position: relative;
}

.cosmic-reel.expanded-wild {
    animation: cosmicExpand 0.5s ease-in-out;
}

.cosmic-reel.expanded-wild .cosmic-symbol {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes cosmicExpand {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1.2); }
    100% { transform: scaleY(1); opacity: 1; }
}

.cosmic-symbol {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background: linear-gradient(135deg, #0a0a2a, #1a1a4a);
    border: 2px solid #4169e1;
    border-radius: 8px;
    transition: all 0.3s;
}

.cosmic-symbol.spinning {
    animation: cosmicSpinSymbol 0.1s linear infinite;
}

@keyframes cosmicSpinSymbol {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.cosmic-symbol.expanding {
    animation: starExpand 0.6s ease-out;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

@keyframes starExpand {
    0% { transform: scale(0.5) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.cosmic-symbol.winning {
    animation: cosmicWinSymbol 0.5s ease-in-out 3;
    box-shadow: 0 0 25px rgba(135, 206, 235, 0.8);
    border-color: #87ceeb;
}

@keyframes cosmicWinSymbol {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cosmic-expanding-wild {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
    border-radius: 10px;
    pointer-events: none;
    animation: expandingWildGlow 1s ease-in-out infinite;
}

@keyframes expandingWildGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.cosmic-info-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.cosmic-stat {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(135, 206, 235, 0.2));
    border: 2px solid #4169e1;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.cosmic-stat .label {
    display: block;
    font-size: 0.8em;
    color: #87ceeb;
    text-transform: uppercase;
}

.cosmic-stat .value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #4169e1;
    text-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

.cosmic-spin-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    padding: 18px 40px;
    font-size: 1.4em;
    font-weight: bold;
    background: linear-gradient(135deg, #4169e1, #8a2be2);
    border: 3px solid #87ceeb;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cosmic-spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(65, 105, 225, 0.6);
}

.cosmic-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cosmic-bonus-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.cosmic-warp-spin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    border: 3px solid #ffd700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.cosmic-warp-spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
}

.cosmic-warp-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.warp-spin-icon {
    font-size: 2em;
}

.warp-spin-text {
    font-weight: bold;
    font-size: 1.1em;
}

.warp-spin-cost {
    font-size: 0.9em;
    color: #e6e6fa;
}

.warp-spin-desc {
    font-size: 0.75em;
    color: #ffd700;
}

.cosmic-free-spins-counter {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(138, 43, 226, 0.2));
    border: 2px solid #4169e1;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin: 10px 0;
    animation: cosmicPulse 1s ease-in-out infinite;
}

@keyframes cosmicPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(65, 105, 225, 0.4); }
    50% { box-shadow: 0 0 25px rgba(138, 43, 226, 0.7); }
}

.cosmic-paytable {
    background: rgba(65, 105, 225, 0.2);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.cosmic-paytable h4 {
    color: #87ceeb;
    margin-bottom: 10px;
}

.cosmic-paytable .paytable-row {
    color: #b0c4de;
}

.cosmic-paytable .paytable-row.special {
    color: #ffd700;
    font-weight: bold;
}

/* ==========================================
   CANDY CASCADE (SWEET BONANZA STYLE)
   ========================================== */

.candy-game {
    background: linear-gradient(180deg, #ff69b4 0%, #ff1493 50%, #c71585 100%);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.candy-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.candy-game h3 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 105, 180, 0.8);
    font-size: 1.8em;
}

.candy-game .game-desc {
    color: #ffe4e1;
}

.candy-slot-container {
    position: relative;
    margin: 20px 0;
}

.candy-multiplier-display {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: 3px solid #fff;
    border-radius: 50px;
    padding: 8px 25px;
    z-index: 10;
    animation: candyMultiplierPulse 0.5s ease-in-out infinite;
}

.candy-multiplier-display .multiplier-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes candyMultiplierPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.candy-grid-frame {
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px;
    position: relative;
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 105, 180, 0.15);
    overflow: hidden;
}

.candy-grid-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
}

.candy-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    background: transparent;
    border-radius: 12px;
    padding: 6px;
    min-height: 320px;
    position: relative;
}

.candy-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    aspect-ratio: 1;
    transition: transform 0.15s ease;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
}

.candy-symbol.winning {
    animation: candyWinPulse 0.4s ease-in-out;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, rgba(255, 165, 0, 0.2) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.candy-symbol.falling {
    animation: candyDrop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.candy-symbol.new {
    animation: candyDropIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.candy-symbol.removing {
    animation: candyPop 0.25s ease-out forwards;
}

.candy-symbol.multiplier-bomb {
    animation: multiplierBombGlow 0.8s ease-in-out infinite;
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px #ff4500, 0 0 20px #ff6600;
}

/* Clean win pulse - no spinning */
@keyframes candyWinPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Smooth gravity drop with slight bounce */
@keyframes candyDrop {
    0% { transform: translateY(-80px); opacity: 0.5; }
    60% { transform: translateY(5px); opacity: 1; }
    80% { transform: translateY(-3px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* New symbols dropping from top */
@keyframes candyDropIn {
    0% { transform: translateY(-120px) scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    70% { transform: translateY(8px) scale(1.05); }
    85% { transform: translateY(-4px) scale(0.98); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pop and fade when removed */
@keyframes candyPop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0); opacity: 0; }
}

/* Smooth tumble for cascading (no spin) */
@keyframes candyTumble {
    0% { transform: translateY(-100px); opacity: 0; }
    40% { opacity: 1; }
    70% { transform: translateY(6px); }
    85% { transform: translateY(-3px); }
    100% { transform: translateY(0); opacity: 1; }
}

.candy-symbol.tumbling {
    animation: candyTumble 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Subtle squash on landing */
@keyframes candyLand {
    0% { transform: scaleY(1) scaleX(1); }
    40% { transform: scaleY(0.9) scaleX(1.1); }
    70% { transform: scaleY(1.05) scaleX(0.95); }
    100% { transform: scaleY(1) scaleX(1); }
}

.candy-symbol.landed {
    animation: candyLand 0.25s ease-out;
}

/* Big win - subtle glow pulse, no rotation */
@keyframes candyBigWin {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

.candy-symbol.big-win {
    animation: candyBigWin 0.5s ease-in-out 2;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 105, 180, 0.5);
}

/* Subtle glow effect for winning symbols */
.candy-symbol.winning::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 16px;
    animation: candyGlow 0.6s ease-in-out;
    pointer-events: none;
}

@keyframes candyGlow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Hover effect - subtle scale */
.candy-symbol:hover {
    transform: scale(1.08);
    z-index: 2;
}

@keyframes candySparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Subtle golden glow for scatter symbols */
@keyframes scatterGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
        filter: brightness(1.2);
    }
}

.candy-symbol.scatter {
    animation: scatterGlow 1.2s ease-in-out infinite;
    border-radius: 12px;
}

/* Grid shake on big win - subtle */
@keyframes gridShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.candy-grid.shaking {
    animation: gridShake 0.5s ease-in-out;
}

/* Free spins banner pulse */
@keyframes freeSpinsBannerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 20, 147, 0.5);
    }
}

.candy-free-spins-banner {
    animation: freeSpinsBannerPulse 1s ease-in-out infinite;
}

/* Confetti burst for big wins */
@keyframes confettiBurst {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.candy-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiBurst 1s ease-out forwards;
    pointer-events: none;
}

/* Hover effect for symbols */
.candy-symbol:hover {
    transform: scale(1.1);
    z-index: 5;
}

/* Multiplier explosion */
@keyframes multiplierExplode {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); filter: brightness(1.5); }
    100% { transform: scale(1); }
}

.candy-symbol.multiplier-exploding {
    animation: multiplierExplode 0.5s ease-out;
}

@keyframes multiplierBombGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.5);
        filter: brightness(1.3);
    }
}

.candy-win-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: 4px solid #fff;
    border-radius: 20px;
    padding: 20px 50px;
    z-index: 20;
    animation: candyWinPop 0.5s ease-out;
}

.candy-win-display .win-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #8b0000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

@keyframes candyWinPop {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.candy-info-panel {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px;
    background: rgba(139, 69, 19, 0.6);
    border-radius: 10px;
}

.candy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.candy-stat .label {
    color: #daa520;
    font-size: 0.85em;
}

.candy-stat .value {
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
}

.candy-spin-btn {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    font-size: 1.4em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff1493);
    border: 3px solid #ffd700;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.candy-spin-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: candyShine 2s ease-in-out infinite;
}

@keyframes candyShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.candy-spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
}

.candy-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.candy-bonus-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.candy-bonus-buy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b0000, #dc143c);
    border: 3px solid #ffd700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.candy-bonus-buy-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.6);
}

.candy-bonus-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.candy-bonus-buy-btn .bonus-icon {
    font-size: 2em;
}

.candy-bonus-buy-btn .bonus-text {
    font-weight: bold;
    font-size: 1.1em;
}

.candy-bonus-buy-btn .bonus-cost {
    font-size: 0.9em;
    color: #ffd700;
}

.candy-bonus-buy-btn .bonus-desc {
    font-size: 0.75em;
    color: #ffb6c1;
}

/* Max Buy Button for Candy Cascade */
.candy-max-buy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #8b4513, #daa520);
    border: 3px solid #ffd700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.candy-max-buy-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.6);
}

.candy-max-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.candy-max-buy-btn .max-bonus-icon {
    font-size: 2em;
}

.candy-max-buy-btn .max-bonus-text {
    font-weight: bold;
    font-size: 1.1em;
}

.candy-max-buy-btn .max-bonus-cost {
    font-size: 0.9em;
    color: #ffd700;
}

.candy-free-spins-banner {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(255, 105, 180, 0.3));
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin: 10px 0;
    animation: candyFreePulse 1s ease-in-out infinite;
    color: #fff;
    font-weight: bold;
}

@keyframes candyFreePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 20, 147, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 105, 180, 0.7); }
}

.candy-paytable {
    background: rgba(139, 69, 19, 0.6);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.candy-paytable h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.candy-paytable-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.candy-paytable .paytable-row {
    color: #ffe4c4;
    font-size: 0.85em;
    padding: 3px;
}

.candy-paytable .paytable-row.special {
    grid-column: span 2;
    color: #ffd700;
    font-weight: bold;
    text-align: center;
    margin-top: 8px;
}

/* Dragon Max Rage Button */
.dragon-max-rage-btn {
    flex: 0.6;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #ff4500 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.dragon-max-rage-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 69, 0, 0.2) 50%,
        transparent 70%
    );
    animation: dragonFlame 1.5s ease-in-out infinite;
}

@keyframes dragonFlame {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.dragon-max-rage-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

.dragon-max-rage-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.max-rage-icon {
    font-size: 1.5em;
    animation: scatterPulse 1s ease-in-out infinite;
}

.max-rage-text {
    font-size: 1em;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.max-rage-cost {
    font-size: 0.8em;
    color: #fff;
}

/* Cosmic Max Warp Button */
.cosmic-max-warp-btn {
    flex: 0.6;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a4a 0%, #4169e1 50%, #8a2be2 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.cosmic-max-warp-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(135, 206, 235, 0.2) 50%,
        transparent 70%
    );
    animation: warpShine 2s ease-in-out infinite;
}

@keyframes warpShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cosmic-max-warp-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(65, 105, 225, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

.cosmic-max-warp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.max-warp-icon {
    font-size: 1.5em;
    animation: scatterPulse 1s ease-in-out infinite;
}

.max-warp-text {
    font-size: 1em;
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.max-warp-cost {
    font-size: 0.8em;
    color: #fff;
}

/* Responsive Themed Slots */
@media (max-width: 600px) {
    .dragon-symbol, .cosmic-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
    }
    
    .dragon-reel, .cosmic-reel {
        width: 50px;
    }
    
    .dragon-spin-btn, .cosmic-spin-btn {
        padding: 14px 25px;
        font-size: 1.2em;
    }
    
    .dragon-info-panel, .cosmic-info-panel {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   LEADERBOARD STYLES
   ========================================== */

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.leaderboard-container h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 2em;
}

.leaderboard-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Player Card */
.player-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 180, 216, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.player-info {
    flex: 1;
}

.player-name-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    max-width: 250px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.player-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.player-stats-row {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.player-stats-row span span {
    color: var(--primary-color);
    font-weight: bold;
}

.save-name-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-name-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.lb-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lb-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lb-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    font-weight: bold;
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.3);
}

/* Leaderboard Table */
.leaderboard-table-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: rgba(0, 212, 255, 0.15);
}

.leaderboard-table th {
    padding: 15px;
    text-align: left;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table tbody tr.current-player {
    background: rgba(0, 212, 255, 0.15);
    border-left: 3px solid var(--primary-color);
}

.leaderboard-table tbody tr.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
}

.leaderboard-table tbody tr.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
}

.leaderboard-table tbody tr.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
}

.rank-col {
    width: 80px;
    text-align: center !important;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.95em;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #333;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #333;
    box-shadow: 0 3px 10px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8722a);
    color: white;
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.4);
}

.rank-normal {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.player-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-player-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.lb-player-name {
    font-weight: 500;
}

.score-col {
    text-align: right !important;
    font-weight: bold;
    color: var(--primary-color);
}

/* Personal Bests Section */
.personal-bests-section {
    margin-bottom: 25px;
}

.personal-bests-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.personal-bests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.pb-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pb-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pb-icon {
    font-size: 1.8em;
    display: block;
    margin-bottom: 8px;
}

.pb-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 5px;
}

.pb-value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Weekly Competition */
.weekly-competition {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 20px;
}

.competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.competition-header h3 {
    margin: 0;
    color: #ff6b35;
}

.competition-timer {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95em;
}

.competition-timer span:last-child {
    color: #ff6b35;
    font-weight: bold;
    font-family: monospace;
}

.competition-prize {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 10px;
}

.prize-icon {
    font-size: 1.5em;
}

.prize-text {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
    .player-card {
        flex-direction: column;
        text-align: center;
    }
    
    .player-name-input {
        max-width: 100%;
        text-align: center;
    }
    
    .player-stats-row {
        justify-content: center;
    }
    
    .leaderboard-tabs {
        gap: 8px;
    }
    
    .lb-tab {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
}

/* ==========================================
   Events & Mini-Games Tab
   ========================================== */

.events-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.events-container h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Active Event Banner */
.active-event-banner {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(233, 30, 99, 0.2));
    border: 2px solid rgba(156, 39, 176, 0.6);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.active-event-banner .event-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, transparent 60%);
    animation: eventGlow 4s ease-in-out infinite;
}

@keyframes eventGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 1; }
}

.active-event-banner .event-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.active-event-banner .event-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.active-event-banner h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.active-event-banner p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.active-event-banner .event-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.active-event-banner .event-timer span:last-child {
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.active-event-banner .event-bonus {
    color: #ffc107;
    font-weight: bold;
    font-size: 1.1em;
}

.active-event-banner.hidden {
    display: none;
}

/* Minigame Button */
.minigame-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 7;
    flex-shrink: 0;
}

.minigame-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.minigame-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mini-Game Arena */
.minigame-arena {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
}

.minigame-arena.hidden {
    display: none;
}

.arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.arena-header h3 {
    font-size: 1.5em;
    color: var(--text-primary);
}

.arena-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.arena-close:hover {
    color: var(--danger-color);
}

.arena-content {
    min-height: 200px;
}

.arena-result {
    text-align: center;
    padding: 30px;
}

.arena-result.hidden {
    display: none;
}

.arena-result .result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.arena-result .result-text {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.arena-result .result-reward {
    font-size: 1.5em;
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 20px;
}

.arena-result .result-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arena-result .result-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* Click Frenzy Game */
.click-frenzy-game {
    text-align: center;
}

.frenzy-timer {
    font-size: 4em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.frenzy-clicks {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.frenzy-clicks span {
    color: #ffc107;
}

.frenzy-target {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
    user-select: none;
}

.frenzy-target:active {
    transform: scale(0.95);
}

.frenzy-target.disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.frenzy-start-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frenzy-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* Memory Match Game */
.memory-game {
    padding: 10px;
}

.memory-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.memory-stat {
    text-align: center;
}

.memory-stat .label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.memory-stat .value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.memory-card:hover:not(.flipped):not(.matched) {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.memory-card.flipped {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border-color: var(--primary-color);
}

.memory-card.matched {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-color: #4caf50;
    cursor: default;
}

.memory-card .back {
    display: block;
}

.memory-card .front {
    display: none;
}

.memory-card.flipped .back,
.memory-card.matched .back {
    display: none;
}

.memory-card.flipped .front,
.memory-card.matched .front {
    display: block;
}

/* Lucky Spin */
.lucky-spin-game {
    text-align: center;
    padding: 20px;
}

.spin-wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
}

.spin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b35 0deg 45deg,
        #ffc107 45deg 90deg,
        #4caf50 90deg 135deg,
        #2196f3 135deg 180deg,
        #9c27b0 180deg 225deg,
        #e91e63 225deg 270deg,
        #00bcd4 270deg 315deg,
        #ff5722 315deg 360deg
    );
    border: 6px solid var(--primary-color);
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.spin-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 35px solid var(--primary-color);
    z-index: 10;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
}

.spin-prizes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spin-prize-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.spin-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    display: block;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

.spin-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spin-result {
    margin-top: 20px;
    font-size: 1.4em;
    min-height: 50px;
    color: #ffc107;
    font-weight: bold;
}

/* Number Guess Game */
.number-guess-game {
    text-align: center;
    padding: 20px;
}

.guess-info {
    margin-bottom: 20px;
}

.guess-range {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.guess-attempts {
    font-size: 1.1em;
}

.guess-attempts span {
    color: var(--primary-color);
    font-weight: bold;
}

.guess-input-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.guess-input {
    width: 120px;
    padding: 15px;
    font-size: 1.5em;
    text-align: center;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.guess-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.guess-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guess-btn:hover {
    transform: scale(1.05);
}

.guess-feedback {
    font-size: 1.3em;
    margin: 20px 0;
    min-height: 40px;
}

.guess-feedback.higher {
    color: #ff6b6b;
}

.guess-feedback.lower {
    color: #4fc3f7;
}

.guess-feedback.correct {
    color: #4caf50;
}

.guess-history {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.guess-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.guess-tag.too-low {
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
}

.guess-tag.too-high {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* Event History */
.event-history-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.event-history-section h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.event-history {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-game {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-game .icon {
    font-size: 1.3em;
}

.history-game .name {
    color: var(--text-primary);
}

.history-reward {
    color: #ffc107;
    font-weight: bold;
}

.history-time {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.no-history {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* Mini-Games Section */
.minigames-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
}

.minigames-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.minigames-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.minigame-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.minigame-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.minigame-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.minigame-card.locked:hover {
    transform: none;
    border-color: var(--border-color);
}

.minigame-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.minigame-card h4 {
    flex: 1;
    min-width: 150px;
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 0;
}

.minigame-card p {
    width: 100%;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: -5px 0 5px 0;
    order: 5;
}

.minigame-reward {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    order: 6;
}

.minigame-cooldown {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75em;
}

.minigame-play-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minigame-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.minigame-play-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Active Events Section */
.active-events-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
}

.active-events-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.15));
    border: 1px solid rgba(156, 39, 176, 0.4);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #673ab7, #3f51b5);
}

.event-card.bonus-event {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    border-color: rgba(255, 193, 7, 0.4);
}

.event-card.bonus-event::before {
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
}

.event-card.special-event {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(0, 150, 136, 0.15));
    border-color: rgba(76, 175, 80, 0.4);
}

.event-card.special-event::before {
    background: linear-gradient(90deg, #4caf50, #00bcd4, #03a9f4);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-title h4 {
    font-size: 1.1em;
    color: var(--text-primary);
}

.event-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: bold;
}

.event-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
}

.event-timer.ending-soon {
    background: rgba(244, 67, 54, 0.4);
    color: #ff6b6b;
    animation: pulse 1s infinite;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 12px;
}

.event-rewards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-reward-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.event-progress {
    margin-top: 12px;
}

.event-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.event-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.event-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 5px;
}

.no-events-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-size: 0.95em;
}

/* Event History */
.event-history {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
}

.event-history h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.history-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-item-icon {
    font-size: 1.5em;
}

.history-item-details h5 {
    color: var(--text-primary);
    font-size: 0.95em;
    margin-bottom: 3px;
}

.history-item-details span {
    color: var(--text-secondary);
    font-size: 0.8em;
}

.history-item-reward {
    color: #ffc107;
    font-weight: bold;
}

/* Mini-Game Modals */
.minigame-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.minigame-modal.active {
    display: flex;
}

.minigame-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.minigame-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.minigame-close:hover {
    color: var(--danger-color);
}

.minigame-header {
    text-align: center;
    margin-bottom: 25px;
}

.minigame-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.minigame-header p {
    color: var(--text-secondary);
}

/* Memory Match Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.memory-card:hover:not(.flipped):not(.matched) {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.memory-card.flipped {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-color: #4caf50;
    cursor: default;
}

.memory-card .card-back {
    display: block;
}

.memory-card .card-front {
    display: none;
    transform: rotateY(180deg);
}

.memory-card.flipped .card-back,
.memory-card.matched .card-back {
    display: none;
}

.memory-card.flipped .card-front,
.memory-card.matched .card-front {
    display: block;
}

.memory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.memory-stat {
    text-align: center;
}

.memory-stat-label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.memory-stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Speed Click Game */
.speed-click-area {
    text-align: center;
    padding: 30px;
}

.speed-click-target {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.speed-click-target:hover {
    transform: scale(1.05);
}

.speed-click-target:active {
    transform: scale(0.95);
}

.speed-click-target.disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}

.speed-timer {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.speed-clicks {
    font-size: 2em;
    margin-bottom: 10px;
}

.speed-cps {
    color: var(--text-secondary);
    font-size: 1.2em;
}

.speed-start-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.speed-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* Lucky Spin Wheel */
.spin-wheel-container {
    text-align: center;
    padding: 20px;
}

.spin-wheel {
    width: 280px;
    height: 280px;
    margin: 20px auto;
    position: relative;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b35 0deg 45deg,
        #ffc107 45deg 90deg,
        #4caf50 90deg 135deg,
        #2196f3 135deg 180deg,
        #9c27b0 180deg 225deg,
        #ff6b35 225deg 270deg,
        #ffc107 270deg 315deg,
        #e91e63 315deg 360deg
    );
    border: 5px solid var(--primary-color);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--primary-color);
    z-index: 10;
}

.spin-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

.spin-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spin-result {
    margin-top: 20px;
    font-size: 1.3em;
    min-height: 40px;
}

.spin-cooldown-msg {
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Mini-game Results */
.minigame-result {
    text-align: center;
    padding: 30px;
}

.minigame-result h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.minigame-result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.minigame-reward-display {
    font-size: 1.5em;
    margin-bottom: 25px;
}

.minigame-reward-display .reward-amount {
    color: #ffc107;
    font-weight: bold;
}

.minigame-play-again {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.minigame-play-again:hover {
    transform: scale(1.05);
}

/* Responsive Events */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .events-container {
        padding: 15px;
    }
    
    .minigame-card {
        flex-direction: column;
        text-align: center;
    }
    
    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .memory-card {
        font-size: 1.5em;
    }
    
    .speed-click-target {
        width: 120px;
        height: 120px;
        font-size: 2.5em;
    }
    
    .spin-wheel {
        width: 220px;
        height: 220px;
    }
}

/* ==========================================
   Stats & Analytics Tab
   ========================================== */

.stats-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4caf50, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stats-card h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.stat-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.05em;
}

/* ==========================================
   Enhanced Prestige Tab with Layers
   ========================================== */

.prestige-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.prestige-level-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.prestige-level-badge.ascension-badge {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.1));
    border-color: rgba(156, 39, 176, 0.5);
}

.prestige-level-badge.transcendence-badge {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(33, 150, 243, 0.1));
    border-color: rgba(0, 188, 212, 0.5);
}

.prestige-layer-tabs {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.prestige-layer-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.prestige-layer-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.prestige-layer-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border-color: var(--primary-color);
    color: white;
}

.prestige-layer-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prestige-layer {
    display: none;
}

.prestige-layer.active {
    display: block;
}

.info-box.ascension-box {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(103, 58, 183, 0.05));
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.info-box.transcendence-box {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(33, 150, 243, 0.05));
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.prestige-button.ascension-button {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
}

.prestige-button.ascension-button:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
}

.prestige-button.transcendence-button {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
}

.prestige-button.transcendence-button:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

/* Unlocks Grid */
.unlocks-container {
    padding: 20px;
}

.unlocks-container h3 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
}

.unlocks-container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.unlocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.unlock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.unlock-card.unlocked {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border-color: rgba(76, 175, 80, 0.5);
}

.unlock-card.locked {
    opacity: 0.6;
}

.unlock-icon {
    font-size: 2em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.unlock-info {
    flex: 1;
}

.unlock-info h4 {
    font-size: 1em;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.unlock-info p {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.unlock-requirement {
    font-size: 0.8em;
    color: var(--primary-color);
}

.unlock-status {
    font-size: 1.5em;
}

/* ==========================================
   SOCIAL TAB STYLES
   ========================================== */

.social-container {
    max-width: 1200px;
    margin: 0 auto;
}

.social-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-tab-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    font-weight: bold;
}

.social-panel {
    display: none;
}

.social-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Chat Styles */
.chat-container {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.chat-online {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #44ff44;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-channels {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.chat-channel-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.chat-channel-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.chat-channel-btn.active {
    background: var(--primary-color);
    color: white;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-welcome {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.chat-welcome p {
    margin: 5px 0;
}

.chat-tip {
    font-size: 0.85em;
    opacity: 0.7;
}

.chat-message {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-message.own-message {
    background: rgba(255, 107, 53, 0.15);
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

.chat-message-content {
    flex: 1;
}

.chat-username {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9em;
}

.chat-username.admin {
    color: #ff4444;
}

.chat-username.mod {
    color: #44aaff;
}

.chat-text {
    color: var(--text-primary);
    font-size: 0.95em;
    margin-top: 2px;
    word-break: break-word;
}

.chat-time {
    color: var(--text-secondary);
    font-size: 0.75em;
    margin-top: 3px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.95em;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-emotes {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.emote-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emote-btn:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

/* Trading Styles */
.trading-container {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.trading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.trading-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.create-trade-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #44aa44, #338833);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(68, 170, 68, 0.4);
}

.trading-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.trade-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.trade-stat .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 5px;
}

.trade-stat .value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
}

.trading-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trade-filter {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
    cursor: pointer;
}

.trade-listings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.no-trades {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.trade-tip {
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 10px;
}

.trade-listing {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.trade-listing:hover {
    border-color: var(--primary-color);
}

.trade-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.trade-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.trade-user-name {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.trade-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trade-offer, .trade-want {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

.trade-offer {
    border-left: 3px solid #44aa44;
}

.trade-want {
    border-left: 3px solid #ff6b35;
}

.trade-arrow {
    font-size: 1.5em;
    color: var(--text-secondary);
}

.trade-action-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trade-action-btn:hover {
    transform: scale(1.05);
}

.trade-action-btn.cancel {
    background: linear-gradient(135deg, #ff4444, #cc3333);
}

/* Create Trade Modal */
.create-trade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.create-trade-modal.hidden {
    display: none;
}

.create-trade-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-color);
}

.create-trade-content h3 {
    margin: 0 0 20px;
    text-align: center;
    color: var(--text-primary);
}

.trade-form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.trade-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-form-section label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.trade-select, .trade-amount {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
}

.trade-form .trade-arrow {
    font-size: 2em;
    color: var(--accent-color);
}

.trade-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.submit-trade-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #44aa44, #338833);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.cancel-trade-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Guild Styles */
.guild-container {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.no-guild-state {
    text-align: center;
    padding: 40px 20px;
}

.no-guild-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-guild-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-guild-state p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.guild-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.create-guild-btn, .browse-guilds-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-guild-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.browse-guilds-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.create-guild-btn:hover, .browse-guilds-btn:hover {
    transform: translateY(-3px);
}

.guild-benefits {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.guild-benefits h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
}

.guild-benefits ul {
    list-style: none;
    padding: 0;
}

.guild-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Guild Dashboard */
.guild-dashboard.hidden {
    display: none;
}

.guild-header {
    margin-bottom: 20px;
}

.guild-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.guild-emblem {
    font-size: 3em;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.guild-title-info {
    flex: 1;
}

.guild-title-info h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5em;
}

.guild-tag {
    color: var(--accent-color);
    font-size: 0.9em;
}

.guild-level {
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.guild-level span:first-child {
    display: block;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.guild-level span:last-child {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
}

.guild-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.guild-stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guild-stat-card .stat-icon {
    font-size: 1.5em;
}

.guild-stat-card .stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color);
}

.guild-stat-card .stat-label {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.guild-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.guild-tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.guild-tab-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

.guild-tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.guild-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.guild-tab-content {
    display: none;
}

.guild-tab-content.active {
    display: block;
}

/* Member List */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: bold;
    color: var(--text-primary);
}

.member-role {
    font-size: 0.8em;
    color: var(--accent-color);
}

.member-contribution {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Mission Cards */
.missions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mission-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.mission-icon {
    font-size: 2em;
    width: 50px;
    text-align: center;
}

.mission-info {
    flex: 1;
}

.mission-info h4 {
    margin: 0 0 5px;
    color: var(--text-primary);
}

.mission-info p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.mission-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.mission-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.mission-progress-text {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.mission-reward {
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #ffd700;
    font-size: 0.9em;
}

/* Bank Actions */
.bank-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bank-action {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.bank-action h4 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.bank-action input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.deposit-btn, .withdraw-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.deposit-btn {
    background: linear-gradient(135deg, #44aa44, #338833);
    color: white;
}

.withdraw-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.withdraw-btn:disabled, .bank-action input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bank-history {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.bank-history h4 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.no-transactions {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

/* Guild Settings */
.guild-settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-setting-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guild-setting-btn:hover {
    border-color: var(--primary-color);
}

.guild-setting-btn.danger {
    border-color: #ff4444;
    color: #ff6666;
}

.guild-setting-btn.danger:hover {
    background: rgba(255, 68, 68, 0.2);
}

/* Create/Browse Guild Modals */
.create-guild-modal, .browse-guilds-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.create-guild-modal.hidden, .browse-guilds-modal.hidden {
    display: none;
}

.create-guild-content, .browse-guilds-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    border: 1px solid var(--border-color);
}

.create-guild-content h3, .browse-guilds-content h3 {
    margin: 0 0 20px;
    text-align: center;
    color: var(--text-primary);
}

.create-guild-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
}

.emblem-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.emblem-option {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emblem-option:hover {
    border-color: var(--primary-color);
}

.emblem-option.selected {
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.3);
}

.create-guild-cost {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.cost-value {
    font-weight: bold;
    color: var(--accent-color);
}

.create-guild-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-create-btn, .cancel-create-btn, .close-browse-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.confirm-create-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.cancel-create-btn, .close-browse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.guild-search {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.guild-browse-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.guild-browse-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.guild-browse-item:hover {
    border-color: var(--primary-color);
}

.guild-browse-emblem {
    font-size: 2em;
}

.guild-browse-info {
    flex: 1;
}

.guild-browse-name {
    font-weight: bold;
    color: var(--text-primary);
}

.guild-browse-members {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.join-guild-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #44aa44, #338833);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .prestige-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .prestige-layer-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prestige-layer-tab {
        text-align: center;
    }
}

/* ==========================================
   SETTINGS TAB STYLES
   ========================================== */

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: var(--primary-color);
}

.settings-card h3 {
    margin: 0 0 20px;
    color: var(--text-primary);
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    gap: 15px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 3px;
}

.setting-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8em;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(100, 100, 100, 0.5);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Select Dropdown */
.setting-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
    cursor: pointer;
    min-width: 140px;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-select option {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Color Picker */
.setting-color {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.setting-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.setting-color::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

/* Slider */
.setting-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 3px;
    outline: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Setting Buttons */
.setting-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.setting-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.setting-btn.danger {
    background: linear-gradient(135deg, #ff4444, #cc2222);
}

.setting-btn.danger:hover {
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* About Section */
.about-info {
    text-align: center;
    padding: 15px;
}

.about-info p {
    margin: 5px 0;
    color: var(--text-primary);
}

.about-info .about-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 15px 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 165, 0, 0.05));
}

.contact-info {
    text-align: center;
    padding: 15px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-regards {
    color: var(--text-primary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.contact-btn .contact-icon {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.contact-btn .contact-text {
    font-weight: bold;
    font-size: 1.1em;
}

.contact-btn .contact-email {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 3px;
}

/* Theme Previews */
.theme-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.theme-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-swatch:hover {
    transform: scale(1.1);
}

.theme-swatch.selected {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-select,
    .setting-slider {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   THEME VARIATIONS
   ========================================== */

/* Midnight Blue Theme */
body.theme-midnight {
    --primary-color: #4a90d9;
    --accent-color: #00d4ff;
    --secondary-color: #0a1628;
    --card-bg: rgba(10, 22, 40, 0.95);
    --bg-gradient: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
}

body.theme-midnight .container {
    background: var(--bg-gradient);
}

/* Cyber Purple Theme */
body.theme-cyber {
    --primary-color: #a855f7;
    --accent-color: #ec4899;
    --secondary-color: #1a0a28;
    --card-bg: rgba(26, 10, 40, 0.95);
    --bg-gradient: linear-gradient(135deg, #1a0a28 0%, #2d1a4a 100%);
}

body.theme-cyber .container {
    background: var(--bg-gradient);
}

/* Forest Green Theme */
body.theme-forest {
    --primary-color: #22c55e;
    --accent-color: #84cc16;
    --secondary-color: #0a1f0a;
    --card-bg: rgba(10, 31, 10, 0.95);
    --bg-gradient: linear-gradient(135deg, #0a1f0a 0%, #1a3a1a 100%);
}

body.theme-forest .container {
    background: var(--bg-gradient);
}

/* Sunset Orange Theme */
body.theme-sunset {
    --primary-color: #f97316;
    --accent-color: #fbbf24;
    --secondary-color: #1f0a0a;
    --card-bg: rgba(31, 10, 10, 0.95);
    --bg-gradient: linear-gradient(135deg, #1f0a0a 0%, #3a1a0a 100%);
}

body.theme-sunset .container {
    background: var(--bg-gradient);
}

/* Ocean Teal Theme */
body.theme-ocean {
    --primary-color: #14b8a6;
    --accent-color: #06b6d4;
    --secondary-color: #0a1f1f;
    --card-bg: rgba(10, 31, 31, 0.95);
    --bg-gradient: linear-gradient(135deg, #0a1f1f 0%, #0a2a3a 100%);
}

body.theme-ocean .container {
    background: var(--bg-gradient);
}

/* Light Mode Theme */
body.theme-light {
    --primary-color: #ff6b35;
    --accent-color: #00d4ff;
    --secondary-color: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --border-color: rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #e0e8f0 100%);
}

body.theme-light .container {
    background: var(--bg-gradient);
}

body.theme-light .header {
    background: linear-gradient(135deg, #2a3f5f 0%, #1a2d4a 100%);
}

body.theme-light .tabs {
    background: rgba(255, 255, 255, 0.9);
}

body.theme-light .tab-button {
    color: #4a4a6a;
}

body.theme-light .tab-button.active {
    color: var(--primary-color);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body.animations-disabled * {
        animation: none !important;
        transition: none !important;
    }
}

body.animations-disabled * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* ==========================================
   MOBILE IMPROVEMENTS
   ========================================== */

@media (max-width: 600px) {
    /* Make tabs scrollable on mobile */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.75em;
    }
    
    .tab-button span:last-child {
        display: none; /* Hide text, show only icons on mobile */
    }
    
    .tab-icon {
        font-size: 1.4em;
    }
    
    /* Improve header on mobile */
    .header {
        padding: 8px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .title-section h1 {
        font-size: 1.1em;
    }
    
    .title-section p {
        display: none;
    }
    
    .stats {
        gap: 15px;
        margin-right: 0;
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 8px;
    }
    
    .stat-value {
        font-size: 0.9em;
    }
    
    .stat-label {
        font-size: 0.7em;
    }
    
    /* Content area */
    .content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    /* Casino tabs on mobile */
    .casino-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .casino-tab-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        white-space: nowrap;
    }
    
    /* Cards on mobile */
    .upgrade-card,
    .server-card,
    .generator-card,
    .casino-game {
        padding: 15px;
    }
    
    /* Touch-friendly buttons */
    button {
        min-height: 44px;
    }
    
    /* Floating balance */
    .floating-balance {
        bottom: 70px;
    }
    
    /* Bottom safe area for iOS */
    .container {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Tablet improvements */
@media (min-width: 601px) and (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        padding: 10px 20px;
    }

    .content {
        padding: 20px;
    }
}

/* ===== VIP/LOYALTY SYSTEM ===== */

/* VIP Banner */
.vip-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.vip-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: vipShine 3s infinite;
}

@keyframes vipShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.vip-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.vip-rank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.vip-details {
    display: flex;
    flex-direction: column;
}

.vip-tier {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-subtitle {
    font-size: 0.85rem;
    color: #888;
}

.vip-progress-section {
    flex: 1;
    min-width: 200px;
}

.vip-xp-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

.vip-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.vip-xp-text {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
}

.vip-perks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.vip-perk {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ffd700;
    white-space: nowrap;
}

.vip-rewards-btn {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vip-rewards-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Jackpot Banner */
.jackpot-banner {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a1a4a 50%, #6b1a4a 100%);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.jackpot-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 0, 255, 0.1), transparent 30%);
    animation: jackpotRotate 4s linear infinite;
}

@keyframes jackpotRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jackpot-content {
    position: relative;
    z-index: 1;
}

.jackpot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.jackpot-crown {
    font-size: 1.5rem;
    animation: crownPulse 1s ease-in-out infinite;
}

@keyframes crownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.jackpot-amount {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: jackpotGradient 2s linear infinite;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

@keyframes jackpotGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.jackpot-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.jackpot-chance {
    color: #00ff88;
}

.jackpot-spin-btn {
    background: linear-gradient(135deg, #ff00ff, #8b00ff);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jackpot-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.jackpot-spin-btn:hover::before {
    left: 100%;
}

.jackpot-spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.jackpot-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* VIP Rewards Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #ffd700;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.vip-modal h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 25px;
}

.vip-tiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.vip-tier-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.vip-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vip-tier-card.current {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tier-header {
    padding: 15px;
    text-align: center;
}

.tier-header.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.tier-header.silver {
    background: linear-gradient(135deg, #c0c0c0, #808080);
}

.tier-header.gold {
    background: linear-gradient(135deg, #ffd700, #daa520);
}

.tier-header.platinum {
    background: linear-gradient(135deg, #e5e4e2, #b0c4de);
}

.tier-header.diamond {
    background: linear-gradient(135deg, #b9f2ff, #00bfff, #ff69b4);
}

.tier-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.tier-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    display: block;
}

.tier-levels {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.tier-rewards {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.tier-rewards li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: #aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-rewards li:last-child {
    border-bottom: none;
}

.vip-daily-rewards {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.vip-daily-rewards h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.daily-claim-info p {
    color: #888;
    margin-bottom: 10px;
}

.daily-reward-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin: 15px 0;
}

.daily-claim-btn {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.daily-claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.daily-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.claim-timer {
    margin-top: 10px;
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* Jackpot Win Modal */
.jackpot-win-modal {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a1a4a 50%, #1a1a2e 100%);
    border: 3px solid #ff00ff;
    text-align: center;
    padding: 50px;
}

.jackpot-celebration {
    position: relative;
}

.jackpot-crown-big {
    font-size: 5rem;
    animation: crownBounce 0.5s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.jackpot-win-title {
    font-size: 3rem;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffd700, #ff00ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: jackpotGradient 1s linear infinite;
    margin: 20px 0 10px;
}

.jackpot-win-subtitle {
    font-size: 1.5rem;
    color: #ffd700;
    letter-spacing: 5px;
}

.jackpot-win-amount {
    font-size: 4rem;
    font-weight: bold;
    color: #00ff88;
    margin: 30px 0;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.jackpot-win-message {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.jackpot-close-btn {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border: none;
    padding: 20px 50px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jackpot-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* VIP Mobile Responsive */
@media (max-width: 768px) {
    .vip-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .vip-info {
        flex-direction: column;
    }
    
    .vip-perks {
        justify-content: center;
    }
    
    .jackpot-amount {
        font-size: 2rem;
    }
    
    .jackpot-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .vip-tiers-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jackpot-win-title {
        font-size: 2rem;
    }
    
    .jackpot-win-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .vip-tiers-container {
        grid-template-columns: 1fr;
    }
    
    .vip-perk {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Confetti animation for jackpot wins */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* General Game Notifications */
.game-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 350px;
}

.game-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.game-notification.success {
    border: 2px solid #00ff88;
}

.game-notification.error {
    border: 2px solid #ff4444;
}

.game-notification.warning {
    border: 2px solid #ffaa00;
}

.game-notification.info {
    border: 2px solid #00aaff;
}

.game-notification .notification-icon {
    font-size: 1.5rem;
}

.game-notification .notification-text {
    color: #fff;
    font-size: 0.95rem;
}

/* ===== SKILL TREE SYSTEM ===== */

.skilltree-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.skilltree-header {
    text-align: center;
    margin-bottom: 20px;
}

.skilltree-header h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.skilltree-points {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 15px;
}

.sp-label {
    color: #888;
}

.sp-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

/* Tree Tabs */
.tree-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tree-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    padding: 12px 25px;
    border-radius: 10px;
    color: #aaa;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tree-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: #fff;
}

.tree-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 100, 0.1));
    border-color: #00ff88;
    color: #00ff88;
}

/* Active Synergies Display */
.active-synergies {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.active-synergies h4 {
    color: #9370db;
    margin-bottom: 10px;
    font-size: 1rem;
}

.synergy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.synergy-item {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #dda0dd;
}

.no-synergies {
    color: #666;
    font-style: italic;
}

/* Tree Panels */
.tree-panels {
    position: relative;
}

.tree-panel {
    display: none;
}

.tree-panel.active {
    display: block;
}

/* Skill Tree Structure */
.skill-tree {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* Tree Tier */
.tree-tier {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.tree-tier.ultimate {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.tier-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--dark-bg, #0a0e27);
    padding: 2px 15px;
    color: #888;
    font-size: 0.8rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.tree-tier.ultimate .tier-label {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-weight: bold;
    border: none;
}

/* Tier Nodes Container */
.tier-nodes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Skill Node */
.skill-node {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a2a 100%);
    border: 2px solid #2a4a6a;
    border-radius: 15px;
    padding: 15px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-node:hover::before {
    left: 100%;
}

.skill-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #3a6a9a;
}

.skill-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #333;
}

.skill-node.locked:hover {
    transform: none;
    box-shadow: none;
}

.skill-node.unlocked {
    background: linear-gradient(135deg, #1a3a2a 0%, #0f2a1a 100%);
    border-color: #00ff88;
    opacity: 1;
}

.skill-node.unlocked .node-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.skill-node.synergy-node {
    border-color: #8a2be2;
}

.skill-node.synergy-node.unlocked {
    background: linear-gradient(135deg, #2a1a3a 0%, #1a0f2a 100%);
    border-color: #9370db;
}

.skill-node.ultimate-node {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #3a2a1a 0%, #2a1a0f 100%);
}

.skill-node.ultimate-node.unlocked {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: ultimateGlow 2s ease-in-out infinite;
}

@keyframes ultimateGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); }
}

/* Node Content */
.node-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.node-info {
    text-align: center;
}

.node-name {
    display: block;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.node-desc {
    display: block;
    color: #888;
    font-size: 0.8rem;
    line-height: 1.3;
}

.synergy-node .node-desc {
    color: #9370db;
}

.node-cost {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

.skill-node.locked .node-cost {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
}

.skill-node.unlocked .node-cost {
    background: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.skill-node.unlocked .node-cost::after {
    content: ' ✓';
}

/* Connection Lines (CSS-only approach) */
.tree-tier::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #333, transparent);
}

.tree-tier:last-child::after {
    display: none;
}

/* Skill Tree Mobile */
@media (max-width: 768px) {
    .skill-node {
        width: 160px;
        padding: 12px;
    }
    
    .node-icon {
        font-size: 1.5rem;
    }
    
    .node-name {
        font-size: 0.85rem;
    }
    
    .node-desc {
        font-size: 0.75rem;
    }
    
    .tree-tabs {
        gap: 5px;
    }
    
    .tree-tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tier-nodes {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-node {
        width: 100%;
        max-width: 280px;
    }
}

/* Skill Tooltip */
.skill-tooltip {
    position: fixed;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4a6fa5;
    border-radius: 12px;
    padding: 15px;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 111, 165, 0.3);
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tooltip-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.tooltip-level {
    font-size: 0.9rem;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.tooltip-effect {
    font-size: 0.85rem;
    color: #a8e6cf;
    margin-bottom: 5px;
}

.tooltip-next {
    font-size: 0.85rem;
    color: #ffd54f;
    margin-bottom: 10px;
}

.tooltip-prereq {
    font-size: 0.8rem;
    color: #ff8a80;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: rgba(255, 138, 128, 0.1);
    border-radius: 4px;
}

.tooltip-synergy {
    font-size: 0.85rem;
    color: #ba68c8;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: rgba(186, 104, 200, 0.1);
    border-radius: 4px;
}

.tooltip-cost {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4fc3f7;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-maxed {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4caf50;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Skill Node Additional States */
.skill-node.available {
    border-color: #4fc3f7;
    cursor: pointer;
}

.skill-node.available::before {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
}

.skill-node.available:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

.skill-node.maxed {
    border-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.3) 100%);
}

.skill-node.maxed::before {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.skill-node.synergy-active {
    border-color: #ba68c8;
    box-shadow: 0 0 20px rgba(186, 104, 200, 0.5);
    animation: synergyPulse 2s ease-in-out infinite;
}

@keyframes synergyPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(186, 104, 200, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(186, 104, 200, 0.8);
    }
}

/* Skill Node Inner Elements */
.skill-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.skill-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3px;
    text-align: center;
}

.skill-level {
    font-size: 0.75rem;
    color: #4fc3f7;
    margin-bottom: 3px;
}

.skill-cost {
    font-size: 0.7rem;
    color: #ffd54f;
    padding: 2px 6px;
    background: rgba(255, 213, 79, 0.2);
    border-radius: 4px;
}

.skill-maxed {
    font-size: 0.7rem;
    color: #4caf50;
    font-weight: bold;
}

/* Tier Labels */
.tier-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4fc3f7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
}

/* Skill Tier */
.skill-tier {
    margin-bottom: 30px;
}

.skill-tier[data-tier="1"] .tier-label {
    color: #66bb6a;
}

.skill-tier[data-tier="2"] .tier-label {
    color: #ffd54f;
}

.skill-tier[data-tier="3"] .tier-label {
    color: #ff7043;
}

/* Tier Nodes Container */
.tier-nodes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* SVG Connections */
.skill-connection {
    fill: none;
    stroke: #444;
    stroke-width: 3;
    stroke-linecap: round;
}

.skill-connection.active {
    stroke: #4fc3f7;
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
}

/* Synergy Display */
.active-synergies {
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.1) 0%, rgba(156, 39, 176, 0.2) 100%);
    border: 1px solid rgba(186, 104, 200, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.active-synergies h4 {
    color: #ba68c8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.synergy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.no-synergies {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.synergy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(186, 104, 200, 0.15);
    border: 1px solid rgba(186, 104, 200, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.synergy-item.active {
    animation: synergGlow 2s ease-in-out infinite alternate;
}

@keyframes synergGlow {
    from {
        box-shadow: 0 0 5px rgba(186, 104, 200, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(186, 104, 200, 0.6);
    }
}

.synergy-icon {
    font-size: 1.5rem;
}

.synergy-info {
    display: flex;
    flex-direction: column;
}

.synergy-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.synergy-desc {
    color: #aaa;
    font-size: 0.75rem;
}

/* ==========================================
   SPACE STATION STYLES
   ========================================== */

.space-station-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1a30 100%);
    border: 2px solid #4fc3f7;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.space-station-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='33' cy='33' r='1'/%3E%3Ccircle cx='53' cy='13' r='1'/%3E%3Ccircle cx='13' cy='43' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    animation: starsFloat 20s linear infinite;
}

@keyframes starsFloat {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.station-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.station-bonus {
    font-size: 1rem;
    color: #81d4fa;
    position: relative;
    z-index: 1;
}

.station-bonus .bonus-value {
    color: #4caf50;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.space-station-racks {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.station-rack-column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(180deg, #0d1a30 0%, #162840 100%);
    border: 2px solid #1e3a5f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(79, 195, 247, 0.05);
}

.rack-column-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    color: #4fc3f7;
    border-bottom: 2px solid #4fc3f7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.station-rack-units {
    padding: 10px;
    min-height: 400px;
}

.space-station-server {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(41, 121, 255, 0.1) 100%);
    border-color: #4fc3f7;
    position: relative;
}

.space-station-server::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 195, 247, 0.1) 50%, transparent 100%);
    animation: coldShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes coldShimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.efficiency-badge {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
    text-shadow: none;
}

.station-empty-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(79, 195, 247, 0.3);
    background: rgba(79, 195, 247, 0.05);
    border: 1px dashed rgba(79, 195, 247, 0.2);
    border-radius: 4px;
    min-height: 55px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .space-station-racks {
        flex-direction: column;
        align-items: center;
    }
    
    .station-rack-column {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   BOSS BATTLE SYSTEM
   ============================================ */

/* Boss Warning Overlay */
.boss-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: warningPulse 0.5s ease-in-out infinite alternate;
}

.boss-warning-overlay.hidden {
    display: none;
}

@keyframes warningPulse {
    from { background: rgba(255, 0, 0, 0.1); }
    to { background: rgba(255, 0, 0, 0.25); }
}

.boss-warning-content {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.95), rgba(60, 0, 0, 0.95));
    border: 3px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5), inset 0 0 30px rgba(255, 0, 0, 0.2);
    animation: warningShake 0.3s ease-in-out infinite;
}

@keyframes warningShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.warning-glitch-text {
    font-size: 2em;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 15px;
    animation: glitchText 0.1s infinite;
}

@keyframes glitchText {
    0% { text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff; }
    50% { text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff; }
    100% { text-shadow: 0 0 20px #ff0000; }
}

.warning-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 30px #ff0000;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.warning-subtitle {
    font-size: 1.2em;
    color: #ff6666;
    margin-bottom: 30px;
}

.warning-timer {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.warning-countdown {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.warning-enemy-name {
    font-size: 1.2em;
    color: #aaaaaa;
}

.warning-enemy-name span {
    color: #ff4444;
    font-weight: bold;
}

/* Boss Battle Overlay */
.boss-battle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 0, 20, 0.98), rgba(30, 0, 40, 0.98));
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boss-battle-overlay.hidden {
    display: none;
}

.boss-battle-container {
    width: 90%;
    max-width: 600px;
    background: linear-gradient(180deg, #1a0a2e 0%, #0d0015 100%);
    border: 3px solid #9900ff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 0 60px rgba(153, 0, 255, 0.4), inset 0 0 40px rgba(153, 0, 255, 0.1);
}

.boss-battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(153, 0, 255, 0.3);
}

.boss-threat-level {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff3366;
    font-weight: bold;
    font-size: 1.1em;
}

.threat-icon {
    font-size: 1.5em;
    animation: threatPulse 1s ease-in-out infinite;
}

@keyframes threatPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.boss-timer-display {
    font-size: 1.3em;
    color: #ffffff;
    background: rgba(255, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.boss-time-remaining {
    color: #ff3333;
    font-weight: bold;
    font-size: 1.2em;
}

.boss-info-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.boss-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.boss-avatar-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a0a4a, #1a0030);
    border: 3px solid #9900ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    animation: bossFloat 2s ease-in-out infinite;
}

@keyframes bossFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.boss-avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153, 0, 255, 0.3), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.boss-details {
    flex: 1;
}

.boss-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff3366;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.boss-type {
    font-size: 1em;
    color: #9966ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.boss-health-section {
    margin-bottom: 30px;
}

.boss-health-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 0.9em;
}

.boss-health-numbers {
    color: #ff6666;
}

.boss-health-bar {
    height: 35px;
    background: #1a0a2e;
    border: 2px solid #660066;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.boss-health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff0066, #ff3399, #ff0066);
    background-size: 200% 100%;
    animation: healthShimmer 2s linear infinite;
    transition: width 0.3s ease;
    border-radius: 18px;
}

@keyframes healthShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.boss-health-damage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    pointer-events: none;
}

.boss-health-damage.flash {
    animation: damageFlash 0.2s ease-out;
}

.boss-health-damage.crit-flash {
    animation: critDamageFlash 0.3s ease-out;
}

@keyframes damageFlash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes critDamageFlash {
    0% { opacity: 1; background: rgba(255, 215, 0, 0.8); }
    50% { opacity: 0.8; background: rgba(255, 0, 0, 0.6); }
    100% { opacity: 0; }
}

.boss-attack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.boss-attack-btn {
    width: 200px;
    height: 70px;
    background: linear-gradient(135deg, #ff0066, #cc0055);
    border: 3px solid #ff3399;
    border-radius: 15px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 5px 20px rgba(255, 0, 102, 0.4);
}

.boss-attack-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 0, 102, 0.6);
}

.boss-attack-btn:active {
    transform: scale(0.95);
}

.attack-icon {
    font-size: 1.3em;
}

.boss-damage-display {
    color: #aaaaaa;
    font-size: 1em;
}

#playerDamageDisplay {
    color: #ffcc00;
    font-weight: bold;
}

.boss-penalty-warning {
    text-align: center;
    color: #ff6666;
    font-size: 0.9em;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
}

/* Boss Victory Overlay */
.boss-victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 0, 0.9);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boss-victory-overlay.hidden {
    display: none;
}

.boss-victory-content {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #0a2e0a, #001a00);
    border: 3px solid #00ff00;
    border-radius: 25px;
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.4);
    animation: victoryBounce 0.5s ease;
}

@keyframes victoryBounce {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.victory-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: victoryTrophy 1s ease-in-out infinite;
}

@keyframes victoryTrophy {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.victory-title {
    font-size: 2.5em;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    margin-bottom: 10px;
}

.victory-subtitle {
    font-size: 1.2em;
    color: #66ff66;
    margin-bottom: 25px;
}

.victory-boss-name {
    font-size: 1.1em;
    color: #aaaaaa;
    margin-bottom: 25px;
}

.victory-boss-name span {
    color: #ff6666;
    font-weight: bold;
}

.victory-rewards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.victory-reward-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    color: #ffffff;
    background: rgba(0, 255, 0, 0.1);
    padding: 12px 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.victory-reward-item .reward-icon {
    font-size: 1.2em;
}

.victory-close-btn {
    background: linear-gradient(135deg, #00cc00, #009900);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.victory-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.5);
}

/* Boss Defeat Overlay */
.boss-defeat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 0, 0, 0.9);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boss-defeat-overlay.hidden {
    display: none;
}

.boss-defeat-content {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #2e0a0a, #1a0000);
    border: 3px solid #ff0000;
    border-radius: 25px;
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.4);
    animation: defeatShake 0.5s ease;
}

@keyframes defeatShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-20px); }
    40% { transform: translateX(20px); }
    60% { transform: translateX(-15px); }
    80% { transform: translateX(15px); }
}

.defeat-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.defeat-title {
    font-size: 2.2em;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    margin-bottom: 10px;
}

.defeat-subtitle {
    font-size: 1.1em;
    color: #ff6666;
    margin-bottom: 25px;
}

.defeat-boss-name {
    font-size: 1.1em;
    color: #aaaaaa;
    margin-bottom: 25px;
}

.defeat-boss-name span {
    color: #ff3366;
    font-weight: bold;
}

.defeat-penalty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 0, 0, 0.2);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 0, 0, 0.5);
}

.penalty-icon {
    font-size: 2.5em;
}

.penalty-text {
    font-size: 1.5em;
    color: #ff4444;
    font-weight: bold;
}

.defeat-close-btn {
    background: linear-gradient(135deg, #cc0000, #990000);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.defeat-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* Dark Mode Boss Difficulty Indicator */
.dark-mode .boss-battle-container {
    border-color: #ff0066;
    box-shadow: 0 0 80px rgba(255, 0, 102, 0.6), inset 0 0 50px rgba(255, 0, 102, 0.2);
}

.dark-mode .boss-name::after {
    content: ' [ENHANCED]';
    font-size: 0.6em;
    color: #ff0000;
}

.dark-mode .boss-avatar-inner {
    border-color: #ff0066;
    animation: bossFloat 1.5s ease-in-out infinite, darkBossGlow 1s ease-in-out infinite alternate;
}

@keyframes darkBossGlow {
    from { box-shadow: 0 0 20px rgba(255, 0, 102, 0.5); }
    to { box-shadow: 0 0 40px rgba(255, 0, 102, 0.8); }
}

/* ============================================
   DARK MATTER CORRUPTION SYSTEM
   ============================================ */

/* Corruption Overlay - covers the entire page */
.corruption-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.corruption-overlay.hidden {
    display: none;
}

/* Corruption particles floating around */
.corruption-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.corruption-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #1a0030, #000);
    border-radius: 50%;
    box-shadow: 0 0 10px #6600cc, 0 0 20px #330066;
    animation: floatParticle 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Corruption veins crawling on screen edges */
.corruption-veins {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.corruption-vein {
    position: absolute;
    background: linear-gradient(90deg, transparent, #4a0080, #1a0030, transparent);
    opacity: 0.6;
    animation: veinPulse 2s ease-in-out infinite alternate;
}

.corruption-vein.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(75, 0, 130, 0.8), transparent);
}

.corruption-vein.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(0deg, rgba(75, 0, 130, 0.8), transparent);
}

.corruption-vein.left {
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(75, 0, 130, 0.8), transparent);
}

.corruption-vein.right {
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(270deg, rgba(75, 0, 130, 0.8), transparent);
}

@keyframes veinPulse {
    from { opacity: 0.4; }
    to { opacity: 0.8; }
}

/* Glitch effect overlay */
.corruption-glitch {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.corruption-glitch.active {
    animation: corruptionGlitch 0.3s infinite;
}

@keyframes corruptionGlitch {
    0% { 
        background: transparent;
        clip-path: inset(0 0 100% 0);
    }
    5% {
        background: rgba(100, 0, 150, 0.1);
        clip-path: inset(20% 0 60% 0);
    }
    10% {
        background: transparent;
        clip-path: inset(0 0 100% 0);
    }
    15% {
        background: rgba(100, 0, 150, 0.15);
        clip-path: inset(70% 0 10% 0);
    }
    20% {
        background: transparent;
    }
    100% {
        background: transparent;
    }
}

/* Corruption Indicator Bar */
.corruption-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(30, 0, 50, 0.95), rgba(10, 0, 20, 0.95));
    border: 2px solid #6600cc;
    border-radius: 15px;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(102, 0, 204, 0.5);
    animation: corruptionIndicatorPulse 2s ease-in-out infinite alternate;
}

.corruption-indicator.hidden {
    display: none;
}

@keyframes corruptionIndicatorPulse {
    from { box-shadow: 0 0 20px rgba(102, 0, 204, 0.4); }
    to { box-shadow: 0 0 40px rgba(102, 0, 204, 0.7); }
}

.corruption-indicator.critical {
    border-color: #ff0066;
    animation: corruptionCritical 0.5s ease-in-out infinite alternate;
}

@keyframes corruptionCritical {
    from { 
        box-shadow: 0 0 30px rgba(255, 0, 102, 0.6);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 50px rgba(255, 0, 102, 0.9);
        transform: scale(1.02);
    }
}

.corruption-icon {
    font-size: 2em;
    animation: corruptionIconSpin 4s linear infinite;
}

@keyframes corruptionIconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.corruption-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.corruption-label {
    font-size: 0.8em;
    color: #cc99ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.corruption-bar {
    width: 150px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #6600cc;
}

.corruption-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6600cc, #9900ff, #cc00ff);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #9900ff;
}

.corruption-fill.high {
    background: linear-gradient(90deg, #9900ff, #ff0066, #ff3399);
    animation: corruptionFillPulse 0.5s ease-in-out infinite alternate;
}

@keyframes corruptionFillPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.corruption-percent {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: bold;
}

.corruption-warning-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #ff6699;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.corruption-indicator:hover .corruption-warning-text,
.corruption-indicator.critical .corruption-warning-text {
    opacity: 1;
}

/* Screen corruption effects at different levels */
.corruption-level-low {
    filter: none;
}

.corruption-level-medium {
    animation: screenCorruptMedium 5s ease-in-out infinite;
}

@keyframes screenCorruptMedium {
    0%, 95%, 100% { filter: none; }
    96% { filter: hue-rotate(20deg) saturate(1.2); }
    97% { filter: none; }
    98% { filter: hue-rotate(-20deg); }
}

.corruption-level-high {
    animation: screenCorruptHigh 3s ease-in-out infinite;
}

@keyframes screenCorruptHigh {
    0%, 90%, 100% { filter: none; }
    91% { filter: hue-rotate(30deg) saturate(1.5) brightness(1.1); }
    93% { filter: invert(0.1); }
    95% { filter: hue-rotate(-30deg); }
    97% { filter: none; }
}

.corruption-level-critical {
    animation: screenCorruptCritical 1s ease-in-out infinite;
}

@keyframes screenCorruptCritical {
    0%, 80%, 100% { 
        filter: none; 
        transform: translate(0, 0);
    }
    82% { 
        filter: hue-rotate(45deg) saturate(2) brightness(1.2); 
        transform: translate(-2px, 1px);
    }
    85% { 
        filter: invert(0.15); 
        transform: translate(2px, -1px);
    }
    88% { 
        filter: hue-rotate(-45deg) contrast(1.3); 
        transform: translate(-1px, 2px);
    }
    92% { 
        filter: brightness(0.9); 
        transform: translate(1px, -2px);
    }
}

/* Corruption warning special styling */
.boss-warning-overlay.corruption-warning {
    background: rgba(75, 0, 130, 0.2);
}

.boss-warning-overlay.corruption-warning .boss-warning-content {
    background: linear-gradient(135deg, rgba(30, 0, 60, 0.95), rgba(60, 0, 90, 0.95));
    border-color: #9900ff;
    box-shadow: 0 0 60px rgba(153, 0, 255, 0.6), inset 0 0 40px rgba(153, 0, 255, 0.2);
}

.boss-warning-overlay.corruption-warning .warning-title {
    color: #cc66ff;
    text-shadow: 0 0 30px #9900ff;
}

.boss-warning-overlay.corruption-warning .warning-countdown {
    color: #cc00ff;
    text-shadow: 0 0 15px #9900ff;
}

/* Corruption Boss special styling */
.boss-battle-container.corruption-boss {
    border-color: #9900ff;
    box-shadow: 0 0 80px rgba(153, 0, 255, 0.6);
    background: linear-gradient(180deg, #1a0033 0%, #0d001a 100%);
}

.corruption-boss .boss-name {
    color: #cc66ff;
    text-shadow: 0 0 20px rgba(153, 0, 255, 0.7);
}

.corruption-boss .boss-avatar-inner {
    border-color: #9900ff;
    background: linear-gradient(135deg, #2a0050, #1a0030);
    animation: corruptionBossGlow 1.5s ease-in-out infinite alternate;
}

@keyframes corruptionBossGlow {
    from { box-shadow: 0 0 20px rgba(153, 0, 255, 0.5), inset 0 0 20px rgba(153, 0, 255, 0.3); }
    to { box-shadow: 0 0 50px rgba(153, 0, 255, 0.8), inset 0 0 40px rgba(153, 0, 255, 0.5); }
}

/* ==========================================
   MINES TAB STYLES
   ========================================== */

.mines-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mines-header {
    text-align: center;
    margin-bottom: 30px;
}

.mines-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd700, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mines-subtitle {
    color: #888;
    font-size: 1rem;
}

/* Materials Inventory */
.materials-inventory {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.materials-inventory h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.material-icon {
    font-size: 1.5rem;
}

.material-name {
    flex: 1;
    font-size: 0.85rem;
    color: #ccc;
}

.material-count {
    font-weight: bold;
    color: #00ff88;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: right;
}

/* Material Mines Grid */
.material-mines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Mine Card */
.mine-card {
    background: linear-gradient(135deg, #1a1a2e, #0f1624);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mine-card:hover {
    border-color: #00ff88;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.mine-card.exotic {
    border-color: #ff00ff;
    background: linear-gradient(135deg, #2a1a3e, #1a1030);
}

.mine-card.exotic:hover {
    border-color: #ff66ff;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.mine-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2a2000, #1a1000);
    animation: legendaryGlow 3s ease-in-out infinite alternate;
}

@keyframes legendaryGlow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

.mine-card.legendary:hover {
    border-color: #ffee00;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.mine-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mine-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid #444;
}

.mine-title h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.mine-symbol {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1rem;
}

.mine-card.exotic .mine-symbol {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mine-card.legendary .mine-symbol {
    background: linear-gradient(135deg, #ffd700, #ff8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mine-description {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.mine-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.mine-stat {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.mine-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.mine-stat .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff88;
}

.mine-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.mine-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.mine-card.exotic .mine-progress-bar {
    background: linear-gradient(90deg, #ff00ff, #cc00cc);
}

.mine-card.legendary .mine-progress-bar {
    background: linear-gradient(90deg, #ffd700, #ff8800);
}

.mine-upgrade-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mine-upgrade-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.mine-upgrade-btn:disabled {
    background: linear-gradient(135deg, #444, #333);
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mine-card.exotic .mine-upgrade-btn {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
}

.mine-card.exotic .mine-upgrade-btn:hover {
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
}

.mine-card.legendary .mine-upgrade-btn {
    background: linear-gradient(135deg, #ffd700, #ff8800);
}

.mine-card.legendary .mine-upgrade-btn:hover {
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.upgrade-text {
    font-size: 0.95rem;
}

.upgrade-cost {
    font-size: 0.8rem;
    opacity: 0.8;
}

.mine-locked {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ff6666;
    border-radius: 20px;
    z-index: 10;
}

.mine-locked.hidden {
    display: none;
}

/* Mining Animation */
@keyframes miningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mine-card.mining .mine-icon {
    animation: miningPulse 0.5s ease-in-out infinite;
}

/* Dark mode adjustments */
body.light-mode .mines-container {
    background: #f0f0f0;
}

body.light-mode .mine-card {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border-color: #ddd;
}

body.light-mode .materials-inventory {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-color: #ddd;
}

body.light-mode .material-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

body.light-mode .mine-title h3 {
    color: #333;
}

body.light-mode .mine-description {
    color: #666;
}

/* Casino Game Headers and Mute Buttons */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
}

.game-mute-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 1.2em;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-mute-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.game-mute-btn.muted {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

.game-mute-btn.muted::before {
    content: "🔇";
}

.game-mute-btn:not(.muted)::before {
    content: "🔊";
}

/* Light mode adjustments for mute buttons */
body.light-mode .game-mute-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #333;
}

body.light-mode .game-mute-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.5);
}

body.light-mode .game-mute-btn.muted {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

