#tab-shop {
  --store-accent: #e9a23b;
  --store-red: #df3d48;
  --store-panel: #17191e;
  --store-panel-2: #202329;
  --store-line: rgba(255, 255, 255, .09);
  gap: 12px !important;
  padding-bottom: 118px;
}

/* Compact store header */
#tab-shop .shop-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 0;
  margin: 0;
  padding: 4px 2px 14px;
  border: 0;
  border-bottom: 1px solid var(--store-line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#tab-shop .shop-hero::after,
#tab-shop .shop-hero-art { display: none; }
#tab-shop .shop-hero-copy { position: static; max-width: none; }
#tab-shop .shop-hero-title { font: 800 26px/1 "Syne", "Outfit", sans-serif; letter-spacing: -.04em; }
#tab-shop .shop-hero-sub { margin-top: 5px; color: var(--text-mute); font-size: 11px; }

#tab-shop .shop-wallet-row {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

#tab-shop .shop-wallet-chip {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 8px 5px;
  border-radius: 11px;
  background: var(--store-panel);
}
#tab-shop .shop-wallet-val { max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; }
#tab-shop .shop-wallet-lbl { color: var(--text-mute); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
#tab-shop .shop-wallet-sep { display: none; }

/* One simple category row, no floating/sticky chrome */
.shop-jumpbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--store-line);
  border-radius: 13px;
  background: #111317;
}
.shop-jumpbar button {
  min-width: 0;
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  color: #8f949e;
  background: transparent;
  font: 750 10px "Outfit", sans-serif;
  white-space: nowrap;
}
.shop-jumpbar button:first-child { color: #17120b; background: var(--store-accent); }
.shop-jumpbar button:active { transform: scale(.97); }

/* Featured regular spins */
.shop-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: var(--store-panel);
  scroll-margin-top: 12px;
}
.shop-feature-media { height: 178px; overflow: hidden; background: #0c0d10; }
.shop-feature-media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 178px;
  background: linear-gradient(90deg, rgba(8, 9, 11, .96) 0%, rgba(8, 9, 11, .56) 44%, rgba(8, 9, 11, .08) 78%);
  pointer-events: none;
}
.shop-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.shop-feature-copy { position: absolute; z-index: 2; top: 22px; left: 18px; width: 46%; }
.shop-feature-copy h2 { margin: 0 0 12px; color: #fff; font: 800 29px/1 "Syne", "Outfit", sans-serif; letter-spacing: -.04em; }
.shop-feature-copy p { display: none; }
.shop-rate { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 1px 6px; font-size: 11px; }
.shop-rate b { color: #fff; }
.shop-rate span { color: #7f858f; }
.shop-rate strong { grid-column: 1 / -1; margin-top: 2px; color: var(--store-accent); font-size: 15px; }

.spin-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 11px; }
.spin-pack {
  position: relative;
  min-width: 0;
  min-height: 61px;
  padding: 9px 4px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  color: #fff;
  background: var(--store-panel-2);
  font-family: "Outfit", sans-serif;
}
.spin-pack span,
.spin-pack b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin-pack span { font-size: 11px; font-weight: 800; }
.spin-pack b { margin-top: 5px; color: #9ca2ac; font-size: 9px; }
.spin-pack i { display: none; }
.spin-pack.is-featured { border-color: var(--store-accent); background: var(--store-accent); color: #17120b; }
.spin-pack.is-featured b { color: rgba(23, 18, 11, .68); }
.spin-pack:active { transform: scale(.97); }
.spin-pack:disabled { opacity: .48; }
.shop-inline-status { min-height: 0; padding: 0 11px 9px; color: #8e939c; font-size: 10px; text-align: center; }

/* VIP is a product card, not a second hero */
#tab-shop .elite-stage {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden;
  border: 1px solid var(--store-line) !important;
  border-radius: 18px !important;
  background: var(--store-panel) !important;
  scroll-margin-top: 12px;
}
.elite-stage-art {
  position: static !important;
  width: 104px !important;
  height: 104px !important;
  border-radius: 13px;
  object-fit: cover;
  opacity: 1;
  mask-image: none;
}
#tab-shop .elite-stage-top { position: static; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
#tab-shop .elite-title { margin: 0; font: 800 19px/1.08 "Syne", "Outfit", sans-serif; letter-spacing: -.03em; }
#tab-shop .elite-sub { margin: 0; color: var(--text-mute); font-size: 10px; }
#tab-shop .elite-cost-chip { padding: 0; border: 0; color: var(--store-accent); background: transparent; font-size: 10px; font-weight: 800; }

.elite-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
}
.elite-details summary { padding: 11px 2px; color: #a6abb4; font-size: 10px; font-weight: 750; cursor: pointer; list-style-position: inside; }
.elite-details[open] summary { color: #fff; }
#tab-shop .elite-pity-block { margin: 0 0 10px; padding: 10px; border: 0; border-radius: 11px; background: #111317; }
#tab-shop .elite-pity-row { display: grid; grid-template-columns: 57px 1fr 34px; gap: 7px; align-items: center; }
#tab-shop .elite-pity-row + .elite-pity-row { margin-top: 8px; }
#tab-shop .elite-pity-lbl,
#tab-shop .elite-pity-num { font-size: 8px; }
#tab-shop .elite-rates { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 2px 11px; color: var(--text-mute); font-size: 8px; }

#tab-shop .elite-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#tab-shop .elite-btn {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  color: #fff;
  background: var(--store-panel-2);
  font: 800 11px "Outfit", sans-serif;
}
#tab-shop .elite-btn-pack { border-color: var(--store-accent); color: #17120b; background: var(--store-accent); }
#tab-shop .elite-save { display: block; margin-top: 2px; color: rgba(23, 18, 11, .64); font-size: 8px; }
#tab-shop .elite-result { grid-column: 1 / -1; }

/* Currency products */
#tab-shop .shop-section-head { display: flex; align-items: center; justify-content: space-between; margin: 9px 2px 0; scroll-margin-top: 12px; }
#tab-shop .shop-section-head .section-heading { margin: 0; font-size: 18px; }
#tab-shop .shop-bonus-note { padding: 0; color: var(--store-accent); background: transparent; font-size: 9px; font-weight: 800; }
#tab-shop .shop-grid { margin: 0; }
#tab-shop .shop-grid-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#tab-shop .shop-pack {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "amount name" "amount price";
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  color: #fff;
  background: var(--store-panel);
  text-align: left;
}
#tab-shop .shop-pack-amt { grid-area: amount; margin-right: 10px; color: var(--store-accent); font: 800 28px/1 "Syne", sans-serif; }
#tab-shop .shop-pack-name { grid-area: name; align-self: end; font-size: 11px; font-weight: 800; }
#tab-shop .shop-pack-price { grid-area: price; align-self: start; margin-top: 2px; color: var(--text-mute); font-size: 8px; }
#tab-shop .featured-badge { display: none; }
#tab-shop .shop-pack.featured { border-color: rgba(233, 162, 59, .44); }
#tab-shop .shop-pack:active { transform: scale(.98); }

#tab-shop .exchange-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  color: #fff;
  background: #111317;
  text-align: left;
}
#tab-shop .exchange-copy { flex: 1; }
#tab-shop .exchange-title,
#tab-shop .exchange-sub { display: block; }
#tab-shop .exchange-title { font-size: 11px; font-weight: 800; }
#tab-shop .exchange-sub { margin-top: 2px; color: var(--text-mute); font-size: 8px; }
#tab-shop .exchange-arrow { color: var(--store-accent); font-size: 22px; }

/* Themes */
.shop-theme-showcase {
  position: relative;
  height: 112px;
  margin: 9px 0 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 17px;
  background: var(--store-panel);
  scroll-margin-top: 12px;
}
.shop-theme-showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .94), rgba(8, 9, 11, .12)); }
.shop-theme-showcase img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 50%; }
.shop-theme-showcase div { position: absolute; z-index: 2; left: 15px; top: 50%; transform: translateY(-50%); }
.shop-theme-showcase strong,
.shop-theme-showcase span { display: block; }
.shop-theme-showcase strong { color: #fff; font: 800 18px/1 "Syne", sans-serif; }
.shop-theme-showcase span { margin-top: 6px; color: #a3a8b1; font-size: 9px; }
#tab-shop .shop-theme-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--store-line); border-radius: 13px; background: #111317; mask-image: none; }
#tab-shop .shop-theme-tabs .filter-pill { min-height: 36px; border: 0; border-radius: 9px; font-size: 10px; }
#tab-shop .shop-theme-panel { margin: 0; }

/* Cooldown purchase sheet */
.cooldown-sheet {
  --store-accent: #e9a23b;
  --store-line: rgba(255, 255, 255, .09);
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 6, 8, .78);
  transition: opacity .18s ease, visibility .18s ease;
}
.cooldown-sheet.open { visibility: visible; opacity: 1; }
.cooldown-sheet-card {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 24px 18px 17px;
  border: 1px solid var(--store-line);
  border-radius: 20px;
  background: #17191e;
  transform: translateY(18px);
  transition: transform .18s ease;
}
.cooldown-sheet.open .cooldown-sheet-card { transform: translateY(0); }
.cooldown-sheet-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 1px solid var(--store-line); border-radius: 11px; color: #aaaeb6; background: #202329; }
.cooldown-sheet-kicker { color: var(--store-accent); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cooldown-sheet h2 { margin: 8px 0 10px; font: 800 23px/1.08 "Syne", sans-serif; }
.cooldown-sheet-time { color: var(--store-accent); font: 800 34px/1 "Syne", monospace; letter-spacing: .03em; }
.cooldown-sheet p { margin: 12px 0 17px; color: #9ba0aa; font-size: 13px; line-height: 1.42; }
.cooldown-shop-button { width: 100%; min-height: 52px; border: 0; border-radius: 13px; color: #17120b; background: var(--store-accent); font: 850 14px "Outfit", sans-serif; }
.cooldown-shop-button:active { transform: scale(.98); }

@media (max-width: 360px) {
  #tab-shop .shop-hero { grid-template-columns: 1fr; }
  #tab-shop .shop-wallet-row { width: 100%; }
  .shop-jumpbar button { font-size: 9px; }
  .shop-feature-media { height: 164px; }
  .shop-feature-media::after { height: 164px; }
  #tab-shop .elite-stage { grid-template-columns: 90px minmax(0, 1fr); }
  .elite-stage-art { width: 90px !important; height: 96px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cooldown-sheet,
  .cooldown-sheet-card { transition: none; }
}
