.shopPage {
  --shop-mono: "IBM Plex Mono", Consolas, monospace;
  padding: 28px;
  container-type: inline-size;
  scrollbar-color: #35423e var(--bg);
}
.shopIntro h1 { font-size: 24px; line-height: 32px; }
.shopIntro p, .shopAudience { color: var(--muted); line-height: 20px; }
.shopIntro p { margin-top: 6px; }
.shopSummary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 32px;
  padding: 24px 26px;
  border: 1px solid #282c2e;
  border-radius: 16px;
  background: linear-gradient(105deg, #132020, #10151a 24%, #101318 72%, #1c1913);
}
.shopBalance {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.shopCoin {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #765713;
  border-radius: 16px;
  background: #302c1c;
  color: #ffca32;
  box-shadow: 0 3px 22px #daa31524;
}
.shopCoin i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffc130;
  color: #211b06;
}
.shopMicro { font: 10px/1.4 var(--shop-mono); letter-spacing: .055em; color: #a4a6af; }
.shopBalanceText { min-width: 0; }
.shopBalanceLine { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.shopBalanceLine b, .shopAllowance b, .shopPrice b {
  color: #f7faf9;
  font: 700 30px/1.15 var(--shop-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.shopBalanceLine > span {
  padding: 2px 8px;
  border: 1px solid #5f4b12;
  border-radius: 20px;
  background: #2b2816;
  color: #f3cb57;
  font-size: 11px;
  font-weight: 650;
}
.shopFacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.shopFacts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  width: 142px;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid #292d2e;
  border-radius: 12px;
  background: #ffffff06;
}
.shopFacts svg { grid-row: span 2; color: var(--green); }
.shopFacts > div:nth-child(2) svg { color: #2ed1ee; }
.shopFacts dt { color: #e5e7e7; font-size: 13px; font-weight: 600; }
.shopFacts dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.shopGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shopPack {
  --pack-ink: #a4a9b2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 588px;
  padding: 34px 24px 24px;
  border: 1px solid #262a2d;
  border-radius: 16px;
  background: #101316;
}
.shopPack[data-pack="creator"] {
  --pack-ink: #00d2a5;
  border-color: #00cb9b;
  background: linear-gradient(178deg, #06110f, #101618 52%, #101617);
  box-shadow: 0 8px 32px #00bd9016;
}
.shopPack[data-pack="pro"] {
  --pack-ink: #ffb000;
  border-color: #8b5e08;
  background: linear-gradient(178deg, #150e0a, #121517 52%, #101416);
  box-shadow: 0 8px 30px #ffa6000d;
}
.shopRibbon {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -55%);
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--pack-ink);
  color: #091512;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  white-space: nowrap;
}
.shopPackHead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shopPackHead h2 { font-size: 18px; line-height: 24px; }
.shopPackHead .shopMicro { white-space: nowrap; }
.shopAudience { margin-top: 4px; font-size: 13px; line-height: 18px; }
.shopAllowance {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #ffffff0e;
  border-radius: 12px;
  background: #0004;
  color: #b6bbc0;
  font-size: 12px;
  font-weight: 600;
}
.shopAllowance p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-weight: 400; line-height: 18px; }
.shopAllowance .shopBonus { color: var(--green); font-weight: 600; }
.shopFeaturesLabel { font-weight: 700; }
.shopFeatures { display: grid; gap: 8px; margin: 13px 0 24px; padding: 0; list-style: none; }
.shopFeatures li { display: flex; align-items: baseline; gap: 8px; color: #cacece; font-size: 12px; line-height: 21px; }
.shopFeatures svg { align-self: flex-start; margin-top: 4px; color: var(--pack-ink); }
.shopPackFoot { margin-top: auto; padding-top: 24px; border-top: 1px solid #ffffff13; }
.shopPrice { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; color: #b0b5bd; font-size: 13px; }
.shopPrice b { margin: 0 3px; }
.shopPrice small { color: #adb1ba; font: 11px/1.4 var(--shop-mono); }
.shopBuy { width: 100%; min-height: 44px; border: 1px solid #404348; border-radius: 12px; background: #232327; color: #f3f4f6; font-size: 16px; }
.shopPack[data-pack="creator"] .shopBuy { border-color: #1aa97f; background: linear-gradient(105deg, #0ba87b, #077f5e 42%, #077f5e 58%, #068f69); color: white; box-shadow: 0 5px 22px #00c69032; }
.shopPack[data-pack="pro"] .shopBuy { border-color: #efa90b; background: linear-gradient(105deg, #ffbd00, #ff9c00); color: #181106; }
.shopBuy:hover:not(:disabled) { filter: brightness(1.07); border-color: currentColor; }
.shopNote, .shopStatus { color: var(--muted); line-height: 1.6; }
.shopNote { margin-top: 18px; font-size: 12px; }
.shopStatus { margin: 24px 0; }
.shopReceipt { display: grid; gap: 12px; margin: 0; }
.shopReceipt > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.shopReceipt dt { color: var(--soft); }
.shopReceipt dd { margin: 0; font-variant-numeric: tabular-nums; }
.shopReceiptTotal { border-top: 1px solid var(--line); padding-top: 14px; }
.shopReceiptTotal dd { font-size: 22px; font-weight: 650; color: var(--bright); }
.shopReceiptNote { display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px; background: #202622; line-height: 1.55; }
.shopReceiptNote span { color: var(--soft); font-size: 13px; }

@container (min-width: 546px) { .shopFacts dd { white-space: nowrap; } }
@container (max-width: 1050px) {
  .shopGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .shopPack { min-height: 0; }
}
@container (max-width: 900px) {
  .shopFacts { flex: 1 0 100%; }
  .shopFacts > div { width: auto; }
}
@media (max-width: 1000px) { .shopPage { padding: 20px; } }
@media (max-width: 680px) { .shopPage { padding: 18px 12px 28px; } }
@container (max-width: 545px) {
  .shopGrid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .shopIntro h1 { font-size: 21px; line-height: 1.4; }
  .shopSummary { margin: 18px 0 26px; padding: 16px; gap: 16px; }
  .shopFacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shopFacts > div { padding: 8px; gap: 2px 6px; }
  .shopPack { padding: 24px 18px 18px; }
  .shopAllowance { margin: 18px 0; }
  .shopFeatures { gap: 6px; margin-bottom: 18px; }
  .shopPackFoot { padding-top: 16px; }
}
