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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0F0A1A;
    color: #fff;
    min-height: 100vh;
}

.bg-base {
    background: linear-gradient(135deg, #0F0A1A 0%, #1a0f2e 50%, #0F0A1A 100%);
    background-attachment: fixed;
}

.header-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(139,92,246,0.3);
    }
    50% { 
        text-shadow: 0 0 40px rgba(255,255,255,0.8), 0 0 80px rgba(236,72,153,0.5);
    }
}

.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.progress-gradient {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #3B82F6);
    border-radius: 9999px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.affirmation-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
}

.wheel {
    background: conic-gradient(
        #8B5CF6 0deg 45deg,
        #EC4899 45deg 90deg,
        #3B82F6 90deg 135deg,
        #10B981 135deg 180deg,
        #F59E0B 180deg 225deg,
        #EF4444 225deg 270deg,
        #06B6D4 270deg 315deg,
        #84CC16 315deg 360deg
    );
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(0,0,0,0.3);
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.animate-bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.disco-mode {
    animation: discoHeader 0.5s linear infinite;
}

.disco-bg {
    animation: discoBg 0.3s linear infinite;
}

@keyframes discoHeader {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes discoBg {
    0% { filter: hue-rotate(0deg) saturate(1.5); }
    100% { filter: hue-rotate(360deg) saturate(1.5); }
}

.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .wheel {
        width: 200px !important;
        height: 200px !important;
    }
}