/* Avatar Decorations — lightweight effects (opacity/transform only) + picker */
.kx-ad-host{position:relative;display:inline-flex;line-height:0;overflow:visible !important}
.kx-ad-deco{position:absolute;left:50%;top:50%;width:156%;height:156%;transform:translate(-50%,-50%);pointer-events:none;z-index:7}
.kx-ad-deco.kx-sm{width:128%;height:128%}
.kx-ad-rot{position:absolute;inset:0;animation:kxAdSway 6s ease-in-out infinite;transform-origin:50% 50%;will-change:transform}
.kx-ad-deco img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none}
/* glow is STATIC (not animated) -> no per-frame filter recalculation */
.kx-ad-base{filter:drop-shadow(0 0 4px #4aa8ff) drop-shadow(0 0 9px #1b6dff);animation:kxAdPulse 2.4s ease-in-out infinite;will-change:opacity}
.kx-ad-flick{mix-blend-mode:screen;animation:kxAdFlicker 1.6s steps(1,end) infinite;will-change:opacity}
.kx-ad-zap{mix-blend-mode:screen;opacity:0;animation:kxAdZap 3.6s ease-in-out infinite;will-change:opacity}
.kx-ad-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.kx-ad-bolt{fill:none;stroke:#eaf7ff;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;opacity:0;filter:drop-shadow(0 0 1.5px #4aa8ff);animation:kxBolt 1.5s steps(1,end) infinite}
.kx-ad-spk{fill:#e7f6ff;opacity:0;animation:kxSpk 1.8s ease-in-out infinite}
.kx-ad-spk.kx-y{fill:#fff0b8}
@keyframes kxAdPulse{0%,100%{opacity:.9}50%{opacity:1}}
@keyframes kxAdSway{0%,100%{transform:rotate(-1.4deg)}50%{transform:rotate(1.4deg)}}
@keyframes kxAdFlicker{0%,4%{opacity:0}5%{opacity:.85}7%{opacity:0}18%{opacity:0}19%{opacity:.6}21%{opacity:0}49%{opacity:0}50%{opacity:.8}52%{opacity:0}74%{opacity:0}75%{opacity:.75}77%{opacity:0}100%{opacity:0}}
@keyframes kxAdZap{0%,38%,100%{opacity:0}40%{opacity:.9}43%{opacity:0}45%{opacity:.55}47%{opacity:0}}
@keyframes kxBolt{0%,100%{opacity:0}3%{opacity:1}6%{opacity:0}55%{opacity:0}57%{opacity:.8}60%{opacity:0}}
@keyframes kxSpk{0%,100%{opacity:0}8%{opacity:1}24%{opacity:0}}
@media (prefers-reduced-motion: reduce){.kx-ad-rot,.kx-ad-base,.kx-ad-flick,.kx-ad-zap,.kx-ad-bolt,.kx-ad-spk{animation:none}.kx-ad-zap,.kx-ad-flick,.kx-ad-bolt,.kx-ad-spk{opacity:0}}

#kx-ad-section{margin:0 auto 1.25rem;max-width:72rem;padding:1.1rem;border-radius:.6rem;background:rgba(20,20,20,.55);border:1px solid rgba(245,245,245,.1)}
#kx-ad-section .kx-ad-h{display:flex;align-items:center;gap:.6rem;margin-bottom:.9rem;font-weight:800;font-size:1.15rem;color:#e8e8e8}
#kx-ad-search{width:100%;padding:.55rem .8rem;margin-bottom:.7rem;border-radius:.4rem;background:rgba(255,255,255,.04);border:1px solid rgba(245,245,245,.12);color:#e8e8e8;outline:none;font-size:.9rem}
#kx-ad-cats{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.5rem;margin-bottom:.8rem;-webkit-overflow-scrolling:touch}
.kx-ad-cat{flex:0 0 auto;padding:.35rem .8rem;border-radius:9999px;font-size:.8rem;font-weight:700;white-space:nowrap;cursor:pointer;background:rgba(255,255,255,.05);border:1px solid rgba(245,245,245,.1);color:#cfcfcf}
.kx-ad-cat.kx-on{background:#8080cf;border-color:#8080cf;color:#fff}
#kx-ad-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem}
@media(min-width:480px){#kx-ad-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:768px){#kx-ad-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1280px){#kx-ad-grid{grid-template-columns:repeat(6,1fr)}}
.kx-ad-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:.6rem;border-radius:.45rem;background:rgba(255,255,255,.03);border:1px solid rgba(245,245,245,.08);cursor:pointer;transition:transform .15s ease,border-color .15s ease;outline:none}
.kx-ad-item:hover,.kx-ad-item:focus-visible{transform:translateY(-2px);border-color:#8080cf}
.kx-ad-item.kx-ad-active{border-color:#8080cf;background:rgba(128,128,207,.16)}
.kx-ad-prev{position:relative;width:74px;height:74px;display:flex;align-items:center;justify-content:center}
.kx-ad-prev .kx-ad-pic{width:48px;height:48px;border-radius:9999px;object-fit:cover;background:#222}
.kx-ad-prev .kx-ad-fr{position:absolute;left:50%;top:50%;width:150%;height:150%;transform:translate(-50%,-50%);object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 5px #2b8bff)}
.kx-ad-item span.kx-nm{font-size:.72rem;color:#cfcfcf;text-align:center;line-height:1.15}
.kx-ad-star{position:absolute;top:.3rem;right:.3rem;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;background:rgba(0,0,0,.45);color:#777;border:none;cursor:pointer;font-size:.95rem;line-height:1;z-index:2}
.kx-ad-star.kx-fav{color:#ffcf3a}
.kx-ad-empty{grid-column:1/-1;text-align:center;color:#999;padding:1.2rem;font-size:.9rem}

/* collapse toggle */
#kx-ad-section .kx-ad-h{cursor:pointer;user-select:none}
#kx-ad-section .kx-ad-h span{margin-right:.2rem}
.kx-ad-chev{margin-left:auto;transition:transform .2s ease;flex:0 0 auto}
#kx-ad-section.kx-collapsed .kx-ad-chev{transform:rotate(-90deg)}
#kx-ad-section.kx-collapsed .kx-ad-h{margin-bottom:0}
#kx-ad-section.kx-collapsed #kx-ad-body{display:none}

/* gold / yellow variant (Zenitsu) — same effect, golden glow */
.kx-ad-deco.kx-gold .kx-ad-base{filter:drop-shadow(0 0 4px #ffd24a) drop-shadow(0 0 9px #ff9e1b)}
.kx-ad-deco.kx-gold .kx-ad-bolt{stroke:#fff6d6;filter:drop-shadow(0 0 1.5px #ffc23a)}
.kx-ad-deco.kx-gold .kx-ad-spk{fill:#fff3bf}
.kx-ad-deco.kx-gold .kx-ad-spk.kx-y{fill:#ffffff}
.kx-ad-prev .kx-ad-fr.kx-gold{filter:drop-shadow(0 0 5px #ff9e1b)}

/* hide the theme's purple ring/border on avatars that have a decoration applied */
.kx-ad-host[data-kx-url]:not([data-kx-url=""]) img{border:0 !important;box-shadow:none !important;outline:0 !important;ring-width:0 !important}
.kx-ad-host[data-kx-url]:not([data-kx-url=""]){box-shadow:none !important}

/* in-picker buying */
.kx-ad-locked .kx-ad-prev .kx-ad-pic,.kx-ad-locked .kx-ad-prev .kx-ad-fr{filter:grayscale(1) brightness(.6);opacity:.6}
.kx-ad-lock{position:absolute;top:.3rem;left:.3rem;font-size:.9rem;z-index:3}
.kx-ad-buybar{display:flex;gap:.3rem;margin-top:.3rem;flex-wrap:wrap;justify-content:center}
.kx-ad-buy{border:none;border-radius:9999px;padding:.22rem .55rem;font-size:.72rem;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#ffd569,#f5a623);color:#3a2600}
.kx-ad-buy.kx-prem{background:linear-gradient(135deg,#9be7ff,#3aa0ff);color:#08233a}
.kx-ad-buy:hover{filter:brightness(1.07)}

/* Ramă recolorată în albastru (aceeași animație ca varianta aurie) */
img[src*="#kxblue"]{filter:hue-rotate(168deg) saturate(1.25) brightness(1.05)}
.kx-ad-deco img.kx-ad-base[src*="#kxblue"]{filter:hue-rotate(168deg) saturate(1.25) brightness(1.05) drop-shadow(0 0 4px #4aa8ff) drop-shadow(0 0 10px #1b6dff)}
.kx-ad-prev .kx-ad-fr[src*="#kxblue"]{filter:hue-rotate(168deg) saturate(1.25) drop-shadow(0 0 5px #2b8bff)}

/* Nezuko / sakura: petale care cad continuu în jurul avatarului */
.kx-ad-deco.kx-petals:before,.kx-ad-deco.kx-petals:after{content:"";position:absolute;left:-14%;right:-14%;top:-14%;bottom:-14%;pointer-events:none;z-index:8;background-repeat:repeat;
-webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 0,transparent 30%,#000 40%,#000 58%,transparent 72%);mask-image:radial-gradient(circle at 50% 50%,transparent 0,transparent 30%,#000 40%,#000 58%,transparent 72%)}
.kx-ad-deco.kx-petals:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe1ec'/%3E%3Cstop offset='1' stop-color='%23ff8fb8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(14 12) rotate(20) scale(0.9)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(70 40) rotate(140) scale(0.7)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(40 78) rotate(-30) scale(0.8)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(86 22) rotate(80) scale(0.6)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");background-size:50% 50%;-webkit-animation:kxPetalA 7s linear infinite;animation:kxPetalA 7s linear infinite}
.kx-ad-deco.kx-petals:after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe1ec'/%3E%3Cstop offset='1' stop-color='%23ff8fb8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(30 30) rotate(60) scale(0.6)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(80 58) rotate(-50) scale(0.8)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3Cg transform='translate(12 85) rotate(110) scale(0.55)'%3E%3Cpath d='M0 -7 C5 -6 7 -1 0 7 C-7 -1 -5 -6 0 -7 Z' fill='url(%23g)'/%3E%3Cpath d='M0 -6 L0 5' stroke='%23e86a9a' stroke-width='.6' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");background-size:34% 34%;-webkit-animation:kxPetalB 10s linear infinite;animation:kxPetalB 10s linear infinite;opacity:.85}
@-webkit-keyframes kxPetalA{0%{background-position:0% 0%}100%{background-position:30% 100%}}
@keyframes kxPetalA{0%{background-position:0% 0%}100%{background-position:30% 100%}}
@-webkit-keyframes kxPetalB{0%{background-position:100% 0%}100%{background-position:60% 100%}}
@keyframes kxPetalB{0%{background-position:100% 0%}100%{background-position:60% 100%}}
.kx-ad-deco.kx-sm.kx-petals:after{display:none}
@media (prefers-reduced-motion: reduce){.kx-ad-deco.kx-petals:before,.kx-ad-deco.kx-petals:after{-webkit-animation:none;animation:none}}

/* Nezuko / sakura: fără fulgere, doar strălucire roz și petale */
.kx-ad-deco.kx-petals .kx-ad-flick,.kx-ad-deco.kx-petals .kx-ad-zap,.kx-ad-deco.kx-petals .kx-ad-svg{display:none !important}
.kx-ad-deco.kx-petals .kx-ad-base{filter:drop-shadow(0 0 3px rgba(255,150,190,.75)) drop-shadow(0 0 9px rgba(255,90,150,.35))}
.kx-ad-prev .kx-ad-fr.kx-pink{filter:drop-shadow(0 0 5px rgba(255,120,170,.8))}
.kx-ad-deco.kx-sm.kx-petals:before{background-size:60% 60%}
