/* Marvel Nums — consistent professional layout polish.
   Presentation-only overrides: preserve the existing brand palette, page content,
   forms, API logic and purchase flows. */
:root {
  --mvn-polish-radius: 15px;
  --mvn-polish-gap: 14px;
}
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
main, .page, .wrap, .container, .dsh-shell, .app-shell {
  min-width: 0;
}
img, svg, video { max-width: 100%; }

/* Consistent compact marketplace/product cards */
.cards-grid, #marketGrid, .prod-grid, .products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr));
  align-items: stretch;
  gap: var(--mvn-polish-gap) !important;
}
.prod-card-wrap { min-width: 0; }
.prod-card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--mvn-polish-radius) !important;
  border: 1px solid rgba(110, 160, 235, .22) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18) !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
.prod-card:hover {
  transform: none !important;
  border-color: rgba(70, 165, 255, .55) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24) !important;
}
.prod-img, .prod-img-ph {
  height: 126px !important;
  min-height: 126px !important;
  overflow: hidden;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  padding: 12px !important;
  min-width: 0;
}
.prod-title {
  font-size: .94rem !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere;
}
.prod-desc {
  font-size: .77rem !important;
  line-height: 1.45 !important;
  max-height: 3.1em !important;
  overflow: hidden;
}
.prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
}
.prod-price { font-size: 1rem !important; font-weight: 800 !important; }
.prod-select-btn {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border-radius: 10px !important;
  font-size: .84rem !important;
  font-weight: 750 !important;
}
.prod-badge { font-size: .67rem !important; }

/* Buy Number 1 / 2 / 3 and service selection tiles */
.mvn-number-hub .wrap > .grid, .buy-number-grid, .number-options-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)) !important;
  gap: 13px !important;
}
.choice {
  min-width: 0;
  padding: 17px !important;
  border-radius: var(--mvn-polish-radius) !important;
  border: 1px solid rgba(110, 160, 235, .24) !important;
  background: linear-gradient(145deg, rgba(15, 27, 68, .96), rgba(11, 22, 55, .96)) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .17) !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
.choice:hover {
  transform: none !important;
  border-color: rgba(70, 165, 255, .6) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22) !important;
}
.choice .emoji { font-size: 25px !important; line-height: 1.2; }
.choice h2 { margin: 10px 0 6px !important; font-size: 1rem !important; line-height: 1.35; }
.choice p { margin: 0; font-size: .8rem; line-height: 1.5; }
.choice .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 13px !important;
  padding: 9px 13px !important;
  border-radius: 10px !important;
  font-size: .8rem;
}

/* Number server cards and selectable service tiles */
.srv-grid { gap: 10px !important; }
.srv-card {
  min-height: 66px;
  padding: 11px 13px !important;
  border-radius: 13px !important;
}
.srv-card .srv-ico { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
.srv-card h4 { font-size: .88rem !important; }
.srv-card .srv-sub { font-size: .72rem !important; }
.active-number-card, .phone-display {
  border-radius: 14px !important;
}

/* Shared card rhythm across customer pages */
.dsh-card, .stat-card, .tool-card, .service-card, .feature-card,
.order-card, .txn-card, .wallet-card, .settings-card, .panel,
.how-card, .supp-card, .why-card, .ls-card, .offer-card {
  border-radius: var(--mvn-polish-radius);
}
.stat-card { min-width: 0; }
button, a, input, select, textarea { max-width: 100%; }
button { touch-action: manipulation; }

/* Small screens: compact but readable, never force horizontal card overflow */
@media (max-width: 600px) {
  .cards-grid, #marketGrid, .prod-grid, .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .prod-img, .prod-img-ph { height: 104px !important; min-height: 104px !important; }
  .prod-body { padding: 10px !important; gap: 6px; }
  .prod-title { font-size: .84rem !important; }
  .prod-desc { font-size: .72rem !important; }
  .prod-price { font-size: .9rem !important; }
  .prod-select-btn { min-height: 37px; padding: 8px !important; font-size: .78rem !important; }
  .mvn-number-hub .wrap { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 360px) {
  .cards-grid, #marketGrid, .prod-grid, .products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
