/* HxH Store v1.6.20 — final polish layer (loaded last).
   1) logo-only loading screen  2) smooth hero orbit  3) Featured box padding  4) footer spacing */

/* ---------- 1. Loading screen: matches the HxH Store Mobile App Splash ---------- */
#app>.boot strong,#app>.boot small{display:none!important}
#app>.boot{gap:16px}
#app>.boot .boot-orbit,#app>.boot .boot-showcase,#app>.boot .boot-progress,#app>.boot .boot-dots,#app>.boot .boot-bars{display:none!important}
#app>.boot .app-splash-stage{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}
#app>.boot .app-splash-mark{width:104px;height:104px;filter:drop-shadow(0 16px 32px rgba(10,110,79,.24));animation:appSplashIn .62s cubic-bezier(.34,1.56,.64,1) both}
#app>.boot .app-splash-mark .m{stroke:#0e7c5a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;fill-opacity:0;animation:appSplashDraw .92s cubic-bezier(.4,0,.2,1) .06s forwards,appSplashFill .52s ease-out .62s forwards}
#app>.boot .app-splash-mark .d,#app>.boot .app-splash-mark .s{opacity:0;transform-box:fill-box;transform-origin:center;animation:appSplashPop .48s cubic-bezier(.34,1.56,.64,1) .76s forwards}
#app>.boot .app-splash-mark .s{animation-delay:.9s}
#app>.boot .app-splash-name{font-size:22px;font-weight:760;letter-spacing:-.035em;color:#f1faf5;animation:appSplashIn .5s .1s cubic-bezier(.22,1,.36,1) both}
html[data-theme=default] #app>.boot .app-splash-name,html[data-theme=white] #app>.boot .app-splash-name{color:#1b1530}
html[data-theme=default] #app>.boot .app-splash-mark .d,html[data-theme=white] #app>.boot .app-splash-mark .d{fill:#ffffff}
#app>.boot .app-splash-line{position:relative;width:128px;height:3.5px;border-radius:999px;background:rgba(14,124,90,.18);overflow:hidden;animation:appSplashIn .4s .18s ease-out both}
#app>.boot .app-splash-line>span{display:block;width:100%;height:100%;border-radius:999px;background:linear-gradient(90deg,#0e7c5a,#5fd3a8,#34d399);transform-origin:0 50%;transform:scaleX(.24);transition:transform .48s cubic-bezier(.22,1,.36,1)}
#app>.boot .app-splash-line[data-step="1"]>span{transform:scaleX(.66)}
#app>.boot .app-splash-line[data-step="2"]>span{transform:scaleX(1)}
#app>.boot .app-splash-shine{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);transform:translateX(-100%);animation:appSplashShine 1.35s ease-in-out infinite}
#app>.boot .app-splash-note{font-size:12px;font-weight:500;letter-spacing:.01em;color:rgba(221,214,254,.72);min-height:18px;transition:opacity .22s ease}
html[data-theme=default] #app>.boot .app-splash-note,html[data-theme=white] #app>.boot .app-splash-note{color:#6d6483}
@keyframes appSplashIn{from{opacity:0;transform:scale(.86) translateY(8px)}to{opacity:1;transform:none}}
@keyframes appSplashDraw{to{stroke-dashoffset:0}}
@keyframes appSplashFill{to{fill-opacity:1;stroke-opacity:.18}}
@keyframes appSplashPop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes appSplashShine{0%{transform:translateX(-100%)}100%{transform:translateX(140%)}}
@media(prefers-reduced-motion:reduce){#app>.boot .app-splash-mark,#app>.boot .app-splash-name,#app>.boot .app-splash-line,#app>.boot .app-splash-shine,#app>.boot .app-splash-mark .m,#app>.boot .app-splash-mark .d,#app>.boot .app-splash-mark .s{animation:none!important}#app>.boot .app-splash-mark .m{stroke-dashoffset:0;fill-opacity:1}#app>.boot .app-splash-mark .d,#app>.boot .app-splash-mark .s{opacity:1}}

/* ---------- 2. Hero: icons glide smoothly around the laptop (driven by hero-orbit.js) ---------- */
.hx-hero .hero-art.hx-orbit-on{overflow:visible}
.hx-hero .hero-art.hx-orbit-on .hx-laptop-art{z-index:2;width:74%!important;height:70%!important;left:50%!important;top:50%!important}
.hx-hero .hero-art.hx-orbit-on .hx-ring{position:absolute!important;inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;margin:0!important;z-index:auto!important;pointer-events:none;contain:none!important;will-change:auto!important}
.hx-hero .hero-art.hx-orbit-on .hx-tile{left:50%!important;top:50%!important;z-index:1;backface-visibility:hidden;will-change:transform;transition:none!important;pointer-events:none}
.hx-hero .hero-art.hx-orbit-on .hx-tile-in{transform:none!important;animation:none!important}
.hx-hero .hero-art.hx-orbit-on .hx-tile-in img{filter:drop-shadow(0 10px 10px rgba(40,30,110,.26))}

/* ---------- 3. Featured Products: clean white box with real inner padding ---------- */
html[data-theme] .featured-showcase{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:visible!important;padding:clamp(18px,2.2vw,28px)!important}
html[data-theme=white] .featured-showcase,html[data-theme=default] .featured-showcase{background:#fff!important;border:1px solid #ece7f7!important;border-radius:24px!important;box-shadow:0 12px 30px -20px rgba(9,80,59,.28)!important}
html[data-theme] .featured-showcase-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin:0 0 18px!important}
html[data-theme] .featured-showcase .fb-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:14px;margin:0;padding:0}
html[data-theme] .featured-showcase .fb-tile{min-width:0;margin:0;box-sizing:border-box}
html[data-theme=white] .featured-showcase .fb-tile,html[data-theme=default] .featured-showcase .fb-tile{background:#fff;border:1px solid #eee9f8!important;box-shadow:0 6px 16px -12px rgba(9,80,59,.3)}
html[data-theme] .featured-showcase .fb-tile strong,html[data-theme] .featured-showcase .fb-tile small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){html[data-theme] .featured-showcase .fb-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){html[data-theme] .featured-showcase .fb-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html[data-theme] .featured-showcase .fb-tile:last-child:nth-child(odd){grid-column:1/-1}}

/* ---------- 4. Footer: separated boxes, proper spacing ---------- */
html[data-theme] .footer.pro-footer{box-sizing:border-box;display:block!important;margin:48px 0 28px!important;padding:32px clamp(20px,3vw,36px) 24px!important;border:1px solid var(--hx-card-line,#e6e3f3)!important;border-radius:24px!important}
html[data-theme=white] .footer.pro-footer,html[data-theme=default] .footer.pro-footer{background:#fff!important;border-color:#ece7f7!important;box-shadow:0 12px 30px -22px rgba(9,80,59,.26)}
.pro-footer .footer-main{gap:32px clamp(28px,4vw,56px)!important}
.pro-footer .footer-brand p{margin:8px 0 18px!important}
.pro-footer .socials{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px!important;margin:0!important}
.pro-footer .socials .footer-social{width:42px!important;height:42px!important;margin:0!important;flex:0 0 auto}
.pro-footer .footer-col{gap:12px!important}
.pro-footer .footer-bottom{margin-top:30px!important;padding-top:18px!important;gap:12px 24px!important}
.pro-footer .footer-bottom>span{display:inline-flex;align-items:center;gap:8px}
.pro-footer .version-control{display:inline-flex!important;align-items:center;gap:8px;margin:16px 0 0!important;padding:8px 14px!important;line-height:1.2;border-radius:999px!important}
@media(max-width:560px){html[data-theme] .footer.pro-footer{margin:36px 0 24px!important;padding:26px 18px 20px!important;border-radius:20px!important}.pro-footer .socials .footer-social{width:44px!important;height:44px!important}}

/* ---------- 5. Header brand: logo only (no "HxH STORE" text) ---------- */
html[data-theme] .topbar .top-brand>span{display:none!important}
html[data-theme] .topbar .top-brand{gap:0!important;flex:0 0 auto}
html[data-theme] .topbar .top-brand img{width:46px!important;height:46px!important;border-radius:13px!important;object-fit:cover!important;background:#4c168f;box-shadow:0 8px 18px -10px rgba(9,90,66,.6)}

/* ---------- 6. Hero must always be fully visible on phones (older polish rules faded / shifted it) ---------- */
.hx-hero .hero-art{right:auto!important;left:auto!important;opacity:1!important;visibility:visible!important}
.hx-hero .hero-art .hx-laptop-art{display:block!important;visibility:visible!important;opacity:1!important}
@media(max-width:760px){
 .hx-hero{overflow:hidden}
 .hx-hero .hero-art{width:100%!important;max-width:460px!important;margin-inline:auto!important;min-height:clamp(300px,86vw,400px)!important}
}
@media(max-width:380px){.hx-hero .hero-art{min-height:clamp(280px,88vw,330px)!important}}

/* ---------- 7. A few light animations (all off when the visitor prefers reduced motion) ---------- */
@media(prefers-reduced-motion:no-preference){
 @keyframes hxhLapFloat{0%,100%{transform:translate3d(-50%,-50%,0)}50%{transform:translate3d(-50%,calc(-50% - 7px),0)}}
 @keyframes hxhGlowPulse{0%,100%{opacity:.7}50%{opacity:1}}
 @keyframes hxhRise{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}}
 @keyframes hxhPop{from{transform:scale(.92)}to{transform:scale(1)}}
 .hx-hero .hero-art.hx-orbit-on .hx-laptop-art{animation:hxhLapFloat 7s ease-in-out infinite}
 .hx-hero .hx-glow{animation:hxhGlowPulse 5s ease-in-out infinite}
 .hx-hero .hero-copy>*{animation:hxhRise .55s cubic-bezier(.2,.7,.2,1) both}
 .hx-hero .hero-copy>*:nth-child(2){animation-delay:.06s}.hx-hero .hero-copy>*:nth-child(3){animation-delay:.12s}
 .hx-hero .hero-copy>*:nth-child(4){animation-delay:.18s}.hx-hero .hero-copy>*:nth-child(5){animation-delay:.24s}
 .hx-hero .hero-copy>*:nth-child(6){animation-delay:.3s}
 html[data-theme] .featured-showcase .fb-tile{transition:transform .22s ease,box-shadow .22s ease}
 html[data-theme] .featured-showcase .fb-tile:hover{transform:translateY(-3px);box-shadow:0 14px 26px -16px rgba(9,80,59,.45)}
 .pro-footer .footer-social{transition:transform .2s ease,box-shadow .2s ease}
 .pro-footer .footer-social:hover{transform:translateY(-2px)}
 .otp-digit:focus{animation:hxhPop .18s ease-out}
 .otp-digit-grid .otp-digit{transition:border-color .18s ease,box-shadow .18s ease}
}

/* ---------- 8. Web Services ---------- */
.web-service-card .ws-art{display:flex;align-items:center;justify-content:center;min-height:128px;background:radial-gradient(circle at 50% 45%,rgba(16,185,129,.12),transparent 72%)}
.web-service-card .ws-meta{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 6px}
.web-service-card .ws-chip,.ws-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:rgba(14,124,90,.09);color:#08543d;font-size:.76rem;font-weight:600;line-height:1.2}
html[data-theme=black] .ws-chip{background:rgba(95,211,168,.15);color:#d3f0e3}
.ws-chip.ws-chip-accent{background:rgba(16,185,129,.12);color:#047857;border:1px solid rgba(16,185,129,.24)}
html[data-theme=black] .ws-chip.ws-chip-accent{background:rgba(16,185,129,.18);color:#6ee7b7;border-color:rgba(16,185,129,.32)}
.web-service-card .product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.web-service-card .price small{opacity:.65;font-weight:500}
#web-order-form textarea,#web-service-form textarea{width:100%;box-sizing:border-box;min-height:130px;resize:vertical}
#web-order-form .ws-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(14,124,90,.14)}
#web-order-form .btn{width:100%;margin-top:10px}
.ws-order-scope-strip{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px;padding:10px 12px;border-radius:12px;background:rgba(14,124,90,.07);border:1px solid rgba(14,124,90,.18);font-size:.82rem;font-weight:600}
.ws-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:12px}
.ws-template-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:16px;border:1px solid rgba(14,124,90,.22);background:linear-gradient(155deg,rgba(14,124,90,.05),rgba(16,185,129,.04));transition:transform .2s cubic-bezier(.22,1,.36,1),border-color .2s ease,box-shadow .2s ease}
.ws-template-card:hover{transform:translateY(-2px);border-color:rgba(14,124,90,.45);box-shadow:0 12px 26px -18px rgba(9,90,66,.4)}
.ws-template-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ws-template-emoji{font-size:1.35rem;line-height:1}
.ws-template-card h3{margin:2px 0 0;font-size:1rem;font-weight:700}
.ws-template-card p{margin:0;font-size:.82rem;line-height:1.45;flex:1}
.ws-template-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid rgba(141,151,143,.16)}
.ws-brief-cell{max-width:340px}
.ws-brief-cell p{margin:0 0 4px;font-size:.83rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.ws-admin-brief-card{margin:12px 0;padding:14px;border-radius:14px;background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.26)}
.ws-admin-brief-card strong{display:block;margin-bottom:6px;font-size:.88rem}
.ws-admin-brief-card pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:.88rem;line-height:1.55}

/* ---------- 9. Modern Tactile Button Redesign & Admin Console Polish ---------- */
html[data-theme] .btn{
 position:relative;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:8px;
 border-radius:12px;
 font-weight:650;
 letter-spacing:-.01em;
 background:linear-gradient(180deg,#17a67a 0%,#0a6e4f 52%,#08543d 100%);
 color:#fff;
 border:1px solid rgba(10,110,79,.88);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 6px 16px -6px rgba(8,84,61,.52),0 1px 2px rgba(21,33,27,.12);
 transition:transform .16s cubic-bezier(.22,1,.36,1),box-shadow .18s ease,filter .18s ease,background .18s ease,border-color .18s ease;
 cursor:pointer;
}
html[data-theme] .btn:hover:not(:disabled){
 transform:translateY(-1.5px);
 filter:brightness(1.05);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 10px 22px -8px rgba(8,84,61,.62),0 2px 4px rgba(21,33,27,.14);
}
html[data-theme] .btn:active:not(:disabled){
 transform:translateY(.5px) scale(.982);
 box-shadow:inset 0 2px 4px rgba(0,0,0,.18),0 2px 6px -2px rgba(8,84,61,.4);
}
html[data-theme=white] .btn.secondary,html[data-theme=default] .btn.secondary{
 background:linear-gradient(180deg,#ffffff 0%,#f6f3ff 100%);
 color:#3b1f77;
 border:1px solid #ddd4f6;
 box-shadow:inset 0 1px 0 #ffffff,0 3px 10px -4px rgba(9,90,66,.16);
}
html[data-theme=white] .btn.secondary:hover:not(:disabled),html[data-theme=default] .btn.secondary:hover:not(:disabled){
 background:linear-gradient(180deg,#ffffff 0%,#ede7fe 100%);
 border-color:#8fe3c4;
 color:#063527;
 box-shadow:inset 0 1px 0 #ffffff,0 8px 18px -8px rgba(9,90,66,.26);
}
html[data-theme=black] .btn.secondary{
 background:linear-gradient(180deg,rgba(46,35,78,.92) 0%,rgba(27,20,48,.96) 100%);
 color:#e6f7f0;
 border:1px solid rgba(95,211,168,.32);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 6px 14px -6px rgba(0,0,0,.55);
}
html[data-theme=black] .btn.secondary:hover:not(:disabled){
 border-color:rgba(196,181,253,.55);
 background:linear-gradient(180deg,rgba(60,45,102,.95) 0%,rgba(35,26,64,.98) 100%);
}
html[data-theme] .btn.danger{
 background:linear-gradient(180deg,#ef4444 0%,#dc2626 58%,#b91c1c 100%);
 color:#fff;
 border:1px solid rgba(185,28,28,.9);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px -6px rgba(220,38,38,.48);
}
html[data-theme] .btn.danger:hover:not(:disabled){
 box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 20px -8px rgba(220,38,38,.58);
}
html[data-theme] .btn.small{padding:7px 13px;font-size:.82rem;border-radius:10px;gap:6px}

/* Admin Workspace Tabs, Quick Launchpad & Operational Pulse Strip */
.admin-quick-launchpad{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.admin-context-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px!important;border-radius:16px!important}
.admin-context-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.admin-context-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-pulse-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.pulse-chip{appearance:none;display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:.76rem;font-weight:650;border:1px solid rgba(14,124,90,.24);background:rgba(14,124,90,.08);color:inherit;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.pulse-chip:hover{transform:translateY(-1px);border-color:rgba(14,124,90,.52)}
.pulse-chip.ok{background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.32);color:#047857}
html[data-theme=black] .pulse-chip.ok{color:#6ee7b7}
.pulse-chip.warn{background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.36);color:#b45309}
html[data-theme=black] .pulse-chip.warn{color:#fcd34d}
.pulse-chip.accent{background:rgba(14,124,90,.13);border-color:rgba(14,124,90,.35);color:#0a6e4f}
html[data-theme=black] .pulse-chip.accent{color:#8fe3c4}
.admin-tabs{gap:7px!important;padding:7px!important;border-radius:16px!important}
.admin-tabs .tab{border-radius:11px!important;font-weight:620!important;padding:8px 13px!important;transition:transform .15s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.admin-tabs .tab.active{background:linear-gradient(135deg,#0e7c5a,#08543d)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 6px 14px -6px rgba(8,84,61,.55)!important}

/* ---------- 10. 3D Category Icons & Forgot Password Step / Match UI ---------- */
.category-card .category-icon.category-icon-3d{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;overflow:visible}
.category-card .category-icon.category-icon-3d img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(9,90,66,.2));transition:transform .22s cubic-bezier(.22,1,.36,1)}
.category-card:hover .category-icon.category-icon-3d img{transform:translateY(-3px) scale(1.06)}
.reset-step-strip{display:inline-flex;align-items:center;gap:6px;margin:6px auto 10px;padding:4px;border-radius:999px;background:rgba(14,124,90,.08);border:1px solid rgba(14,124,90,.18);font-size:.75rem;font-weight:650}
.reset-step-strip span{padding:4px 10px;border-radius:999px;opacity:.68}
.reset-step-strip span.is-active{opacity:1;background:linear-gradient(135deg,#0e7c5a,#08543d);color:#fff;box-shadow:0 4px 10px -4px rgba(8,84,61,.5)}
.reset-step-strip span.is-done{opacity:.95;color:#10b981}
.reset-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.reset-code-actions{display:inline-flex;align-items:center;gap:10px}
.pw-match-note{margin:4px 0 8px;font-size:.82rem;font-weight:650}
.pw-match-note.is-match{color:#16a34a}
.pw-match-note.is-mismatch{color:#dc2626}

