* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eaeaea;
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.header-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    background: rgba(78, 205, 196, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.prestige-stat {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.rebirth-stat {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3);
}

.bonus-text {
    color: #ffd43b;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Game Container */
.game-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 968px) {
    .game-container {
        grid-template-columns: 1fr;
    }
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.click-section {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-clicker {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    font-size: 8em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    animation: idle-pulse 3s ease-in-out infinite;
}

.main-clicker:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.6);
    animation: none;
}

.main-clicker:active {
    transform: scale(0.92);
}

.main-clicker.clicked {
    animation: clickBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes idle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 45px rgba(255, 107, 107, 0.5);
    }
}

@keyframes clickBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.click-stats {
    margin-top: 20px;
    font-size: 1.1em;
}

.click-stats p {
    margin: 8px 0;
    color: #a0a0a0;
}

.click-stats span {
    color: #4ecdc4;
    font-weight: bold;
}

/* Prestige Section */
.prestige-section {
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.prestige-button {
    width: 100%;
    padding: 15px;
    font-size: 1.3em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd43b, #ff922b);
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.prestige-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.prestige-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prestige-info {
    font-size: 0.7em;
    font-weight: normal;
}

.prestige-description {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ffd43b;
}

.prestige-bonus-text {
    margin-top: 5px;
    color: #4ecdc4;
    font-size: 0.85em;
    font-weight: bold;
}

.section-header {
    color: #4ecdc4;
    font-size: 1.4em;
    margin: 20px 0 15px 0;
    padding: 10px;
    text-align: center;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.milestone-item {
    border-left: 4px solid #f39c12;
}

.milestone-item.unlocked {
    border-left-color: #2ecc71;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.control-btn {
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 205, 196, 0.3);
    font-weight: bold;
}

.control-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.control-btn.danger {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.control-btn.danger:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* Right Panel */
.right-panel {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    background: transparent;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: bold;
}

.tab-button:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.tab-button.active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    overflow-y: auto;
    flex: 1;
}

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

/* Upgrades Container */
.upgrades-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-item {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-item:hover:not(.disabled) {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.8);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
}

.upgrade-item:active:not(.disabled) {
    animation: purchaseBounce 0.3s ease-out;
}

.upgrade-extra {
    font-size: 0.85em;
    color: #f6e58d;
    margin-top: 5px;
}

.upgrade-extra-hint {
    font-size: 0.75em;
    color: #a5b1c2;
    margin-top: 2px;
}

.upgrade-tooltip {
    font-size: 0.85em;
    color: #c8d6e5;
    margin-top: 6px;
}

@keyframes purchaseBounce {
    0% { transform: translateX(5px) scale(1.02); }
    50% { transform: translateX(5px) scale(0.95); }
    100% { transform: translateX(5px) scale(1.02); }
}

.upgrade-item:not(.disabled) {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.5);
}

.upgrade-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(78, 205, 196, 0.02);
    border-color: rgba(78, 205, 196, 0.1);
}

.upgrade-item.has-tooltip {
    position: relative;
}

.upgrade-item.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -10px);
    width: 220px;
    max-width: 80vw;
    padding: 8px 12px;
    background: rgba(10, 10, 10, 0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.upgrade-item.has-tooltip:hover::after {
    opacity: 1;
    transform: translate(-50%, -14px);
}

.exclusive-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    font-size: 0.75em;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffeaa7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.upgrade-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #eaeaea;
}

.upgrade-description {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.upgrade-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.upgrade-level {
    color: #4ecdc4;
}

.upgrade-production {
    color: #51cf66;
}

.upgrade-cost {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd43b;
    min-width: 100px;
    text-align: right;
}

/* Achievements */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.achievement-item {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: rgba(81, 207, 102, 0.1);
    border-color: rgba(81, 207, 102, 0.4);
}

.achievement-item.locked {
    opacity: 0.4;
}

.achievement-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #eaeaea;
}

.achievement-description {
    font-size: 0.85em;
    color: #a0a0a0;
}

/* Stats */
.stats-container {
    background: rgba(78, 205, 196, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.stats-container h3 {
    margin-bottom: 20px;
    color: #4ecdc4;
    font-size: 1.5em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row span:first-child {
    color: #a0a0a0;
}

.stat-row span:last-child {
    color: #4ecdc4;
    font-weight: bold;
}

/* Floating Numbers */
#floating-numbers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-number {
    position: absolute;
    font-size: 2em;
    font-weight: bold;
    color: #000000;
    text-shadow: 
        0 0 10px rgba(78, 205, 196, 1),
        0 0 20px rgba(78, 205, 196, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: float-up 1s ease-out forwards;
    pointer-events: none;
}

.floating-number.critical {
    color: #ff6b6b;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(255, 107, 107, 0.9),
        2px 2px 6px rgba(0, 0, 0, 0.9);
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #16213e;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #4ecdc4;
}

.modal-content textarea {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #eaeaea;
    font-family: monospace;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons .control-btn {
    flex: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-item, .achievement-item {
    animation: fadeIn 0.3s ease;
}

/* Save Notification */
.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    z-index: 10000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    pointer-events: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(22, 33, 62, 0.98);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 15px;
    padding: 20px;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.admin-panel.hidden {
    display: none;
}

.admin-panel h3 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.admin-panel h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.admin-section {
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.admin-current {
    color: #ffd43b;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: bold;
}

.admin-current span {
    color: #4ecdc4;
}

/* Version Display */
.version-display {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 9998;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.version-display:hover {
    opacity: 1;
    background: rgba(78, 205, 196, 0.25);
    border-color: rgba(78, 205, 196, 0.5);
}

.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    z-index: 9998;
    transition: all 0.3s ease;
}

.admin-toggle:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.8);
    transform: scale(1.05);
}

.admin-toggle.hidden {
    display: none;
}

.admin-quick-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.admin-quick-btn {
    flex: 1;
    padding: 8px 10px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    color: #ffd700;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-quick-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

.admin-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-input-row input {
    flex: 1;
    padding: 10px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    color: #eaeaea;
    font-size: 1em;
}

.admin-input-row input:focus {
    outline: none;
    border-color: rgba(78, 205, 196, 0.6);
    background: rgba(78, 205, 196, 0.15);
}

#admin-generator-select,
#admin-upgrade-select {
    width: 100%;
    padding: 10px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    color: #eaeaea;
    font-size: 1em;
    margin-bottom: 10px;
    cursor: pointer;
}

#admin-generator-select option,
#admin-upgrade-select option {
    background: #16213e;
    color: #eaeaea;
}

#admin-generator-select:focus,
#admin-upgrade-select:focus {
    outline: none;
    border-color: rgba(78, 205, 196, 0.6);
    background: rgba(78, 205, 196, 0.15);
}

.admin-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    flex: 1;
    padding: 10px 15px;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 8px;
    color: #4ecdc4;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.8);
    transform: translateY(-2px);
}

.admin-btn.close {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.admin-btn.close:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.8);
}

.admin-btn.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Multiplier Section Headers */
.multiplier-section-header {
    color: #4ecdc4;
    margin: 20px 0 15px 0;
    font-size: 1.3em;
    text-align: center;
    padding: 10px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Tips Tab */
.tips-container {
    padding: 20px;
}

.tips-container h3 {
    color: #4ecdc4;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.tip-card {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.tip-card h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

.tip-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #eaeaea;
    line-height: 1.6;
}

.tip-card li:before {
    content: "💎";
    position: absolute;
    left: 0;
}

/* Changelog Tab */
.changelog-container {
    padding: 20px;
}

.changelog-container h3 {
    color: #4ecdc4;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.changelog-entry {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-left: 5px solid #4ecdc4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.changelog-entry h4 {
    color: #4ecdc4;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.changelog-date {
    color: #a0a0a0;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.changelog-entry ul {
    list-style: none;
    padding-left: 0;
}

.changelog-entry li {
    padding: 6px 0;
    padding-left: 30px;
    position: relative;
    color: #eaeaea;
    line-height: 1.6;
}

.changelog-entry li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2em;
}

.changelog-entry p {
    color: #4ecdc4;
    font-style: italic;
}

/* Settings Tab */
.settings-container {
    padding: 20px;
}

.settings-container h3 {
    color: #4ecdc4;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.settings-container h4 {
    color: #9b59b6;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.settings-section {
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.setting-item label {
    color: #eaeaea;
    font-size: 1.1em;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 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(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ff6b6b;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.5);
}

input:checked + .toggle-slider:before {
    background-color: #4ecdc4;
    transform: translateX(30px);
}

/* Volume Slider */
input[type="range"] {
    flex: 1;
    height: 8px;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #16213e;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #16213e;
}

#volume-display {
    color: #4ecdc4;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* Settings Dropdowns */
.settings-select {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    color: #eaeaea;
    padding: 10px 15px;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.settings-select:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
}

.settings-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.settings-select option {
    background: #16213e;
    color: #eaeaea;
    padding: 10px;
}

/* Theme Buttons */
.theme-buttons {
    display: flex;
    gap: 10px;
}

.theme-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    color: #eaeaea;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.theme-btn.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.8);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

/* Shortcuts List */
.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    padding: 10px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 8px;
    color: #eaeaea;
}

kbd {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 5px;
    padding: 4px 8px;
    font-family: monospace;
    font-weight: bold;
    color: #4ecdc4;
}

/* Light Theme */
body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
}

body.light-theme .header,
body.light-theme .click-section,
body.light-theme .right-panel,
body.light-theme .controls,
body.light-theme .prestige-section {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(52, 152, 219, 0.3);
}

body.light-theme .header h1 {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .stat-item,
body.light-theme .upgrade-item,
body.light-theme .achievement-item,
body.light-theme .settings-section,
body.light-theme .admin-section {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

body.light-theme .upgrade-item:not(.disabled) {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

body.light-theme .upgrade-item.disabled {
    opacity: 0.4;
    background: rgba(52, 152, 219, 0.05);
}

body.light-theme .upgrade-name,
body.light-theme .achievement-name,
body.light-theme .setting-item label,
body.light-theme h3,
body.light-theme h4 {
    color: #2c3e50;
}

body.light-theme .upgrade-description,
body.light-theme .achievement-description {
    color: #34495e;
}

body.light-theme .main-clicker {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    border-color: rgba(52, 152, 219, 0.5);
}

body.light-theme .control-btn,
body.light-theme .tab-button {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    color: #2c3e50;
}

body.light-theme .tab-button.active {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.6);
}

body.light-theme .floating-number {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(52, 152, 219, 1),
        0 0 20px rgba(52, 152, 219, 0.8),
        2px 2px 6px rgba(0, 0, 0, 1);
}

body.light-theme .upgrade-level,
body.light-theme .upgrade-production,
body.light-theme .upgrade-cost,
body.light-theme .stat-row,
body.light-theme .stat-row span,
body.light-theme .click-stats,
body.light-theme .click-stats p,
body.light-theme .click-stats span,
body.light-theme .auto-clicker-info,
body.light-theme .auto-clicker-info span,
body.light-theme .auto-clicker-section h4,
body.light-theme .prestige-description,
body.light-theme .prestige-info,
body.light-theme .rebirth-description,
body.light-theme .rebirth-info,
body.light-theme .rebirth-bonus,
body.light-theme .multiplier-section-header,
body.light-theme .shortcut-item,
body.light-theme #volume-display,
body.light-theme .daily-streak-text,
body.light-theme .admin-current,
body.light-theme .admin-input-group label,
body.light-theme .progress-label,
body.light-theme .progress-label span {
    color: #2c3e50 !important;
}

body.light-theme .settings-select {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

body.light-theme .settings-select:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

body.light-theme .settings-select option {
    background: #ecf0f1;
    color: #2c3e50;
}

body.light-theme kbd {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    color: #2c3e50;
}

body.light-theme .bonus-text {
    color: #f39c12 !important;
}

body.light-theme .admin-panel,
body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(52, 152, 219, 0.5);
}

body.light-theme .admin-current span {
    color: #3498db !important;
}

body.light-theme input[type="range"] {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
}

body.light-theme input[type="range"]::-webkit-slider-thumb {
    background: #3498db;
    border-color: #f5f7fa;
}

body.light-theme input[type="range"]::-moz-range-thumb {
    background: #3498db;
    border-color: #f5f7fa;
}

body.light-theme .tip-card,
body.light-theme .changelog-entry {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

body.light-theme .tip-card h4,
body.light-theme .changelog-entry h4,
body.light-theme .tips-container h3,
body.light-theme .changelog-container h3 {
    color: #2c3e50;
}

body.light-theme .tip-card li,
body.light-theme .changelog-entry li {
    color: #2c3e50;
}

body.light-theme .changelog-date {
    color: #7f8c8d;
}

body.light-theme .changelog-entry p {
    color: #3498db;
}

body.light-theme .section-header {
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.4);
}

body.light-theme .prestige-bonus-text,
body.light-theme #prestige-requirement-text {
    color: #2c3e50 !important;
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.98), rgba(52, 152, 219, 0.98));
    border: 3px solid rgba(255, 215, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.4);
    z-index: 10001;
    animation: achievementSlide 0.5s ease-out, achievementPulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.achievement-popup.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.achievement-popup-header {
    color: #ffd700;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.achievement-popup-icon {
    font-size: 4em;
    text-align: center;
    margin: 10px 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.achievement-popup-name {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.achievement-popup-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes achievementSlide {
    from {
        transform: translateX(400px) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes achievementPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.7);
    }
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFloat 1s ease-out forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--vx), var(--vy)) scale(0);
    }
}

/* Offline Earnings Popup */
.offline-earnings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.98), rgba(44, 62, 80, 0.98));
    border: 3px solid rgba(52, 152, 219, 0.8);
    border-radius: 20px;
    padding: 40px;
    min-width: 400px;
    text-align: center;
    z-index: 10003;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(52, 152, 219, 0.5);
    animation: scaleIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.offline-earnings-popup h2 {
    color: #4ecdc4;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

.offline-time {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.offline-earnings {
    margin: 20px 0;
}

.offline-label {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.offline-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        font-size: 1em;
        padding: 8px 15px;
    }
    
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .main-clicker {
        width: 180px;
        height: 180px;
        font-size: 6em;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-button {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .upgrade-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .upgrade-icon {
        font-size: 2.5em;
    }
    
    .admin-panel {
        width: 90%;
        right: 5%;
        left: auto;
    }
    
    .achievement-popup,
    .milestone-popup,
    .daily-reward-popup,
    .offline-earnings-popup {
        width: 90%;
        min-width: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 25px;
    }
    
    .achievement-popup {
        top: 100px;
    }
}

/* Rebirth Section */
.rebirth-section {
    background: rgba(155, 89, 182, 0.1);
    border: 2px solid rgba(155, 89, 182, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.rebirth-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rebirth-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

.rebirth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(155, 89, 182, 0.3);
}

.rebirth-info {
    font-size: 0.85em;
    opacity: 0.95;
}

.rebirth-description {
    margin-top: 10px;
    color: #a0a0a0;
    font-size: 0.9em;
}

.rebirth-bonus {
    margin-top: 5px;
    color: #9b59b6;
    font-weight: bold;
}

/* Lucky Event Banner */
.lucky-event-banner {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.98), rgba(243, 156, 18, 0.98));
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px 30px;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(241, 196, 15, 0.8);
    animation: eventBounce 0.6s ease-out, eventPulse 2s ease-in-out infinite;
}

.event-icon {
    font-size: 3em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.event-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-name {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-timer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    font-weight: bold;
}

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

@keyframes eventPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(241, 196, 15, 0.8); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 60px rgba(241, 196, 15, 1); }
}

/* Progress Bars */
.progress-section {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-section h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #eaeaea;
    font-size: 0.95em;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #2ecc71);
    border-radius: 8px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Shop Purchased State */
.upgrade-item.purchased {
    opacity: 0.7;
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.4);
}

.upgrade-item.purchased .upgrade-name {
    color: #2ecc71;
}

/* Auto Clicker Section */
.auto-clicker-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
}

.auto-clicker-section h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-align: center;
}

.auto-clicker-info {
    text-align: center;
    color: #eaeaea;
    margin-bottom: 15px;
    line-height: 1.6;
}

.auto-clicker-info span {
    color: #4ecdc4;
    font-weight: bold;
}

#buy-auto-clicker {
    width: 100%;
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
}

#buy-auto-clicker:not(:disabled):hover {
    background: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.8);
}

#buy-auto-clicker:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Daily Reward Popup */
.daily-reward-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.98), rgba(52, 152, 219, 0.98));
    border: 3px solid rgba(255, 215, 0, 0.8);
    border-radius: 20px;
    padding: 40px;
    min-width: 400px;
    text-align: center;
    z-index: 10002;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.5);
    animation: scaleIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.daily-reward-popup.hidden {
    display: none;
}

.daily-reward-popup h2 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.daily-streak-text {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.daily-streak-text span {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.5em;
}

.daily-reward-gems {
    font-size: 3em;
    font-weight: bold;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

.claim-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.6);
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Milestone Popup */
.milestone-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.98), rgba(243, 156, 18, 0.98));
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px 30px;
    min-width: 350px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(241, 196, 15, 0.6);
    z-index: 10001;
    animation: achievementSlide 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.milestone-popup.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.milestone-popup-header {
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.milestone-popup-name {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.milestone-popup-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    font-size: 1em;
    font-weight: 500;
    transition: right 0.3s ease;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
    right: 20px;
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.toast-notification.toast-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast-notification.toast-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Deep Purple Theme */
body.theme-deep-purple {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0933 100%);
}

body.theme-deep-purple .header,
body.theme-deep-purple .stats-grid,
body.theme-deep-purple .game-section,
body.theme-deep-purple .tab-btn,
body.theme-deep-purple .upgrade-item,
body.theme-deep-purple .admin-panel {
    background: rgba(45, 27, 78, 0.8);
    border-color: rgba(138, 43, 226, 0.3);
}

body.theme-deep-purple .main-clicker {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4),
                0 0 100px rgba(139, 92, 246, 0.3);
}

body.theme-deep-purple .tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
}

/* Ruby Gem Skin */
body.gem-skin-ruby .main-clicker {
    background: linear-gradient(135deg, #e63946 0%, #a4133c 100%);
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.5),
                0 0 100px rgba(230, 57, 70, 0.4);
}

body.gem-skin-ruby #clicker-icon::before {
    content: '💍';
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    
    .game-title {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-label {
        font-size: 0.85em;
    }
    
    .stat-value {
        font-size: 1.2em;
    }
    
    .game-content {
        flex-direction: column;
    }
    
    .clicker-area {
        width: 100%;
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .main-clicker {
        width: 200px;
        height: 200px;
        font-size: 6em;
    }
    
    #click-power-display {
        font-size: 1em;
        padding: 8px 15px;
    }
    
    .upgrades-area {
        width: 100%;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9em;
        min-width: auto;
    }
    
    .tab-content {
        padding: 15px;
        max-height: 500px;
    }
    
    .upgrades-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .upgrade-item {
        padding: 12px;
    }
    
    .upgrade-name {
        font-size: 1em;
    }
    
    .upgrade-description {
        font-size: 0.85em;
    }
    
    .upgrade-cost {
        font-size: 0.9em;
    }
    
    .prestige-section,
    .rebirth-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .prestige-button,
    .rebirth-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .admin-panel {
        padding: 15px;
    }
    
    .admin-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-input-group input,
    .admin-input-group select {
        width: 100%;
    }
    
    .admin-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-btn {
        width: 100%;
    }
    
    .achievement-item {
        padding: 12px;
    }
    
    .achievement-icon {
        font-size: 2em;
    }
    
    .lucky-event-banner {
        padding: 12px 15px;
        min-height: auto;
    }
    
    .event-icon {
        font-size: 2em;
    }
    
    .event-name {
        font-size: 1em;
    }
    
    .event-timer {
        font-size: 0.85em;
    }

#combo-indicator {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd43b 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}
    
    .toast-notification {
        right: -350px;
        min-width: 200px;
        max-width: 300px;
        top: 70px;
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .toast-notification.show {
        right: 10px;
    }
    
    .achievement-popup,
    .milestone-popup,
    .daily-reward-popup,
    .offline-earnings-popup {
        min-width: 280px;
        max-width: 90%;
        padding: 20px;
    }
    
    .achievement-popup-icon {
        font-size: 3em;
    }
    
    .achievement-popup-name {
        font-size: 1.3em;
    }
    
    .settings-section {
        padding: 15px;
    }
    
    .theme-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .theme-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-clicker {
        width: 150px;
        height: 150px;
        font-size: 5em;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .upgrade-item {
        padding: 10px;
    }
    
    .prestige-button,
    .rebirth-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* ============================================
   COSMETIC CUSTOMIZATION - DEEP PURPLE THEME
   ============================================ */

body.theme-deep-purple {
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 100%);
}

body.theme-deep-purple .header {
    background: rgba(45, 27, 78, 0.8);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

body.theme-deep-purple .header h1 {
    background: linear-gradient(135deg, #9b59b6, #e056fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-deep-purple .stat-item {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

body.theme-deep-purple .main-clicker {
    background: radial-gradient(circle, #9b59b6, #7d3c98);
    box-shadow: 0 10px 40px rgba(155, 89, 182, 0.6),
                0 0 100px rgba(155, 89, 182, 0.3);
    border: 3px solid rgba(224, 86, 253, 0.5);
}

body.theme-deep-purple .main-clicker:hover {
    box-shadow: 0 15px 50px rgba(155, 89, 182, 0.8),
                0 0 120px rgba(155, 89, 182, 0.5);
}

body.theme-deep-purple .upgrade-item {
    background: rgba(45, 27, 78, 0.6);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

body.theme-deep-purple .upgrade-item:hover:not(.disabled) {
    background: rgba(155, 89, 182, 0.3);
    border-color: #9b59b6;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

body.theme-deep-purple .prestige-button,
body.theme-deep-purple .rebirth-button {
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    border: 2px solid #e056fd;
}

body.theme-deep-purple .prestige-button:hover,
body.theme-deep-purple .rebirth-button:hover {
    background: linear-gradient(135deg, #a569bd, #8e44ad);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
}

body.theme-deep-purple .tab-btn.active {
    background: rgba(155, 89, 182, 0.4);
    border-bottom: 3px solid #9b59b6;
}

body.theme-deep-purple .lucky-event-banner {
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    border: 2px solid #e056fd;
}

/* ============================================
   COSMETIC CUSTOMIZATION - OCEAN BLUE THEME
   ============================================ */

body.theme-ocean-blue {
    background: linear-gradient(135deg, #0a2342 0%, #1a4d7a 100%);
}

body.theme-ocean-blue .header {
    background: rgba(26, 77, 122, 0.8);
    border: 1px solid rgba(93, 173, 226, 0.3);
}

body.theme-ocean-blue .header h1 {
    background: linear-gradient(135deg, #3498db, #5dade2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-ocean-blue .stat-item {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(93, 173, 226, 0.3);
}

body.theme-ocean-blue .main-clicker {
    background: radial-gradient(circle, #3498db, #2874a6);
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.6),
                0 0 100px rgba(52, 152, 219, 0.3);
    border: 3px solid rgba(93, 173, 226, 0.5);
}

body.theme-ocean-blue .main-clicker:hover {
    box-shadow: 0 15px 50px rgba(52, 152, 219, 0.8),
                0 0 120px rgba(52, 152, 219, 0.5);
}

body.theme-ocean-blue .upgrade-item {
    background: rgba(26, 77, 122, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

body.theme-ocean-blue .upgrade-item:hover:not(.disabled) {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

body.theme-ocean-blue .prestige-button,
body.theme-ocean-blue .rebirth-button {
    background: linear-gradient(135deg, #3498db, #2874a6);
    border: 2px solid #5dade2;
}

body.theme-ocean-blue .prestige-button:hover,
body.theme-ocean-blue .rebirth-button:hover {
    background: linear-gradient(135deg, #4aa8dc, #3384b8);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

body.theme-ocean-blue .tab-btn.active {
    background: rgba(52, 152, 219, 0.4);
    border-bottom: 3px solid #3498db;
}

body.theme-ocean-blue .lucky-event-banner {
    background: linear-gradient(135deg, #3498db, #2874a6);
    border: 2px solid #5dade2;
}

/* ============================================
   COSMETIC CUSTOMIZATION - EMERALD GREEN THEME
   ============================================ */

body.theme-emerald-green {
    background: linear-gradient(135deg, #0a2f1f 0%, #145a32 100%);
}

body.theme-emerald-green .header {
    background: rgba(20, 90, 50, 0.8);
    border: 1px solid rgba(88, 214, 141, 0.3);
}

body.theme-emerald-green .header h1 {
    background: linear-gradient(135deg, #28b463, #58d68d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-emerald-green .stat-item {
    background: rgba(40, 180, 99, 0.2);
    border: 1px solid rgba(88, 214, 141, 0.3);
}

body.theme-emerald-green .main-clicker {
    background: radial-gradient(circle, #28b463, #1e8449);
    box-shadow: 0 10px 40px rgba(40, 180, 99, 0.6),
                0 0 100px rgba(40, 180, 99, 0.3);
    border: 3px solid rgba(88, 214, 141, 0.5);
}

body.theme-emerald-green .main-clicker:hover {
    box-shadow: 0 15px 50px rgba(40, 180, 99, 0.8),
                0 0 120px rgba(40, 180, 99, 0.5);
}

body.theme-emerald-green .upgrade-item {
    background: rgba(20, 90, 50, 0.6);
    border: 1px solid rgba(40, 180, 99, 0.3);
}

body.theme-emerald-green .upgrade-item:hover:not(.disabled) {
    background: rgba(40, 180, 99, 0.3);
    border-color: #28b463;
    box-shadow: 0 5px 20px rgba(40, 180, 99, 0.4);
}

body.theme-emerald-green .prestige-button,
body.theme-emerald-green .rebirth-button {
    background: linear-gradient(135deg, #28b463, #1e8449);
    border: 2px solid #58d68d;
}

body.theme-emerald-green .prestige-button:hover,
body.theme-emerald-green .rebirth-button:hover {
    background: linear-gradient(135deg, #3ac475, #29965b);
    box-shadow: 0 8px 25px rgba(40, 180, 99, 0.5);
}

body.theme-emerald-green .tab-btn.active {
    background: rgba(40, 180, 99, 0.4);
    border-bottom: 3px solid #28b463;
}

body.theme-emerald-green .lucky-event-banner {
    background: linear-gradient(135deg, #28b463, #1e8449);
    border: 2px solid #58d68d;
}

/* ============================================
   COSMETIC CUSTOMIZATION - SUNSET ORANGE THEME
   ============================================ */

body.theme-sunset-orange {
    background: linear-gradient(135deg, #3d1a0f 0%, #7e3517 100%);
}

body.theme-sunset-orange .header {
    background: rgba(126, 53, 23, 0.8);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

body.theme-sunset-orange .header h1 {
    background: linear-gradient(135deg, #ff9800, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-sunset-orange .stat-item {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

body.theme-sunset-orange .main-clicker {
    background: radial-gradient(circle, #ff9800, #f57c00);
    box-shadow: 0 10px 40px rgba(255, 152, 0, 0.6),
                0 0 100px rgba(255, 152, 0, 0.3);
    border: 3px solid rgba(255, 183, 77, 0.5);
}

body.theme-sunset-orange .main-clicker:hover {
    box-shadow: 0 15px 50px rgba(255, 152, 0, 0.8),
                0 0 120px rgba(255, 152, 0, 0.5);
}

body.theme-sunset-orange .upgrade-item {
    background: rgba(126, 53, 23, 0.6);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

body.theme-sunset-orange .upgrade-item:hover:not(.disabled) {
    background: rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

body.theme-sunset-orange .prestige-button,
body.theme-sunset-orange .rebirth-button {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: 2px solid #ffb74d;
}

body.theme-sunset-orange .prestige-button:hover,
body.theme-sunset-orange .rebirth-button:hover {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
}

body.theme-sunset-orange .tab-btn.active {
    background: rgba(255, 152, 0, 0.4);
    border-bottom: 3px solid #ff9800;
}

body.theme-sunset-orange .lucky-event-banner {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: 2px solid #ffb74d;
}

/* Crimson Fire Theme */
body.theme-crimson-red {
    background: linear-gradient(135deg, #3d0a0a 0%, #7d1212 100%);
}

body.theme-crimson-red .main-clicker {
    background: radial-gradient(circle, #e74c3c, #c0392b);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.6), 0 0 100px rgba(231, 76, 60, 0.3);
}

/* Midnight Blue Theme */
body.theme-midnight-blue {
    background: linear-gradient(135deg, #0a0a3d 0%, #121252 100%);
}

body.theme-midnight-blue .main-clicker {
    background: radial-gradient(circle, #3498db, #2980b9);
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.6), 0 0 100px rgba(52, 152, 219, 0.3);
}

/* Gold Rush Theme */
body.theme-gold-rush {
    background: linear-gradient(135deg, #3d2d0a 0%, #7d5d12 100%);
}

body.theme-gold-rush .main-clicker {
    background: radial-gradient(circle, #f1c40f, #f39c12);
    box-shadow: 0 10px 40px rgba(241, 196, 15, 0.6), 0 0 100px rgba(241, 196, 15, 0.3);
}

/* Halloween Theme */
body.theme-halloween {
    background: linear-gradient(135deg, #1a0f00 0%, #3d2200 100%);
}

body.theme-halloween .main-clicker {
    background: radial-gradient(circle, #ff6b00, #d35400);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.6), 0 0 100px rgba(255, 107, 0, 0.3);
}

/* Winter Theme */
body.theme-winter {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

body.theme-winter .text,
body.theme-winter h1,
body.theme-winter h2,
body.theme-winter h3,
body.theme-winter p,
body.theme-winter span,
body.theme-winter div {
    color: #1a1a2e !important;
}

body.theme-winter .main-clicker {
    background: radial-gradient(circle, #81d4fa, #4fc3f7);
    box-shadow: 0 10px 40px rgba(129, 212, 250, 0.6), 0 0 100px rgba(129, 212, 250, 0.3);
}

/* Neon Dream Theme */
body.theme-neon-dream {
    background: radial-gradient(circle at top, #0f0c29 0%, #302b63 45%, #24243e 100%);
}

body.theme-neon-dream .main-clicker {
    background: linear-gradient(135deg, #08F7FE, #FE53BB);
    box-shadow: 0 12px 45px rgba(8, 247, 254, 0.5), 0 0 120px rgba(254, 83, 187, 0.35);
}

/* Sakura Blossom Theme */
body.theme-sakura-blossom {
    background: linear-gradient(135deg, #FFDEE9 0%, #B5FFFC 100%);
}

body.theme-sakura-blossom .main-clicker {
    background: radial-gradient(circle, #FFB7C5, #FF9A9E);
    box-shadow: 0 12px 45px rgba(255, 154, 158, 0.45), 0 0 100px rgba(255, 222, 233, 0.5);
}

/* Cosmic Void Theme */
body.theme-cosmic-void {
    background: radial-gradient(circle at top, #070A1B 0%, #120C2B 50%, #050608 100%);
}

body.theme-cosmic-void .main-clicker {
    background: radial-gradient(circle, #7209B7, #3A0CA3);
    box-shadow: 0 14px 50px rgba(247, 37, 133, 0.5), 0 0 140px rgba(114, 9, 183, 0.4);
}

/* Arcade Glow Theme */
body.theme-arcade-glow {
    background: linear-gradient(135deg, #040308 0%, #0b0631 40%, #12005e 100%);
}

body.theme-arcade-glow .main-clicker {
    background: linear-gradient(135deg, #09FBD3, #F5D300);
    box-shadow: 0 12px 45px rgba(9, 251, 211, 0.45), 0 0 110px rgba(245, 211, 0, 0.4);
}

/* Crystalline Ice Theme */
body.theme-crystalline-ice {
    background: linear-gradient(135deg, #00111e 0%, #002747 50%, #004d7a 100%);
}

body.theme-crystalline-ice .main-clicker {
    background: linear-gradient(135deg, #8EC5FC, #E0C3FC);
    box-shadow: 0 12px 45px rgba(142, 197, 252, 0.45), 0 0 110px rgba(224, 195, 252, 0.4);
}

/* ============================================
   COSMETIC CUSTOMIZATION - GEM SKINS
   ============================================ */

/* Ruby Gem Skin - Classic Diamond Cut */
@keyframes ruby-shine {
    0%, 100% {  
        background-position: 0% 50%, 25% 25%, center;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%, 75% 75%, center;
        filter: brightness(1.3);
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

body.skin-ruby .main-clicker {
    /* Sharp spiky star/burst shape - aggressive and bold */
    clip-path: polygon(
        50% 0%, 58% 20%, 75% 15%, 65% 35%, 85% 45%, 60% 50%,
        100% 70%, 65% 65%, 50% 100%, 35% 65%, 0% 70%, 40% 50%,
        15% 45%, 35% 35%, 25% 15%, 42% 20%
    );
    background: 
        /* Animated shimmer */
        linear-gradient(120deg, transparent 30%, rgba(255, 150, 150, 0.8) 50%, transparent 70%),
        /* Top facet highlights */
        linear-gradient(160deg, #ff6b6b 0%, #ff4444 20%, transparent 40%),
        linear-gradient(20deg, transparent 60%, #ff8888 80%, #ff6b6b 100%),
        /* Middle band */
        linear-gradient(180deg, #e74c3c 40%, #c0392b 60%),
        /* Base gradient */
        radial-gradient(ellipse at center, #c0392b, #8b0000);
    background-size: 200% 200%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 50%, top, top, center, center;
    animation: ruby-shine 4s ease-in-out infinite;
    box-shadow: 
        0 12px 50px rgba(231, 76, 60, 1),
        0 0 140px rgba(231, 76, 60, 0.9),
        0 0 220px rgba(255, 0, 0, 0.5),
        inset 0 -30px 50px rgba(139, 0, 0, 0.8),
        inset 0 5px 30px rgba(255, 150, 150, 0.6),
        inset -15px 15px 40px rgba(255, 107, 107, 0.4);
    border: none;
    position: relative;
}

/* Additional facet details */
body.skin-ruby .main-clicker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 200, 200, 0.5) 0%, transparent 25%),
        linear-gradient(-135deg, rgba(255, 200, 200, 0.5) 0%, transparent 25%),
        linear-gradient(180deg, transparent 40%, rgba(139, 0, 0, 0.4) 80%);
    clip-path: polygon(
        50% 0%, 58% 20%, 75% 15%, 65% 35%, 85% 45%, 60% 50%,
        100% 70%, 65% 65%, 50% 100%, 35% 65%, 0% 70%, 40% 50%,
        15% 45%, 35% 35%, 25% 15%, 42% 20%
    );
    pointer-events: none;
}

/* Sparkle star effect */
body.skin-ruby .main-clicker::after {
    content: '✦';
    position: absolute;
    top: 18%;
    left: 25%;
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 107, 107, 0.8);
    animation: sparkle 2.5s ease-in-out infinite;
    pointer-events: none;
}

body.skin-ruby .main-clicker:hover {
    box-shadow: 
        0 15px 65px rgba(231, 76, 60, 1),
        0 0 170px rgba(231, 76, 60, 1),
        0 0 280px rgba(255, 0, 0, 0.7),
        inset 0 -30px 50px rgba(139, 0, 0, 1),
        inset 0 5px 35px rgba(255, 150, 150, 0.8),
        inset -15px 15px 50px rgba(255, 107, 107, 0.6);
    transform: scale(1.12) rotate(8deg);
    animation: ruby-shine 2s ease-in-out infinite;
}

body.skin-ruby .main-clicker:active {
    transform: scale(0.88) rotate(4deg);
    box-shadow: 0 8px 40px rgba(231, 76, 60, 1);
}

body.skin-ruby .floating-number {
    color: #ff6b6b;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(231, 76, 60, 1),
        0 0 40px rgba(139, 0, 0, 0.9);
    font-weight: bold;
}

/* Sapphire Gem Skin - Classic Diamond Cut */
@keyframes sapphire-shine {
    0%, 100% {
        background-position: 0% 50%, 25% 25%, center;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%, 75% 75%, center;
        filter: brightness(1.4);
    }
}

body.skin-sapphire .main-clicker {
    /* Smooth oval/ellipse shape - elegant and flowing */
    clip-path: ellipse(45% 48% at 50% 50%);
    border-radius: 50%;
    background: 
        linear-gradient(120deg, transparent 30%, rgba(150, 200, 255, 0.9) 50%, transparent 70%),
        linear-gradient(160deg, #5dade2 0%, #3498db 20%, transparent 40%),
        linear-gradient(20deg, transparent 60%, #7ec8f0 80%, #5dade2 100%),
        linear-gradient(180deg, #3498db 40%, #2874a6 60%),
        radial-gradient(ellipse at center, #2874a6, #1a5490);
    background-size: 200% 200%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 50%, top, top, center, center;
    animation: sapphire-shine 4s ease-in-out infinite;
    box-shadow: 
        0 12px 50px rgba(52, 152, 219, 1),
        0 0 140px rgba(52, 152, 219, 0.9),
        0 0 220px rgba(0, 120, 255, 0.5),
        inset 0 -30px 50px rgba(26, 84, 144, 0.8),
        inset 0 5px 30px rgba(150, 200, 255, 0.6),
        inset -15px 15px 40px rgba(93, 173, 226, 0.4);
    border: none;
    position: relative;
}

body.skin-sapphire .main-clicker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(200, 230, 255, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(200, 230, 255, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, transparent 40%, rgba(26, 84, 144, 0.4) 80%);
    clip-path: ellipse(45% 48% at 50% 50%);
    border-radius: 50%;
    pointer-events: none;
}

body.skin-sapphire .main-clicker::after {
    content: '✦';
    position: absolute;
    top: 18%;
    left: 25%;
    font-size: 2.5em;
    color: rgba(230, 245, 255, 0.95);
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 40px rgba(93, 173, 226, 0.8);
    animation: sparkle 2.5s ease-in-out infinite;
    pointer-events: none;
}

body.skin-sapphire .main-clicker:hover {
    box-shadow: 
        0 15px 65px rgba(52, 152, 219, 1),
        0 0 170px rgba(52, 152, 219, 1),
        0 0 280px rgba(0, 120, 255, 0.7),
        inset 0 -30px 50px rgba(26, 84, 144, 1),
        inset 0 5px 35px rgba(150, 200, 255, 0.8),
        inset -15px 15px 50px rgba(93, 173, 226, 0.6);
    transform: scale(1.12) rotate(8deg);
    animation: sapphire-shine 2s ease-in-out infinite;
}

body.skin-sapphire .main-clicker:active {
    transform: scale(0.88) rotate(4deg);
}

body.skin-sapphire .floating-number {
    color: #5dade2;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(52, 152, 219, 1),
        0 0 40px rgba(26, 84, 144, 0.9);
    font-weight: bold;
}

/* Emerald Gem Skin - Classic Diamond Cut */
@keyframes emerald-shine {
    0%, 100% {
        background-position: 0% 50%, 25% 25%, center;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%, 75% 75%, center;
        filter: brightness(1.35);
    }
}

body.skin-emerald .main-clicker {
    /* Octagonal shape - geometric and precise */
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: 
        linear-gradient(120deg, transparent 30%, rgba(150, 255, 180, 0.9) 50%, transparent 70%),
        linear-gradient(160deg, #58d68d 0%, #28b463 20%, transparent 40%),
        linear-gradient(20deg, transparent 60%, #7ee09d 80%, #58d68d 100%),
        linear-gradient(180deg, #28b463 40%, #1e8449 60%),
        radial-gradient(ellipse at center, #1e8449, #145a32);
    background-size: 200% 200%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 50%, top, top, center, center;
    animation: emerald-shine 4s ease-in-out infinite;
    box-shadow: 
        0 12px 50px rgba(40, 180, 99, 1),
        0 0 140px rgba(40, 180, 99, 0.9),
        0 0 220px rgba(0, 255, 100, 0.5),
        inset 0 -30px 50px rgba(20, 90, 50, 0.8),
        inset 0 5px 30px rgba(150, 255, 180, 0.6),
        inset -15px 15px 40px rgba(88, 214, 141, 0.4);
    border: none;
    position: relative;
}

body.skin-emerald .main-clicker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(200, 255, 220, 0.5) 0%, transparent 35%),
        linear-gradient(225deg, rgba(200, 255, 220, 0.5) 0%, transparent 35%),
        linear-gradient(180deg, transparent 40%, rgba(20, 90, 50, 0.4) 80%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    pointer-events: none;
}

body.skin-emerald .main-clicker::after {
    content: '✦';
    position: absolute;
    top: 18%;
    left: 25%;
    font-size: 2.5em;
    color: rgba(230, 255, 235, 0.95);
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 40px rgba(88, 214, 141, 0.8);
    animation: sparkle 2.5s ease-in-out infinite;
    pointer-events: none;
}

body.skin-emerald .main-clicker:hover {
    box-shadow: 
        0 15px 65px rgba(40, 180, 99, 1),
        0 0 170px rgba(40, 180, 99, 1),
        0 0 280px rgba(0, 255, 100, 0.7),
        inset 0 -30px 50px rgba(20, 90, 50, 1),
        inset 0 5px 35px rgba(150, 255, 180, 0.8),
        inset -15px 15px 50px rgba(88, 214, 141, 0.6);
    transform: scale(1.12) rotate(8deg);
    animation: emerald-shine 2s ease-in-out infinite;
}

body.skin-emerald .main-clicker:active {
    transform: scale(0.88) rotate(4deg);
}

body.skin-emerald .floating-number {
    color: #58d68d;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(40, 180, 99, 1),
        0 0 40px rgba(20, 90, 50, 0.9);
    font-weight: bold;
}

/* Amethyst Gem Skin - Classic Diamond Cut */
@keyframes amethyst-shine {
    0%, 100% {
        background-position: 0% 50%, 25% 25%, center;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%, 75% 75%, center;
        filter: brightness(1.4);
    }
}

body.skin-amethyst .main-clicker {
    /* Hexagonal crystal shape - mystical and magical */
    clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
    background: 
        linear-gradient(120deg, transparent 30%, rgba(220, 180, 255, 0.9) 50%, transparent 70%),
        linear-gradient(160deg, #bb8fce 0%, #9b59b6 20%, transparent 40%),
        linear-gradient(20deg, transparent 60%, #d4a5dc 80%, #bb8fce 100%),
        linear-gradient(180deg, #9b59b6 40%, #7d3c98 60%),
        radial-gradient(ellipse at center, #7d3c98, #5b2c6f);
    background-size: 200% 200%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 50%, top, top, center, center;
    animation: amethyst-shine 4s ease-in-out infinite;
    box-shadow: 
        0 12px 50px rgba(155, 89, 182, 1),
        0 0 140px rgba(155, 89, 182, 0.9),
        0 0 220px rgba(180, 50, 255, 0.5),
        inset 0 -30px 50px rgba(91, 44, 111, 0.8),
        inset 0 5px 30px rgba(220, 180, 255, 0.6),
        inset -15px 15px 40px rgba(187, 143, 206, 0.4);
    border: none;
    position: relative;
}

body.skin-amethyst .main-clicker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(60deg, rgba(230, 200, 255, 0.6) 0%, transparent 40%),
        linear-gradient(120deg, rgba(230, 200, 255, 0.6) 0%, transparent 40%),
        linear-gradient(180deg, transparent 40%, rgba(91, 44, 111, 0.5) 80%);
    clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
    pointer-events: none;
}

body.skin-amethyst .main-clicker::after {
    content: '✦';
    position: absolute;
    top: 18%;
    left: 25%;
    font-size: 2.5em;
    color: rgba(240, 220, 255, 0.95);
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 40px rgba(187, 143, 206, 0.8);
    animation: sparkle 2.5s ease-in-out infinite;
    pointer-events: none;
}

body.skin-amethyst .main-clicker:hover {
    box-shadow: 
        0 15px 65px rgba(155, 89, 182, 1),
        0 0 170px rgba(155, 89, 182, 1),
        0 0 280px rgba(180, 50, 255, 0.7),
        inset 0 -30px 50px rgba(91, 44, 111, 1),
        inset 0 5px 35px rgba(220, 180, 255, 0.8),
        inset -15px 15px 50px rgba(187, 143, 206, 0.6);
    transform: scale(1.12) rotate(8deg);
    animation: amethyst-shine 2s ease-in-out infinite;
}

body.skin-amethyst .main-clicker:active {
    transform: scale(0.88) rotate(4deg);
}

body.skin-amethyst .floating-number {
    color: #bb8fce;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(155, 89, 182, 1),
        0 0 40px rgba(91, 44, 111, 0.9);
    font-weight: bold;
}

/* ============================================
   UPDATE NOTIFICATION (PWA)
   ============================================ */

.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4ecdc4, #45b7aa);
    color: #1a1a2e;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    font-weight: bold;
    animation: slideDown 0.3s ease;
}

.update-notification.hidden {
    display: none;
}

.update-button {
    background: #1a1a2e;
    color: #4ecdc4;
    border: 2px solid #1a1a2e;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-button:hover {
    background: #2c3e50;
    transform: scale(1.05);
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   SHOP CATEGORIES
   ============================================ */

.shop-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.category-btn.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.shop-category-content {
    display: none;
}

.shop-category-content.active {
    display: block;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-notification {
    position: fixed;
    top: 80px;
    right: -400px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    right: 20px;
}

.toast-notification.toast-success {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

.toast-notification.toast-warning {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
}

.toast-notification.toast-info {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

.toast-notification::before {
    content: '🔔';
    font-size: 1.5em;
    flex-shrink: 0;
}

.toast-notification.toast-success::before {
    content: '✅';
}

.toast-notification.toast-warning::before {
    content: '⚠️';
}

/* ============================================
   MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .main-clicker {
        width: 180px;
        height: 180px;
        font-size: 6em;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .tab-btn {
        min-height: 44px; /* iOS recommended touch target */
        touch-action: manipulation;
    }
    
    .upgrade-item button,
    .control-btn {
        min-height: 44px;
        font-size: 1em;
        touch-action: manipulation;
    }
    
    /* Prevent zoom on double tap */
    button,
    .main-clicker,
    .tab-btn {
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    .upgrade-list {
        gap: 12px;
    }
    
    .upgrade-item {
        padding: 15px;
    }
    
    /* Optimize settings for mobile */
    .settings-section {
        padding: 20px 15px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Larger admin panel inputs on mobile */
    .admin-input-group input,
    .admin-input-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Better popup sizing */
    .achievement-popup,
    .milestone-popup {
        width: 90%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    /* Even larger touch targets on small phones */
    .main-clicker {
        width: 160px;
        height: 160px;
        font-size: 5em;
    }
    
    /* Stack stats vertically */
    .header-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        width: 100%;
        justify-content: center;
    }
    
    /* Optimize tab navigation */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .header h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .main-clicker {
        width: 120px;
        height: 120px;
        font-size: 4em;
    }
    
    .game-content {
        flex-direction: row;
        gap: 20px;
    }
    
    .clicker-section {
        flex: 0 0 auto;
    }
}

