/* ============================================================
   PIXFORGE PROFILE COSMETICS
   Avatar Borders & Profile Page Effects (9 Themed Sets)
   ============================================================ */

/* ---------- Avatar Border Wrapper ---------- */
.avatar-border-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-border-wrap > img {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 !important;
    border-radius: 50%;
}

/* ---------- Shared Avatar Border Keyframes ---------- */
@keyframes cherryBlossomAuraPulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(255, 224, 238, 0.9),
            0 0 14px rgba(255, 138, 186, 0.72),
            0 0 28px rgba(244, 114, 182, 0.35);
    }
    50% {
        box-shadow:
            0 0 0 2.5px rgba(255, 240, 247, 0.98),
            0 0 20px rgba(255, 158, 202, 0.88),
            0 0 36px rgba(244, 114, 182, 0.5);
    }
}

@keyframes cherryBlossomAvatarPetalsFall {
    0% { transform: translate3d(-4px, -22%, 0); opacity: 0; }
    20% { opacity: 0.78; }
    80% { opacity: 0.58; }
    100% { transform: translate3d(10px, 34%, 0); opacity: 0; }
}

@keyframes borderParticlesRise {
    0% { transform: translate3d(0, 24%, 0); opacity: 0; }
    22% { opacity: 0.82; }
    80% { opacity: 0.55; }
    100% { transform: translate3d(6px, -30%, 0); opacity: 0; }
}

@keyframes borderSparklePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.97); }
    50% { opacity: 0.95; transform: scale(1.03); }
}

/* ============================================================
   1. CHERRY BLOSSOM AVATAR BORDER
   ============================================================ */
.avatar-border-cherry-blossom {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 20deg, #ffe4f0, #ff9ec7, #f472b6, #fff1f7, #fbcfe8, #ec4899, #ffb7d5, #ffe4f0);
    animation: cherryBlossomAuraPulse 4.2s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-cherry-blossom::before {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fff2f8'/%3E%3Cstop offset='100%25' stop-color='%23ff9ec7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M22 28C32 13 52 7 72 11c13 2.5 23 9 30 20' fill='none' stroke='%236d3142' stroke-width='2.4' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M96 92c-10 13-27 20-44 18-13-1.5-24-8-32-18' fill='none' stroke='%236d3142' stroke-width='2.1' stroke-linecap='round' opacity='.78'/%3E%3Cg transform='translate(92 25) scale(.62)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='3' fill='%23fff5fa'/%3E%3Ccircle r='1.5' fill='%23fb7185'/%3E%3C/g%3E%3Cg transform='translate(75 13) scale(.42) rotate(24)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1.1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23fff5fa'/%3E%3C/g%3E%3Cg transform='translate(26 95) scale(.54) rotate(-18)'%3E%3Cg fill='url(%23p)' stroke='%23f472b6' stroke-width='1'%3E%3Cpath d='M0-14c3 3 4 7 2 10L0 0l-2-4c-2-3-1-7 2-10z'/%3E%3Cpath d='M13-4c-2 4-5 6-9 5L0 0l3-3c3-3 6-3 10-1z'/%3E%3Cpath d='M8 11c-4-.5-7-3-8-6L0 0l4 2c3 1.5 4 5 4 9z'/%3E%3Cpath d='M-8 11c0-4 1-7.5 4-9L0 0l0 5c-1 3-4 5.5-8 6z'/%3E%3Cpath d='M-13-4c4-2 7-2 10 1L0 0l-4 1c-4 1-7-1-9-5z'/%3E%3C/g%3E%3Ccircle r='3' fill='%23fff5fa'/%3E%3Ccircle r='1.4' fill='%23fb7185'/%3E%3C/g%3E%3Ccircle cx='34' cy='18' r='2.8' fill='%23ffb7d5' stroke='%23f472b6' stroke-width='.9'/%3E%3Ccircle cx='103' cy='40' r='2.3' fill='%23ffd6e8' stroke='%23f472b6' stroke-width='.8'/%3E%3Ccircle cx='88' cy='101' r='2.5' fill='%23ffb7d5' stroke='%23f472b6' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.7));
}

.avatar-border-cherry-blossom::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M24 14c-2.6 1.8-4.5 4.6-4.2 7.4.3 2.3 2.1 3.7 4.2 4 2.1-.3 3.9-1.7 4.2-4 .3-2.8-1.6-5.6-4.2-7.4z' fill='%23ffd6e8' opacity='.85' transform='rotate(20 24 20)'/%3E%3Cpath d='M96 34c-2 1.4-3.5 3.6-3.2 5.8.2 1.8 1.6 2.9 3.2 3.1 1.6-.2 3-1.3 3.2-3.1.3-2.2-1.2-4.4-3.2-5.8z' fill='%23ffb7d5' opacity='.78' transform='rotate(-24 96 39)'/%3E%3Cpath d='M42 84c-1.8 1.3-3.1 3.2-2.9 5.2.2 1.6 1.5 2.6 2.9 2.8 1.4-.2 2.7-1.2 2.9-2.8.2-2-1.1-3.9-2.9-5.2z' fill='%23ffe4f0' opacity='.72' transform='rotate(16 42 88)'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cherryBlossomAvatarPetalsFall 5.2s linear infinite;
}

img.avatar-border-cherry-blossom {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff9ec7, #fff0f7, #f472b6, #fbcfe8) !important;
    border: 2px solid rgba(255, 224, 238, 0.92) !important;
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.45), 0 0 10px rgba(255, 138, 186, 0.8), 0 0 20px rgba(244, 114, 182, 0.45) !important;
    animation: cherryBlossomAuraPulse 4.2s ease-in-out infinite;
}

/* ============================================================
   2. CYBERPUNK NEON AVATAR BORDER
   ============================================================ */
@keyframes cyberpunkBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.88), 0 0 14px rgba(0, 240, 255, 0.72), 0 0 26px rgba(255, 43, 214, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(255, 43, 214, 0.92), 0 0 18px rgba(255, 43, 214, 0.75), 0 0 32px rgba(0, 240, 255, 0.55); }
}

.avatar-border-cyberpunk {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00f0ff, #0ea5e9, #ff2bd6, #7c3aed, #00f0ff);
    animation: cyberpunkBorderPulse 3.2s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-cyberpunk::before {
    content: "";
    position: absolute;
    inset: -9%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='54' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-dasharray='26 10 8 10' opacity='.9'/%3E%3Ccircle cx='60' cy='60' r='49' fill='none' stroke='%23ff2bd6' stroke-width='1.5' stroke-dasharray='14 22' opacity='.85'/%3E%3Cpath d='M60 2v8M60 110v8M2 60h8M110 60h8' stroke='%2300f0ff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='98' cy='22' r='3' fill='%23ff2bd6'/%3E%3Ccircle cx='22' cy='98' r='3' fill='%2300f0ff'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.8));
}

.avatar-border-cyberpunk::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect x='18' y='24' width='2.5' height='10' rx='1' fill='%2300f0ff'/%3E%3Crect x='98' y='72' width='2.5' height='10' rx='1' fill='%23ff2bd6'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 3.6s linear infinite;
}

img.avatar-border-cyberpunk {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00f0ff, #ff2bd6, #00f0ff) !important;
    border: 2px solid rgba(0, 240, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.82), 0 0 20px rgba(255, 43, 214, 0.5) !important;
    animation: cyberpunkBorderPulse 3.2s ease-in-out infinite;
}

/* ============================================================
   3. STARLIGHT GALAXY AVATAR BORDER
   ============================================================ */
@keyframes starlightBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.88), 0 0 16px rgba(139, 92, 246, 0.72), 0 0 28px rgba(99, 102, 241, 0.42); }
    50% { box-shadow: 0 0 0 2.5px rgba(224, 231, 255, 0.96), 0 0 22px rgba(167, 139, 250, 0.85), 0 0 36px rgba(139, 92, 246, 0.52); }
}

.avatar-border-starlight {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 40deg, #312e81, #818cf8, #e0e7ff, #a78bfa, #4f46e5, #c4b5fd, #312e81);
    animation: starlightBorderPulse 4.4s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-starlight::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='53' fill='none' stroke='%23c4b5fd' stroke-width='1.3' stroke-dasharray='4 6' opacity='.72'/%3E%3Cpath d='M95 16c-5 1-8 6-7 11 1 5 6 8 11 7-4 3-10 2-13-2-3-4-2-10 2-13 2-2 5-3 7-3z' fill='%23fde68a'/%3E%3Cpath d='M24 92l2.5 6.5L33 101l-6.5 2.5L24 110l-2.5-6.5L15 101l6.5-2.5z' fill='%23e0e7ff'/%3E%3Cpath d='M22 18l1.6 4.4L28 24l-4.4 1.6L22 30l-1.6-4.4L16 24l4.4-1.6z' fill='%23c4b5fd'/%3E%3Cpath d='M98 90l1.4 3.6 3.6 1.4-3.6 1.4-1.4 3.6-1.4-3.6-3.6-1.4 3.6-1.4z' fill='%23fde68a'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.85));
}

.avatar-border-starlight::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='18' cy='46' r='2' fill='%23fff'/%3E%3Ccircle cx='104' cy='64' r='2.2' fill='%23fde68a'/%3E%3Ccircle cx='58' cy='8' r='1.8' fill='%23e0e7ff'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3s ease-in-out infinite;
}

img.avatar-border-starlight {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6366f1, #e0e7ff, #a78bfa, #4f46e5) !important;
    border: 2px solid rgba(224, 231, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.85), 0 0 20px rgba(99, 102, 241, 0.5) !important;
    animation: starlightBorderPulse 4.4s ease-in-out infinite;
}

/* ============================================================
   4. EMBER PHOENIX AVATAR BORDER
   ============================================================ */
@keyframes emberBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.9), 0 0 16px rgba(249, 115, 22, 0.82), 0 0 28px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 2.5px rgba(254, 240, 138, 0.96), 0 0 22px rgba(251, 146, 60, 0.92), 0 0 38px rgba(239, 68, 68, 0.62); }
}

.avatar-border-ember-phoenix {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #dc2626, #f97316, #fde047, #fb923c, #b91c1c, #facc15, #dc2626);
    animation: emberBorderPulse 3.4s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-ember-phoenix::before {
    content: "";
    position: absolute;
    inset: -11%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='fl' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ef4444'/%3E%3Cstop offset='55%25' stop-color='%23f97316'/%3E%3Cstop offset='100%25' stop-color='%23fef08a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M86 16c10 4 16 14 14 24-4-7-10-10-16-9 6-5 6-10 2-15z' fill='url(%23fl)'/%3E%3Cpath d='M34 104c-10-4-16-14-14-24 4 7 10 10 16 9-6 5-6 10-2 15z' fill='url(%23fl)'/%3E%3Cpath d='M18 38c2-11 10-20 21-22-6 5-9 11-8 17-5-4-9-2-13 5z' fill='url(%23fl)' opacity='.9'/%3E%3Cpath d='M102 82c-2 11-10 20-21 22 6-5 9-11 8-17 5 4 9 2 13-5z' fill='url(%23fl)' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.85));
}

.avatar-border-ember-phoenix::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='24' cy='74' r='2.4' fill='%23fde047'/%3E%3Ccircle cx='96' cy='46' r='2.2' fill='%23fb923c'/%3E%3Ccircle cx='66' cy='96' r='2' fill='%23ef4444'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 3.8s linear infinite;
}

img.avatar-border-ember-phoenix {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #dc2626, #fde047, #f97316, #b91c1c) !important;
    border: 2px solid rgba(254, 215, 170, 0.92) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.85), 0 0 20px rgba(220, 38, 38, 0.55) !important;
    animation: emberBorderPulse 3.4s ease-in-out infinite;
}

/* ============================================================
   5. AURORA FROST AVATAR BORDER
   ============================================================ */
@keyframes auroraBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(186, 230, 253, 0.9), 0 0 16px rgba(56, 189, 248, 0.78), 0 0 28px rgba(45, 212, 191, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(204, 251, 241, 0.96), 0 0 22px rgba(45, 212, 191, 0.85), 0 0 36px rgba(129, 140, 248, 0.5); }
}

.avatar-border-aurora-frost {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #38bdf8, #99f6e4, #818cf8, #e0f2fe, #2dd4bf, #38bdf8);
    animation: auroraBorderPulse 4.6s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-aurora-frost::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg stroke='%23e0f2fe' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M92 14v16M84 22h16M86.5 16.5l11 11M97.5 16.5l-11 11'/%3E%3Cpath d='M26 90v14M19 97h14M21 92l10 10M31 92l-10 10'/%3E%3C/g%3E%3Cpolygon points='24,20 28,26 24,32 20,26' fill='%2399f6e4' stroke='%23e0f2fe' stroke-width='1'/%3E%3Cpolygon points='98,90 102,95 98,100 94,95' fill='%23bae6fd' stroke='%23e0f2fe' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.85));
}

.avatar-border-aurora-frost::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='28' cy='18' r='2.2' fill='%23e0f2fe'/%3E%3Ccircle cx='98' cy='42' r='2' fill='%2399f6e4'/%3E%3Ccircle cx='44' cy='88' r='1.8' fill='%23bae6fd'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cherryBlossomAvatarPetalsFall 5.6s linear infinite;
}

img.avatar-border-aurora-frost {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #38bdf8, #e0f2fe, #2dd4bf, #818cf8) !important;
    border: 2px solid rgba(224, 242, 254, 0.92) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85), 0 0 20px rgba(45, 212, 191, 0.5) !important;
    animation: auroraBorderPulse 4.6s ease-in-out infinite;
}

/* ============================================================
   6. GOLDEN LANTERNS AVATAR BORDER
   ============================================================ */
@keyframes lanternBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.9), 0 0 16px rgba(245, 158, 11, 0.8), 0 0 28px rgba(220, 38, 38, 0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(254, 249, 195, 0.96), 0 0 22px rgba(251, 191, 36, 0.9), 0 0 36px rgba(245, 158, 11, 0.58); }
}

.avatar-border-golden-lanterns {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #b45309, #fbbf24, #fef08a, #dc2626, #f59e0b, #fef08a, #b45309);
    animation: lanternBorderPulse 4.2s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-golden-lanterns::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='53' fill='none' stroke='%23fde047' stroke-width='1.5' stroke-dasharray='18 8 4 8' opacity='.82'/%3E%3Crect x='88' y='14' width='14' height='18' rx='6' fill='%23dc2626' stroke='%23fde047' stroke-width='1.5'/%3E%3Cpath d='M95 32v6' stroke='%23fde047' stroke-width='1.6'/%3E%3Crect x='18' y='88' width='12' height='16' rx='5' fill='%23dc2626' stroke='%23fde047' stroke-width='1.4'/%3E%3Cpath d='M24 104v5' stroke='%23fde047' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.avatar-border-golden-lanterns::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='28' cy='72' r='2.3' fill='%23fef08a'/%3E%3Ccircle cx='96' cy='62' r='2' fill='%23fbbf24'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 4.8s linear infinite;
}

img.avatar-border-golden-lanterns {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f59e0b, #fef08a, #dc2626, #fbbf24) !important;
    border: 2px solid rgba(254, 240, 138, 0.92) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85), 0 0 20px rgba(220, 38, 38, 0.45) !important;
    animation: lanternBorderPulse 4.2s ease-in-out infinite;
}

/* ============================================================
   7. VOID ECLIPSE AVATAR BORDER
   ============================================================ */
@keyframes voidBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.85), 0 0 16px rgba(147, 51, 234, 0.82), 0 0 30px rgba(88, 28, 135, 0.6); }
    50% { box-shadow: 0 0 0 2.5px rgba(243, 232, 255, 0.95), 0 0 24px rgba(192, 132, 252, 0.9), 0 0 40px rgba(126, 34, 206, 0.7); }
}

.avatar-border-void-eclipse {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 120deg, #140624, #7e22ce, #e9d5ff, #9333ea, #140624, #c084fc, #140624);
    animation: voidBorderPulse 4.4s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-void-eclipse::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M20 26A46 46 0 0 1 94 20' fill='none' stroke='%23e9d5ff' stroke-width='2.2' stroke-linecap='round' opacity='.88'/%3E%3Cpath d='M100 94A46 46 0 0 1 26 100' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' opacity='.82'/%3E%3Ccircle cx='96' cy='24' r='8' fill='%23120720' stroke='%23e9d5ff' stroke-width='1.6'/%3E%3Ccircle cx='98.5' cy='23' r='6.5' fill='%23120720'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.85));
}

.avatar-border-void-eclipse::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='20' cy='86' r='2.4' fill='%23c084fc'/%3E%3Ccircle cx='100' cy='78' r='2' fill='%23e9d5ff'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3.6s ease-in-out infinite;
}

img.avatar-border-void-eclipse {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2e1065, #e9d5ff, #9333ea, #140624) !important;
    border: 2px solid rgba(233, 213, 255, 0.88) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.85), 0 0 22px rgba(88, 28, 135, 0.65) !important;
    animation: voidBorderPulse 4.4s ease-in-out infinite;
}

/* ============================================================
   8. VAPORWAVE SUNSET AVATAR BORDER
   ============================================================ */
@keyframes vaporBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.88), 0 0 16px rgba(244, 114, 182, 0.78), 0 0 28px rgba(34, 211, 238, 0.42); }
    50% { box-shadow: 0 0 0 2.5px rgba(244, 114, 182, 0.95), 0 0 22px rgba(251, 146, 60, 0.85), 0 0 36px rgba(168, 85, 247, 0.55); }
}

.avatar-border-vaporwave {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #fde047, #fb7185, #f472b6, #a855f7, #22d3ee, #fb923c, #fde047);
    animation: vaporBorderPulse 4s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-vaporwave::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3ClinearGradient id='vp' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fde047'/%3E%3Cstop offset='55%25' stop-color='%23fb7185'/%3E%3Cstop offset='100%25' stop-color='%23a855f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='94' cy='24' r='9' fill='url(%23vp)'/%3E%3Cline x1='84' y1='25' x2='104' y2='25' stroke='%231e1033' stroke-width='1.3'/%3E%3Cline x1='85' y1='29' x2='103' y2='29' stroke='%231e1033' stroke-width='1.4'/%3E%3Cpath d='M24 92l2 5 5 2-5 2-2 5-2-5-5-2 5-2z' fill='%2322d3ee'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.8));
}

.avatar-border-vaporwave::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='22' cy='26' r='2.2' fill='%23fde047'/%3E%3Ccircle cx='98' cy='86' r='2.2' fill='%2322d3ee'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderSparklePulse 3.2s ease-in-out infinite;
}

img.avatar-border-vaporwave {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #fde047, #f472b6, #a855f7, #22d3ee) !important;
    border: 2px solid rgba(254, 215, 170, 0.92) !important;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.82), 0 0 20px rgba(34, 211, 238, 0.45) !important;
    animation: vaporBorderPulse 4s ease-in-out infinite;
}

/* ============================================================
   9. FOREST FIREFLIES AVATAR BORDER
   ============================================================ */
@keyframes forestBorderPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(187, 247, 208, 0.88), 0 0 16px rgba(74, 222, 128, 0.76), 0 0 28px rgba(163, 230, 53, 0.4); }
    50% { box-shadow: 0 0 0 2.5px rgba(217, 249, 157, 0.95), 0 0 22px rgba(163, 230, 53, 0.85), 0 0 36px rgba(34, 197, 94, 0.52); }
}

.avatar-border-forest-fireflies {
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #166534, #4ade80, #d9f99d, #22c55e, #15803d, #bef264, #166534);
    animation: forestBorderPulse 4.5s ease-in-out infinite;
    isolation: isolate;
}

.avatar-border-forest-fireflies::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M22 28C32 13 52 7 72 11c13 2.5 23 9 30 20' fill='none' stroke='%23166534' stroke-width='2.5' stroke-linecap='round' opacity='.88'/%3E%3Cpath d='M96 92c-10 13-27 20-44 18-13-1.5-24-8-32-18' fill='none' stroke='%23166534' stroke-width='2.3' stroke-linecap='round' opacity='.84'/%3E%3Cpath d='M84 18c8-6 18-4 21 4-8 6-17 4-21-4z' fill='%234ade80'/%3E%3Cpath d='M16 92c6-8 16-8 21-1-6 8-15 8-21 1z' fill='%2322c55e'/%3E%3Ccircle cx='34' cy='18' r='3' fill='%23d9f99d'/%3E%3Ccircle cx='90' cy='100' r='2.8' fill='%23fef08a'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.78));
}

.avatar-border-forest-fireflies::after {
    content: "";
    position: absolute;
    inset: -16%;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Ccircle cx='24' cy='58' r='2.5' fill='%23d9f99d'/%3E%3Ccircle cx='98' cy='46' r='2.4' fill='%23fef08a'/%3E%3Ccircle cx='66' cy='104' r='2.1' fill='%23bef264'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: borderParticlesRise 4.6s ease-in-out infinite;
}

img.avatar-border-forest-fireflies {
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #166534, #d9f99d, #4ade80, #22c55e) !important;
    border: 2px solid rgba(217, 249, 157, 0.9) !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.85), 0 0 20px rgba(163, 230, 53, 0.45) !important;
    animation: forestBorderPulse 4.5s ease-in-out infinite;
}

/* Compact variant for small avatars inside wrappers */
.avatar-border--sm {
    padding: 3px !important;
}

.avatar-border--sm::before {
    inset: -14% !important;
}

.avatar-border--sm::after {
    inset: -18% !important;
}

/* ============================================================
   PROFILE PAGE EFFECTS (ALL 9 SETS)
   ============================================================ */
.profile-effect-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: layout style paint;
}

.profile-effect-layer--paused,
.profile-effect-layer--paused * {
    animation-play-state: paused !important;
}

.pf-effect-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Disable infinite per-card box-shadow animations inside dense repeated grids/lists */
.abovePost img[class*="avatar-border-"],
.booruPost img[class*="avatar-border-"],
.commentInfo img[class*="avatar-border-"],
.connection-meta img[class*="avatar-border-"] {
    animation: none !important;
}

.profile-effect-layer--contained {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

/* Atmospheric background washes per effect */
.profile-effect-cherry-blossom {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 182, 213, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 86% 18%, rgba(244, 114, 182, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 50% 100%, rgba(255, 209, 230, 0.14) 0%, transparent 50%);
}

.profile-effect-cyberpunk {
    background:
        linear-gradient(180deg, rgba(0, 240, 255, 0.08) 0%, transparent 45%, rgba(255, 43, 214, 0.14) 100%),
        repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(0deg, rgba(255, 43, 214, 0.035) 0 1px, transparent 1px 44px);
}

.profile-effect-starlight {
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 48%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.18) 0%, transparent 46%),
        radial-gradient(circle at 50% 90%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
}

.profile-effect-ember-phoenix {
    background:
        radial-gradient(ellipse at 50% 105%, rgba(249, 115, 22, 0.28) 0%, rgba(220, 38, 38, 0.14) 38%, transparent 72%),
        radial-gradient(circle at 85% 15%, rgba(253, 224, 71, 0.08) 0%, transparent 40%);
}

@keyframes auroraWaveShift {
    0%, 100% { filter: hue-rotate(0deg); opacity: 0.85; }
    50% { filter: hue-rotate(18deg); opacity: 1; }
}

.profile-effect-aurora-frost {
    background:
        radial-gradient(ellipse at 25% 0%, rgba(45, 212, 191, 0.26) 0%, transparent 52%),
        radial-gradient(ellipse at 75% 5%, rgba(56, 189, 248, 0.24) 0%, transparent 54%),
        radial-gradient(ellipse at 50% 18%, rgba(129, 140, 248, 0.18) 0%, transparent 50%);
    animation: auroraWaveShift 9s ease-in-out infinite;
}

.profile-effect-golden-lanterns {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 20% 25%, rgba(220, 38, 38, 0.12) 0%, transparent 45%);
}

.profile-effect-void-eclipse {
    background:
        radial-gradient(circle at 78% 22%, rgba(168, 85, 247, 0.24) 0%, rgba(88, 28, 135, 0.12) 32%, transparent 62%),
        radial-gradient(circle at 18% 82%, rgba(126, 34, 206, 0.18) 0%, transparent 50%);
}

.profile-effect-vaporwave {
    background:
        linear-gradient(180deg, rgba(168, 85, 247, 0.18) 0%, rgba(244, 114, 182, 0.16) 52%, rgba(251, 146, 60, 0.18) 100%);
}

.profile-effect-forest-fireflies {
    background:
        radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.2) 0%, transparent 48%),
        radial-gradient(circle at 82% 85%, rgba(163, 230, 53, 0.14) 0%, transparent 50%);
}

/* Moonlight (account-locked). The moon and its light stay in the effect
   layer under the page; profile-effects.js draws the lighting on the canvas. */
.profile-effect-moonlight {
    --pf-moon-size: clamp(64px, 7.5vw, 124px);
    --pf-moon-right: clamp(22px, 5.5vw, 104px);
    --pf-moon-top: 128px;
    --pf-moon-cx: calc(100% - var(--pf-moon-right) - var(--pf-moon-size) / 2);
    --pf-moon-cy: calc(var(--pf-moon-top) + var(--pf-moon-size) / 2);
    background: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy),
        rgba(196, 240, 255, 0.14) 0%,
        rgba(140, 220, 255, 0.05) 24%,
        transparent 50%);
}

.profile-effect-moonlight.profile-effect-layer--contained {
    --pf-moon-size: 46px;
    --pf-moon-right: 18px;
    --pf-moon-top: 16px;
}

.pf-moonlight-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.pf-moon {
    position: absolute;
    top: var(--pf-moon-top);
    right: var(--pf-moon-right);
    width: var(--pf-moon-size);
    height: var(--pf-moon-size);
    border-radius: 50%;
    box-shadow:
        0 0 18px 3px rgba(214, 245, 255, 0.5),
        0 0 64px 16px rgba(150, 222, 255, 0.2);
    pointer-events: none;
}

.pf-moon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Static light for previews and browsers without usable WebGL: rays all
   the way round the moon, gently twinkling. */
@keyframes pfMoonBeamTwinkle {
    0%, 100% { opacity: 0.7; }
    35% { opacity: 1; }
    60% { opacity: 0.82; }
}

.pf-moonlight-beams {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg at var(--pf-moon-cx) var(--pf-moon-cy),
        rgba(205, 242, 255, 0.08) 0deg 2.5deg,
        transparent 2.5deg 8deg);
    -webkit-mask-image: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy), #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 85%);
    mask-image: radial-gradient(circle at var(--pf-moon-cx) var(--pf-moon-cy), #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 85%);
    animation: pfMoonBeamTwinkle 4.5s ease-in-out infinite;
}

.pf-moonlight--static .pf-moonlight-beams {
    display: block;
}

.pf-moonlight--static .pf-moonlight-canvas {
    display: none;
}

/* Static page content would otherwise paint under the effect layer (and get
   lit). Lift it while Moonlight is mounted so the light stays underneath. */
body.pf-moonlight-on > .page-content,
body.pf-moonlight-on > .center-fully-no-flex,
body.pf-moonlight-on > #footerBar {
    position: relative;
    z-index: 1;
}

/* Particle Motion Keyframes (compositor-only transform + opacity; no layout-triggering properties) */
@keyframes sakuraFall {
    0% { transform: translate3d(0, -12%, 0) rotate(0deg); opacity: 0; }
    10% { opacity: var(--petal-opacity, 0.85); }
    35% { transform: translate3d(calc(var(--petal-drift, 80px) * 0.35 + var(--petal-sway, 20px)), 36vh, 0) rotate(calc(var(--petal-spin, 320deg) * 0.35)); }
    65% { transform: translate3d(calc(var(--petal-drift, 80px) * 0.65 - var(--petal-sway, 20px)), 74vh, 0) rotate(calc(var(--petal-spin, 320deg) * 0.65)); }
    88% { opacity: var(--petal-opacity, 0.85); }
    100% { transform: translate3d(var(--petal-drift, 80px), 115vh, 0) rotate(var(--petal-spin, 320deg)); opacity: 0; }
}

@keyframes sakuraFallContained {
    0% { transform: translate3d(0, -24px, 0) rotate(0deg); opacity: 0; }
    12% { opacity: var(--petal-opacity, 0.9); }
    50% { transform: translate3d(calc(var(--petal-drift, 44px) * 0.5 + var(--petal-sway, 12px)), 110px, 0) rotate(calc(var(--petal-spin, 260deg) * 0.5)); }
    85% { opacity: var(--petal-opacity, 0.85); }
    100% { transform: translate3d(var(--petal-drift, 44px), 240px, 0) rotate(var(--petal-spin, 260deg)); opacity: 0; }
}

@keyframes particleRise {
    0% { transform: translate3d(0, 112vh, 0) scale(0.85); opacity: 0; }
    14% { opacity: var(--petal-opacity, 0.88); }
    50% { transform: translate3d(calc(var(--petal-drift, 40px) * 0.5 + var(--petal-sway, 12px)), 48vh, 0) scale(0.95); }
    84% { opacity: var(--petal-opacity, 0.78); }
    100% { transform: translate3d(var(--petal-drift, 40px), -14vh, 0) scale(1.05); opacity: 0; }
}

@keyframes particleRiseContained {
    0% { transform: translate3d(0, 220px, 0) scale(0.85); opacity: 0; }
    16% { opacity: var(--petal-opacity, 0.9); }
    50% { transform: translate3d(calc(var(--petal-drift, 24px) * 0.5 + var(--petal-sway, 8px)), 96px, 0) scale(0.95); }
    84% { opacity: var(--petal-opacity, 0.78); }
    100% { transform: translate3d(var(--petal-drift, 24px), -28px, 0) scale(1.05); opacity: 0; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.75); }
    50% { opacity: var(--petal-opacity, 0.95); transform: scale(1.18); }
}

@keyframes shootingStar {
    0%, 72% { transform: translate3d(0, 0, 0) rotate(-32deg) scaleX(0.3); opacity: 0; }
    78% { opacity: 0.95; }
    92% { transform: translate3d(-260px, 165px, 0) rotate(-32deg) scaleX(1.2); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fireflyFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0.25; }
    25% { transform: translate3d(var(--petal-sway, 18px), -18px, 0) scale(1.15); opacity: var(--petal-opacity, 0.95); }
    55% { transform: translate3d(calc(var(--petal-sway, 18px) * -0.6), -32px, 0) scale(0.95); opacity: 0.5; }
    80% { transform: translate3d(var(--petal-sway, 18px), -10px, 0) scale(1.12); opacity: var(--petal-opacity, 0.9); }
}

.sakura-petal,
.pf-effect-particle {
    position: absolute;
    left: var(--petal-left, 50%);
    width: var(--petal-size, 18px);
    height: var(--petal-size, 18px);
    pointer-events: none;
}

.sakura-petal,
.pf-effect-particle--fall {
    top: -8%;
    animation: sakuraFall var(--petal-duration, 12s) linear var(--petal-delay, 0s) infinite;
}

.profile-effect-layer--contained .sakura-petal,
.profile-effect-layer--contained .pf-effect-particle--fall {
    top: -12px;
    animation: sakuraFallContained var(--petal-duration, 7.5s) linear var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--rise {
    top: 0;
    animation: particleRise var(--petal-duration, 11s) linear var(--petal-delay, 0s) infinite;
}

.profile-effect-layer--contained .pf-effect-particle--rise {
    animation: particleRiseContained var(--petal-duration, 6.8s) linear var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--twinkle {
    top: var(--petal-top, 30%);
    animation: starTwinkle var(--petal-duration, 3.6s) ease-in-out var(--petal-delay, 0s) infinite;
}

.pf-effect-particle--float {
    top: var(--petal-top, 40%);
    animation: fireflyFloat var(--petal-duration, 6.5s) ease-in-out var(--petal-delay, 0s) infinite;
}

.pf-effect-shooting-star {
    position: absolute;
    top: var(--petal-top, 18%);
    left: var(--petal-left, 75%);
    width: 90px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(167, 139, 250, 0.4), transparent);
    box-shadow: 0 0 8px rgba(224, 231, 255, 0.85);
    pointer-events: none;
    animation: shootingStar var(--petal-duration, 9s) ease-in var(--petal-delay, 0s) infinite;
}

.sakura-petal svg,
.pf-effect-particle svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .avatar-border-wrap,
    .avatar-border-wrap::before,
    .avatar-border-wrap::after,
    img[class*="avatar-border-"],
    .profile-effect-aurora-frost {
        animation: none !important;
    }

    .pf-moonlight-beams {
        animation: none !important;
    }

    .sakura-petal,
    .pf-effect-particle,
    .pf-effect-shooting-star {
        animation: none !important;
        opacity: 0.45 !important;
        top: var(--petal-static-top, 20%) !important;
    }
}
