/* HxH v3 — reference-matched lavender/purple, clean URLs, mobile, loading animations */
:root{--hx-purple:#0a6e4f;--hx-violet:#0e7c5a;--hx-deep:#0a4a37;--hx-lav:#f7f4ff;--hx-line:#e9e2f8;--hx-ink:#171331}
html[data-theme=white] body,html[data-theme=default] body{background:#f8f7fd!important;color:var(--hx-ink)}
/* Colourful icons -> purple family only */
.color-icon defs stop:first-child{stop-color:#5fd3a8}.color-icon defs stop:nth-child(2){stop-color:#0e7c5a}.color-icon defs stop:last-child{stop-color:#0a4a37}
/* Decorative / generated images are NOT clickable */
.hero-art img,.hx-scene,.fb-logo img,.product-art img,.boot-orbit img,img[data-brand-logo]{pointer-events:none!important;-webkit-user-drag:none;user-select:none}
a img{pointer-events:none}
/* Captcha purple on lavender (register only) */
.captcha-purple{background:#f7f4ff!important;border:1.5px solid #ddd0fb!important;border-radius:18px!important}
.captcha-purple .captcha-picture{background:#fff;border:1px solid var(--hx-line);border-radius:14px;overflow:hidden}
.captcha-purple .captcha-badge-tag{background:#e6f5ee!important;color:var(--hx-purple)!important}
.captcha-purple input[name=captcha_answer]{border:2px solid #8fe3c4!important;color:var(--hx-deep)!important;background:#fff!important;letter-spacing:.35em;font-weight:800}
.captcha-purple input[name=captcha_answer]:focus{border-color:var(--hx-violet)!important;box-shadow:0 0 0 4px rgba(14,124,90,.15)!important;outline:none}
/* OTP verification animation */
.otp-digit-grid{position:relative;gap:10px}
.otp-digit{transition:transform .35s cubic-bezier(.22,1.4,.36,1),border-color .2s,box-shadow .2s,background .2s!important}
.otp-digit.filled{border-color:var(--hx-violet)!important;background:#f5f0ff!important;transform:translateY(-2px);box-shadow:0 8px 18px rgba(10,110,79,.14)}
.otp-digit-grid.is-merging .otp-digit{transform:translateX(var(--dx,0)) scale(.92)!important;transition-delay:var(--d,0ms)!important;opacity:.92}
.otp-badge{position:absolute;inset:50% auto auto 50%;width:52px;height:52px;margin:-26px 0 0 -26px;opacity:0;transform:scale(.6);pointer-events:none}
.otp-digit-grid.is-merging .otp-badge{opacity:1;transform:scale(1);transition:.3s .25s}
.otp-badge-ring circle{fill:#fff;stroke:#ddd0fb;stroke-width:2.5;stroke-dasharray:145;stroke-dashoffset:40;transform-origin:center;animation:otpSpin 1s linear infinite}
.otp-badge-tick path{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40}
.otp-digit-grid.is-success .otp-badge{background:#22c55e;border-radius:50%;box-shadow:0 10px 24px rgba(34,197,94,.35)}
.otp-digit-grid.is-success .otp-badge-ring{opacity:0}
.otp-digit-grid.is-success .otp-badge-tick path{animation:otpTick .45s .05s ease forwards}
.otp-digit-grid.shake{animation:otpShake .45s ease}
.otp-digit-grid.has-error .otp-digit{border-color:#ef4444!important;background:#fef2f2!important}
@keyframes otpSpin{to{transform:rotate(360deg)}}@keyframes otpTick{to{stroke-dashoffset:0}}@keyframes otpShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){.otp-digit,.otp-badge-ring circle{animation:none!important;transition:none!important}}
/* Boot / loading animations (Admin > Settings > Loading animation) */
.boot-dots,.boot-bars{display:none;gap:6px;align-items:end;height:18px}
.boot-dots i{width:9px;height:9px;border-radius:50%;background:var(--hx-violet);animation:bootDot 1s infinite}
.boot-dots i:nth-child(2){animation-delay:.15s}.boot-dots i:nth-child(3){animation-delay:.3s}
.boot-bars i{width:5px;background:linear-gradient(#5fd3a8,#0a6e4f);border-radius:4px;animation:bootBar 1s infinite}
.boot-bars i:nth-child(2){animation-delay:.12s}.boot-bars i:nth-child(3){animation-delay:.24s}.boot-bars i:nth-child(4){animation-delay:.36s}.boot-bars i:nth-child(5){animation-delay:.48s}
body[data-loading-animation=dots] .boot-progress{display:none}body[data-loading-animation=dots] .boot-dots{display:flex}
body[data-loading-animation=bars] .boot-progress{display:none}body[data-loading-animation=bars] .boot-bars{display:flex}
body[data-loading-animation=pulse] .boot-orbit img{animation:bootPulse 1.4s ease-in-out infinite}
body[data-loading-animation=spinner] .boot-orbit span{animation-duration:1s!important}
body[data-loading-animation=orbit] .boot-orbit span{animation-duration:2.7s!important}
@keyframes bootDot{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-8px);opacity:1}}
@keyframes bootBar{0%,100%{height:6px}50%{height:18px}}
@keyframes bootPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
/* Mobile bottom nav: purple active, safe-area */
.mobile-nav{padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.97)!important;backdrop-filter:blur(14px)}
.mobile-nav a{color:#6b6884!important;font-size:10.5px!important;gap:3px!important}
.mobile-nav a svg{width:22px;height:22px}
.mobile-nav a.active{color:var(--hx-purple)!important;font-weight:800}
.mobile-nav a.active svg{filter:drop-shadow(0 4px 8px rgba(10,110,79,.25))}
@media(max-width:760px){
 .content{padding:16px 14px 92px!important}
 .topbar{height:64px!important;padding:0 12px!important;gap:8px!important}
 .header-search{flex:1;min-width:0}
 .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .otp-digit{width:46px!important;height:56px!important;font-size:22px!important}
 .hero-actions{display:grid!important;grid-template-columns:1fr 1fr}
 .modal{max-height:92dvh;overflow:auto;border-radius:20px 20px 0 0!important}
 table{font-size:12.5px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
 input,select,textarea{font-size:16px!important} /* stop iOS zoom */
}
@media(max-width:380px){.otp-digit{width:42px!important}.products-grid{grid-template-columns:1fr 1fr!important}}
/* Verify-later removed note */
.verification-required-note{display:flex;gap:12px;background:#f5f0ff;border:1px solid #ddd0fb;border-radius:14px;padding:14px;margin:14px 0}
.verification-required-note svg{width:22px;height:22px;color:var(--hx-purple);flex:none}
.verification-required-note small{display:block;color:#6b6884;margin-top:3px;line-height:1.5}
/* Auth autofill */
input:-webkit-autofill{-webkit-box-shadow:0 0 0 60px #f7f4ff inset!important;-webkit-text-fill-color:var(--hx-ink)!important;border-radius:12px}
