/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(22, 11, 26, 0.8);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff69b4, #ffd700);
    border-radius: 999px;
}

/* Touch Action setup */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Safe Area Inset Support */
.pt-calc-safe {
    padding-top: max(0.5rem, env(safe-area-inset-top));
}
.pb-calc-safe {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Custom Animations */
@keyframes vanityGlow {
    0%, 100% {
        box-shadow: 0 0 12px #ffd700, 0 0 22px #ff69b4;
        opacity: 0.95;
    }
    50% {
        box-shadow: 0 0 20px #ffd700, 0 0 35px #ff69b4;
        opacity: 1;
    }
}

.vanity-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 30%, #ffd700 80%, #ff8c00 100%);
    box-shadow: 0 0 10px #ffd700, 0 0 18px rgba(255, 215, 0, 0.8);
    animation: vanityGlow 3s infinite ease-in-out;
}

/* Active Girl Badge Styling */
.girl-badge.active {
    background: linear-gradient(135deg, #ff69b4 0%, #9c27b0 100%);
    opacity: 1 !important;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
    border-color: #ffd700;
}

/* VIP Button Shimmer Animation */
@keyframes vipShimmer {
    0% {
        box-shadow: 0 0 8px #ffd700, 0 0 18px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 16px #ffd700, 0 0 28px rgba(255, 215, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 8px #ffd700, 0 0 18px rgba(255, 215, 0, 0.5);
    }
}

.vip-glow-btn {
    animation: vipShimmer 2.5s infinite ease-in-out;
}

/* Active Tool Tab */
.tool-tab.active {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.4) 0%, rgba(156, 39, 176, 0.5) 100%);
    color: #ffffff !important;
    border: 1px solid #ff69b4;
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.3);
}

/* Palette Swatch Hover & Select */
.palette-card {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.palette-card:hover {
    transform: translateY(-3px) scale(1.05);
}
.palette-card.selected {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 20px #ffd700, 0 0 10px #ff69b4;
    border-color: #ffd700 !important;
}

/* Photo Frame Buttons Active State */
.photo-frame-btn.active {
    background: linear-gradient(135deg, #d81b60 0%, #8e24aa 100%) !important;
    border-color: #ffd700 !important;
    color: #ffffff !important;
}

/* Glitter Pulse */
@keyframes sparklePulse {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0.6; }
}

.sparkle-icon {
    animation: sparklePulse 2s infinite linear;
}