/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #667eea 50%, 
        #48cae4 75%, 
        #00b4d8 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Sound Toggle Button */
.sound-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.sound-toggle.muted {
    opacity: 0.5;
    background: rgba(255, 100, 100, 0.9);
}

/* Main content */
main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.generator-section {
    width: 100%;
    text-align: center;
}

.generate-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid white;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.generate-button:active {
    transform: translateY(-1px);
}

.generate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.generate-button:hover::before {
    left: 100%;
}

/* Ideas container */
.ideas-container {
    margin-top: 3rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.idea-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInFromTop 0.5s ease-out;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.idea-content {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.idea-valuation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #ffd700, #ffb347, #ff6b6b);
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid #ffd700;
    animation: valuationPulse 2s ease-in-out infinite;
}

.valuation-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.valuation-amount {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c5530;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    animation: amountGlow 1.5s ease-in-out infinite alternate;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes valuationPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 179, 71, 0.6);
    }
}

@keyframes amountGlow {
    0% {
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1.05);
        text-shadow: 1px 1px 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 179, 71, 0.6);
    }
}

.money-emoji {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 2s ease-out forwards;
    z-index: 10;
}

@keyframes floatUp {
    0% {
        bottom: 20px;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        bottom: 100px;
        opacity: 0;
        transform: rotate(360deg) scale(0.5);
    }
}

/* Net Worth Display */
.net-worth-container {
    margin: 2rem 0;
    perspective: 1000px;
}

.net-worth-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 3px solid #00d4ff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    animation: netWorthGlow 3s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.net-worth-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: sweep 4s linear infinite;
    pointer-events: none;
}

@keyframes netWorthGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
        transform: rotateX(0deg);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.6),
            0 0 60px rgba(0, 212, 255, 0.4),
            0 0 80px rgba(0, 255, 150, 0.2),
            inset 0 0 30px rgba(0, 212, 255, 0.2);
        transform: rotateX(5deg);
    }
}

@keyframes sweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.net-worth-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.net-worth-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.net-worth-icon:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.net-worth-title {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    letter-spacing: 1px;
}

.net-worth-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #2c5530;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: amountPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

@keyframes amountPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
    }
}

.net-worth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.net-worth-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 3s ease-out forwards;
    pointer-events: none;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateY(-50px);
    }
}

@keyframes mini-sparkle {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg) translateY(-20px);
    }
}

/* Billionaire Mode - Extra flashy effects */
.billionaire-mode .net-worth-box {
    animation: billionaireGlow 2s ease-in-out infinite alternate;
    border-color: #ffd700;
}

@keyframes billionaireGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4),
            0 0 90px rgba(255, 165, 0, 0.3),
            inset 0 0 30px rgba(255, 215, 0, 0.2);
        transform: rotateX(0deg) scale(1);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.6),
            0 0 120px rgba(255, 165, 0, 0.4),
            0 0 160px rgba(255, 69, 0, 0.2),
            inset 0 0 40px rgba(255, 215, 0, 0.3);
        transform: rotateX(10deg) scale(1.02);
    }
}

.billionaire-mode .net-worth-amount {
    background: linear-gradient(135deg, #ffd700, #ffb347, #ff6b6b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: billionaireText 2s ease-in-out infinite, gradientShift 3s ease infinite;
}

@keyframes billionaireText {
    0%, 100% { 
        transform: scale(1) rotateY(0deg);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.1) rotateY(5deg);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

/* Legendary Ideas - Black and Gold Theme */
.legendary-idea {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #000000);
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: legendaryGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.legendary-idea::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: legendarySweep 3s linear infinite;
    pointer-events: none;
}

@keyframes legendaryGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 0 20px rgba(255, 215, 0, 0.1);
        transform: scale(1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 165, 0, 0.4),
            0 0 120px rgba(255, 69, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.2);
        transform: scale(1.02);
    }
}

@keyframes legendarySweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.legendary-idea .idea-content {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #ffd700, #ffb347, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: legendaryTextShimmer 3s ease-in-out infinite;
}

@keyframes legendaryTextShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.legendary-valuation {
    background: linear-gradient(135deg, #000000, #1a1a1a, #ffd700, #1a1a1a, #000000);
    border: 2px solid #ffd700;
    animation: legendaryValuationPulse 2s ease-in-out infinite;
}

@keyframes legendaryValuationPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 165, 0, 0.6),
            inset 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.legendary-valuation .valuation-label {
    color: #ffd700;
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.legendary-valuation .valuation-amount {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 1),
        0 0 25px rgba(255, 165, 0, 0.8);
    animation: legendaryAmountGlow 1.5s ease-in-out infinite alternate;
}

@keyframes legendaryAmountGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

.legendary-sparkle {
    position: absolute;
    font-size: 1.8rem;
    pointer-events: none;
    animation: legendarySparkleFloat 4s ease-out forwards;
    z-index: 15;
}

@keyframes legendarySparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1.5) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.8) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateY(-80px);
    }
}

/* Billionaire Mode - Extra flashy effects */
.billionaire-mode .net-worth-box {
    animation: billionaireGlow 2s ease-in-out infinite alternate;
    border-color: #ffd700;
}

@keyframes billionaireGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4),
            0 0 90px rgba(255, 165, 0, 0.3),
            inset 0 0 30px rgba(255, 215, 0, 0.2);
        transform: rotateX(0deg) scale(1);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.6),
            0 0 120px rgba(255, 165, 0, 0.4),
            0 0 160px rgba(255, 69, 0, 0.2),
            inset 0 0 40px rgba(255, 215, 0, 0.3);
        transform: rotateX(10deg) scale(1.02);
    }
}

.billionaire-mode .net-worth-amount {
    background: linear-gradient(135deg, #ffd700, #ffb347, #ff6b6b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: billionaireText 2s ease-in-out infinite, gradientShift 3s ease infinite;
}

@keyframes billionaireText {
    0%, 100% { 
        transform: scale(1) rotateY(0deg);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.1) rotateY(5deg);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

/* Legendary Ideas - Black and Gold Theme */
.legendary-idea {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #000000);
    border: 3px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: legendaryGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.legendary-idea::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: legendarySweep 3s linear infinite;
    pointer-events: none;
}

@keyframes legendaryGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 0 20px rgba(255, 215, 0, 0.1);
        transform: scale(1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 165, 0, 0.4),
            0 0 120px rgba(255, 69, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.2);
        transform: scale(1.02);
    }
}

@keyframes legendarySweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.legendary-idea .idea-content {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #ffd700, #ffb347, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: legendaryTextShimmer 3s ease-in-out infinite;
}

@keyframes legendaryTextShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.legendary-valuation {
    background: linear-gradient(135deg, #000000, #1a1a1a, #ffd700, #1a1a1a, #000000);
    border: 2px solid #ffd700;
    animation: legendaryValuationPulse 2s ease-in-out infinite;
}

@keyframes legendaryValuationPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 165, 0, 0.6),
            inset 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.legendary-valuation .valuation-label {
    color: #ffd700;
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.legendary-valuation .valuation-amount {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 1),
        0 0 25px rgba(255, 165, 0, 0.8);
    animation: legendaryAmountGlow 1.5s ease-in-out infinite alternate;
}

@keyframes legendaryAmountGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

.legendary-sparkle {
    position: absolute;
    font-size: 1.8rem;
    pointer-events: none;
    animation: legendarySparkleFloat 4s ease-out forwards;
    z-index: 15;
}

@keyframes legendarySparkleFloat {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1.5) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.8) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateY(-80px);
    }
}

/* Legendary Alert Popup */
/* Footer */
footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Milestone Alert Popup */
.milestone-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcf7f);
    border: 3px solid #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(255, 107, 107, 0.6),
        0 0 60px rgba(255, 217, 61, 0.4),
        0 0 90px rgba(107, 207, 127, 0.3);
    animation: milestonePopup 4s ease-out forwards;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

@keyframes milestonePopup {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    85% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
        opacity: 0;
    }
}

.milestone-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleBounce 0.6s ease-out 0.2s both;
}

.milestone-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: messageFade 0.8s ease-out 0.4s both;
}

@keyframes titleBounce {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes messageFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Enhanced Dopamine-Inducing Animations */

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.5);
    }
}

@keyframes progress-sweep {
    0% {
        width: 0%;
        opacity: 0.8;
    }
    70% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
        transform: scale(1.02);
    }
}

@keyframes sparkle-burst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

/* Enhanced Net Worth Container */
.net-worth-container {
    animation: pulse-glow 3s ease-in-out infinite;
}

.billionaire-mode {
    animation: pulse-glow 1s ease-in-out infinite !important;
    border: 3px solid #ffd700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 136, 0.1)) !important;
}

/* Enhanced Button Effects */
.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 255, 136, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #00ff88, #ffd700);
}

.generate-btn:active {
    transform: scale(0.98);
    animation: button-success 0.3s ease-out;
}

@keyframes button-success {
    0% { background: linear-gradient(135deg, #00ff88, #ffd700); }
    50% { background: linear-gradient(135deg, #ff6b6b, #ffd700); }
    100% { background: linear-gradient(135deg, #00ff88, #ffd700); }
}

/* Floating Numbers */
.floating-number {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Sparkles */
.legendary-sparkle {
    animation: sparkle-burst 2s ease-out forwards;
}

.sparkle {
    animation: sparkle-burst 1.5s ease-out forwards;
}

/* Progress Flash */
.progress-flash {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .generate-button {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .net-worth-amount {
        font-size: 2.5rem;
    }
    
    .net-worth-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .generate-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .idea-item {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .net-worth-amount {
        font-size: 2rem;
    }
    
    .net-worth-box {
        padding: 1rem;
    }
    
    .net-worth-title {
        font-size: 1rem;
    }
}

.veteran-generator {
    background: linear-gradient(135deg, #00ff88, #ffd700, #ff6b6b) !important;
    animation: veteran-glow 2s ease-in-out infinite;
}

.master-generator {
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #00ff88, #8a2be2) !important;
    animation: master-glow 1.5s ease-in-out infinite;
    border: 3px solid #ffd700 !important;
}

@keyframes veteran-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

@keyframes master-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    33% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
    }
    66% {
        box-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
    }
}

/* Enhanced Sound Toggle Styles */
.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.sound-toggle.muted {
    opacity: 0.5;
    background: rgba(100, 100, 100, 0.9);
}
