
/* V19 – interactive calendar / subtle icon motion / operation feedback */
#createDialog .npxdate-field{display:flex!important;flex-direction:column!important;gap:7px!important}
#createDialog .npxdate-field >span:first-child,#renewDialog .npxdate-field>span:first-child{font-size:12px;color:#f3f3f3;font-weight:750}
.npxdate-trigger{width:100%;min-height:50px;display:flex;align-items:center;gap:11px;text-align:left;border-radius:14px;color:#f6f6f6;background:#262626;border:1px solid rgba(255, 255, 255, .15);padding:0 12px;font:650 14px 'Anuphan',sans-serif;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.npxdate-trigger>svg:first-child{color:#dbdbdb;flex:none}
.npxdate-trigger>span{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.npxdate-chevron{flex:none;opacity:.7;transition:transform .18s ease}
.npxdate-trigger:hover{background:#2e2e2e;border-color:rgba(255, 255, 255, .29)}
.npxdate-trigger:focus-visible{outline:2px solid #c7c7c7;outline-offset:2px}
.npxdate-trigger:active .npxdate-chevron{transform:translateX(2px)}
.npxdate-hint{font-size:11px;color:#aaaaaa;line-height:1.45}
#renewDialog .sheet{width:min(440px,calc(100vw - 24px));background:#131313}
#renewDialog .npxrenew-expiry{display:flex;flex-direction:column;gap:9px}
#renewDialog .npxrenew-expiry .npxdate-trigger{min-height:55px}
.npxcal-dialog{position:fixed;inset:0;width:min(390px,calc(100vw - 22px));max-width:none;max-height:calc(100dvh - 30px);margin:auto;padding:0;color:#f8f8f8;border:1px solid rgba(255, 255, 255, .17);border-radius:30px;background:#141414;box-shadow:0 26px 80px rgba(0, 0, 0, .64);overflow:auto;font-family:var(--font-thai-ui)}
.npxcal-dialog::backdrop{background:rgba(0, 0, 0, .76);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.npxcal-card{padding:18px;display:flex;flex-direction:column;gap:12px}
.npxcal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.npxcal-head h3{font-size:21px;margin:3px 0 0;line-height:1.25}
.npxcal-kicker{font-size:11px;color:#a9a9a9}
.npxcal-close,.npxcal-month-bar button{width:40px;height:40px;flex:none;display:grid;place-items:center;border:1px solid rgba(255, 255, 255, .12);border-radius:13px;background:#282828;color:#f4f4f4;cursor:pointer}
.npxcal-month-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 0}
.npxcal-month-bar strong{font-size:17px;text-align:center}
.npxcal-weekdays,.npxcal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.npxcal-weekdays span{text-align:center;font-size:11px;font-weight:700;color:#989898;padding:5px 0}
.npxcal-days button{min-width:0;aspect-ratio:1/1;border-radius:50%;border:1px solid transparent;background:transparent;color:#e9e9e9;cursor:pointer;font:650 13px 'Anuphan',sans-serif;transition:background .16s ease,transform .16s ease}
.npxcal-days button:not(:disabled):hover{background:#323232}
.npxcal-days button:focus-visible{outline:2px solid #dcdcdc;outline-offset:2px}
.npxcal-days button[aria-pressed="true"]{color:#0f0f0f;background:#f3f3f3;font-weight:800}
.npxcal-days button[data-today="true"]:not([aria-pressed="true"]){border-color:rgba(255, 255, 255, .48)}
.npxcal-days button:disabled{opacity:.22;cursor:not-allowed}
.npxcal-days .npxcal-empty{aspect-ratio:1;pointer-events:none}
.npxcal-quick{display:flex;gap:8px;justify-content:space-between}
.npxcal-quick button{flex:1;min-height:36px;border-radius:12px;background:#272727;border:1px solid rgba(255, 255, 255, .11);color:#eaeaea;font:650 12px 'Anuphan',sans-serif;cursor:pointer}
.npxcal-selected{text-align:center;min-height:20px;font-size:12px;color:#bfbfbf}
.npxcal-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px}
.npxcal-actions button{min-height:47px;border-radius:14px;border:1px solid rgba(255, 255, 255, .12);font:750 13px 'Anuphan',sans-serif;cursor:pointer}
.npxcal-cancel{background:#292929;color:#f4f4f4}
.npxcal-apply{background:linear-gradient(#f8f8f8,#dbdbdb);color:#161616}
.npxcal-apply:disabled{opacity:.4;cursor:not-allowed}
/* cheap compositor-only movement; animations paused when modal hidden */
#createDialog[open] .npxcreate-panel-icon svg,#createDialog[open] .npxcreate-identity-side svg{animation:npxform-icon-float 3.8s ease-in-out infinite}
#createDialog[open] .npxcreate-avatar svg{animation:npxform-icon-float 4.2s ease-in-out infinite .5s}
#createDialog[open] .npxcreate-input-shell>svg:not(.npxcreate-chevron){transition:transform .18s ease}
#createDialog[open] .npxcreate-input-shell:focus-within>svg:not(.npxcreate-chevron){transform:translateY(-2px) scale(1.04)}
#createDialog[open] .npxcreate-panel-icon svg{transform-origin:center}
#renewDialog[open] .npxdate-trigger>svg:first-child{animation:npxform-icon-float 3.8s ease-in-out infinite}
@keyframes npxform-icon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.4px)}}
.npxresult:not([open]){display:none!important}
.npxresult[open]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;z-index:2147483640;display:grid;place-items:center;background:rgba(0, 0, 0, .8);color:#f9f9f9;font-family:var(--font-thai-ui);animation:npxresult-in .16s ease-out both}
.npxresult::backdrop{background:rgba(0, 0, 0, .35)}
.npxresult-panel{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(86vw,330px);border:1px solid rgba(255, 255, 255, .13);border-radius:28px;background:#191919;padding:29px 18px;box-shadow:0 24px 65px rgba(0, 0, 0, .6);text-align:center}
.npxresult-emblem{position:relative;display:grid;place-items:center;width:82px;height:82px;border-radius:50%;border:2px solid rgba(255, 255, 255, .13)}
.npxresult-panel[data-state="checking"] .npxresult-emblem::before{content:"";position:absolute;inset:0;border:3px solid transparent;border-top-color:#f5f5f5;border-radius:50%;animation:npxresult-spin .85s linear infinite}
.npxresult-icon{opacity:0;transform:scale(.74)}
.npxresult-panel[data-state="success"] .npxresult-emblem{border-color:rgba(189, 189, 189, .44);background:rgba(163, 163, 163, .07);color:#c6c6c6}
.npxresult-panel[data-state="error"] .npxresult-emblem{border-color:rgba(149, 149, 149, .53);background:rgba(110, 110, 110, .08);color:#a2a2a2}
.npxresult-panel[data-state="success"] .npxresult-icon,.npxresult-panel[data-state="error"] .npxresult-icon{opacity:1;transform:scale(1);transition:opacity .25s ease,transform .32s cubic-bezier(.2,1.2,.3,1)}
.npxresult-cross,.npxresult-check{display:none}
.npxresult-panel[data-state="success"] .npxresult-check{display:block}
.npxresult-panel[data-state="error"] .npxresult-cross{display:block}
.npxresult-panel strong{font-size:20px;color:#f9f9f9}
.npxresult-panel>span{max-width:290px;color:#b6b6b6;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@keyframes npxresult-spin{to{transform:rotate(360deg)}}
@keyframes npxresult-in{from{opacity:0}to{opacity:1}}
@media(max-width:600px){.npxcal-dialog{width:min(390px,calc(100vw - 20px));border-radius:24px}.npxcal-card{padding:16px;gap:10px}.npxcal-days button{font-size:12px}}
@media(prefers-reduced-motion:reduce){#createDialog[open] .npxcreate-panel-icon svg,#createDialog[open] .npxcreate-identity-side svg,#createDialog[open] .npxcreate-avatar svg,#renewDialog[open] .npxdate-trigger>svg:first-child,.npxresult,.npxresult-panel[data-state="checking"] .npxresult-emblem::before{animation:none!important}.npxcal-days button,.npxdate-trigger,.npxdate-chevron{transition:none!important}}
