/* POXY Store — Tactical Terminal (embedded on Dashboard) */
.poxy-store-embed{
  width:100%;
  max-width:100%;
  margin:48px 0 0;
  padding:0 0 32px;
  box-sizing:border-box;
  position:relative;
  scroll-margin-top:calc(var(--st-nav-h,96px) + 20px);
  overflow:hidden;
  color:#e5e2e1;
}
.poxy-store-embed::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.03;
  background-image:repeating-linear-gradient(0deg,transparent,transparent 1px,#fff 1px,#fff 2px);
  mix-blend-mode:overlay;
  border-radius:24px;
}
.poxy-store-embed .poxy-store-layout{position:relative;z-index:1}
@media(min-width:768px){.poxy-store-embed{padding-bottom:48px}}
@media(min-width:1280px){.poxy-store-embed{padding-bottom:56px}}

.poxy-store-layout{
  display:flex;
  flex-direction:column;
  gap:24px;
  max-width:min(1280px,100%);
  margin:0 auto;
  min-width:0;
}
@media(min-width:900px){
  .poxy-store-layout{flex-direction:row;align-items:flex-start;gap:0}
}

.poxy-store-sidenav{
  flex-shrink:0;
  width:100%;
  background:rgba(18,18,18,0.9);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
@media(min-width:900px){
  .poxy-store-sidenav{
    width:240px;
    position:sticky;
    top:88px;
    border-radius:0 16px 16px 0;
    border-right:1px solid rgba(255,255,255,0.08);
    border-left:none;
    min-height:calc(100vh - 120px);
    padding:24px 0;
  }
}
.poxy-store-sidenav-brand{
  padding:0 16px 20px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  margin-bottom:12px;
}
.poxy-store-sidenav-icon{
  width:48px;height:48px;
  border-radius:10px;
  background:#20201f;
  border:1px solid rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;
}
.poxy-store-sidenav-icon .material-symbols-outlined{color:#f9abff;font-size:28px}
.poxy-store-sidenav-brand h2{
  font-family:'Hanken Grotesk',Inter,sans-serif;
  font-size:20px;font-weight:700;
  color:#f9abff;
  margin:0;
}
.poxy-store-sidenav-brand p{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#9d8b9b;
  margin:4px 0 0;
}

.poxy-store-nav-btn{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 20px;
  border:none;
  background:transparent;
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#9d8b9b;
  cursor:pointer;
  text-align:left;
  width:100%;
  transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
  border-left:2px solid transparent;
}
.poxy-store-nav-btn .material-symbols-outlined{font-size:20px}
.poxy-store-nav-btn:hover{color:#e5e2e1;background:rgba(53,53,53,0.35)}
.poxy-store-nav-btn.active{
  color:#f9abff;
  font-weight:700;
  border-left-color:#f9abff;
  background:rgba(249,171,255,0.06);
}
.poxy-store-nav-btn:active{transform:translateX(2px)}

.poxy-store-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:32px;
}
@media(min-width:900px){.poxy-store-main{padding-left:28px}}

.poxy-store-bento{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
@media(min-width:1024px){.poxy-store-bento{grid-template-columns:2fr 1fr}}

.poxy-store-obsidian{
  background:linear-gradient(145deg,rgba(20,20,22,0.95) 0%,rgba(10,10,12,0.85) 100%);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  box-shadow:0 4px 30px rgba(0,0,0,0.5);
  transition:border-color 0.35s cubic-bezier(0.16,1,0.3,1),box-shadow 0.35s,transform 0.35s;
}
.poxy-store-obsidian:hover{
  border-color:rgba(249,171,255,0.35);
  box-shadow:0 0 20px rgba(249,171,255,0.12);
}

.poxy-store-preview{
  padding:28px;
  position:relative;
  overflow:hidden;
}
.poxy-store-preview::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at top right,rgba(249,171,255,0.12),transparent 55%);
  pointer-events:none;
}
.poxy-store-preview-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:24px;
  position:relative;
  z-index:1;
}
.poxy-store-metallic{
  background:linear-gradient(to right,#fff,#d5c1d2,#fff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-family:'Hanken Grotesk',Inter,sans-serif;
  font-size:clamp(1.25rem,3vw,1.75rem);
  font-weight:600;
  margin:0;
}
.poxy-store-preview-sub{font-size:15px;color:#9d8b9b;margin:6px 0 0}
.poxy-store-preview-stage{
  height:16rem;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(14,14,14,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:1;
  transition:background 0.4s ease;
}
.poxy-store-preview-card{
  width:100%;
  max-width:20rem;
  padding:24px;
  border-radius:10px;
  background:rgba(19,19,19,0.55);
  border:1px solid rgba(249,171,255,0.3);
  box-shadow:0 0 40px rgba(249,171,255,0.1);
}
.poxy-store-preview-user{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.poxy-store-preview-av{
  width:64px;height:64px;
  border-radius:50%;
  border:2px solid #f9abff;
  background:#121212;
  overflow:hidden;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:28px;
}
.poxy-store-preview-av img{width:100%;height:100%;object-fit:cover}
.poxy-store-preview-handle{
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  letter-spacing:0.12em;
  color:#f9abff;
  text-transform:uppercase;
}
.poxy-store-preview-name{
  font-size:18px;
  font-weight:700;
  color:#e5e2e1;
  margin-top:4px;
}
.poxy-store-preview-bar{
  height:6px;
  background:#353535;
  border-radius:999px;
  overflow:hidden;
}
.poxy-store-preview-bar-fill{
  height:100%;
  background:#f9abff;
  width:75%;
  border-radius:999px;
}

.poxy-store-terminal{
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:280px;
}
.poxy-store-terminal-label{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#9d8b9b;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.poxy-store-terminal-pulse{
  width:8px;height:8px;
  border-radius:50%;
  background:#00E5FF;
  animation:poxy-store-pulse 2s ease-in-out infinite;
}
@keyframes poxy-store-pulse{0%,100%{opacity:1}50%{opacity:0.35}}
.poxy-store-terminal-balance{
  font-family:'Hanken Grotesk',Inter,sans-serif;
  font-size:clamp(2rem,4vw,2.5rem);
  font-weight:700;
  color:#00E5FF;
  letter-spacing:-0.02em;
  margin-bottom:20px;
}
.poxy-store-terminal-balance span{font-size:18px;color:#9d8b9b;font-weight:400}
.poxy-store-terminal-rows{display:flex;flex-direction:column;gap:12px}
.poxy-store-terminal-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  background:rgba(14,14,14,0.8);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:8px;
  font-size:14px;
}
.poxy-store-terminal-row .lbl{color:#9d8b9b}
.poxy-store-terminal-row .val{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  color:#e5e2e1;
}
.poxy-store-terminal-fund{
  margin-top:16px;
  width:100%;
  padding:14px;
  border:1px solid rgba(249,171,255,0.4);
  border-radius:8px;
  background:transparent;
  color:#f9abff;
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.poxy-store-terminal-fund:hover{
  background:#f9abff;
  color:#570066;
}

.poxy-store-uplinks h3{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#9d8b9b;
  margin:0;
  white-space:nowrap;
}
.poxy-store-uplinks-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:16px;
}
.poxy-store-uplinks-rule{flex:1;height:1px;background:rgba(255,255,255,0.08)}
.poxy-store-uplinks-tray{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:8px;
  scrollbar-width:none;
}
.poxy-store-uplinks-tray::-webkit-scrollbar{display:none}
.poxy-store-uplink{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 16px;
  border-radius:999px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  letter-spacing:0.06em;
}
.poxy-store-uplink.cyan{
  border:1px solid rgba(0,229,255,0.3);
  background:rgba(0,229,255,0.06);
  color:#00E5FF;
}
.poxy-store-uplink.primary{
  border:1px solid rgba(249,171,255,0.3);
  background:rgba(249,171,255,0.06);
  color:#f9abff;
}
.poxy-store-uplink.ghost{
  border:1px dashed rgba(255,255,255,0.12);
  color:#9d8b9b;
  background:transparent;
  cursor:pointer;
  transition:color 0.2s,border-color 0.2s;
}
.poxy-store-uplink.ghost:hover{color:#e5e2e1;border-color:rgba(255,255,255,0.25)}

.poxy-store-grid-header{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:24px;
}
.poxy-store-grid-header h2{
  font-family:'Hanken Grotesk',Inter,sans-serif;
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:700;
  margin:0;
}
.poxy-store-grid-header p{font-size:15px;color:#9d8b9b;margin:8px 0 0}

#stPanelStore{
  padding:24px 20px calc(80px + env(safe-area-inset-bottom, 0px));
  box-sizing:border-box;
}
@media(min-width:900px){
  #stPanelStore{padding:28px 24px calc(96px + env(safe-area-inset-bottom, 0px))}
}

.poxy-store-layout--pass .poxy-store-bento,
.poxy-store-layout--pass .poxy-store-uplinks,
.poxy-store-layout--vip .poxy-store-bento,
.poxy-store-layout--vip .poxy-store-uplinks{display:none}
.poxy-store-layout--pass .poxy-store-sidenav,
.poxy-store-layout--vip .poxy-store-sidenav{min-height:auto}

.poxy-store-grid--pass{
  display:block!important;
  grid-template-columns:1fr!important;
}
.poxy-store-grid--pass .poxy-pass-panel{width:100%;max-width:100%}

.poxy-pass-scroll{
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
  max-height:calc(100dvh - var(--st-nav-h, 92px) - 220px);
  min-height:200px;
  padding-right:4px;
  margin-top:4px;
}
@media(min-width:768px){
  .poxy-pass-scroll{max-height:calc(100dvh - var(--st-nav-h, 92px) - 200px)}
}

.poxy-store-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
@media(min-width:640px){.poxy-store-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.poxy-store-grid{grid-template-columns:repeat(3,1fr)}}

.poxy-store-card{
  padding:24px;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.poxy-store-card:hover{transform:translateY(-4px)}
.poxy-store-card.equipped{border-color:rgba(249,171,255,0.45)!important}
.poxy-store-card-badge{
  position:absolute;
  top:0;right:0;
  padding:6px 12px;
  background:#f9abff;
  color:#570066;
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-bottom-left-radius:10px;
  z-index:2;
}
.poxy-store-card-visual{
  height:10rem;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.08);
  margin-bottom:20px;
  position:relative;
  overflow:hidden;
}
.poxy-store-card-visual::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.75),transparent 50%);
}
.poxy-store-card-tag{
  position:absolute;
  bottom:12px;left:12px;
  z-index:1;
  padding:4px 8px;
  background:#20201f;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:4px;
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  color:#e5e2e1;
  text-transform:uppercase;
}
.poxy-store-card h4{
  font-size:17px;
  font-weight:700;
  color:#e5e2e1;
  margin:0 0 8px;
}
.poxy-store-card.equipped h4{color:#f9abff}
.poxy-store-card-foot{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.poxy-store-card-price{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  color:#00E5FF;
  font-weight:600;
}
.poxy-store-card-price.muted{
  color:#9d8b9b;
  text-decoration:line-through;
}
.poxy-store-card-status{
  display:flex;
  align-items:center;
  gap:4px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  color:#e5e2e1;
}
.poxy-store-card-acquire{
  padding:8px 16px;
  border:1px solid rgba(249,171,255,0.35);
  border-radius:6px;
  background:transparent;
  color:#f9abff;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  cursor:pointer;
  transition:all 0.3s cubic-bezier(0.16,1,0.3,1);
  flex-shrink:0;
}
.poxy-store-card-acquire:hover{
  background:#f9abff;
  color:#570066;
}
.poxy-store-card-acquire:disabled{
  opacity:0.45;
  cursor:not-allowed;
}

.poxy-store-empty{
  grid-column:1/-1;
  text-align:center;
  padding:48px 24px;
  border:1px dashed rgba(255,255,255,0.12);
  border-radius:14px;
  color:#9d8b9b;
  font-size:15px;
}
.poxy-store-signin{
  text-align:center;
  padding:64px 24px;
  color:#9d8b9b;
}
