/**
 * SQUIZITO FAN - PREMIUM AVATAR SWAG SYSTEM
 * Version 2.0 - Complete Redesign
 *
 * This system provides premium visual customization for user avatars
 * Includes advanced frames and effects designed to create FOMO and drive purchases
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Frame Colors */
    --gold-crown: #ffd700;
    --fire-primary: #ff4500;
    --fire-secondary: #ff6a00;
    --diamond: #00ffff;
    --diamond-secondary: #66ffff;
    --ice: #87ceeb;
    --ice-glow: #c6e8ff;
    --rainbow-1: #ff0000;
    --rainbow-2: #ff8800;
    --rainbow-3: #ffff00;
    --rainbow-4: #00ff00;
    --rainbow-5: #0088ff;
    --rainbow-6: #8800ff;
    --purple-aura: #9b59b6;
    --purple-glow: #c792ea;
    --electric-green: #00ff00;
    --electric-glow: #66ff66;
    --champion-gold: #c9b037;
    --champion-glow: #f4e5a5;
    --silver-elite: #c0c0c0;
    --silver-glow: #e8e8e8;
    --blood-red: #8b0000;
    --blood-glow: #ff0000;

    /* Effect Colors */
    --glow-gold: rgba(255, 215, 0, 0.8);
    --neon-green: #00ff00;
    --sparkle: #ffd700;

    /* Timing */
    --swag-transition: 0.3s ease;
}

/* ==========================================================================
   BASE AVATAR STRUCTURE
   ========================================================================== */

/* Avatar container with proper layering */
.avatar-with-swag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate; /* Create stacking context */
}

/* The actual emoji/avatar */
.avatar-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    line-height: 1;
    position: relative;
    z-index: 2; /* Above frames */
    user-select: none;
}

/* Size variants */
.avatar-emoji.avatar-sm { font-size: 1.5rem; }
.avatar-emoji.avatar-md { font-size: 2rem; }
.avatar-emoji.avatar-lg { font-size: 3rem; }
.avatar-emoji.avatar-xl { font-size: 4rem; }

/* ==========================================================================
   AVATAR-LARGE PROFILE CONTAINER (120px x 120px)
   ========================================================================== */

/* Base styling for profile page avatar */
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    isolation: isolate;

    /* Default non-swag appearance - subtle but professional */
    background: linear-gradient(135deg, var(--squizito-lime, #AAFF00) 0%, #8bc400 100%);
    border: 3px solid rgba(170, 255, 0, 0.3);
    box-shadow:
        0 0 15px rgba(170, 255, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Remove default styling when any frame is applied */
.avatar-large[class*="frame-"] {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* ==========================================================================
   PREMIUM FRAMES - TIER 1: LEGENDARY
   ========================================================================== */

/* Gold Crown Frame - Ultimate Status Symbol */
.frame-gold-crown {
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 240, 150, 0.15)),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent);
    border: 4px solid #ffd700;
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.3),
        0 0 0 2px #ffed4e,
        0 0 0 6px rgba(255, 215, 0, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        inset 0 -2px 8px rgba(180, 150, 0, 0.3);
    position: relative;
    animation: crown-pulse 3s ease-in-out infinite;
}

.frame-gold-crown::before {
    content: '👑';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: crown-float 2s ease-in-out infinite;
}

@keyframes crown-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.3),
            0 0 0 2px #ffed4e,
            0 0 0 6px rgba(255, 215, 0, 0.3),
            inset 0 2px 8px rgba(255, 255, 255, 0.3),
            inset 0 -2px 8px rgba(180, 150, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 215, 0, 0.8),
            0 0 70px rgba(255, 215, 0, 0.5),
            0 0 0 3px #fff5a0,
            0 0 0 8px rgba(255, 215, 0, 0.5),
            inset 0 2px 12px rgba(255, 255, 255, 0.5),
            inset 0 -2px 12px rgba(180, 150, 0, 0.5);
    }
}

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

/* Legendary Rainbow Frame - Mythic Rarity */
.frame-legendary {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
    border: 5px solid;
    border-radius: 50%;
    position: relative;
    animation: rainbow-border 4s linear infinite;
    box-shadow:
        0 0 30px var(--rainbow-current, #ff0000),
        0 0 60px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.frame-legendary::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--rainbow-1),
        var(--rainbow-2),
        var(--rainbow-3),
        var(--rainbow-4),
        var(--rainbow-5),
        var(--rainbow-6),
        var(--rainbow-1)
    );
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
    animation: rainbow-rotate 4s linear infinite;
}

.frame-legendary::after {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    z-index: 10;
    animation: star-sparkle 1.5s ease-in-out infinite;
}

@keyframes rainbow-border {
    0% {
        border-color: var(--rainbow-1);
        --rainbow-current: var(--rainbow-1);
    }
    16% {
        border-color: var(--rainbow-2);
        --rainbow-current: var(--rainbow-2);
    }
    33% {
        border-color: var(--rainbow-3);
        --rainbow-current: var(--rainbow-3);
    }
    50% {
        border-color: var(--rainbow-4);
        --rainbow-current: var(--rainbow-4);
    }
    66% {
        border-color: var(--rainbow-5);
        --rainbow-current: var(--rainbow-5);
    }
    83% {
        border-color: var(--rainbow-6);
        --rainbow-current: var(--rainbow-6);
    }
    100% {
        border-color: var(--rainbow-1);
        --rainbow-current: var(--rainbow-1);
    }
}

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

@keyframes star-sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.2) rotate(180deg); }
}

/* Champion Frame - Victory Edition */
.frame-champion {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 240, 200, 0.2), transparent),
        linear-gradient(135deg, rgba(201, 176, 55, 0.15), rgba(255, 235, 150, 0.15));
    border: 5px solid var(--champion-gold);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(201, 176, 55, 0.7),
        0 0 60px rgba(201, 176, 55, 0.3),
        inset 0 3px 10px rgba(255, 255, 255, 0.4),
        inset 0 -3px 10px rgba(150, 130, 30, 0.4);
    position: relative;
}

.frame-champion::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--champion-gold),
        var(--champion-glow),
        var(--champion-gold),
        var(--champion-glow),
        var(--champion-gold)
    );
    z-index: -1;
    animation: champion-spin 6s linear infinite;
}

.frame-champion::after {
    content: '🏆';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

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

/* ==========================================================================
   PREMIUM FRAMES - TIER 2: EPIC
   ========================================================================== */

/* Fire Ring Frame - Blazing Hot */
.frame-fire-ring {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.15), transparent),
        linear-gradient(135deg, rgba(255, 100, 0, 0.1), rgba(255, 69, 0, 0.1));
    border: 4px solid var(--fire-primary);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(255, 69, 0, 0.8),
        0 0 50px rgba(255, 100, 0, 0.4),
        inset 0 0 15px rgba(255, 150, 0, 0.2);
    position: relative;
    animation: fire-pulse 1.5s ease-in-out infinite;
}

.frame-fire-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--fire-primary),
        var(--fire-secondary),
        var(--fire-primary),
        var(--fire-secondary),
        var(--fire-primary)
    );
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
    animation: fire-rotate 3s linear infinite;
}

.frame-fire-ring::after {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.3rem;
    z-index: 10;
    animation: fire-flicker-icon 0.5s ease-in-out infinite alternate;
}

@keyframes fire-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 69, 0, 0.8),
            0 0 50px rgba(255, 100, 0, 0.4),
            inset 0 0 15px rgba(255, 150, 0, 0.2);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 69, 0, 1),
            0 0 70px rgba(255, 100, 0, 0.6),
            inset 0 0 20px rgba(255, 150, 0, 0.3);
    }
}

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

@keyframes fire-flicker-icon {
    0% { filter: drop-shadow(0 0 5px rgba(255, 100, 0, 0.8)); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 150, 0, 1)); }
}

/* Diamond Frame - Brilliant Shine */
.frame-diamond {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.2), transparent);
    border: 4px solid var(--diamond);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.8),
        0 0 60px rgba(0, 255, 255, 0.4),
        inset 0 2px 15px rgba(255, 255, 255, 0.5),
        inset 0 -2px 15px rgba(0, 200, 200, 0.3);
    position: relative;
    animation: diamond-sparkle 2s ease-in-out infinite;
}

.frame-diamond::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    animation: diamond-shine 3s linear infinite;
    pointer-events: none;
}

.frame-diamond::after {
    content: '💎';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2rem;
    z-index: 10;
    animation: diamond-rotate 4s ease-in-out infinite;
}

@keyframes diamond-sparkle {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.8),
            0 0 60px rgba(0, 255, 255, 0.4),
            inset 0 2px 15px rgba(255, 255, 255, 0.5),
            inset 0 -2px 15px rgba(0, 200, 200, 0.3);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 1),
            0 0 80px rgba(102, 255, 255, 0.6),
            inset 0 2px 20px rgba(255, 255, 255, 0.7),
            inset 0 -2px 20px rgba(0, 200, 200, 0.5);
    }
}

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

@keyframes diamond-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Ice Crystal Frame - Frozen Perfection */
.frame-ice-crystal {
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 230, 255, 0.2), transparent),
        linear-gradient(135deg, rgba(135, 206, 235, 0.15), rgba(198, 232, 255, 0.15));
    border: 4px solid var(--ice);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(135, 206, 235, 0.8),
        0 0 50px rgba(198, 232, 255, 0.4),
        inset 0 2px 12px rgba(255, 255, 255, 0.4);
    position: relative;
    animation: ice-shimmer 2.5s ease-in-out infinite;
}

.frame-ice-crystal::before {
    content: '❄️';
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 1.2rem;
    z-index: 10;
    animation: ice-spin 4s linear infinite;
}

.frame-ice-crystal::after {
    content: '❄️';
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-size: 1.2rem;
    z-index: 10;
    animation: ice-spin 4s linear infinite reverse;
}

@keyframes ice-shimmer {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(135, 206, 235, 0.8),
            0 0 50px rgba(198, 232, 255, 0.4),
            inset 0 2px 12px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 0 35px rgba(198, 232, 255, 1),
            0 0 70px rgba(230, 245, 255, 0.6),
            inset 0 2px 18px rgba(255, 255, 255, 0.6);
    }
}

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

/* Purple Aura Frame - Mystic Power */
.frame-purple-aura {
    background:
        radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.15), transparent);
    border: 4px solid var(--purple-aura);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(155, 89, 182, 0.8),
        0 0 60px rgba(199, 146, 234, 0.4),
        inset 0 0 15px rgba(199, 146, 234, 0.3);
    position: relative;
    animation: aura-pulse 2s ease-in-out infinite;
}

.frame-purple-aura::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 60%,
        rgba(155, 89, 182, 0.3) 70%,
        transparent 80%
    );
    animation: aura-expand 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes aura-pulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(155, 89, 182, 0.8),
            0 0 60px rgba(199, 146, 234, 0.4),
            inset 0 0 15px rgba(199, 146, 234, 0.3);
    }
    50% {
        box-shadow:
            0 0 40px rgba(155, 89, 182, 1),
            0 0 80px rgba(199, 146, 234, 0.6),
            inset 0 0 20px rgba(199, 146, 234, 0.5);
    }
}

@keyframes aura-expand {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Electric Frame - High Voltage */
.frame-electric {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1), transparent);
    border: 4px solid var(--electric-green);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.9),
        0 0 50px rgba(102, 255, 102, 0.5),
        inset 0 0 12px rgba(200, 255, 200, 0.3);
    position: relative;
    animation: electric-pulse 0.8s ease-in-out infinite;
}

.frame-electric::before {
    content: '⚡';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 1.3rem;
    z-index: 10;
    animation: electric-zap 0.8s steps(2) infinite;
}

@keyframes electric-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(0, 255, 0, 0.9),
            0 0 50px rgba(102, 255, 102, 0.5),
            inset 0 0 12px rgba(200, 255, 200, 0.3);
    }
    50% {
        box-shadow:
            0 0 35px rgba(0, 255, 0, 1),
            0 0 70px rgba(102, 255, 102, 0.7),
            inset 0 0 18px rgba(200, 255, 200, 0.5);
    }
}

@keyframes electric-zap {
    0%, 100% { opacity: 1; transform: translate(0, 0); }
    50% { opacity: 0.6; transform: translate(2px, -2px); }
}

/* ==========================================================================
   PREMIUM FRAMES - TIER 3: RARE
   ========================================================================== */

/* Silver Elite Frame - Refined Class */
.frame-silver-elite {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent),
        linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(232, 232, 232, 0.15));
    border: 4px solid var(--silver-elite);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(192, 192, 192, 0.7),
        0 0 40px rgba(232, 232, 232, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
    position: relative;
    animation: silver-gleam 3s ease-in-out infinite;
}

.frame-silver-elite::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 80%
    );
    animation: silver-shine 4s linear infinite;
}

@keyframes silver-gleam {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(192, 192, 192, 0.7),
            0 0 40px rgba(232, 232, 232, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 0 30px rgba(192, 192, 192, 0.9),
            0 0 60px rgba(232, 232, 232, 0.5),
            inset 0 2px 15px rgba(255, 255, 255, 0.6);
    }
}

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

/* Blood Red Frame - Intimidation */
.frame-blood-red {
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.2), transparent);
    border: 4px solid var(--blood-red);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.7),
        0 0 50px rgba(139, 0, 0, 0.4),
        inset 0 0 12px rgba(255, 50, 50, 0.3);
    position: relative;
    animation: blood-pulse 1.2s ease-in-out infinite;
}

.frame-blood-red::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 60%,
        rgba(255, 0, 0, 0.2) 70%,
        transparent 80%
    );
    animation: blood-throb 1.2s ease-in-out infinite;
}

@keyframes blood-pulse {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(255, 0, 0, 0.7),
            0 0 50px rgba(139, 0, 0, 0.4),
            inset 0 0 12px rgba(255, 50, 50, 0.3);
    }
    50% {
        box-shadow:
            0 0 35px rgba(255, 0, 0, 0.9),
            0 0 70px rgba(139, 0, 0, 0.6),
            inset 0 0 18px rgba(255, 50, 50, 0.5);
    }
}

@keyframes blood-throb {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

/* ==========================================================================
   PREMIUM EFFECTS - Stackable with Frames
   ========================================================================== */

/* Golden Glow Effect */
.effect-glow-gold {
    filter: drop-shadow(0 0 12px var(--glow-gold))
            drop-shadow(0 0 25px var(--glow-gold));
    animation: glow-gold-pulse 2s ease-in-out infinite;
}

@keyframes glow-gold-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px var(--glow-gold))
                drop-shadow(0 0 25px var(--glow-gold));
    }
    50% {
        filter: drop-shadow(0 0 18px var(--glow-gold))
                drop-shadow(0 0 35px var(--glow-gold));
    }
}

/* Rainbow Pulse Effect */
.effect-rainbow-pulse {
    animation: rainbow-hue-rotate 3s linear infinite;
}

@keyframes rainbow-hue-rotate {
    from { filter: hue-rotate(0deg) brightness(1.1); }
    to { filter: hue-rotate(360deg) brightness(1.1); }
}

/* Sparkle Effect - Multiple Particles */
.effect-sparkle {
    position: relative;
}

.effect-sparkle::before,
.effect-sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 1rem;
    z-index: 10;
    animation: sparkle-float 2s ease-in-out infinite;
    pointer-events: none;
}

.effect-sparkle::before {
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

.effect-sparkle::after {
    bottom: 10%;
    left: -5%;
    animation-delay: 1s;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

/* Neon Glow Effect */
.effect-neon-glow {
    filter: drop-shadow(0 0 10px var(--neon-green))
            drop-shadow(0 0 20px var(--neon-green));
    animation: neon-pulse 1.5s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--neon-green))
                drop-shadow(0 0 20px var(--neon-green));
    }
    50% {
        filter: drop-shadow(0 0 15px var(--neon-green))
                drop-shadow(0 0 30px var(--neon-green));
    }
}

/* Fire Effect - Upward Flames */
.effect-fire {
    filter: drop-shadow(0 -5px 12px rgba(255, 100, 0, 0.9))
            drop-shadow(0 -10px 25px rgba(255, 69, 0, 0.6));
    animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0% {
        filter: drop-shadow(0 -5px 12px rgba(255, 100, 0, 0.9))
                drop-shadow(0 -10px 25px rgba(255, 69, 0, 0.6));
    }
    100% {
        filter: drop-shadow(0 -7px 15px rgba(255, 150, 0, 1))
                drop-shadow(0 -12px 30px rgba(255, 100, 0, 0.8));
    }
}

/* Ice Effect - Frozen Aura */
.effect-ice {
    filter: drop-shadow(0 0 15px rgba(135, 206, 235, 0.9))
            drop-shadow(0 0 30px rgba(198, 232, 255, 0.6));
}

/* Shadow Aura Effect - Dark Power */
.effect-shadow-aura {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 40px rgba(100, 0, 200, 0.6));
}

/* Pulse Beat Effect - Heartbeat */
.effect-pulse-beat {
    animation: pulse-beat 1s ease-in-out infinite;
}

@keyframes pulse-beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* Rotating Halo Effect - Divine */
.effect-rotating-halo {
    position: relative;
}

.effect-rotating-halo::before {
    content: '';
    position: absolute;
    inset: -15%;
    border: 3px dashed rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: rotate-halo 10s linear infinite;
    z-index: -1;
}

.effect-rotating-halo::after {
    content: '';
    position: absolute;
    inset: -20%;
    border: 2px dotted rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: rotate-halo 15s linear infinite reverse;
    z-index: -1;
}

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

/* ==========================================================================
   HEADER AVATAR SWAG (Small - 44px)
   ========================================================================== */

/* Ensure header avatar displays swag properly */
.user-avatar-btn {
    position: relative;
    overflow: visible; /* Allow effects to show outside */
}

/* Scale down frame borders for header */
.user-avatar-btn[class*="frame-"] {
    border-width: 3px; /* Thinner for small size */
    background: transparent;
}

/* Adjust pseudo-element sizes for header */
.user-avatar-btn.frame-gold-crown::before {
    font-size: 1.2rem;
    top: -8px;
}

.user-avatar-btn.frame-legendary::after {
    font-size: 0.9rem;
    top: -5px;
    right: -5px;
}

.user-avatar-btn.frame-champion::after {
    font-size: 1rem;
    top: -6px;
}

.user-avatar-btn.frame-fire-ring::after {
    font-size: 0.9rem;
}

.user-avatar-btn.frame-diamond::after {
    font-size: 0.8rem;
}

.user-avatar-btn.frame-ice-crystal::before,
.user-avatar-btn.frame-ice-crystal::after {
    font-size: 0.8rem;
}

.user-avatar-btn.frame-electric::before {
    font-size: 0.9rem;
}

/* Scale down effect particles for header */
.user-avatar-btn.effect-sparkle::before,
.user-avatar-btn.effect-sparkle::after {
    font-size: 0.7rem;
}

/* ==========================================================================
   PROFILE CUSTOMIZATION UI
   ========================================================================== */

.customization-section {
    background: var(--card-bg, #1a1a2e);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.customization-section h2 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
}

/* Preview Area */
.customization-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background:
        radial-gradient(circle at 50% 50%, rgba(170, 255, 0, 0.05), transparent),
        linear-gradient(135deg, rgba(10, 10, 26, 0.9), rgba(26, 26, 46, 0.9));
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.customization-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(170, 255, 0, 0.03) 50px,
            rgba(170, 255, 0, 0.03) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(170, 255, 0, 0.03) 50px,
            rgba(170, 255, 0, 0.03) 51px
        );
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.avatar-preview-large {
    font-size: 5rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Category Sections */
.customization-category {
    margin-bottom: 28px;
}

.customization-category h3 {
    font-size: 1rem;
    color: var(--text-secondary, #aaa);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Item Grids */
.avatar-grid,
.frame-grid,
.effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.avatar-item,
.frame-item,
.effect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.avatar-item::before,
.frame-item::before,
.effect-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(170, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.avatar-item:hover::before,
.frame-item:hover::before,
.effect-item:hover::before {
    opacity: 1;
}

.avatar-item:hover,
.frame-item:hover,
.effect-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-item.selected,
.frame-item.selected,
.effect-item.selected {
    border-color: var(--squizito-lime, #AAFF00);
    background: rgba(170, 255, 0, 0.15);
    box-shadow:
        0 0 0 1px rgba(170, 255, 0, 0.3),
        0 4px 16px rgba(170, 255, 0, 0.2);
}

.avatar-item.locked,
.frame-item.locked,
.effect-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.avatar-item.locked::after,
.frame-item.locked::after,
.effect-item.locked::after {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Item Content */
.avatar-item .emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
    line-height: 1;
}

.frame-item .frame-preview,
.effect-item .effect-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--squizito-lime, #AAFF00) 0%, #8bc400 100%);
}

.avatar-item .label,
.frame-item .label,
.effect-item .label {
    font-size: 0.7rem;
    color: var(--text-secondary, #aaa);
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

/* Premium Badge */
.premium-badge {
    font-size: 0.65rem;
    color: #ffd700;
    margin-top: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.premium-badge::before {
    content: '👑';
    font-size: 0.7rem;
}

/* Tier Indicators */
.tier-legendary { color: #ff00ff; }
.tier-epic { color: #9b59b6; }
.tier-rare { color: #00ffff; }

/* Unequip Button */
.unequip-btn {
    padding: 10px 20px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.unequip-btn:hover {
    background: rgba(255, 50, 50, 0.25);
    border-color: rgba(255, 50, 50, 0.5);
    transform: translateY(-1px);
}

/* Shop Link */
.shop-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--squizito-lime, #AAFF00);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.shop-link:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .avatar-grid,
    .frame-grid,
    .effect-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .avatar-item,
    .frame-item,
    .effect-item {
        padding: 12px 8px;
    }

    .avatar-item .emoji {
        font-size: 2rem;
    }

    .frame-item .frame-preview,
    .effect-item .effect-preview {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .avatar-preview-large {
        font-size: 4rem;
    }

    .customization-preview {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .avatar-grid,
    .frame-grid,
    .effect-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .avatar-preview-large {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .avatar-large,
    .avatar-large *,
    .user-avatar-btn,
    .user-avatar-btn *,
    .avatar-item,
    .frame-item,
    .effect-item {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.avatar-item:focus-visible,
.frame-item:focus-visible,
.effect-item:focus-visible {
    outline: 3px solid var(--squizito-lime, #AAFF00);
    outline-offset: 2px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Disable all swag effects */
.no-swag {
    border: 3px solid rgba(170, 255, 0, 0.3) !important;
    background: linear-gradient(135deg, var(--squizito-lime, #AAFF00) 0%, #8bc400 100%) !important;
    box-shadow: 0 0 15px rgba(170, 255, 0, 0.15) !important;
    animation: none !important;
}

.no-swag::before,
.no-swag::after {
    display: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .avatar-large[class*="frame-"] {
        border-width: 5px;
    }

    .frame-item,
    .effect-item,
    .avatar-item {
        border-width: 3px;
    }
}
