body.shop-page,
body.shop-page[data-global-shop-background],
body.shop-page[data-global-shop-background-media="true"] {
  --shop-page-gradient:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.14), transparent 22%),
    linear-gradient(180deg, #101521 0%, #19130f 100%);
  --shop-bg-image: url("../assets/desktop-shop-background.webp");
  --shop-bg-overlay:
    linear-gradient(180deg, rgba(7, 10, 18, 0.52) 0%, rgba(10, 10, 14, 0.34) 22%, rgba(7, 10, 18, 0.68) 100%),
    radial-gradient(circle at top, rgba(251, 191, 36, 0.12), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 233, 189, 0.08), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(120, 53, 15, 0.16), transparent 24%);
  --shop-surface-base:
    linear-gradient(180deg, rgba(20, 26, 37, 0.84) 0%, rgba(24, 18, 14, 0.8) 100%);
  --shop-surface-soft:
    linear-gradient(180deg, rgba(28, 34, 46, 0.78) 0%, rgba(31, 23, 17, 0.74) 100%);
  --shop-card-base:
    linear-gradient(180deg, rgba(31, 38, 50, 0.9) 0%, rgba(29, 22, 17, 0.88) 100%);
  --shop-card-owned:
    linear-gradient(180deg, rgba(54, 38, 26, 0.9) 0%, rgba(28, 23, 21, 0.88) 100%);
  --shop-card-equipped:
    linear-gradient(180deg, rgba(20, 48, 40, 0.9) 0%, rgba(18, 26, 23, 0.88) 100%);
  --shop-border-soft: rgba(245, 193, 94, 0.18);
  --shop-border-strong: rgba(245, 193, 94, 0.28);
  --shop-border-cool: rgba(94, 234, 212, 0.14);
  --shop-shadow-lg: 0 26px 64px rgba(3, 7, 18, 0.46);
  --shop-shadow-md: 0 18px 42px rgba(3, 7, 18, 0.32);
  --shop-text-strong: #f5e7d3;
  --shop-text-body: #dac3a2;
  --shop-text-muted: #b89b73;
  --shop-aqua: #67e8f9;
  --shop-gold: #f3cc78;
  --shop-ink: #090d15;
  background: transparent !important;
  color: var(--shop-text-strong);
}

body.shop-page::before,
body.shop-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.shop-page::before {
  z-index: -2;
  background: var(--shop-bg-overlay), var(--shop-bg-image) center / cover no-repeat;
  transform: translateZ(0);
  will-change: transform;
}

body.shop-page::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 10, 18, 0.08), rgba(7, 10, 18, 0));
  background-size: 96px 96px, 96px 96px, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 72%);
}

.shop-shell {
  max-width: 1320px;
  margin: 30px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 0;
}

.shop-page header {
  background: rgba(9, 12, 18, 0.88);
  box-shadow: 0 14px 40px rgba(4, 6, 10, 0.38);
  backdrop-filter: blur(16px);
}

.shop-page .top-bar {
  background:
    linear-gradient(180deg, rgba(12, 15, 24, 0.94) 0%, rgba(18, 20, 29, 0.88) 100%);
  border-bottom: 1px solid rgba(245, 193, 94, 0.08);
}

.shop-page .nav-main {
  background:
    linear-gradient(180deg, rgba(22, 27, 37, 0.9) 0%, rgba(18, 14, 11, 0.88) 100%);
}

.shop-page .nav-bottom {
  background: rgba(15, 18, 27, 0.84);
  border-top: 1px solid rgba(245, 193, 94, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shop-page .nav-bottom a {
  color: var(--shop-text-body);
}

.shop-page .nav-a:hover {
  background: rgba(245, 193, 94, 0.12);
  color: #fff5e7;
}

.shop-page #nav-active-page {
  background:
    linear-gradient(180deg, rgba(120, 72, 29, 0.82) 0%, rgba(72, 42, 16, 0.92) 100%);
  color: #fff5e7;
  box-shadow:
    0 12px 24px rgba(4, 6, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shop-page .action-item {
  color: #f7ead7;
}

.shop-page .action-item:hover {
  color: #ffe8bd;
}

.shop-page .logo-text p {
  color: var(--shop-text-muted);
}

.daily-reward-popup {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0px) + 18px);
  top: calc(var(--headerH, 0px) + 18px);
  z-index: 1100;
  width: min(360px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 36px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  animation: dailyRewardPopupIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.daily-reward-popup__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #92400e;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.98) 0%, rgba(253, 230, 138, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.daily-reward-popup__body {
  min-width: 0;
}

.daily-reward-popup__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.daily-reward-popup__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.daily-reward-popup__copy {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.daily-reward-popup__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.daily-reward-popup__amount,
.daily-reward-popup__streak {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.daily-reward-popup__amount {
  background: #111827;
  color: #ffffff;
}

.daily-reward-popup__streak {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.daily-reward-popup__track {
  margin-top: 12px;
}

.daily-reward-popup__button {
  grid-column: 1 / -1;
  width: 100%;
}

@keyframes dailyRewardPopupIn {
  from {
    opacity: 0;
    transform: translateY(-10px) translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  min-height: 178px;
  padding: 28px;
  border: 1px solid rgba(245, 193, 94, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(12, 17, 27, 0.94) 0%, rgba(19, 22, 31, 0.82) 44%, rgba(40, 27, 17, 0.82) 100%);
  box-shadow:
    var(--shop-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shop-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(94, 234, 212, 0.12) 0%, transparent 30%),
    linear-gradient(70deg, transparent 42%, rgba(245, 193, 94, 0.16) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.shop-toolbar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.34), rgba(245, 193, 94, 0.46), transparent);
  pointer-events: none;
}

.shop-toolbar-info {
  max-width: 620px;
  position: relative;
}

.shop-eyebrow {
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 999px;
  color: #b9f6ef;
  background: rgba(12, 20, 27, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-toolbar-info h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--shop-text-strong);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.shop-toolbar-desc {
  max-width: 54ch;
  font-size: 14px;
  color: rgba(237, 220, 193, 0.86);
}

.shop-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shop-stat-pills {
  gap: 10px;
  flex-wrap: wrap;
}

.shop-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 193, 94, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 27, 37, 0.76) 0%, rgba(17, 18, 24, 0.72) 100%);
  color: var(--shop-text-body);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(3, 7, 18, 0.2);
}

.shop-currency-icon {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.shop-currency-icon[hidden] {
  display: none !important;
}

.shop-currency-icon-sm {
  width: 24px;
  height: 24px;
}

.shop-currency-icon-md {
  width: 26px;
  height: 26px;
}

.shop-toolbar-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-primary-btn,
.shop-ghost-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font: 700 12px/1 Inter, sans-serif;
}

.shop-primary-btn,
.shop-item-btn.primary {
  color: #26170a;
  background: linear-gradient(180deg, #f2d08b 0%, #c88a2f 100%);
  border-color: rgba(245, 193, 94, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 14px 28px rgba(4, 6, 10, 0.28);
}

.shop-primary-btn:hover:not(:disabled),
.shop-item-btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #f7dc9f 0%, #d69942 100%);
  border-color: rgba(248, 206, 123, 0.82);
}

.shop-ghost-btn {
  border-color: rgba(94, 234, 212, 0.16);
  background: rgba(11, 18, 25, 0.7);
  color: var(--shop-text-strong);
}

.shop-ghost-btn:hover,
.shop-item-btn:hover:not(:disabled) {
  background: rgba(245, 193, 94, 0.12);
}

.shop-tabs-bar {
  margin-top: 16px;
  padding: 6px;
  border: 1px solid rgba(245, 193, 94, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 15, 23, 0.86) 0%, rgba(14, 18, 26, 0.76) 100%);
  box-shadow: var(--shop-shadow-md);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 6px;
}

.shop-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--shop-text-muted);
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.shop-tab.active {
  color: #fff6e7;
  background:
    linear-gradient(180deg, rgba(69, 48, 27, 0.72) 0%, rgba(37, 32, 27, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.shop-tab-indicator {
  bottom: 6px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--shop-aqua) 0%, #f1c36f 58%, #9b6323 100%) !important;
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.22);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 24px;
  padding-top: 24px;
  min-width: 0;
}

.shop-main,
.shop-sidebar {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.shop-sidebar {
  position: sticky;
  top: 22px;
}

.shop-section,
.shop-preview-card,
.shop-sidebar-card {
  border: 1px solid rgba(245, 193, 94, 0.17);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 23, 33, 0.88) 0%, rgba(21, 19, 19, 0.82) 100%);
  box-shadow:
    var(--shop-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.shop-section {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.shop-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
  opacity: 0.7;
  pointer-events: none;
}

.shop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.shop-section-head h2 {
  font-size: 17px;
  color: var(--shop-text-strong);
}

.shop-section-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(245, 193, 94, 0.14);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.42);
  color: var(--shop-text-muted);
  font-weight: 700;
}

.shop-items-row {
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  position: relative;
  z-index: 1;
  padding-bottom: 10px;
}

.shop-items-row > .shop-item-card {
  flex-basis: 188px;
  min-width: 0;
}

.shop-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.shop-evcoin-section {
  gap: 16px;
}

.shop-evcoin-callout {
  border-color: rgba(94, 234, 212, 0.16);
  background:
    linear-gradient(135deg, rgba(18, 82, 92, 0.34), rgba(37, 99, 235, 0.12)),
    linear-gradient(180deg, rgba(14, 20, 30, 0.78), rgba(19, 18, 18, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 32px rgba(3, 7, 18, 0.22);
}

.shop-evcoin-callout-icon {
  background: rgba(12, 15, 24, 0.72);
  border-color: rgba(245, 193, 94, 0.16);
  box-shadow: 0 14px 26px rgba(4, 6, 10, 0.24);
}

.shop-evcoin-callout-title,
.shop-evcoin-package-amount {
  color: var(--shop-text-strong);
}

.shop-evcoin-callout-copy,
.shop-evcoin-package-name {
  color: var(--shop-text-body);
}

.shop-evcoin-packages {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.shop-evcoin-package-card {
  border-color: rgba(245, 193, 94, 0.18);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    var(--shop-card-base);
  box-shadow:
    0 18px 40px rgba(4, 6, 10, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.shop-evcoin-package-card:hover {
  box-shadow: 0 20px 40px rgba(4, 6, 10, 0.38);
}

.shop-evcoin-package-icon {
  background:
    radial-gradient(circle at top, rgba(245, 193, 94, 0.18), transparent 52%),
    rgba(12, 15, 24, 0.9);
  color: #f7c56f;
  border: 1px solid rgba(245, 193, 94, 0.16);
}

.shop-evcoin-package-badge {
  background: rgba(120, 72, 29, 0.38);
  color: #f7d7a8;
  border: 1px solid rgba(245, 193, 94, 0.12);
}

.shop-evcoin-package-price {
  background: rgba(245, 193, 94, 0.12);
  color: #f7d7a8;
  border: 1px solid rgba(245, 193, 94, 0.12);
}

.shop-evcoin-package-note {
  color: var(--shop-text-muted);
}

.shop-item-card {
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 193, 94, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(33, 40, 54, 0.9) 0%, rgba(24, 22, 22, 0.9) 100%);
  box-shadow:
    0 16px 34px rgba(3, 7, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
  isolation: isolate;
}

.shop-item-card:hover {
  border-color: rgba(94, 234, 212, 0.2);
  box-shadow:
    0 22px 44px rgba(3, 7, 18, 0.4),
    0 0 0 1px rgba(94, 234, 212, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.shop-item-card.is-owned:not(.is-equipped) {
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.06), transparent 40%),
    var(--shop-card-owned);
  border-color: rgba(245, 193, 94, 0.24);
}

.shop-item-card.is-equipped {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 42%),
    var(--shop-card-equipped);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow:
    0 18px 38px rgba(3, 7, 18, 0.32),
    0 0 0 1px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shop-item-preview {
  border-color: rgba(245, 193, 94, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 30, 0.96) 0%, rgba(34, 24, 17, 0.92) 100%);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -24px 36px rgba(0, 0, 0, 0.16);
}

.shop-item-title {
  font-size: 14px;
  line-height: 1.25;
  color: var(--shop-text-strong);
}

.shop-avatar-stage-card,
.shop-frame-stage,
.shop-effect-stage,
.shop-background-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 134px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.26), transparent 45%),
    linear-gradient(180deg, rgba(16, 20, 28, 0.98) 0%, rgba(36, 25, 17, 0.92) 100%);
  isolation: isolate;
}

.shop-avatar-stage-card::after,
.shop-frame-stage::after,
.shop-effect-stage::after,
.shop-background-stage::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(8px);
  z-index: 1;
}

.shop-frame-stage,
.shop-effect-stage {
  background:
    linear-gradient(135deg, rgba(245, 193, 94, 0.14), transparent 44%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 45%),
    linear-gradient(180deg, rgba(16, 20, 28, 0.98) 0%, rgba(36, 25, 17, 0.92) 100%);
}

.shop-stage-avatar.mini-avatar {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shop-stage-avatar-lg.mini-avatar {
  width: 96px;
  height: 96px;
  border-radius: 26px;
}

.shop-stage-avatar-sm.mini-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.shop-background-stage > .shop-stage-avatar {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.shop-frame-stage-media,
.shop-background-stage-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 1;
}

.shop-frame-stage-media {
  opacity: 0.96;
}

.shop-background-stage-media {
  opacity: 0.88;
}

.shop-item-meta {
  gap: 8px;
}

.item-pill {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(10, 15, 22, 0.68);
  color: var(--shop-text-body);
  border: 1px solid rgba(245, 193, 94, 0.12);
  font-weight: 800;
}

.item-pill.warning {
  background: rgba(116, 75, 26, 0.46);
  color: #ffd7a5;
}

.item-pill.success {
  background: rgba(21, 128, 61, 0.28);
  color: #b8f5c7;
}

.shop-item-btn {
  min-height: 40px;
  border-color: rgba(245, 193, 94, 0.17);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(23, 29, 39, 0.82) 0%, rgba(13, 17, 24, 0.84) 100%);
  color: var(--shop-text-strong);
  font: 700 12px/1 Inter, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-preview-card {
  padding: 20px;
  border-color: rgba(94, 234, 212, 0.16);
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(16, 23, 34, 0.93) 0%, rgba(21, 18, 18, 0.88) 100%);
  position: relative;
  overflow: hidden;
}

.shop-preview-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  pointer-events: none;
}

.shop-preview-label {
  color: var(--shop-text-muted);
}

.shop-preview-banner strong {
  font-size: 18px;
  line-height: 1.15;
  color: var(--shop-text-strong);
}

.shop-preview-avatar {
  width: 124px;
  height: 124px;
  position: relative;
  z-index: 2;
  background: rgba(16, 20, 28, 0.92);
  border-color: rgba(245, 193, 94, 0.16);
  box-shadow:
    0 0 0 var(--shop-frame-width) var(--shop-frame-accent),
    0 0 0 calc(var(--shop-frame-width) * 2 + 1px) rgba(255, 255, 255, 0.1),
    0 0 28px var(--shop-effect-glow),
    0 16px 38px rgba(4, 6, 10, 0.36);
}

.shop-preview-avatar-stage {
  position: relative;
  isolation: isolate;
  min-height: 166px;
  min-width: 0;
  margin: 4px 0 6px;
}

.shop-preview-avatar-stage::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 16px;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(10px);
}

.shop-preview-frame-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 164px;
  height: 164px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 34px;
  z-index: 1;
  pointer-events: none;
}

.shop-preview-meta {
  gap: 8px;
  min-width: 0;
  border-top-color: rgba(245, 193, 94, 0.16);
}

.shop-preview-meta > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(245, 193, 94, 0.11);
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.38);
}

.preview-label {
  color: var(--shop-text-muted);
}

.shop-preview-meta strong {
  color: var(--shop-text-body);
  overflow-wrap: anywhere;
}

.shop-preview-avatar span {
  color: var(--shop-text-strong);
}

.shop-sidebar-card {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(245, 193, 94, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 23, 33, 0.9) 0%, rgba(19, 18, 18, 0.84) 100%);
}

.shop-wallet-row {
  min-height: 42px;
}

.wallet-label,
.wallet-unit,
.wallet-copy {
  color: var(--shop-text-muted);
}

.wallet-balance {
  margin-left: auto;
  font-size: 28px;
  color: var(--shop-text-strong);
}

.shop-wallet-divider {
  background: rgba(245, 193, 94, 0.14);
}

.shop-streak-track {
  background: rgba(245, 193, 94, 0.1);
}

.shop-streak-fill {
  background: linear-gradient(90deg, #f1c36f 0%, #9b6323 100%);
}

.shop-status-line {
  padding: 13px 16px;
  border: 1px solid rgba(94, 234, 212, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(94, 234, 212, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(18, 24, 35, 0.9) 0%, rgba(20, 20, 21, 0.88) 100%);
  box-shadow: 0 16px 32px rgba(4, 6, 10, 0.28);
}

.status-copy {
  color: rgba(245, 231, 211, 0.8);
}

.empty-state {
  min-height: 132px;
  border: 1px dashed rgba(245, 193, 94, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 22, 30, 0.74) 0%, rgba(30, 22, 18, 0.72) 100%);
  color: var(--shop-text-muted);
}

.login-gate {
  margin-top: 8px;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.login-gate-card {
  width: min(100%, 360px);
  border-radius: 18px;
  border-color: rgba(245, 193, 94, 0.14);
  background: var(--shop-surface-base);
  box-shadow: var(--shop-shadow-lg);
  color: var(--shop-text-body);
}

.login-gate-card h2 {
  color: var(--shop-text-strong);
}

.login-gate-card p,
.login-gate-card i,
.shop-loading-copy {
  color: var(--shop-text-body);
}

.shop-footnote {
  margin-top: 24px;
  color: rgba(255, 245, 230, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

@keyframes shopPreviewGlow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.2);
  }
}

@media (max-width: 920px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    order: -1;
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .shop-sidebar-card:first-child,
  .shop-status-line,
  .shop-preview-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.shop-page,
  body.shop-page[data-global-shop-background],
  body.shop-page[data-global-shop-background-media="true"] {
    --shop-bg-image: url("../assets/mobile-shop-background.webp");
  }

  body.shop-page::before {
    background-position: center top;
  }

  .shop-shell {
    padding: 0 16px;
    margin-top: 18px;
  }

  .daily-reward-popup {
    left: calc(env(safe-area-inset-left, 0px) + 12px);
    top: calc(var(--headerH, 0px) + 12px);
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px);
    padding: 14px;
    border-radius: 18px;
  }

  .daily-reward-popup__title {
    font-size: 18px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 20px;
  }

  .shop-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .shop-section {
    padding: 16px;
    border-radius: 18px;
  }

  .shop-preview-card,
  .shop-sidebar-card,
  .shop-status-line {
    border-radius: 18px;
  }

  .shop-tabs-bar {
    padding: 0 6px;
  }

  .shop-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .shop-items-row > .shop-item-card {
    flex-basis: min(160px, 44vw);
  }

  .shop-sidebar {
    order: -1;
    grid-template-columns: 1fr;
  }

  .shop-preview-meta {
    grid-template-columns: 1fr;
  }
}

/* Dark mobile shop polish */
@media (max-width: 640px) {
  body.shop-page,
  body.shop-page[data-global-shop-background],
  body.shop-page[data-global-shop-background-media="true"] {
    overflow-x: hidden;
  }

  .shop-page .nav-main {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    overflow: hidden;
  }

  .shop-tabs-bar {
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 5px;
    border-radius: 16px;
  }

  .shop-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .shop-tabs-bar::after,
  .shop-tabs-bar .shop-tab-indicator {
    display: none !important;
  }

  .shop-tab {
    flex: 0 0 auto;
    min-width: max-content;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
    scroll-snap-align: start;
    background: rgba(245, 193, 94, 0.06);
  }

  .shop-tab.active {
    color: var(--shop-text-strong);
    background:
      linear-gradient(180deg, rgba(120, 72, 29, 0.82) 0%, rgba(72, 42, 16, 0.92) 100%);
    box-shadow:
      0 10px 20px rgba(4, 6, 10, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .shop-items-row > .shop-item-card {
    flex: 0 0 clamp(178px, 48%, 220px);
  }

  .shop-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-sidebar {
    order: -1;
  }
}

@media (max-width: 380px) {
  .shop-items-grid {
    grid-template-columns: 1fr;
  }

  .shop-items-row > .shop-item-card {
    flex-basis: min(240px, 82vw);
  }
}
