/* GKS v97 - Store/Dashboard boxes: new look, clean search (no inner box), better box colours, motion */
:root{--v97-gold:#e3c06a;--v97-gold2:#f6dc8a;--v97-line:rgba(227,192,106,.30)}
@keyframes v97Up{0%{opacity:0;transform:translateY(22px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes v97Sweep{0%{transform:translateX(-120%) skewX(-18deg)}60%,100%{transform:translateX(260%) skewX(-18deg)}}
@keyframes v97Float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes v97Glow{0%,100%{box-shadow:0 0 0 rgba(227,192,106,0),0 12px 30px rgba(0,0,0,.42)}50%{box-shadow:0 0 22px rgba(227,192,106,.16),0 12px 30px rgba(0,0,0,.42)}}
@keyframes v97Pop{0%{transform:scale(.9);opacity:.6}100%{transform:scale(1);opacity:1}}

/* ---- main boxes ---- */
html:root body #main-app #page-home .pcf-box{
  position:relative;overflow:hidden;max-width:380px;margin:0 auto;padding:18px 16px 16px;border-radius:24px;
  border:1px solid var(--v97-line);
  background:radial-gradient(120% 90% at 0% 0%,rgba(227,192,106,.10),transparent 55%),linear-gradient(165deg,#1b2a4a 0%,#12203b 55%,#0c1629 100%);
  box-shadow:0 14px 34px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06);
  animation:v97Up .55s cubic-bezier(.2,.9,.3,1) both,v97Glow 5s ease-in-out 1s infinite}
html:root body #main-app #page-home .pcf-box::after{content:"";position:absolute;top:0;bottom:0;left:0;width:38%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.07),transparent);animation:v97Sweep 6s ease-in-out 1.2s infinite}
html:root body #main-app #page-home .pcf-title{color:var(--v97-gold2);letter-spacing:.28em}
html:root body #main-app #page-home .pcf-label{color:#9fb0d0}

/* ---- search: ONE clean pill, no box inside a box ---- */
html:root body #main-app #page-home .pcf-search{
  display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;margin-bottom:6px;border-radius:26px;
  background:linear-gradient(180deg,#0e1a33,#0a1328)!important;background-image:linear-gradient(180deg,#0e1a33,#0a1328)!important;border:1px solid rgba(227,192,106,.28)!important;box-sizing:border-box;width:100%;overflow:hidden;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.35);transition:border-color .25s,box-shadow .25s,transform .2s}
html:root body #main-app #page-home .pcf-search span{font-size:15px;opacity:.9;transition:transform .25s}
html:root body #main-app #page-home .pcf-search:focus-within{border-color:var(--v97-gold);transform:translateY(-1px);
  box-shadow:0 0 0 3px rgba(227,192,106,.14),0 8px 22px rgba(0,0,0,.35)}
html:root body #main-app #page-home .pcf-search:focus-within span{transform:scale(1.18) rotate(-8deg)}
html:root body #main-app #page-home .pcf-search input,
html:root body #main-app #page-home .pcf-search input:focus{
  flex:1 1 auto;min-width:0;width:100%;height:100%;margin:0!important;padding:0!important;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;
  color:#fff!important;-webkit-text-fill-color:#fff;font:500 15px 'Poppins','Inter',system-ui,sans-serif;
  text-overflow:ellipsis;-webkit-appearance:none;appearance:none}
html:root body #main-app #page-home .pcf-search input:-webkit-autofill{transition:background-color 99999s ease 0s;-webkit-text-fill-color:#fff}
html:root body #main-app #page-home .pcf-search input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
html:root body #main-app #page-home .pcf-search input::placeholder{color:#8a9ac0;opacity:1}

/* ---- device filter ---- */
html:root body #main-app #page-home .gks-dev-box{animation:v97Up .55s .08s cubic-bezier(.2,.9,.3,1) both!important;margin-top:16px}
html:root body #main-app #page-home #gks-dev-box .gks-dev-bar{
  background:linear-gradient(165deg,#1a2847,#0d1730)!important;border:1px solid var(--v97-line);border-radius:26px;
  box-shadow:0 12px 28px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.05)}
html:root body #main-app #page-home #gks-dev-box .gks-dev-chip.active{
  background:linear-gradient(135deg,#f6dc8a,#d5a840)!important;color:#1a1405!important;
  box-shadow:0 6px 16px rgba(227,192,106,.35)!important;animation:v97Pop .3s ease both}
html:root body #main-app #page-home #gks-dev-box .gks-dev-chip.active i{color:#1a1405!important}

/* ---- product cards ---- */
html:root body #main-app #page-home #pc-list .pc-card{
  position:relative;overflow:hidden;border-radius:26px;border:1px solid var(--v97-line);
  background:radial-gradient(110% 70% at 50% 0%,rgba(80,120,220,.16),transparent 60%),linear-gradient(170deg,#1b2a4a,#101c36 60%,#0b1427);
  box-shadow:0 16px 36px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06);
  animation:v97Up .6s cubic-bezier(.2,.9,.3,1) both;transition:transform .25s,box-shadow .25s}
html:root body #main-app #page-home #pc-list .pc-card:nth-child(2){animation-delay:.1s}
html:root body #main-app #page-home #pc-list .pc-card:nth-child(3){animation-delay:.2s}
html:root body #main-app #page-home #pc-list .pc-card:nth-child(n+4){animation-delay:.3s}
html:root body #main-app #page-home #pc-list .pc-card:active{transform:scale(.985)}
html:root body #main-app #page-home #pc-list .pc-card::after{content:"";position:absolute;top:0;bottom:0;left:0;width:35%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.06),transparent);animation:v97Sweep 7s ease-in-out 2s infinite}
html:root body #main-app #page-home #pc-list .pc-media{
  background:radial-gradient(70% 70% at 50% 40%,rgba(227,192,106,.14),transparent 70%),linear-gradient(180deg,#14223f,#0b1427)!important;
  border:1px solid rgba(227,192,106,.2)!important;border-radius:22px}
html:root body #main-app #page-home #pc-list .pc-media img{animation:v97Float 4s ease-in-out infinite;filter:drop-shadow(0 10px 18px rgba(0,0,0,.5))}

/* ---- dashboard boxes ---- */
html:root body #main-app #page-dashboard :is(.statCard,.balanceCard,.panel-card,.glass){
  background:linear-gradient(165deg,#1b2a4a,#0e1932)!important;border:1px solid var(--v97-line)!important;border-radius:22px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05)!important;
  animation:v97Up .55s cubic-bezier(.2,.9,.3,1) both;transition:transform .2s}
html:root body #main-app #page-dashboard :is(.statCard,.balanceCard,.panel-card,.glass):nth-child(2){animation-delay:.08s}
html:root body #main-app #page-dashboard :is(.statCard,.balanceCard,.panel-card,.glass):nth-child(3){animation-delay:.16s}
html:root body #main-app #page-dashboard :is(.statCard,.balanceCard,.panel-card,.glass):nth-child(n+4){animation-delay:.24s}
html:root body #main-app #page-dashboard :is(.statCard,.balanceCard,.panel-card,.glass):active{transform:scale(.98)}

@media (prefers-reduced-motion:reduce){html:root body #main-app *{animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* ================= v98: full dashboard + store redesign (gaming glass UI) ================= */
:root{--v98-purple:#8b5cf6;--v98-blue:#3b82f6;--v98-glass:linear-gradient(160deg,rgba(33,52,92,.78),rgba(12,22,44,.86))}
@keyframes v98Border{0%{background-position:0% 50%}100%{background-position:300% 50%}}
@keyframes v98Bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes v98Shine{0%{transform:translateX(-130%) skewX(-18deg)}55%,100%{transform:translateX(280%) skewX(-18deg)}}

/* shared premium card: glass + gradient moving border (mask ring) + gentle float */
html:root body #main-app :is(#page-dashboard .hbCard,#page-dashboard .statCard,#page-dashboard .gksRsCard,#page-dashboard .monthly-challenge-card,#page-dashboard .rk-top,#page-dashboard .jc2,#page-home .pcf-box,#page-home #pc-list .pc-card){
  position:relative;isolation:isolate;
  background:var(--v98-glass)!important;background-image:var(--v98-glass)!important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.07)!important;border-radius:24px!important;
  box-shadow:0 14px 32px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07)!important}
html:root body #main-app :is(#page-dashboard .hbCard,#page-dashboard .statCard,#page-dashboard .gksRsCard,#page-dashboard .monthly-challenge-card,#page-dashboard .rk-top,#page-dashboard .jc2,#page-home .pcf-box,#page-home #pc-list .pc-card)::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;z-index:1;
  background:linear-gradient(110deg,#e3c06a,#3b82f6,#8b5cf6,#e3c06a,#3b82f6) 0 50%/300% 100%;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  opacity:.55;animation:v98Border 9s linear infinite}
/* float (only the small stat tiles + reward tiles, so the page never feels shaky) */
html:root body #main-app #page-dashboard .statCard{animation:v97Up .55s cubic-bezier(.2,.9,.3,1) both,v98Bob 6s ease-in-out 1s infinite}
html:root body #main-app #page-dashboard .statCard:nth-child(even){animation-delay:.1s,1.8s}
html:root body #main-app #page-dashboard .statCard:active,html:root body #main-app #page-dashboard .jc2:active{transform:scale(.97)}
@media (hover:hover){html:root body #main-app :is(#page-dashboard .statCard,#page-home #pc-list .pc-card):hover{transform:translateY(-3px) scale(1.01)}}

/* balance card */
html:root body #main-app #page-dashboard .hbCard{background:radial-gradient(120% 100% at 0% 0%,rgba(227,192,106,.18),transparent 55%),radial-gradient(100% 100% at 100% 100%,rgba(139,92,246,.22),transparent 60%),var(--v98-glass)!important}
html:root body #main-app #page-dashboard .hbCard .hb-num{background:linear-gradient(180deg,#fff,#f6dc8a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}
html:root body #main-app #page-dashboard .hbCard :is(a,button).hb-add,html:root body #main-app #page-dashboard .hbCard .hb-bot :is(a,button){position:relative;overflow:hidden;min-height:48px}
html:root body #main-app #page-dashboard .hbCard .hb-bot :is(a,button)::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);animation:v98Shine 4.5s ease-in-out 1.5s infinite}

/* join channel */
html:root body #main-app #page-dashboard .jc2{background:linear-gradient(120deg,rgba(91,70,200,.45),rgba(20,34,66,.9))!important}

/* stat tiles: same size, same type */
html:root body #main-app #page-dashboard .statsGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
html:root body #main-app #page-dashboard .statCard{min-height:148px;padding:18px 16px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}

/* challenge: reward tiles */
html:root body #main-app #page-dashboard .challenge-winners{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
html:root body #main-app #page-dashboard .challenge-place{
  min-width:0;border-radius:20px!important;border:1px solid rgba(227,192,106,.25)!important;
  background:linear-gradient(170deg,rgba(40,62,110,.85),rgba(12,22,44,.9))!important;
  box-shadow:0 8px 18px rgba(0,0,0,.35)!important;transition:transform .2s}
html:root body #main-app #page-dashboard .challenge-place.first{border-color:#e3c06a!important;box-shadow:0 0 22px rgba(227,192,106,.25),0 8px 18px rgba(0,0,0,.35)!important}
html:root body #main-app #page-dashboard .challenge-place .medal{animation:v98Bob 3.6s ease-in-out infinite}
html:root body #main-app #page-dashboard .challenge-place:active{transform:scale(.96)}

/* leaderboard rows */
html:root body #main-app #page-dashboard .reseller{
  border-radius:20px!important;border:1px solid rgba(227,192,106,.28)!important;
  background:linear-gradient(120deg,rgba(40,62,110,.8),rgba(12,22,44,.9))!important;transition:transform .2s}
html:root body #main-app #page-dashboard .reseller:active{transform:scale(.98)}
html:root body #main-app #page-dashboard .rk-top{padding-bottom:18px}

/* ---- store ---- */
html:root body #main-app #page-home .pcf-box{padding:18px 16px 16px;overflow:hidden}
html:root body #main-app #page-home .pcf-search{height:50px}
html:root body #main-app #page-home .pcf-search span{flex:0 0 auto;width:20px;text-align:center}
html:root body #main-app #page-home #pc-list .pc-card{overflow:hidden}
html:root body #main-app #page-home #pc-list .pc-card>*{position:relative;z-index:2}
html:root body #main-app #page-home #pc-list .pc-name{background:linear-gradient(180deg,#fff,#f6dc8a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html:root body #main-app #page-home #pc-list :is(.pc-buy,.pc-btn,.pc-go){min-height:48px;border-radius:16px;touch-action:manipulation;position:relative;overflow:hidden}
html:root body #main-app #page-home #pc-list .pc-buy::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);animation:v98Shine 5s ease-in-out 2s infinite}

/* header: tidy alignment, tap targets */
html:root body #main-app #gks-hdr{align-items:center}
html:root body #main-app #gks-hdr #menu-toggle{min-width:46px;min-height:46px;touch-action:manipulation}

/* small screens */
@media (max-width:360px){
  html:root body #main-app #page-dashboard .challenge-winners{gap:6px}
  html:root body #main-app #page-dashboard .statCard{min-height:132px;padding:14px 12px}
}
@media (prefers-reduced-motion:reduce){html:root body #main-app *,html:root body #main-app *::before,html:root body #main-app *::after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
