* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
    min-height: 100vh;
}

.bg-gradient-main {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.heart-glow {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.8));
    }
}

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

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.timer-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
}

.timer-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    line-height: 1;
}

.timer-label {
    font-size: 0.75rem;
    color: rgba(196, 181, 253, 0.8);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(196, 181, 253, 0.8);
    margin-top: 4px;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.shadow-glow-strong {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.shadow-glow-pink {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.shadow-glow-pink-strong {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

.shadow-glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.milestone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.milestone-card.achieved {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.milestone-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 10px;
}

.milestone-icon.locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-content {
    background: linear-gradient(135deg, #1a0a2e 0%, #0a1628 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.breath-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
    border: 3px solid rgba(168, 85, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 4s ease;
}

.breath-circle.inhale {
    transform: scale(1.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.5));
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.breath-circle.hold {
    transform: scale(1.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(16, 185, 129, 0.5));
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
    transition: all 0.5s ease;
}

.breath-circle.exhale {
    transform: scale(1);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    transition: all 8s ease;
}

.active\:scale-98:active {
    transform: scale(0.98);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall 3s ease-out forwards;
}

/* Mobile optimizations */
@media (max-width: 400px) {
    .timer-value {
        font-size: 1.5rem;
    }
    
    .timer-box {
        padding: 12px 4px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}