.shop-page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  /* body.has-app-nav already offsets fixed top nav */
  padding: 20px 20px calc(var(--mbn-h, 64px) + var(--safe-bottom, 0px) + 32px);
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}
.shop-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 8vw, 52px);
  letter-spacing: 0.08em;
  color: var(--white, #f0ece4);
  margin-bottom: 8px;
}
.shop-sub {
  color: var(--muted2, #888);
  font-size: 14px;
  margin-bottom: 12px;
}
.shop-plus-status {
  font-size: 12px;
  color: var(--gold, #c8a96e);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.shop-billing-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted2, #888);
  margin: 0 0 20px;
  max-width: 40rem;
}

.shop-billing-note a {
  color: var(--gold, #c8a96e);
  text-decoration: none;
}

.shop-billing-note a:hover {
  text-decoration: underline;
}

.shop-checkout-banner {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted2, #888);
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid var(--border2, #2a2a2a);
  background: var(--surface2, #141414);
}

.shop-checkout-banner.is-success {
  color: var(--green, #4a9e6a);
  border-color: rgba(74, 158, 106, 0.35);
}

.shop-checkout-banner.is-warning {
  color: var(--white, #f0ece4);
  border-color: rgba(200, 169, 110, 0.45);
  background: rgba(200, 169, 110, 0.08);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.shop-card {
  background: var(--surface, #111);
  border: 1px solid var(--border, #1e1e1e);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
}
.shop-card-featured {
  border-color: var(--gold, #c8a96e);
  box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.15);
}
.shop-deal-banner {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  background: linear-gradient(90deg, #8a6f3e, #c8a96e);
  color: #000;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.shop-card-featured .shop-card-title {
  margin-top: 28px;
}
.shop-deal-save {
  font-size: 9px;
  opacity: 0.85;
}
.shop-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--white, #f0ece4);
}
.shop-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted2, #888);
  flex: 1;
}
.shop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.shop-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gold, #c8a96e);
}
.shop-buy-btn {
  background: var(--gold, #c8a96e);
  color: #000;
  border: none;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}
.shop-buy-btn:hover {
  filter: brightness(1.08);
}
.shop-owned {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green, #6fcf97);
}

.xp-bar-wrap {
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: var(--surface, #111);
  border: 1px solid var(--border, #1e1e1e);
}
.xp-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.xp-level { color: var(--gold, #c8a96e); }
.xp-points { color: var(--muted2, #888); }
.xp-bar-track {
  height: 6px;
  background: var(--border, #1e1e1e);
  border-radius: 3px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a6f3e, #c8a96e);
  transition: width 0.4s ease;
}

.activity-estimator {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--border2, #2a2a2a);
  background: var(--surface, #111);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.activity-estimator-body {
  min-width: 0;
  max-width: 100%;
}

.activity-estimator-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 4.5vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.activity-estimator-desc {
  font-size: 13px;
  color: var(--muted2, #888);
  max-width: 100%;
  margin: 8px 0 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.activity-estimator-desc a {
  color: var(--gold, #c8a96e);
}

.activity-estimator-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.activity-estimator-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gold, #c8a96e);
  color: var(--gold, #c8a96e);
  padding: 12px 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  margin: 0 auto;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.activity-estimator-cta:hover {
  background: rgba(200, 169, 110, 0.1);
  color: var(--gold3, #f0d090);
}

.activity-estimator-locked {
  opacity: 0.88;
}

.activity-estimations-section {
  margin-bottom: 0;
}

#estimatorMount {
  min-width: 0;
  max-width: 100%;
}

.estimations-note {
  font-size: 12px;
  color: var(--muted2, #888);
  margin: 12px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.estimations-note a {
  color: var(--gold, #c8a96e);
}

.estimations-toolbar {
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.estimations-toolbar .activity-estimator-cta {
  width: 100%;
}

.estimations-empty {
  padding: 24px 18px;
  border: 1px dashed var(--border2, #2a2a2a);
  color: var(--muted2, #888);
  font-size: 13px;
  line-height: 1.6;
}

.estimations-grid {
  display: grid;
  gap: 12px;
}

.estimations-card {
  border: 1px solid var(--border2, #2a2a2a);
  background: var(--surface, #111);
  padding: 16px 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
}

.estimations-card-highlight {
  border-color: var(--gold, #c8a96e);
  box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.25);
}

.estimations-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-width: 0;
}

.estimations-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.estimations-card-status {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2, #888);
}

.estimations-status-complete {
  color: var(--gold, #c8a96e);
}

.estimations-card-type {
  font-size: 14px;
  color: var(--text, #e2e2e2);
  margin: 0 0 6px;
}

.estimations-card-tag {
  font-size: 12px;
  color: var(--muted2, #888);
  margin: 0 0 8px;
  line-height: 1.5;
}

.estimations-card-date {
  font-size: 11px;
  color: var(--muted, #555);
  margin: 0 0 12px;
}

.estimations-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estimations-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--gold, #c8a96e);
  color: var(--gold, #c8a96e);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.estimations-card-btn-sec {
  border-color: var(--border2, #2a2a2a);
  color: var(--muted2, #888);
}
.shop-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.intro-main-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 20px;
}
.intro-meta-compact {
  margin-bottom: 32px;
}
.intro-shop-hint {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.04em;
}
.intro-shop-hint a {
  color: var(--accent);
}

/* Feature comparison table */
.shop-compare-section {
  margin-bottom: 28px;
  min-width: 0;
  max-width: 100%;
}

.shop-compare-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 0.08em;
  color: var(--white, #f0ece4);
  margin-bottom: 8px;
}

.shop-compare-lead {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted2, #888);
  margin-bottom: 16px;
  max-width: 42rem;
}

.shop-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border, #1e1e1e);
  border-radius: 2px;
  background: var(--surface, #111);
}

.shop-compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
}

.shop-compare-table th,
.shop-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #1e1e1e);
  text-align: left;
  vertical-align: top;
}

.shop-compare-table thead th {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2, #888);
  background: var(--surface2, #141414);
}

.shop-compare-table thead th.shop-col-paid {
  color: var(--gold, #c8a96e);
  background: linear-gradient(180deg, rgba(200, 169, 110, 0.08) 0%, var(--surface2, #141414) 100%);
}

.shop-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.shop-compare-feature {
  color: var(--text, #e2e2e2);
  font-weight: 500;
  max-width: 14rem;
}

.shop-compare-note {
  display: block;
  font-size: 10px;
  color: var(--muted, #555);
  margin-top: 4px;
  line-height: 1.45;
  font-weight: 400;
}

.shop-compare-yes {
  color: var(--green, #6fcf97);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.shop-compare-highlight {
  color: var(--gold, #c8a96e);
  font-weight: 500;
  line-height: 1.45;
}

.shop-compare-muted {
  color: var(--muted, #555);
}

.shop-compare-foot {
  padding: 12px 14px;
  font-size: 11px;
  color: var(--muted2, #888);
  line-height: 1.55;
  border-top: 1px solid var(--border, #1e1e1e);
  background: rgba(200, 169, 110, 0.04);
}

@media (max-width: 768px) {
  .shop-page {
    padding-top: 16px;
    padding-bottom: calc(var(--mbn-h, 64px) + var(--safe-bottom, 0px) + 40px);
  }

  .shop-card-foot {
    flex-wrap: wrap;
    gap: 10px;
  }

  .shop-buy-btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 560px) {
  .activity-estimator {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
  }

  .activity-estimator-actions {
    justify-content: flex-end;
    width: auto;
  }

  .activity-estimator-cta {
    width: auto;
    min-width: 132px;
    max-width: min(220px, 38vw);
    white-space: nowrap;
    margin: 0;
  }
}
