* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --accent-color: #00aaff;
    --bg-dark: #0a0a0f;
    --bg-medium: #1a1a2e;
    --bg-light: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3366;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.5;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    overflow: hidden;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-size: 14px;
    color: rgba(0, 255, 204, 0.3);
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 5px var(--primary-color);
}

@keyframes matrix-fall {
    to {
        transform: translateY(calc(100vh + 100px));
    }
}

/* Animated Globe */
.globe-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.globe {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-globe 60s linear infinite;
}

@keyframes rotate-globe {
    from { transform: rotateY(0deg) rotateX(10deg); }
    to { transform: rotateY(360deg) rotateX(10deg); }
}

.globe-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px var(--primary-color);
}

.globe-meridian {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 50%;
}

.globe-meridian:nth-child(2) { transform: rotateY(30deg); }
.globe-meridian:nth-child(3) { transform: rotateY(60deg); }
.globe-meridian:nth-child(4) { transform: rotateY(90deg); }
.globe-meridian:nth-child(5) { transform: rotateY(120deg); }
.globe-meridian:nth-child(6) { transform: rotateY(150deg); }

.globe-parallel {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 50%;
}

.globe-parallel:nth-child(7) { transform: rotateX(30deg); }
.globe-parallel:nth-child(8) { transform: rotateX(60deg); }
.globe-parallel:nth-child(9) { transform: rotateX(90deg); }
.globe-parallel:nth-child(10) { transform: rotateX(120deg); }
.globe-parallel:nth-child(11) { transform: rotateX(150deg); }

.globe-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse-point 2s infinite alternate;
}

@keyframes pulse-point {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

/* Container Principal */
.container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 36px;
    -webkit-text-fill-color: var(--primary-color);
}

.server-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.server-status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.server-status {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.atomic-clock {
    font-family: 'Inter', monospace;
    font-size: 18px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    font-weight: 500;
}

.client-info {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

/* Navigație */
nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 30px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* Conținut Principal - Layout Reorganizat */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-grow: 1;
}

/* Zona Superioară - Joc Principal și Quiz */
.top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Panou Central - Joc */
.game-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.data-display {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.data-per-second {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
    font-weight: 500;
}

.click-power {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    font-weight: 500;
}

.click-button {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), var(--accent-color));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--bg-dark);
    transition: all 0.1s;
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.5), 0 0 30px rgba(0, 255, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.click-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.7), 0 0 40px rgba(0, 255, 204, 0.5);
}

.click-button:active {
    transform: scale(0.95);
}

.click-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: clickPulse 0.6s ease-out;
}

@keyframes clickPulse {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Quiz Panel */
.quiz-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.panel-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.quiz-container {
    margin-top: 15px;
}

.quiz-question {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.4);
}

.quiz-option.correct {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--success);
}

.quiz-option.incorrect {
    background: rgba(255, 51, 102, 0.2);
    border-color: var(--danger);
}

.quiz-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.quiz-btn {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.quiz-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.3), rgba(255, 0, 255, 0.3));
}

/* Zona Mijlocie - Statistici Orizontale */
.stats-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    min-width: 150px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

/* Zona Inferioară - Upgrades și AFK */
.bottom-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
}

/* Panou Upgrades */
.upgrades-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    max-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.upgrade-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.upgrade-item:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-item.locked {
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
}

.upgrade-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 12px;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.upgrade-info {
    flex-grow: 1;
}

.upgrade-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.upgrade-cost {
    font-size: 14px;
    color: var(--warning);
    margin-bottom: 3px;
}

.upgrade-owned {
    font-size: 12px;
    color: var(--success);
    margin-bottom: 3px;
}

.upgrade-production {
    font-size: 12px;
    color: var(--accent-color);
    margin-bottom: 3px;
}

.upgrade-click {
    font-size: 12px;
    color: var(--secondary-color);
}

.upgrade-level {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.upgrade-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--danger);
    font-size: 18px;
}

/* AFK Panel */
.afk-panel {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.afk-timer {
    font-size: 24px;
    text-align: center;
    margin: 15px 0;
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    font-weight: 600;
}

.afk-reward {
    text-align: center;
    font-size: 14px;
    color: var(--success);
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 204, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Modal Admin - Îmbunătățit */
.admin-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-input {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
}

.admin-input::placeholder {
    color: var(--text-secondary);
}

.admin-btn {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.5);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.admin-tab {
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.admin-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    font-weight: 600;
}

.admin-log {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-family: 'Inter', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.log-entry {
    margin-bottom: 5px;
    padding: 5px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.admin-edit-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-edit-item label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-edit-item input {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
}

.admin-edit-item button {
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-edit-item button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.3), rgba(255, 0, 255, 0.3));
}

.admin-commands {
    margin-top: 15px;
}

.command-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.command-input input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
}

.command-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.command-help-item {
    margin-bottom: 5px;
    font-family: 'Inter', monospace;
}

.upgrade-editor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.upgrade-edit-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.upgrade-edit-item label {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.upgrade-edit-item input {
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
}

.upgrade-edit-item button {
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 6px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.upgrade-edit-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 255, 204, 0.4);
}

/* Unit Selector */
.unit-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.unit-selector select {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.unit-selector label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modal Cookies */
.cookies-content {
    text-align: center;
}

.cookies-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--warning);
}

.cookies-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookies-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Modal Story */
.story-content {
    line-height: 1.8;
}

.story-chapter {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.story-chapter-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    font-weight: 600;
}

/* Modal Guide */
.guide-section {
    margin-bottom: 25px;
}

.guide-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--warning);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    font-weight: 600;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.guide-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.unit-details {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    overflow: hidden;
}

.unit-name {
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 5px;
}

.unit-value {
    color: var(--accent-color);
    margin-bottom: 5px;
    word-break: break-all;
}

.unit-description {
    color: var(--text-secondary);
    font-style: italic;
}

.unit-calculator {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.calculator-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.calculator-input input {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
}

.calculator-result {
    color: var(--success);
    font-weight: 500;
    word-break: break-all;
}

/* Modal Donatie */
.donation-content {
    text-align: center;
}

.donation-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--warning);
}

.donation-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.donation-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff813f, #ff5e5b);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.donation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 129, 63, 0.4);
}

/* Upgrade Details Modal */
.upgrade-details-modal {
    max-width: 700px;
}

.upgrade-details-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.upgrade-details-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 15px;
    font-size: 30px;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.upgrade-details-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.upgrade-details-section {
    margin-bottom: 20px;
}

.upgrade-details-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 10px;
}

.upgrade-details-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.upgrade-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.upgrade-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.upgrade-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.upgrade-multiplication-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    margin-bottom: 15px;
}

.upgrade-multiplication-formula {
    font-family: 'Inter', monospace;
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
}

.upgrade-multiplication-explanation {
    font-size: 14px;
    color: var(--text-secondary);
}

.upgrade-requirements {
    padding: 15px;
    background: rgba(255, 0, 102, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 102, 0.3);
    margin-bottom: 15px;
}

.upgrade-requirements-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 10px;
}

.upgrade-requirements-list {
    list-style-type: none;
}

.upgrade-requirements-list li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.upgrade-requirements-list li:before {
    content: "•";
    color: var(--danger);
    position: absolute;
    left: 0;
}

/* Floating Points Animation */
.floating-point {
    position: absolute;
    font-size: 32px;
    font-weight: 600;
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 100;
    text-shadow: 0 0 10px currentColor;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(1.5);
        opacity: 0;
    }
}

/* Click Text Animation */
.click-text {
    position: absolute;
    font-size: 36px;
    font-weight: 600;
    pointer-events: none;
    z-index: 100;
    text-shadow: 0 0 15px currentColor;
    animation: clickTextAnim 1s ease-out forwards;
}

@keyframes clickTextAnim {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 1s;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 204, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    animation: loading 2s forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* Footer Info */
.footer-info {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.footer-info-item:hover {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .top-section {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .upgrades-panel {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .data-display {
        font-size: 32px;
    }

    .click-button {
        width: 200px;
        height: 200px;
        font-size: 60px;
    }

    .globe-container {
        width: 400px;
        height: 400px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .upgrades-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-details-stats {
        grid-template-columns: 1fr;
    }
}