/* A quieter neutral palette, keeping existing semantic and brand colors. */
html[data-theme="dark"] { --nx-ground:#0f1011 !important; --nx-surface:#1c1d1e !important; --nx-raised:#272829 !important; --nx-soft:#26272a !important; --nx-border:#494949 !important; --nx-c-surface:#222324 !important; --nx-c-border:#494949 !important; --nx-card-fill:rgb(190 190 195 / .10) !important; }
html[data-theme="light"] { --nx-ground:#f0efed !important; --nx-surface:#f9f9f7 !important; --nx-raised:#e9e8e5 !important; --nx-soft:#eae9e6 !important; --nx-border:#d0cfca !important; --nx-c-surface:#f9f9f7 !important; --nx-c-border:#d0cfca !important; --nx-card-fill:rgb(36 36 40 / .08) !important; }
html[data-theme="light"] body.n-site .nxp-card.featured { border-color:var(--nx-border) !important; }
html[data-theme="light"] body.n-site .nxp-card .nxp-tag { color:#796459 !important; }

/* BeUI-inspired visual layer; the existing card and its controls stay intact. */
.nxwr-position { position:relative !important; }
.nxwr-layer { position:absolute; inset:0; overflow:hidden; border-radius:inherit; pointer-events:none; z-index:20; }
.nxwr-layer > div,.nxwr-particles { position:absolute; pointer-events:none; }
.nxwr-layer > div:not(.nxwr-gather),.nxwr-particles { inset:0; }
.nxwr-core { background:#fff; }
.nxwr-rim { border-radius:inherit; }
.nxwr-rim::before { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 10px rgba(255,176,122,.2); }
.nxwr-edge { position:absolute; inset:0; border:2px solid transparent; border-radius:inherit; -webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0) border-box; -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0) border-box; mask-composite:exclude; }
@supports not ((mask-composite:exclude) or (-webkit-mask-composite:xor)) { .nxwr-edge { background:none !important; border-color:rgba(255,176,122,.8); } }
.nxwr-gather { width:112px; height:112px; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.9) 0%,#ffc915 22%,#eb64a0 42%,transparent 70%); filter:blur(10px); }
.nxwr-particles { width:100%; height:100%; }
.nxwr-svg { position:absolute; width:0; height:0; pointer-events:none; }
@media (prefers-reduced-motion:reduce) { .nxwr-layer { display:none !important; } }
