/* Store UI. Phone: bottom tabs. Desktop: top bar + two columns. Admin stays on style.css. */

.store-page,
.store-page * { font-family: 'Plus Jakarta Sans', sans-serif; }

.store-page {
  min-height: 100vh;
  color: #f4f1e8;
  background-color: #0c0d10;
  background-image:
    radial-gradient(ellipse 50% 36% at 85% -8%, rgba(214, 255, 63, 0.16), transparent 58%),
    radial-gradient(ellipse 36% 28% at 0% 100%, rgba(214, 255, 63, 0.07), transparent 62%),
    linear-gradient(rgba(214, 255, 63, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 63, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 13, 16, 0.92);
  border-bottom: 1px solid rgba(214, 255, 63, 0.2);
  backdrop-filter: blur(16px);
}
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.dash-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  color: #12130f;
  background: #d6ff3f;
}
.dash-brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; }
.dash-brand-sub { color: #93a0bd; font-size: 12px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 13, 16, 0.96);
  border-top: 1px solid rgba(214, 255, 63, 0.22);
}
.tabbar button,
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #8b97b3;
  font-size: 11px;
  font-weight: 700;
}
.tabbar .is-on { color: #d6ff3f; background: rgba(214, 255, 63, 0.14); }

.ico {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #12130f;
}
.ico-blue,
.ico-cyan,
.ico-violet,
.ico-green { background: #d6ff3f; }

.app-body {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 16px 112px;
}
.app-intro { margin-bottom: 14px; }
.dash-hello { color: #9aa6c2; font-size: 13px; font-weight: 600; }
.store-hero-title {
  margin: 2px 0 0;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
#store-subtitle,
.app-intro p { color: #9aa6c2; font-size: 14px; margin-top: 4px; }
.app-foot { color: #7f8ba6; font-size: 12px; line-height: 1.45; margin-top: 14px; }

.app-layout { display: grid; gap: 12px; }

.store-main,
.hub-view,
.gauge-card,
.widget-card,
.track-page .store-card {
  background: rgba(18, 20, 16, 0.92);
  border: 1px solid rgba(214, 255, 63, 0.2);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.store-main,
.hub-view,
.track-page .store-card { padding: 16px; }
.track-page .store-main { background: none; border: 0; box-shadow: none; padding: 0; }
.track-page .store-card + .store-card { margin-top: 12px; }
.store-card { background: transparent; border: 0; box-shadow: none; padding: 0; }

.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.store-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.store-card-sub { color: #9aa6c2; font-size: 14px; margin-top: 4px; }

.store-page label {
  display: block;
  margin-bottom: 8px;
  color: #c5d0e6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none !important;
}

.store-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 46%;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.store-banner.open { color: #d6ff3f; background: rgba(214, 255, 63, 0.12); }
.store-banner.closed { color: #ffc7b8; background: rgba(180, 70, 50, 0.16); }
.store-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6ff3f;
  box-shadow: 0 0 8px #d6ff3f;
  flex: none;
}

.buy-row { display: grid; gap: 10px; }
.buy-row .store-btn-primary,
.buy-row .btn-ghost { width: 100%; min-height: 50px; }

.store-page .input-field {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 12, 26, 0.55);
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
}
.store-page .input-field::placeholder { color: #7f8ba6; font-weight: 500; }
.store-page .input-field:focus {
  outline: none;
  border-color: #d6ff3f;
  box-shadow: 0 0 0 4px rgba(214, 255, 63, 0.18);
}

.store-btn-primary,
.store-nav-link {
  border: 0;
  border-radius: 16px;
  background: #d6ff3f;
  color: #12130f !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(214, 255, 63, 0.28);
}
.store-btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 13px 16px; }
.store-btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #7f8ba6 !important;
  box-shadow: none;
}
.store-page .btn-ghost,
.store-page .copy-btn,
.store-back {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef3ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}
.store-back { padding: 8px 12px; font-size: 13px; flex: none; }

.gauge-card,
.store-trust { display: none; }
.widget-card { padding: 12px; }
.gauge-card { justify-items: center; gap: 8px; text-align: center; }
.gauge-ring {
  --pct: 70%;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #d6ff3f var(--pct), rgba(214, 255, 63, 0.12) 0);
  display: grid;
  place-items: center;
}
.gauge-core {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #12182e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-core strong { font-size: 1.2rem; font-weight: 800; }
.gauge-core span,
.gauge-label,
.widget-kicker { color: #9aa6c2; font-size: 12px; font-weight: 700; }

.store-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.store-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.store-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #9aa6c2;
  font-size: 12px;
  font-weight: 800;
}
.store-step-item.active { background: rgba(214, 255, 63, 0.12); }
.store-step-item.active .store-step-dot { background: #d6ff3f; color: #12130f; }
.store-step-item.done .store-step-dot { color: transparent; font-size: 0; background: rgba(214, 255, 63, 0.14); }
.store-step-item.done .store-step-dot::after { content: '✓'; color: #d6ff3f; font-size: 13px; }
.store-step-label { font-size: 11px; font-weight: 700; color: #c5d0e6; line-height: 1.2; }
.store-step-item.active .store-step-label { color: #fff; }

.store-trust { gap: 8px; }
.store-trust div { display: flex; gap: 10px; align-items: center; }
.store-trust strong {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #d6ff3f;
  font-size: 11px;
}
.store-trust span { color: #d5def2; font-size: 13px; font-weight: 600; }

.store-user-card { margin-top: 16px; display: grid; gap: 12px; }
.avatar-stage {
  position: relative;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 88%, rgba(214, 255, 63, 0.35), transparent 70%),
    linear-gradient(180deg, #1c2214, #0c0d10);
}
.avatar-stage::before {
  content: 'AVATAR';
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #d6ff3f;
}
.avatar-stage img {
  position: absolute;
  left: 50%;
  bottom: 6px;
  height: 92%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  z-index: 1;
}
.avatar-stage-floor { display: none; }
.avatar-kicker { color: #d6ff3f; font-size: 12px; font-weight: 800; }
#user-display { font-size: 1.4rem; font-weight: 800; color: #fff; }
#user-username { color: #9aa6c2; margin-top: 4px; }
.store-user-card .store-status,
.store-user-card .store-closed-note,
.store-user-card .store-btn-primary { grid-column: 1 / -1; }

.store-status { border-radius: 16px; font-size: 14px; }
.store-status-ok { background: rgba(214, 255, 63, 0.1); border: 1px solid rgba(214, 255, 63, 0.35); color: #d6ff3f; }
.store-status-bad { background: rgba(180, 70, 50, 0.16); border: 1px solid rgba(255, 140, 110, 0.28); color: #ffc7b8; }
.store-closed-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 170, 70, 0.12);
  color: #ffe1a8;
  font-size: 13px;
}

.store-custom-box {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.store-custom-box h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }

#packages-grid { display: flex; flex-direction: column; gap: 8px; }
.store-page .store-package-card,
.store-page .package-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 26, 0.35);
}
.store-page .store-package-card.selected,
.store-page .package-card.selected {
  background: rgba(214, 255, 63, 0.14);
  border-color: #d6ff3f;
}
.store-package-check { display: none; }
.store-package-badge {
  display: inline-block;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(255, 177, 90, 0.18);
  color: #ffd7a4;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
}
.store-package-robux { font-size: 1.35rem; font-weight: 800; color: #fff; }
.store-package-name { color: #9aa6c2; font-size: 12px; margin-top: 2px; }
.store-package-price { margin: 0; font-size: 15px; font-weight: 800; color: #d6ff3f; }
.store-package-card.disabled { opacity: 0.4; }

.store-summary-box,
.store-qris-box,
.store-order-code-box,
.store-receipt {
  background: rgba(7, 12, 26, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
}
#final-order-code,
#result-code { color: #d6ff3f !important; font-weight: 800; }
.pay-ticket-kicker { color: #9aa6c2; font-size: 12px; font-weight: 800; }
.pay-ticket-amount { font-size: 1.8rem; font-weight: 800; color: #d6ff3f; }
.pay-ticket img {
  width: min(220px, 100%);
  margin-top: 12px;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}
.pay-ticket-meta { color: #9aa6c2; }
.pay-wait { border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.pay-wait.wait { background: rgba(255, 177, 90, 0.12) !important; color: #ffe1a8; }
.pay-wait.ok { background: rgba(214, 255, 63, 0.12) !important; color: #d6ff3f; }
.pay-wait.bad { background: rgba(180, 70, 50, 0.16) !important; color: #ffc7b8; }
#step4-icon {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 255, 63, 0.14);
  color: #d6ff3f;
  font-size: 11px;
  font-weight: 800;
}

.cloth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cloth-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7, 12, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.cloth-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 14px;
  background: #10182c;
}
.cloth-card strong { font-size: 13px; font-weight: 800; line-height: 1.3; }
.cloth-card span { color: #d6ff3f; font-size: 12px; font-weight: 700; }

.group-hero { display: grid; gap: 14px; }
.group-hero img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  background: #12182c;
}
.group-hero h2 { font-size: 1.45rem; font-weight: 800; }
#group-members { color: #d6ff3f; font-weight: 800; margin-top: 4px; }
#group-desc { color: #9aa6c2; font-size: 14px; margin-top: 8px; white-space: pre-wrap; }
.group-hero .store-btn-primary { margin-top: 14px; }

.hub-head { margin-bottom: 14px; }
.hub-head h2 { font-size: 1.35rem; font-weight: 800; }
.hub-head p { color: #9aa6c2; font-size: 14px; margin-top: 4px; }

.store-page .text-red-400 { color: #ffb4a8; }
.store-page .text-emerald-400,
.store-page .text-green-400,
.store-page .text-emerald-300 { color: #d6ff3f; }
.store-page .text-amber-400,
.store-page .text-amber-300,
.store-page .text-amber-200 { color: #ffe1a8; }
.store-page .text-gray-400,
.store-page .text-gray-500,
.store-page .text-gray-600,
.store-page .text-stone-300,
.store-page .text-stone-400,
.store-page .text-stone-500 { color: #9aa6c2; }
.store-page .text-white { color: #fff; }
.store-page .border-white\/10 { border-color: rgba(255, 255, 255, 0.08); }
.store-page .bg-white\/10 { background: rgba(255, 255, 255, 0.08); }
#r-progress-bar { background: #d6ff3f; }
.store-page .badge { border-radius: 999px; font-weight: 800; font-size: 11px; }
.store-page .badge-pending { background: rgba(255, 177, 90, 0.16); color: #ffe1a8; }
.store-page .badge-awaiting,
.store-page .badge-confirmed,
.store-page .badge-active { background: rgba(214, 255, 63, 0.14); color: #d6ff3f; }
.store-page .badge-rejected,
.store-page .badge-inactive { background: rgba(180, 70, 50, 0.16); color: #ffc7b8; }
.track-rows > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 10px 0; }
#r-robux { color: #fff !important; font-weight: 800; }
#r-note { background: rgba(255, 177, 90, 0.12); color: #ffe1a8; border-radius: 14px; }

@media (min-width: 960px) {
  .app-top {
    width: min(1120px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 10px 14px;
    border: 1px solid rgba(214, 255, 63, 0.22);
    border-radius: 22px;
    background: rgba(18, 20, 16, 0.92);
  }
  .tabbar {
    position: static;
    display: flex;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
  }
  .tabbar button,
  .tabbar a {
    flex-direction: row;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    gap: 8px;
  }
  .app-body { padding: 18px 0 48px; width: min(1120px, calc(100% - 40px)); }
  .store-hero-title { font-size: 2rem; }
  .store-banner { max-width: 280px; }
  .app-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .hub-view { grid-column: 1 / -1; }
  .store-main,
  .hub-view { padding: 22px; }
  .gauge-card { display: grid; }
  .store-trust { display: grid; }
  .buy-row { display: flex; align-items: stretch; }
  .buy-row .store-input-wrap,
  .buy-row .input-field { flex: 1; }
  .buy-row .store-btn-primary,
  .buy-row .btn-ghost { width: auto; white-space: nowrap; }
  .store-stepper { grid-template-columns: 1fr; }
  .store-step-item { flex-direction: row; justify-content: flex-start; text-align: left; padding: 8px; }
  .store-step-label { font-size: 13px; }
  .store-user-card { grid-template-columns: 200px minmax(0, 1fr); align-items: center; }
  .cloth-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .group-hero { grid-template-columns: 160px minmax(0, 1fr); align-items: center; }
  .group-hero img { width: 160px; height: 160px; }
}
