/* ── Compact shop pages (buy-bp.html, membership.html) ── */
.shop-compact-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.shop-balance-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-back-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.shop-back-link a {
  color: var(--muted);
}

.shop-back-link a:hover {
  color: #8ec8ff;
}

.buy-bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.buy-bp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.98), rgba(12, 14, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s, transform 0.2s;
}

.buy-bp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 200, 255, 0.35);
}

.buy-bp-card.featured {
  border-color: rgba(240, 193, 77, 0.45);
}

.buy-bp-card.featured.ultimate {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2), 0 12px 32px rgba(124, 58, 237, 0.12);
}

.buy-bp-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #050608;
}

.buy-bp-badge.ultimate {
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  color: #fff;
  letter-spacing: 0.08em;
}

.buy-bp-badge.low {
  background: linear-gradient(180deg, #6ee7b7, #22c55e);
  color: #050608;
}

.buy-bp-badge.high {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
}

.hub-tier-mark-badge {
  left: 0.75rem;
  right: auto;
}

.hub-tier-value-badge {
  position: static;
  display: inline-block;
  align-self: center;
  margin: 0 0 0.5rem;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  max-width: calc(100% - 0.5rem);
}

.buy-bp-badge.value {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #050608;
}

.hub-tier-card.popular.ultimate {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2), 0 16px 48px rgba(124, 58, 237, 0.1);
}

.hub-tier-card.popular::before {
  content: none;
}

.hub-tier-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.buy-bp-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.buy-bp-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  flex: 1;
}

.buy-bp-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold, #f0c14d);
}

.buy-bp-card .btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}

.shop-compact-page .membership-compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.membership-monthly-grid.hub-tier-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hub-tier-card {
  position: relative;
}

.hub-tier-current-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(240, 193, 77, 0.2);
  border: 1px solid rgba(240, 193, 77, 0.45);
  color: #fde68a;
}

.hub-tier-evo-badge {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

.hub-tier-card.evolution-mapped {
  border-color: rgba(96, 165, 250, 0.35);
}

@media (max-width: 900px) {
  .shop-compact-page .membership-compact-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

.shop-compact-page .hub-tier-card {
  padding: 0.85rem 0.75rem 0.8rem;
}

.shop-compact-page .tier-icon-wrap {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.shop-compact-page .hub-tier-card h3 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.shop-compact-page .tier-price-inset {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
}

.shop-compact-page .tier-price-num {
  font-size: 1.05rem;
}

.shop-compact-page .tier-income-box {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.55rem;
}

.shop-compact-page .tier-income-val {
  font-size: 0.92rem;
}

.shop-compact-page .hub-tier-perks,
.shop-compact-page .membership-perks {
  max-height: 160px;
  font-size: 0.68rem;
}

.shop-compact-page .hub-tier-btn {
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
}

.shop-compact-page .hub-bp-grid .tier-income-box {
  display: none;
}

.hub-section-sub {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.88rem;
  max-width: 42rem;
}

.hub-buy-section {
  scroll-margin-top: 5rem;
}

.hub-membership-block {
  scroll-margin-top: 5rem;
}

.hub-buy-section .hub-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-membership-block .hub-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .hub-buy-section .hub-tier-grid,
  .hub-membership-block .hub-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hub-buy-section .hub-tier-grid,
  .hub-membership-block .hub-tier-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

.buy-bp-notice {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
}

.buy-bp-test-banner {
  border-color: rgba(240, 193, 77, 0.35);
  background: rgba(240, 193, 77, 0.08);
  margin-bottom: 1rem;
}
.buy-bp-foot {
  font-size: 0.78rem;
  text-align: center;
  max-width: 36rem;
  margin: 1.5rem auto 0;
}

.hub-evolution-sub {
  display: none;
}

.membership-evolution-page .hub-evolution-sub.visible {
  display: block;
  max-width: 42rem;
  margin: -0.5rem auto 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.membership-monthly-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.membership-monthly-heading {
  border-top: none;
  padding-top: 0;
}

.membership-monthly-grid {
  margin-top: 0.25rem;
}

.hub-tier-card.current-tier {
  border-color: rgba(240, 193, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(240, 193, 77, 0.15);
}

.hub-buy-section .hub-tier-btn[disabled],
.hub-membership-block .hub-tier-btn[disabled],
.membership-compact-grid .hub-tier-btn[disabled],
.membership-monthly-grid .hub-tier-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.hub-buy-section .hub-tier-btn[disabled]:hover,
.hub-membership-block .hub-tier-btn[disabled]:hover {
  transform: none;
  filter: none;
}

/* Daily income / BP pack highlight box */
.tier-income-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.tier-income-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.tier-income-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tier-income-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.tier-income-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold, #f0c14d);
  line-height: 1.2;
}

.hub-tier-note {
  width: 100%;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

/* Membership perk groups */
.membership-perks {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.hub-perk-heading {
  list-style: none;
  margin: 0.55rem 0 0.25rem;
  padding: 0.35rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-perk-heading:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.hub-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.22rem 0;
}

.hub-perk-item::before {
  content: none !important;
}

.hub-perk-bullet {
  flex-shrink: 0;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.15rem;
}

/* Tier accent themes */
.hub-tier-card.theme-hatch {
  border-color: rgba(74, 222, 128, 0.35);
}

.hub-tier-card.theme-hatch .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0.04));
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.12);
}

.hub-tier-card.theme-hatch .tier-price-inset {
  border-left: 3px solid #4ade80;
}

.hub-tier-card.theme-hatch .hub-tier-btn {
  border: 1px solid rgba(74, 222, 128, 0.55);
  background: transparent;
  color: #4ade80;
}

.hub-tier-card.theme-juvie {
  border-color: rgba(45, 212, 191, 0.35);
}

.hub-tier-card.theme-juvie .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.04));
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.12);
}

.hub-tier-card.theme-juvie .tier-price-inset {
  border-left: 3px solid #2dd4bf;
}

.hub-tier-card.theme-juvie .hub-tier-btn {
  border: 1px solid rgba(45, 212, 191, 0.55);
  background: transparent;
  color: #2dd4bf;
}

.hub-tier-card.theme-sub {
  border-color: rgba(96, 165, 250, 0.35);
}

.hub-tier-card.theme-sub .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0.04));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.12);
}

.hub-tier-card.theme-sub .tier-price-inset {
  border-left: 3px solid #60a5fa;
}

.hub-tier-card.theme-sub .hub-tier-btn {
  border: none;
  background: linear-gradient(180deg, #93c5fd, #60a5fa);
  color: #050608;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}

.hub-tier-card.theme-adult {
  border-color: rgba(240, 193, 77, 0.45);
}

.hub-tier-card.theme-adult .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(240, 193, 77, 0.22), rgba(240, 193, 77, 0.04));
  border: 1px solid rgba(240, 193, 77, 0.4);
  box-shadow: 0 0 28px rgba(240, 193, 77, 0.15);
}

.hub-tier-card.theme-adult .tier-price-inset {
  border-left: 3px solid var(--gold, #f0c14d);
}

.hub-tier-card.theme-adult .hub-tier-btn {
  border: none;
  background: linear-gradient(180deg, #fcd34d, #f0c14d);
  color: #050608;
  box-shadow: 0 4px 16px rgba(240, 193, 77, 0.25);
}

.hub-tier-card.theme-elder {
  border-color: rgba(248, 113, 113, 0.4);
}

.hub-tier-card.theme-elder .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(248, 113, 113, 0.22), rgba(248, 113, 113, 0.04));
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 0 28px rgba(248, 113, 113, 0.12);
}

.hub-tier-card.theme-elder .tier-price-inset {
  border-left: 3px solid #f87171;
}

.hub-tier-card.theme-elder .hub-tier-btn {
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: transparent;
  color: #f87171;
}

.hub-tier-card.theme-hypo {
  border-color: rgba(192, 132, 252, 0.4);
}

.hub-tier-card.theme-hypo .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.22), rgba(192, 132, 252, 0.04));
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.12);
}

.hub-tier-card.theme-hypo .tier-price-inset {
  border-left: 3px solid #c084fc;
}

.hub-tier-card.theme-hypo .hub-tier-btn {
  border: 1px solid rgba(192, 132, 252, 0.55);
  background: transparent;
  color: #c084fc;
}

.hub-tier-card.theme-hatch .tier-income-val,
.hub-tier-card.theme-juvie .tier-income-val {
  color: #86efac;
}

.hub-tier-card.theme-sub .tier-income-val {
  color: #93c5fd;
}

.hub-tier-card.theme-adult .tier-income-val {
  color: var(--gold, #f0c14d);
}

.hub-tier-card.theme-elder .tier-income-val {
  color: #fca5a5;
}

.hub-tier-card.theme-hypo .tier-income-val {
  color: #d8b4fe;
}
