/* ==============================================================================
   DINOLIFE THE ISLE EVRIMA - PROFILE FRAMES & TITLES MASTERWORK DESIGN SYSTEM
   World-Class Aesthetics: Glassmorphism, 3D Layers, Particle Halos, Neon Pulses
   ============================================================================== */

/* --- Avatar & Frame Container --- */
.avatar-frame-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    user-select: none;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-frame-wrap img,
.avatar-frame-wrap .avatar-img,
.avatar-frame-wrap .sidebar-user-avatar,
.avatar-frame-wrap .hud-avatar,
.avatar-frame-wrap .mobile-avatar,
.avatar-frame-wrap .floating-chat-avatar,
.avatar-frame-wrap .chat-avatar-clickable,
.avatar-frame-wrap .chat-user-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-frame-wrap:hover {
    transform: scale(1.05);
}

.avatar-frame-wrap:hover img,
.avatar-frame-wrap:hover .avatar-img {
    transform: scale(1.02);
}

/* Sizing presets */
.avatar-frame-xxs { width: 28px; height: 28px; }
.avatar-frame-xs { width: 34px; height: 34px; }
.avatar-frame-sm { width: 44px; height: 44px; }
.avatar-frame-md { width: 58px; height: 58px; }
.avatar-frame-lg { width: 74px; height: 74px; }
.avatar-frame-xl { width: 96px; height: 96px; }
.avatar-frame-xxl { width: 120px; height: 120px; }

/* Frame Overlay Ring - Always transparent background so face is crystal clear! */
.avatar-frame-wrap::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: transparent !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Sizing offsets for small frames */
.avatar-frame-xs.avatar-frame-wrap::before,
.avatar-frame-xxs.avatar-frame-wrap::before {
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
}

/* Sizing offsets for large frames */
.avatar-frame-xl.avatar-frame-wrap::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
}
.avatar-frame-xxl.avatar-frame-wrap::before {
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
}

/* Frame Glow Aura */
.avatar-frame-wrap::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(8px);
    transition: all 0.4s ease;
}

.avatar-frame-xs.avatar-frame-wrap::after,
.avatar-frame-xxs.avatar-frame-wrap::after {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    filter: blur(4px);
}

.avatar-frame-wrap:hover::after {
    opacity: 1;
    filter: blur(14px);
    transform: scale(1.12);
}

/* Default fallback border when no frame-* class is equipped */
.avatar-frame-wrap:not([class*="frame-"]):not([class*="frame_"]) img {
    border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
}

/* ==============================================================================
   1. DEFAULT & STARTER FRAMES
   ============================================================================== */
.frame-default-hatchling::before {
    border: 2px solid #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6), inset 0 0 6px rgba(16, 185, 129, 0.4);
    animation: pulseRing 3s ease-in-out infinite;
}
.frame-default-hatchling::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
}

.frame-default-survivor::before {
    border: 2px solid #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.65), inset 0 0 8px rgba(0, 240, 255, 0.45);
    animation: cyanSheen 3s ease-in-out infinite;
}
.frame-default-survivor::after {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, transparent 70%);
}

.frame-default-amber::before {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7), inset 0 0 8px rgba(245, 158, 11, 0.5);
    animation: amberGlint 3.2s ease-in-out infinite;
}
.frame-default-amber::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, transparent 70%);
}

.frame-default-cyber::before {
    border: 2px solid #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.7), inset 0 0 8px rgba(0, 240, 255, 0.4);
    animation: cyberRingSpin 5s linear infinite;
}
.frame-default-cyber::after {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, transparent 70%);
}

.frame-default-carnivore::before {
    border: 2px solid #f97316;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.75), inset 0 0 8px rgba(239, 68, 68, 0.45);
    animation: carnivorePulse 3s ease-in-out infinite;
}
.frame-default-carnivore::after {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, transparent 70%);
}

.frame-default-herbivore::before {
    border: 2px solid #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.7), inset 0 0 8px rgba(5, 150, 105, 0.45);
    animation: herbivoreBreathe 3.5s ease-in-out infinite;
}
.frame-default-herbivore::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
}

/* ==============================================================================
   2. WORLD-CLASS SHOP FRAMES (3D Layers, Particle Halos, Shimmer & Light Rays)
   ============================================================================== */

/* Rex Gold - Pure Imperial 24K Sovereign */
.frame-shop-rex-gold::before {
    border: 3.5px solid #fbbf24;
    background: transparent !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 1), inset 0 0 12px rgba(255, 255, 255, 0.8), 0 0 50px rgba(245, 158, 11, 0.7);
    animation: goldRotateShine 3s linear infinite;
}
.frame-shop-rex-gold::after {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.75) 0%, rgba(245, 158, 11, 0.4) 45%, transparent 75%);
    animation: pulseAura 2s ease-in-out infinite;
}

/* Cyber Neon - 2077 Dual-Frequency Chromatic Strobe */
.frame-shop-cyber-neon::before {
    border: 2.8px solid #00f0ff;
    box-shadow: 0 0 24px #00f0ff, inset 0 0 12px #ec4899, 0 0 40px rgba(236, 72, 153, 0.85);
    animation: cyberPulse 2.2s linear infinite;
}
.frame-shop-cyber-neon::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7) 0%, rgba(0, 240, 255, 0.5) 50%, transparent 75%);
    animation: pulseAura 1.8s ease-in-out infinite;
}

/* Crimson Blood - Berserker Sanguine */
.frame-shop-crimson-blood::before {
    border: 3px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 1), inset 0 0 14px rgba(255, 255, 255, 0.7), 0 0 50px rgba(185, 28, 28, 0.85);
    animation: bloodFlame 2s ease-in-out infinite;
}
.frame-shop-crimson-blood::after {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(185, 28, 28, 0.45) 50%, transparent 75%);
    animation: pulseAura 2s ease-in-out infinite;
}

/* Abyssal Deinosuchus - Bioluminescent Deep Trench */
.frame-shop-abyssal-deino::before {
    border: 3px solid #06b6d4;
    box-shadow: 0 0 28px rgba(6, 182, 212, 1), inset 0 0 16px rgba(16, 185, 129, 0.75), 0 0 45px rgba(8, 145, 178, 0.75);
    animation: abyssCaustics 3s ease-in-out infinite;
}
.frame-shop-abyssal-deino::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.7) 0%, rgba(16, 185, 129, 0.45) 45%, transparent 75%);
    animation: pulseAura 2.5s ease-in-out infinite;
}

/* Storm Lightning - High Voltage Tesla Arc */
.frame-shop-storm-volt::before {
    border: 3px solid #8b5cf6;
    box-shadow: 0 0 28px rgba(139, 92, 246, 1), inset 0 0 14px rgba(56, 189, 248, 0.8), 0 0 50px rgba(124, 58, 237, 0.85);
    animation: stormVoltPulse 1.4s steps(4) infinite;
}
.frame-shop-storm-volt::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(56, 189, 248, 0.45) 50%, transparent 75%);
    animation: pulseAura 1.8s ease-in-out infinite;
}

/* Solar Flare Phoenix - Stellar Corona Fusion */
.frame-shop-solar-flame::before {
    border: 3.5px solid #ff5500;
    box-shadow: 0 0 35px rgba(255, 85, 0, 1), inset 0 0 18px rgba(255, 230, 120, 0.9), 0 0 60px rgba(255, 170, 0, 0.9);
    animation: solarFlameSpin 2.5s linear infinite;
}
.frame-shop-solar-flame::after {
    background: radial-gradient(circle, rgba(255, 85, 0, 0.9) 0%, rgba(255, 170, 0, 0.55) 45%, transparent 75%);
    animation: pulseAura 1.9s ease-in-out infinite;
}

/* Glacier Frostbite - Absolute Zero Cryo Crystal */
.frame-shop-glacier-frost::before {
    border: 3px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 1), inset 0 0 18px rgba(255, 255, 255, 0.95), 0 0 52px rgba(14, 165, 233, 0.75);
    animation: glacierFrostGlint 2.6s ease-in-out infinite;
}
.frame-shop-glacier-frost::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.75) 0%, rgba(255, 255, 255, 0.5) 40%, transparent 75%);
    animation: pulseAura 2.2s ease-in-out infinite;
}

/* Quantum Hologram Matrix - Sci-Fi Radar Reticle */
.frame-shop-quantum-matrix::before {
    border: 3px dashed #00f0ff;
    box-shadow: 0 0 35px rgba(0, 240, 255, 1), inset 0 0 18px rgba(217, 70, 239, 0.85), 0 0 55px rgba(0, 240, 255, 0.8);
    animation: quantumMatrixRotate 3.2s linear infinite;
}
.frame-shop-quantum-matrix::after {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.7) 0%, rgba(217, 70, 239, 0.55) 50%, transparent 75%);
    animation: pulseAura 1.6s ease-in-out infinite;
}

/* Blood Dragon Ruby - Mythic Smoldering Dragon Stone */
.frame-shop-dragon-ruby::before {
    border: 3.5px solid #e11d48;
    box-shadow: 0 0 40px rgba(225, 29, 72, 1), inset 0 0 20px rgba(255, 255, 255, 0.9), 0 0 65px rgba(244, 63, 94, 0.95);
    animation: dragonRubyPulse 2s ease-in-out infinite;
}
.frame-shop-dragon-ruby::after {
    background: radial-gradient(circle, rgba(225, 29, 72, 0.95) 0%, rgba(244, 63, 94, 0.5) 45%, transparent 75%);
    animation: pulseAura 1.8s ease-in-out infinite;
}

/* Arcane Amethyst - Cosmic Void Crystal */
.frame-shop-amethyst-void::before {
    border: 3px solid #a855f7;
    box-shadow: 0 0 32px rgba(168, 85, 247, 1), inset 0 0 16px rgba(255, 255, 255, 0.8), 0 0 55px rgba(126, 34, 206, 0.9);
    animation: amethystVoidHover 2.6s ease-in-out infinite;
}
.frame-shop-amethyst-void::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.85) 0%, rgba(126, 34, 206, 0.45) 50%, transparent 75%);
    animation: pulseAura 2.2s ease-in-out infinite;
}

/* ==============================================================================
   3. QUEST REWARD FRAMES
   ============================================================================== */
.frame-quest-apex-dominator::before {
    border: 3px solid #a855f7;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.9), inset 0 0 14px rgba(147, 51, 234, 0.65);
    animation: voidPulse 3s ease-in-out infinite;
}
.frame-quest-apex-dominator::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.65) 0%, transparent 70%);
}

.frame-quest-nest-guardian::before {
    border: 2px solid #84cc16;
    box-shadow: 0 0 18px rgba(132, 204, 22, 0.8), inset 0 0 10px rgba(245, 158, 11, 0.45);
}
.frame-quest-nest-guardian::after {
    background: radial-gradient(circle, rgba(132, 204, 22, 0.5) 0%, transparent 70%);
}

.frame-quest-night-prowler::before {
    border: 2px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.85), inset 0 0 10px rgba(30, 27, 75, 0.85);
    animation: shadowMist 4s ease-in-out infinite;
}
.frame-quest-night-prowler::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55) 0%, transparent 70%);
}

.frame-quest-marathoner::before {
    border: 2px dashed #14b8a6;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.85);
    animation: rotateDashed 5s linear infinite;
}
.frame-quest-marathoner::after {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5) 0%, transparent 70%);
}

.frame-quest-prime-elder::before {
    border: 3.5px solid #f8fafc;
    box-shadow: 0 0 30px rgba(248, 250, 252, 1), inset 0 0 18px rgba(0, 240, 255, 0.75), 0 0 50px rgba(0, 240, 255, 0.65);
    animation: elderHalo 2.8s ease-in-out infinite;
}
.frame-quest-prime-elder::after {
    background: radial-gradient(circle, rgba(248, 250, 252, 0.8) 0%, rgba(0, 240, 255, 0.5) 50%, transparent 75%);
    animation: pulseAura 2s ease-in-out infinite;
}

.frame-quest-island-apex::before {
    border: 3px solid #c084fc;
    box-shadow: 0 0 26px rgba(192, 132, 252, 0.95), inset 0 0 14px rgba(147, 51, 234, 0.65);
    animation: apexAuraShine 3s ease-in-out infinite;
}
.frame-quest-island-apex::after {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.7) 0%, transparent 70%);
}

.frame-quest-survival-master::before {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.9), inset 0 0 10px rgba(14, 165, 233, 0.55);
    animation: centurionSheen 3.5s ease-in-out infinite;
}
.frame-quest-survival-master::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, transparent 70%);
}

.frame-quest-night-stalker::before {
    border: 2px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.85), inset 0 0 12px rgba(30, 27, 75, 0.85);
    animation: midnightStalkerMist 3.5s ease-in-out infinite;
}
.frame-quest-night-stalker::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, transparent 70%);
}

/* ==============================================================================
   4. VIP TIERS FRAMES
   ============================================================================== */
.frame-vip-tier1::before {
    border: 2.5px solid #cd7f32;
    box-shadow: 0 0 16px rgba(205, 127, 50, 0.8), inset 0 0 8px rgba(205, 127, 50, 0.4);
}
.frame-vip-tier1::after {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.45) 0%, transparent 70%);
}

.frame-vip-tier2::before {
    border: 2.8px solid #cbd5e1;
    box-shadow: 0 0 20px rgba(203, 213, 225, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.7);
    animation: silverSheen 3s ease-in-out infinite;
}
.frame-vip-tier2::after {
    background: radial-gradient(circle, rgba(203, 213, 225, 0.5) 0%, transparent 70%);
}

.frame-vip-tier3::before {
    border: 3px solid #eab308;
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.95), inset 0 0 12px rgba(255, 255, 255, 0.75);
    animation: goldRotateShine 3.2s linear infinite;
}
.frame-vip-tier3::after {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.6) 0%, transparent 70%);
}

.frame-vip-tier4::before {
    border: 3.2px solid #00f0ff;
    box-shadow: 0 0 28px rgba(0, 240, 255, 1), inset 0 0 14px rgba(255, 255, 255, 0.85);
    animation: diamondPrism 3.5s linear infinite;
}
.frame-vip-tier4::after {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.7) 0%, transparent 70%);
}

.frame-vip-tier5::before {
    border: 3.5px solid #f43f5e;
    box-shadow: 0 0 35px rgba(244, 63, 94, 1), 0 0 16px rgba(0, 240, 255, 0.8), inset 0 0 16px rgba(255, 255, 255, 0.85);
    animation: celestialPulse 2.2s ease-in-out infinite;
}
.frame-vip-tier5::after {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.8) 0%, rgba(0, 240, 255, 0.45) 50%, transparent 75%);
    animation: pulseAura 1.8s ease-in-out infinite;
}

/* ==============================================================================
   5. ADMIN STAFF FRAMES
   ============================================================================== */
.frame-admin-mod::before {
    border: 2.5px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.9), inset 0 0 10px rgba(14, 165, 233, 0.5);
    animation: radarSweep 2.5s ease-in-out infinite;
}
.frame-admin-mod::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.55) 0%, transparent 70%);
}

.frame-admin-staff::before {
    border: 3px solid #ff0055;
    box-shadow: 0 0 28px rgba(255, 0, 85, 1), inset 0 0 14px rgba(255, 123, 0, 0.7);
    animation: adminFlame 1.8s ease-in-out infinite;
}
.frame-admin-staff::after {
    background: radial-gradient(circle, rgba(255, 0, 85, 0.75) 0%, transparent 70%);
}

.frame-admin-head::before {
    border: 3.2px solid #ff7b00;
    box-shadow: 0 0 32px rgba(255, 123, 0, 1), inset 0 0 16px rgba(255, 184, 0, 0.8);
    animation: solarCorona 2.2s ease-in-out infinite;
}
.frame-admin-head::after {
    background: radial-gradient(circle, rgba(255, 123, 0, 0.85) 0%, transparent 70%);
}

.frame-admin-super::before {
    border: 3.5px solid #a855f7;
    background: transparent !important;
    box-shadow: 0 0 35px rgba(168, 85, 247, 1), 0 0 20px rgba(255, 0, 85, 0.9), inset 0 0 8px rgba(255, 0, 85, 0.85);
    animation: singularityVortex 2.8s linear infinite;
}
.frame-admin-super::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.95) 0%, rgba(255, 0, 85, 0.55) 45%, transparent 75%);
}

/* ==============================================================================
   6. HIGH-PERFORMANCE 60FPS KEYFRAME ANIMATIONS
   ============================================================================== */
@keyframes goldRotateShine {
    0% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(18deg) brightness(1.25); }
    100% { filter: hue-rotate(0deg) brightness(1); }
}

@keyframes cyberPulse {
    0% { border-color: #ec4899; box-shadow: 0 0 18px #ec4899, inset 0 0 10px #00f0ff; }
    50% { border-color: #00f0ff; box-shadow: 0 0 26px #00f0ff, inset 0 0 14px #ec4899; }
    100% { border-color: #ec4899; box-shadow: 0 0 18px #ec4899, inset 0 0 10px #00f0ff; }
}

@keyframes bloodFlame {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.025); filter: brightness(1.35); }
}

@keyframes abyssCaustics {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(25deg) brightness(1.2); }
}

@keyframes stormVoltPulse {
    0%, 100% { opacity: 0.9; filter: brightness(1); }
    25% { opacity: 1; filter: brightness(1.4); }
    50% { opacity: 0.82; }
    75% { opacity: 1; filter: brightness(1.65); }
}

@keyframes solarFlameSpin {
    0% { transform: rotate(0deg); filter: brightness(1); }
    50% { filter: brightness(1.35); }
    100% { transform: rotate(360deg); filter: brightness(1); }
}

@keyframes glacierFrostGlint {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)); }
    50% { filter: brightness(1.4) drop-shadow(0 0 18px rgba(255, 255, 255, 0.95)); }
}

@keyframes quantumMatrixRotate {
    0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg) brightness(1.3); }
    100% { transform: rotate(360deg); filter: hue-rotate(360deg); }
}

@keyframes dragonRubyPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.03); filter: brightness(1.35); }
}

@keyframes amethystVoidHover {
    0%, 100% { transform: scale(1); opacity: 0.88; }
    50% { transform: scale(1.02); opacity: 1; filter: brightness(1.25); }
}

@keyframes pulseAura {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.15); opacity: 0.98; }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; filter: brightness(1.2); }
}

@keyframes cyanSheen {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

@keyframes amberGlint {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes cyberRingSpin {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(35deg) brightness(1.25); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes carnivorePulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.3); }
}

@keyframes herbivoreBreathe {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; filter: drop-shadow(0 0 10px #10b981); }
}

@keyframes voidPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.02); opacity: 1; filter: brightness(1.25); }
}

@keyframes rotateDashed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes elderHalo {
    0%, 100% { box-shadow: 0 0 25px rgba(248, 250, 252, 0.9), inset 0 0 16px rgba(0, 240, 255, 0.6); }
    50% { box-shadow: 0 0 38px rgba(0, 240, 255, 1), inset 0 0 22px rgba(248, 250, 252, 0.85); }
}

@keyframes apexAuraShine {
    0%, 100% { filter: brightness(1); box-shadow: 0 0 24px rgba(192, 132, 252, 0.9); }
    50% { filter: brightness(1.3); box-shadow: 0 0 36px rgba(192, 132, 252, 1); }
}

@keyframes centurionSheen {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes midnightStalkerMist {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); filter: brightness(1.2); }
}

@keyframes silverSheen {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

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

@keyframes celestialPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.3); }
}

@keyframes radarSweep {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.3); }
}

@keyframes adminFlame {
    0%, 100% { box-shadow: 0 0 22px rgba(255, 0, 85, 0.9); }
    50% { box-shadow: 0 0 34px rgba(255, 0, 85, 1); }
}

@keyframes solarCorona {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.03); filter: brightness(1.35); }
}

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

/* ==============================================================================
   7. PLAYER TITLE BADGES
   ============================================================================== */
.player-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.player-title-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-title-badge i {
    font-size: 0.85rem;
}

/* Title Shiny Sweep Effect */
.player-title-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: titleShine 4s infinite;
}

@keyframes titleShine {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

/* Title Rarity Themes */
.title-rarity-common {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
}
.title-rarity-rare {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.title-rarity-epic {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}
.title-rarity-legendary {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
}
.title-rarity-mythic {
    color: #d946ef;
    border-color: rgba(217, 70, 239, 0.6);
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.45);
}

/* --- LOCKED ITEM OVERLAY & HOVER TOOLTIP --- */
.item-card-locked {
    position: relative;
    filter: grayscale(0.85) opacity(0.75);
    transition: all 0.3s ease;
}
.item-card-locked:hover {
    filter: grayscale(0.3) opacity(1);
}
.item-card-locked .lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffb800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Universal Unlock Tooltip */
.unlock-req-tooltip {
    position: relative;
    display: inline-block;
}
.unlock-req-tooltip .tooltip-bubble {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(10, 15, 26, 0.96);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 240, 255, 0.2);
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.unlock-req-tooltip .tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(10, 15, 26, 0.96) transparent transparent transparent;
}
.unlock-req-tooltip:hover .tooltip-bubble {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
