* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #2c1810;
    --bg-secondary: #3d2317;
    --bg-card: #4a2c1a;
    --accent: #d4a574;
    --accent-light: #e8c9a0;
    --text-primary: #f5e6d3;
    --text-secondary: #c4a882;
    --success: #7cb342;
    --danger: #c62828;
    --gold: #ffd700;
    --purple: #9c27b0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.game-container {
    max-width: 500px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--accent-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-secondary);
    font-style: italic;
}

.prestige-display {
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--purple) 0%, #7b1fa2 100%);
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--purple); }
    50% { box-shadow: 0 0 20px var(--purple), 0 0 30px var(--purple); }
}

/* Visual Cafe Area */
.cafe-visual {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cafe-scene {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 50%, #8B4513 50%, #654321 100%);
    border-radius: 10px;
    overflow: hidden;
}

.cafe-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
}

.cafe-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.cafe-items {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-around;
    gap: 5px;
}

.cafe-item {
    font-size: 1.5rem;
    animation: bob 2s ease-in-out infinite;
}

.cafe-item:nth-child(2) { animation-delay: 0.3s; }
.cafe-item:nth-child(3) { animation-delay: 0.6s; }
.cafe-item:nth-child(4) { animation-delay: 0.9s; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.customers {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.customer {
    font-size: 1.8rem;
    animation: walk-in 0.5s ease-out;
}

@keyframes walk-in {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Stats Display */
.stats {
    text-align: center;
    margin-bottom: 20px;
}

.money {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-light);
}

.currency {
    color: var(--success);
}

.per-second {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Coffee Button */
.cafe-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.coffee-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.coffee-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.coffee-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.coffee-icon {
    font-size: 4rem;
    margin-bottom: 5px;
}

.click-value {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Floating Numbers */
.floating-numbers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
}

.floating-number {
    position: absolute;
    color: var(--success);
    font-weight: bold;
    font-size: 1.5rem;
    animation: float-up 1s ease-out forwards;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Prestige Section */
.prestige-section {
    background: linear-gradient(135deg, #4a1a4a 0%, #2d1a2d 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    border: 2px solid var(--purple);
}

.prestige-section h2 {
    color: var(--gold);
    margin-bottom: 10px;
}

.prestige-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.prestige-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.prestige-current, .prestige-potential {
    text-align: center;
}

.prestige-current span, .prestige-potential span {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.prestige-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--gold) 0%, #ffb300 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prestige-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.prestige-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

/* Upgrades Section */
.upgrades-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.upgrades-section h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.upgrade-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.upgrade-item:hover {
    border-color: var(--accent);
}

.upgrade-item.affordable {
    border-color: var(--success);
}

.upgrade-item.affordable:hover {
    background: rgba(124, 179, 66, 0.1);
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-icon {
    font-size: 1.3rem;
}

.upgrade-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.upgrade-owned {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 3px;
}

.upgrade-buy {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 80px;
}

.upgrade-buy:hover:not(:disabled) {
    background: var(--accent);
    color: var(--bg-primary);
}

.upgrade-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Achievements Section */
.achievements-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.achievements-section h2 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

#achievement-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.achievement-item {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.achievement-item.locked {
    filter: grayscale(100%);
    opacity: 0.5;
}

.achievement-item.unlocked {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.achievement-item:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 1.8rem;
}

.achievement-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 8px 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

.achievement-item:hover .achievement-tooltip {
    opacity: 1;
}

.achievement-tooltip-name {
    font-weight: bold;
    color: var(--gold);
    font-size: 0.85rem;
}

.achievement-tooltip-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 20px;
    right: -400px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    transition: right 0.5s ease;
}

.achievement-popup.show {
    right: 20px;
}

.achievement-popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-popup-icon {
    font-size: 2.5rem;
}

.achievement-popup-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.achievement-popup-name {
    font-weight: bold;
    color: var(--gold);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stats-section h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
    color: var(--accent-light);
}

/* Footer */
footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sound-btn, .save-btn, .reset-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sound-btn {
    background: var(--accent);
    color: var(--bg-primary);
}

.sound-btn:hover {
    background: var(--accent-light);
}

.sound-btn.muted {
    background: #666;
    color: #999;
}

.save-btn {
    background: var(--success);
    color: white;
}

.save-btn:hover {
    background: #689f38;
}

.reset-btn {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.reset-btn:hover {
    background: var(--danger);
    color: white;
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-secondary);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links span {
    margin: 0 8px;
}

/* Shake animation for insufficient funds */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* Pulse animation for new affordable upgrades */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(124, 179, 66, 0); }
}

.pulse {
    animation: pulse 1s ease infinite;
}

/* Prestige animation */
@keyframes prestige-flash {
    0% { filter: brightness(1); }
    50% { filter: brightness(2); }
    100% { filter: brightness(1); }
}

.prestige-flash {
    animation: prestige-flash 0.5s ease;
}

/* Golden Customer */
.golden-customer {
    position: fixed;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow:
        0 0 20px #ffd700,
        0 0 40px #ffd700,
        0 0 60px #ff8c00;
    animation: golden-pulse 0.5s ease-in-out infinite, golden-float 2s ease-in-out infinite;
    transition: transform 0.1s ease;
}

.golden-customer:hover {
    transform: scale(1.1);
}

.golden-customer:active {
    transform: scale(0.9);
}

.golden-customer.show {
    display: flex;
}

.golden-emoji {
    font-size: 2.5rem;
    animation: golden-spin 2s linear infinite;
}

.golden-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: #4a2c1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes golden-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px #ffd700,
            0 0 40px #ffd700,
            0 0 60px #ff8c00;
    }
    50% {
        box-shadow:
            0 0 30px #ffd700,
            0 0 60px #ffd700,
            0 0 90px #ff8c00;
    }
}

@keyframes golden-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes golden-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Golden countdown bar */
.golden-customer::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: #4a2c1a;
    border-radius: 3px;
    overflow: hidden;
}

.golden-customer::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: #ff4444;
    border-radius: 3px;
    z-index: 1;
    animation: golden-countdown 10s linear forwards;
}

@keyframes golden-countdown {
    from { width: 80%; }
    to { width: 0%; }
}

/* Golden Bonus Popup */
.golden-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.golden-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.golden-popup-icon {
    font-size: 3rem;
}

#golden-popup-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #4a2c1a;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Golden particles effect */
@keyframes golden-particle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

.golden-particle {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 1000;
    animation: golden-particle 1s ease-out forwards;
}

/* ==========================================
   PREMIUM STYLES
   ========================================== */

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #4a2c1a;
    font-size: 0.5em;
    padding: 4px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: bold;
    animation: premium-glow 2s ease-in-out infinite;
}

@keyframes premium-glow {
    0%, 100% { box-shadow: 0 0 5px #ffd700; }
    50% { box-shadow: 0 0 20px #ffd700, 0 0 30px #ff8c00; }
}

/* Auto-click indicator */
.auto-click-indicator {
    color: var(--gold);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, #4a3f1a 0%, #2d2810 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.premium-section h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

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

.premium-feature {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-bonus {
    color: var(--gold);
    font-size: 0.9rem;
}

.theme-select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--accent);
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

.auto-click-toggle {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 5px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.auto-click-toggle.active {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}

/* Get Premium Button */
.get-premium-section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.get-premium-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.get-premium-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
}

.premium-btn-icon {
    font-size: 2rem;
}

.premium-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #4a2c1a;
}

.premium-btn-text strong {
    font-size: 1.1rem;
}

.premium-btn-text small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.redeem-code-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.redeem-code-btn:hover {
    color: var(--text-primary);
}

/* Premium Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 2px solid var(--gold);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
}

.premium-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.benefit {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.premium-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-tag {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.buy-premium-btn {
    display: block;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #4a2c1a;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.buy-premium-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
}

.redeem-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--bg-secondary);
}

.redeem-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.redeem-input-group {
    display: flex;
    gap: 10px;
}

.redeem-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}

.redeem-input::placeholder {
    color: var(--text-secondary);
}

.redeem-submit {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--bg-primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redeem-submit:hover {
    background: var(--accent-light);
}

.redeem-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Premium Activated Popup */
.premium-activated {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.premium-activated.show {
    display: flex;
}

.premium-activated-content {
    text-align: center;
    animation: premium-unlock 0.5s ease-out;
}

@keyframes premium-unlock {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.premium-activated-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    animation: crown-bounce 0.5s ease-out 0.3s;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.premium-activated h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 10px;
}

.premium-activated p {
    color: var(--text-primary);
}

/* VIP Customer (Premium) */
.vip-customer {
    position: fixed;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #9c27b0 0%, #6a1b9a 100%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow:
        0 0 20px #9c27b0,
        0 0 40px #9c27b0,
        0 0 60px #6a1b9a;
    animation: vip-pulse 0.5s ease-in-out infinite, golden-float 2s ease-in-out infinite;
    transition: transform 0.1s ease;
}

.vip-customer:hover {
    transform: scale(1.1);
}

.vip-customer:active {
    transform: scale(0.9);
}

.vip-customer.show {
    display: flex;
}

.vip-emoji {
    font-size: 2.5rem;
    animation: golden-spin 3s linear infinite;
}

.vip-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes vip-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px #9c27b0,
            0 0 40px #9c27b0,
            0 0 60px #6a1b9a;
    }
    50% {
        box-shadow:
            0 0 30px #9c27b0,
            0 0 60px #9c27b0,
            0 0 90px #6a1b9a;
    }
}

/* ==========================================
   THEME STYLES
   ========================================== */

/* Winter Theme */
body.theme-winter {
    --bg-primary: #1a2a3a;
    --bg-secondary: #243447;
    --bg-card: #2d4055;
    --accent: #87CEEB;
    --accent-light: #b0e0e6;
}

body.theme-winter .cafe-scene {
    background: linear-gradient(180deg, #1a2a3a 0%, #4a6fa5 30%, #ffffff 50%, #e8e8e8 100%);
}

body.theme-winter .cafe-counter::before {
    content: '❄️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Neon Theme */
body.theme-neon {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent: #ff00ff;
    --accent-light: #00ffff;
    --text-primary: #ffffff;
    --gold: #ff00ff;
}

body.theme-neon .cafe-scene {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

body.theme-neon .coffee-button {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
}

body.theme-neon .cafe-visual {
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

/* Zen Theme */
body.theme-zen {
    --bg-primary: #2d2d2d;
    --bg-secondary: #3d3d3d;
    --bg-card: #4a4a4a;
    --accent: #90EE90;
    --accent-light: #98FB98;
    --gold: #FFB7C5;
}

body.theme-zen .cafe-scene {
    background: linear-gradient(180deg, #87CEEB 0%, #e8f5e9 40%, #a5d6a7 50%, #2e7d32 100%);
}

body.theme-zen .coffee-button {
    border-color: #90EE90;
}

body.theme-zen .cafe-counter {
    font-size: 2.5rem;
}

body.theme-zen .cafe-counter::after {
    content: '🌸';
    position: absolute;
    top: -15px;
    right: -15px;
}
