/* ============================================================
   LA.NOIRE V34 - VIP & Donator Profile Styling & Particles
   Exclusive for Donators, Admins, and Root
   ============================================================ */

.vip-username-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: visible;
}

/* Base Particle Overlay Layer */
.vip-particle-layer {
    position: absolute;
    inset: -6px -12px;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}

/* 1. SPARKLES & GLINTS (Direct Replica of User Photo) */
.vip-glint {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff 40%, rgba(0, 229, 255, 0.9) 70%, transparent 100%);
    border-radius: 50%;
    animation: vipSparkleAnim 2.2s infinite ease-in-out;
}
.vip-glint::before,
.vip-glint::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.vip-glint::before {
    width: 22px;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.95), #ffffff, rgba(0, 229, 255, 0.95), transparent);
    box-shadow: 0 0 6px #00e5ff;
}
.vip-glint::after {
    width: 2.5px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.95), #ffffff, rgba(0, 229, 255, 0.95), transparent);
    box-shadow: 0 0 6px #00e5ff;
}

/* Positions for Sparkles matching the image */
.vip-glint.g-1 {
    left: 54%;
    top: 36%;
    animation-delay: 0s;
}
.vip-glint.g-2 {
    left: 10%;
    bottom: -4px;
    animation-delay: 0.75s;
    transform: scale(0.85);
}
.vip-glint.g-3 {
    right: 8%;
    top: -6px;
    animation-delay: 1.5s;
    transform: scale(0.9);
}
.vip-red-dot {
    position: absolute;
    left: 32%;
    top: -4px;
    width: 4px;
    height: 4px;
    background: #ff1e38;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff1e38, 0 0 12px #ff4d64;
    animation: vipRedDotFloat 1.8s infinite ease-in-out;
}

@keyframes vipSparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
    40%, 65% { opacity: 1; transform: scale(1.15) rotate(15deg); filter: drop-shadow(0 0 8px #00e5ff); }
    50% { opacity: 1; transform: scale(1.35) rotate(25deg); filter: drop-shadow(0 0 12px #ffffff); }
}

@keyframes vipRedDotFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0px) scale(0.7); }
    50% { opacity: 1; transform: translateY(-4px) scale(1.3); }
}

/* 2. FIRE EMBERS */
.vip-ember {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ff5722;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff9800;
    animation: vipEmberRise 1.8s infinite ease-in;
}
.vip-ember.e-1 { left: 18%; animation-delay: 0s; }
.vip-ember.e-2 { left: 52%; animation-delay: 0.6s; background: #ffeb3b; box-shadow: 0 0 10px #ffeb3b; }
.vip-ember.e-3 { left: 82%; animation-delay: 1.2s; background: #ff3d00; }
@keyframes vipEmberRise {
    0% { opacity: 0; transform: translateY(8px) scale(0.5); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-24px) scale(1.3); }
}

/* 3. COSMIC STARS */
.vip-star-particle {
    position: absolute;
    font-size: 11px;
    line-height: 1;
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
    animation: vipStarSpin 2.2s infinite ease-in-out;
}
.vip-star-particle.s-1 { left: 14%; top: -8px; animation-delay: 0.1s; }
.vip-star-particle.s-2 { left: 62%; top: -10px; animation-delay: 0.9s; }
.vip-star-particle.s-3 { right: 8%; bottom: -6px; animation-delay: 1.6s; font-size: 9px; }
@keyframes vipStarSpin {
    0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* 4. ELECTRIC BOLTS */
.vip-bolt-particle {
    position: absolute;
    font-size: 13px;
    line-height: 1;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff, 0 0 16px #ffffff;
    animation: vipBoltFlicker 1.8s infinite ease-in-out;
}
.vip-bolt-particle.b-1 { left: 24%; top: -10px; animation-delay: 0.2s; }
.vip-bolt-particle.b-2 { right: 22%; top: 30%; animation-delay: 1.1s; }
@keyframes vipBoltFlicker {
    0%, 88%, 100% { opacity: 0; transform: scale(0.5); }
    90%, 96% { opacity: 1; transform: scale(1.35) rotate(-10deg); }
    93% { opacity: 0.3; }
}

/* 5. HEARTS */
.vip-heart-particle {
    position: absolute;
    font-size: 12px;
    line-height: 1;
    color: #ff4081;
    text-shadow: 0 0 8px #ff80ab;
    animation: vipHeartFloat 2.4s infinite ease-out;
}
.vip-heart-particle.h-1 { left: 22%; animation-delay: 0s; }
.vip-heart-particle.h-2 { left: 74%; animation-delay: 1.2s; }
@keyframes vipHeartFloat {
    0% { opacity: 0; transform: translateY(6px) scale(0.5); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-22px) scale(1.3); }
}

/* 6. SNOW */
.vip-snow-particle {
    position: absolute;
    font-size: 12px;
    line-height: 1;
    color: #b3e5fc;
    text-shadow: 0 0 8px #81d4fa;
    animation: vipSnowFallAnim 2.8s infinite linear;
}
.vip-snow-particle.sn-1 { left: 18%; animation-delay: 0s; }
.vip-snow-particle.sn-2 { left: 68%; animation-delay: 1.4s; }
@keyframes vipSnowFallAnim {
    0% { opacity: 0; transform: translateY(-14px) rotate(0deg); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px) rotate(180deg); }
}

/* 7. NEON PULSE */
.vip-particle-neon-glow {
    animation: vipNeonPulse 2s infinite alternate ease-in-out;
}
@keyframes vipNeonPulse {
    0% { filter: drop-shadow(0 0 4px currentColor); }
    100% { filter: drop-shadow(0 0 16px currentColor) drop-shadow(0 0 26px currentColor); }
}

/* Special Color Gradients */
.vip-color-gold-aura {
    background: linear-gradient(135deg, #fff3a0 0%, #ffd700 50%, #ff9900 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
    animation: vipGoldGlow 3s ease-in-out infinite alternate;
}
@keyframes vipGoldGlow {
    from { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4)); }
    to { filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.9)); }
}

.vip-color-ice-frost {
    background: linear-gradient(135deg, #ffffff 0%, #80d8ff 50%, #00b0ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.8));
}

/* Modal Selector Card Styles */
.vip-color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    position: relative;
}
.vip-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
}
input[type="radio"]:checked + .vip-color-swatch {
    border-color: #00e5ff !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.8) !important;
    transform: scale(1.12);
}
input[type="radio"]:checked + .vip-color-swatch::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 4px #000, 0 0 8px #000;
}

.vip-particle-card {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 105px;
    position: relative;
}
.vip-particle-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(0,229,255,0.4);
    transform: translateY(-2px);
}
input[type="radio"]:checked + .vip-particle-card {
    border-color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.12) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4) !important;
}
input[type="radio"]:checked + .vip-particle-card .particle-label {
    color: #00e5ff !important;
    font-weight: 700;
}

/* Locked Overlay Effect for Regular Users */
.vip-locked-section {
    position: relative;
    user-select: none;
}
.vip-locked-section .vip-options-container {
    opacity: 0.38;
    filter: grayscale(0.5);
    pointer-events: none;
}
.vip-lock-badge-pill {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffd54f;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}
