@import url('/css/styles.css?v=footer-redesign-1');

/* ── Topup page overrides ─────────────────── */

.nav-active { color: var(--primary) !important; background: var(--primary-light) !important; }

/* ── Method Selector ── */
.method-selector {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.method-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.method-selector-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
  margin: 0;
}
.method-guarantee-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.guarantee-pill.green {
  background: var(--primary);
  color: #fff;
}
.guarantee-pill.blue {
  background: #1a56e8;
  color: #fff;
}

.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .method-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.method-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.method-tab:hover {
  border-color: var(--primary-border);
}
.method-tab.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,185,106,0.10);
}

.method-tab-flash {
  position: absolute;
  top: 0; left: 16px;
  background: #EF4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  animation: flashTabShimmer 2s linear infinite;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 40%, #fca5a5 55%, #ef4444 70%, #dc2626 100%);
  background-size: 200% auto;
}
@keyframes flashTabShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.method-tab-left { flex: 1; min-width: 0; padding-top: 4px; }
.method-tab-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 3px;
  display: block;
}
.method-tab.active .method-tab-name { color: var(--primary); }
.method-tab-desc {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
}

.method-tab-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}



/* Username lookup row */
.username-lookup-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.username-lookup-row input { flex: 1; }
.login-username-row { margin-top: 2px; }
.avatar-thumb-sm {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  transition: border-color 0.18s;
}
.avatar-thumb-sm.valid { border-color: var(--primary); }
.username-status {
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.username-status.ok { color: var(--primary); }
.username-status.err { color: #ef4444; }
.spin-xs {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinXs 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spinXs { to { transform: rotate(360deg); } }

/* Page Header */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 4px 0 8px; font-size: 24px; font-weight: 800; color: var(--text-1); }
.page-head p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }

/* Method Tabs */
.method-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.method-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

/* Method Panes */
.method-pane.active { display: block; }
.method-pane.hidden { display: none; }

/* ── Gamepass Popup ── */
.gp-popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.gp-popup-overlay.open {
  opacity: 1; pointer-events: auto;
}
.gp-popup {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.2s ease;
}
.gp-popup-overlay.open .gp-popup {
  transform: translateY(0) scale(1);
}
.gp-popup-close {
  position: absolute; top: 12px; right: 12px; z-index: 30;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(17,24,39,0.08); background: #fff;
  color: #111827; font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.15s;
}
.gp-popup-close:hover { background: #f3f4f6; transform: scale(1.04); }

/* Video */
.gp-popup-video {
  width: 100%; aspect-ratio: 9/16;
  max-height: 280px;
  border-radius: 20px 20px 0 0;
  overflow: hidden; background: #111;
}
.gp-popup-video iframe { width: 100%; height: 100%; display: block; }

/* Body */
.gp-popup-body { padding: 22px 24px 24px; }
.gp-popup-title {
  font-size: 20px; font-weight: 800;
  color: var(--text-1); margin: 0 0 10px;
  line-height: 1.25;
}
.gp-popup-desc {
  font-size: 13px; color: var(--text-2);
  line-height: 1.65; margin: 0 0 18px;
}

/* User card */
.gp-popup-usercard {
  display: flex; align-items: center; gap: 12px;
  background: #FFF8F0; border: 1px solid #FDE8C8;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.gp-popup-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid #ddd; flex-shrink: 0;
  background: var(--bg);
}
.gp-popup-username { font-size: 13px; color: var(--text-2); }
.gp-popup-gpname { font-size: 15px; font-weight: 800; color: var(--text-1); }

/* Warn */
.gp-popup-warn {
  font-size: 12.5px; color: #D97706; margin-bottom: 18px;
}
.gp-popup-warn-link {
  color: var(--primary); font-weight: 700; text-decoration: none;
}
.gp-popup-warn-link:hover { text-decoration: underline; }

/* Buttons */
.gp-popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Status messages */
#gpPopupStatus { margin-bottom: 14px; }
.gp-status {
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.gp-status ol { margin: 8px 0 0 16px; }
.gp-status ol li { margin-bottom: 4px; }
.gp-status.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #7F1D1D;
}
.gp-status.warn {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #78350F;
}
.gp-status.success {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: #064E3B;
}
.gp-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 16px; border-radius: 99px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-1); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: border-color 0.18s, color 0.18s;
}
.gp-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.gp-btn-primary {
  padding: 13px 16px; border-radius: 99px;
  border: none; background: var(--primary);
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.18s;
}
.gp-btn-primary:hover { background: var(--primary-dark); }

/* Dynamic Login Form */
.dynamic-form { display: grid; gap: 14px; }
.field-card { display: grid; gap: 6px; }
.field-card label { margin: 0; }
.field-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.field-head > div {
  min-width: 0;
}
.field-help { color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.field-guide {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.field-guide:hover { text-decoration: underline; }
.field-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Login Packages & Services */
.login-packages-wrap,
.login-services-wrap { display: grid; gap: 14px; margin-top: 12px; }

.package-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.package-switch {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.package-switch:hover { background: var(--primary-light); border-color: var(--primary-border); color: var(--primary); }
.package-switch.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.package-switch:disabled {
  cursor: not-allowed;
  color: #a8b0ba;
  background: #f8fafc;
  border-color: #edf0f4;
  opacity: .72;
}

/* Service Grid */
.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-option {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  text-align: left;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-option:hover { border-color: var(--primary-border); background: var(--primary-light); transform: translateY(-1px); }
.service-option.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(29,185,106,0.1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-content { display: grid; gap: 3px; min-width: 0; }
.service-option strong { display: block; margin: 0; color: var(--text-1); font-size: 15px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.service-option span { display: block; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.service-option .service-price { color: var(--text-1); font-size: 14px; font-weight: 700; line-height: 1.35; }
.service-description { font-size: 12px; }

/* Misc */
.product-pick-head { margin-top: 0; }
.empty-box {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
  color: var(--text-3);
  background: var(--bg);
  text-align: center;
  font-size: 13px;
}
.closed-service-notice {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}
.closed-service-notice.top-notice {
  margin: -2px 0 16px;
}
.closed-service-notice a,
.gp-close-note a {
  color: #b91c1c;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Gamepass amount inputs */
.gp-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gp-amount-box {
  position: relative;
  border: 1.5px solid rgba(29,185,106,0.18);
  border-radius: 12px;
  padding: 9px 11px;
  display: grid;
  gap: 4px;
  min-height: 58px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.gp-amount-box.active,
.gp-amount-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,185,106,0.10), 0 10px 26px rgba(29,185,106,0.10);
  transform: translateY(-1px);
}
.gp-amount-box span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gp-amount-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.gp-amount-control input {
  border: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  background: transparent;
  box-shadow: none;
  color: var(--text-1);
}
.gp-amount-control input:focus { outline: none; }
.gp-amount-control strong {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.gp-amount-notice {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.gp-rate-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7fbf9;
  border: 1px solid rgba(29,185,106,0.12);
  color: var(--text-2);
  font-size: 11.5px;
}
.gp-rate-line strong {
  color: var(--text-1);
  font-weight: 800;
}
.gp-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gp-offer-card {
  position: relative;
  min-height: 132px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
  text-align: left;
  padding: 26px 12px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}
.gp-offer-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #1a56e8);
  opacity: 0;
  transition: opacity 0.18s;
}
.gp-offer-card:hover,
.gp-offer-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,185,106,0.10), 0 16px 34px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}
.gp-offer-card:hover::after,
.gp-offer-card.active::after {
  opacity: 1;
}
.gp-offer-card.closed-product,
.gp-offer-card.closed-product:hover {
  background: #ffffff;
  border-color: #eef2f7;
  color: #c4cbd5;
  box-shadow: none;
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .62;
  transform: none;
}
.gp-offer-card.closed-product::after {
  display: none;
}
.gp-offer-card.closed-product .gp-offer-media,
.gp-offer-card.closed-product .gp-offer-line,
.gp-offer-card.closed-product .gp-offer-title,
.gp-offer-card.closed-product .gp-offer-price,
.gp-offer-card.closed-product .gp-offer-normal,
.gp-offer-card.closed-product .gp-offer-desc {
  color: #c4cbd5;
  border-color: #eef2f7;
}
.gp-offer-card.closed-product .gp-discount {
  background: #e5e7eb;
  color: #64748b;
  animation: none;
}
.gp-close-note {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}
.gp-discount {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 40%, #fca5a5 55%, #ef4444 70%, #dc2626 100%);
  background-size: 200% auto;
  animation: flashTabShimmer 2s linear infinite;
  color: #fff;
  border-radius: 0 0 9px 0;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.gp-offer-title {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.gp-offer-title span {
  font-size: 11px;
  color: var(--text-2);
}
.gp-offer-line {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  margin: 12px 0 8px;
}
.gp-offer-price {
  color: var(--text-1);
  font-size: 16px;
  font-weight: 900;
}
.gp-offer-normal,
.gp-offer-desc {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 2px;
}
.gp-offer-normal s {
  color: #94a3b8;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 1.5px;
}
.gp-offer-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.gp-offer-media {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #eef4ff);
  border: 1px solid rgba(29,185,106,0.16);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.gp-offer-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gp-offer-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-info-box {
  margin: 14px 0 16px;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(29,185,106,0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.product-info-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 900;
}
.product-info-item {
  border-top: 1px solid rgba(29,185,106,0.12);
}
.product-info-item:first-child {
  border-top: 0;
}
.product-info-item + .product-info-item {
  margin-top: 0;
}
.product-info-item summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.product-info-item summary::-webkit-details-marker {
  display: none;
}
.product-info-item summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 900;
}
.product-info-item[open] summary::after {
  content: "-";
}
.product-info-item > div {
  padding: 0 0 12px;
}
.product-info-box a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.product-info-box a:hover {
  text-decoration: underline;
}
.mobile-product-info {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .service-list-grid,
  .field-row-three { grid-template-columns: 1fr; }
  .gp-amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 20px; }
}
@media (max-width: 520px) {
  .gp-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.has-mobile-action-dock {
    padding-bottom: 112px;
  }
  .page-wrap {
    padding: 16px 14px 24px;
  }
  .method-selector,
  .purchase-form-card,
  .checkout-card {
    border-radius: 14px;
    padding: 16px;
  }
  .method-selector-head,
  .card-header {
    align-items: flex-start;
    gap: 10px;
  }
  .card-header h3,
  .method-selector-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .card-header p {
    font-size: 12px;
    line-height: 1.55;
  }
  .purchase-grid,
  .login-layout,
  .field-row-three {
    grid-template-columns: 1fr !important;
  }
  .method-cards,
  .gp-amount-grid,
  .gp-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .service-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .method-tab {
    min-height: 104px;
    padding: 12px;
    border-radius: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .method-tab-img {
    align-self: flex-end;
    max-width: 62px;
    max-height: 48px;
  }
  .method-tab-name {
    font-size: 12.5px;
  }
  .method-tab-desc {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .username-lookup-row {
    min-height: 50px;
    gap: 10px;
  }
  .username-lookup-row input,
  .field-card input,
  .field-card select,
  .field-card textarea,
  .form-group input {
    min-height: 46px;
    font-size: 14px;
  }
  .avatar-thumb-sm {
    width: 38px;
    height: 38px;
  }
  .gp-amount-box {
    min-height: 72px;
    padding: 12px;
    border-radius: 12px;
  }
  .gp-amount-box span {
    font-size: 10px;
  }
  .gp-amount-control input {
    min-width: 0;
    font-size: 18px;
  }
  .login-packages-wrap {
    gap: 10px;
  }
  .service-option {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 92px;
    padding: 10px;
    border-radius: 12px;
  }
  .service-icon {
    width: 36px;
    height: 36px;
  }
  .service-option strong {
    font-size: 12.5px;
  }
  .service-option span,
  .service-option .service-price {
    font-size: 10.5px;
  }
  .gp-offer-card {
    min-height: 128px;
    padding: 12px;
    border-radius: 14px;
  }
  .gp-offer-grid {
    gap: 10px;
  }
  .gp-offer-head {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }
  .gp-offer-media {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .gp-offer-title {
    font-size: 13px;
  }
  .gp-offer-price {
    font-size: 15px;
  }
  .gp-offer-normal,
  .gp-offer-desc {
    font-size: 10.5px;
    white-space: normal;
  }
  .summary-list {
    gap: 8px;
  }
  .summary-row {
    gap: 12px;
    font-size: 12.5px;
  }
  .summary-row strong {
    text-align: right;
    word-break: break-word;
  }
  .checkout-card {
    position: static;
  }
  .checkout-card .wide-btn,
  .checkout-card .btn-block {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
  }
  .payment-box {
    margin-bottom: 0;
  }
}

/* Focus fix: compact Robux amount boxes and restore method icons */
@media (max-width: 640px) {
  .method-tab {
    position: relative;
    min-height: 82px !important;
    padding-right: 44px !important;
  }
  .method-tab-img {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    opacity: 0.95;
  }
  .gp-amount-grid {
    gap: 6px !important;
  }
  .gp-amount-box {
    min-height: 42px !important;
    padding: 6px 7px !important;
    border-radius: 9px !important;
    gap: 1px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045) !important;
  }
  .gp-amount-box.active,
  .gp-amount-box:focus-within {
    box-shadow: 0 0 0 2px rgba(29,185,106,0.10) !important;
    transform: none !important;
  }
  .gp-amount-box span {
    font-size: 7.5px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.04em !important;
  }
  .gp-amount-control {
    gap: 3px !important;
    min-height: 20px !important;
  }
  .gp-amount-control input {
    min-height: 20px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }
  .gp-amount-control strong {
    font-size: 8.5px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 360px) {
  .service-list-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tight mobile purchasing layout */
@media (max-width: 640px) {
  .method-selector {
    padding: 12px !important;
    margin-bottom: 12px;
  }
  .method-selector-head {
    margin-bottom: 10px;
  }
  .method-guarantee-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
  }
  .guarantee-pill {
    justify-content: flex-start;
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.12;
    white-space: normal;
    text-align: left;
    gap: 8px;
    box-shadow: none;
  }
  .guarantee-pill.green { border-radius: 12px 0 0 12px; }
  .guarantee-pill.blue { border-radius: 0 12px 12px 0; }
  .guarantee-pill svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    stroke-width: 3;
  }
  .method-cards {
    gap: 8px;
  }
  .method-tab {
    min-height: 76px !important;
    padding: 22px 9px 9px !important;
    gap: 4px !important;
  }
  .method-tab-flash {
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    padding: 2px 5px;
    text-align: center;
    font-size: 7.5px;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .method-tab-left {
    width: 100%;
    padding-top: 0;
  }
  .method-tab-name {
    margin-bottom: 3px;
    font-size: 10.8px !important;
    line-height: 1.22;
  }
  .method-tab-desc {
    font-size: 9px !important;
    line-height: 1.35;
  }
  .method-tab-img {
    display: none !important;
  }
  .purchase-form-card,
  .checkout-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .card-header {
    margin-bottom: 12px;
  }
  .card-header h3 {
    font-size: 14px !important;
  }
  .card-header p {
    font-size: 10.8px !important;
  }
  .badge-live,
  .secure-tag {
    padding: 4px 7px;
    font-size: 8.5px;
  }
  label,
  .form-label {
    font-size: 9.5px;
    margin-bottom: 5px;
  }
  .username-lookup-row {
    min-height: 42px !important;
    gap: 8px;
  }
  .username-lookup-row input,
  .field-card input,
  .field-card select,
  .field-card textarea,
  .form-group input {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  .avatar-thumb-sm {
    width: 30px !important;
    height: 30px !important;
  }
  .gp-amount-grid {
    gap: 8px !important;
  }
  .gp-amount-box {
    min-height: 54px !important;
    padding: 8px 9px !important;
    gap: 2px;
  }
  .gp-amount-box span {
    font-size: 8.5px !important;
  }
  .gp-amount-control {
    gap: 4px;
  }
  .gp-amount-control input {
    font-size: 14px !important;
  }
  .gp-amount-control strong {
    font-size: 10px !important;
  }
  .product-pick-head {
    margin-top: 14px !important;
  }
  .login-packages-wrap,
  .login-services-wrap {
    gap: 8px !important;
  }
  .service-option {
    min-height: 74px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 7px;
    padding: 8px !important;
  }
  .service-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px;
  }
  .service-option strong {
    font-size: 10.8px !important;
  }
  .service-option span,
  .service-option .service-price {
    font-size: 9px !important;
    line-height: 1.3;
  }
  .gp-offer-grid {
    gap: 8px !important;
  }
  .gp-offer-card {
    min-height: 90px !important;
    padding: 18px 8px 8px !important;
    border-radius: 11px !important;
  }
  .gp-discount {
    top: 0;
    left: 7px;
    padding: 2px 5px;
    font-size: 8px;
    border-radius: 0 0 6px 6px;
  }
  .gp-offer-head {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 5px !important;
  }
  .gp-offer-media {
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
  }
  .gp-offer-title {
    font-size: 10.5px !important;
    line-height: 1.25;
  }
  .gp-offer-line {
    margin: 6px 0 5px;
  }
  .gp-offer-price {
    font-size: 12px !important;
  }
  .gp-offer-normal,
  .gp-offer-desc {
    font-size: 8.6px !important;
    line-height: 1.25;
  }
  .summary-row {
    font-size: 11px !important;
  }
  .checkout-card .wide-btn,
  .checkout-card .btn-block {
    min-height: 42px !important;
    font-size: 12.5px !important;
  }
}

/* Final mobile override: Robux amount and method icons */
@media (max-width: 640px) {
  body .method-selector .method-tab {
    position: relative !important;
    min-height: 76px !important;
    padding: 22px 42px 8px 8px !important;
  }
  body .method-selector .method-tab-img {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  body .gp-amount-grid {
    gap: 6px !important;
  }
  body .gp-amount-grid .gp-amount-box {
    min-height: 40px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
    gap: 0 !important;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.04) !important;
  }
  body .gp-amount-grid .gp-amount-box.active,
  body .gp-amount-grid .gp-amount-box:focus-within {
    box-shadow: 0 0 0 2px rgba(29,185,106,0.10) !important;
    transform: none !important;
  }
  body .gp-amount-grid .gp-amount-box span {
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
  }
  body .gp-amount-grid .gp-amount-control {
    min-height: 19px !important;
    gap: 3px !important;
  }
  body .gp-amount-grid .gp-amount-control input {
    min-height: 19px !important;
    padding: 0 !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
  }
  body .gp-amount-grid .gp-amount-control strong {
    font-size: 8px !important;
    line-height: 1 !important;
  }
}

/* Final mobile override: tighten username to amount spacing */
@media (max-width: 640px) {
  body .purchase-form-card .form-group {
    margin-bottom: 8px !important;
  }
  body .purchase-form-card .form-group + .form-group {
    margin-top: 0 !important;
  }
  body .purchase-form-card .username-lookup-row {
    min-height: 34px !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  body .purchase-form-card .username-lookup-row input {
    min-height: 32px !important;
    height: 32px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }
  body .purchase-form-card .avatar-thumb-sm {
    width: 24px !important;
    height: 24px !important;
    border-width: 1.5px !important;
  }
  body .purchase-form-card .username-status {
    min-height: 0 !important;
    margin-top: 2px !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }
  body .purchase-form-card label[for="gpRobuxInput"] {
    margin-top: 0 !important;
  }
  body .purchase-form-card .gp-amount-grid {
    margin-top: 0 !important;
  }
}

/* Final mobile override: via login and item-game products follow gamepass layout */
@media (max-width: 640px) {
  body #loginPane .package-switches,
  body #detailPage .package-switches {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body #loginPane .package-switch,
  body #detailPage .package-switch {
    min-height: 30px !important;
    padding: 6px 7px !important;
    border-radius: 8px !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }
  body #loginPane .gp-offer-grid,
  body #detailPage .gp-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body #loginPane .gp-offer-card,
  body #detailPage .gp-offer-card {
    min-height: 90px !important;
    padding: 17px 8px 8px !important;
    border-radius: 11px !important;
  }
  body #loginPane .gp-discount,
  body #detailPage .gp-discount {
    left: 7px !important;
    padding: 2px 5px !important;
    font-size: 7.5px !important;
    line-height: 1.1 !important;
    border-radius: 0 0 6px 6px !important;
  }
  body #loginPane .gp-offer-head,
  body #detailPage .gp-offer-head {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 5px !important;
  }
  body #loginPane .gp-offer-media,
  body #detailPage .gp-offer-media {
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
    font-size: 8px !important;
  }
  body #loginPane .gp-offer-title,
  body #detailPage .gp-offer-title {
    font-size: 10.3px !important;
    line-height: 1.22 !important;
  }
  body #loginPane .gp-offer-desc,
  body #detailPage .gp-offer-desc {
    display: -webkit-box !important;
    overflow: hidden !important;
    white-space: normal !important;
    font-size: 8.4px !important;
    line-height: 1.25 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
  body #loginPane .gp-offer-line,
  body #detailPage .gp-offer-line {
    margin: 5px 0 4px !important;
  }
  body #loginPane .gp-offer-price,
  body #detailPage .gp-offer-price {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
  body #loginPane .gp-offer-normal,
  body #detailPage .gp-offer-normal {
    font-size: 8.3px !important;
    line-height: 1.2 !important;
  }
}

/* Final mobile override: compact method cards with centered side icons */
@media (max-width: 640px) {
  body .method-selector .method-cards {
    gap: 7px !important;
  }
  body .method-selector .method-tab {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 26px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 8px 8px 8px 9px !important;
    gap: 6px !important;
  }
  body .method-selector .method-tab-flash-card {
    min-height: 66px !important;
    padding-top: 22px !important;
  }
  body .method-selector .method-tab-left {
    width: auto !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }
  body .method-selector .method-tab-name {
    margin: 0 0 2px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }
  body .method-selector .method-tab-desc {
    font-size: 8.4px !important;
    line-height: 1.25 !important;
  }
  body .method-selector .method-tab-img {
    position: static !important;
    grid-column: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
  }
  body .method-selector .method-tab-flash {
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    min-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 6px !important;
    border-radius: 12px 12px 0 0 !important;
    font-size: 8.2px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 2 !important;
  }
}

/* Final mobile override: compact Robux instan login form */
@media (max-width: 640px) {
  body #loginPane .dynamic-form {
    gap: 7px !important;
  }
  body #loginPane .field-card {
    gap: 3px !important;
    margin: 0 !important;
  }
  body #loginPane .field-head {
    align-items: end !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
  }
  body #loginPane .field-head label {
    font-size: 8.8px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
  body #loginPane .field-help {
    margin-top: 2px !important;
    font-size: 9.3px !important;
    line-height: 1.25 !important;
  }
  body #loginPane .field-guide {
    font-size: 8.8px !important;
    line-height: 1.1 !important;
  }
  body #loginPane .field-card input,
  body #loginPane .field-card textarea,
  body #loginPane .field-card select,
  body #loginPane #loginWhatsappInput {
    min-height: 31px !important;
    height: 31px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }
  body #loginPane .login-username-row {
    min-height: 31px !important;
    gap: 6px !important;
    margin-top: 0 !important;
  }
  body #loginPane .login-avatar {
    width: 23px !important;
    height: 23px !important;
  }
  body #loginPane .login-username-status {
    min-height: 0 !important;
    margin-top: 1px !important;
    font-size: 8.8px !important;
    line-height: 1.15 !important;
  }
  body #loginPane .field-row-three {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  body #loginPane .field-row-three input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 5px !important;
    font-size: 9.2px !important;
  }
  body #loginPane #loginDynamicForm + .field-card {
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
  }
  body #loginPane #loginDynamicForm + .field-card .field-help {
    max-width: 100% !important;
  }
  body #loginPane .product-pick-head {
    margin-top: 16px !important;
  }
}

/* Final mobile override: stable spacing for login credentials */
@media (max-width: 640px) {
  body #loginPane .dynamic-form {
    display: grid !important;
    gap: 12px !important;
  }
  body #loginPane .field-card {
    display: grid !important;
    gap: 5px !important;
    margin: 0 !important;
  }
  body #loginPane .field-head {
    align-items: flex-start !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
  body #loginPane .field-head label {
    display: block !important;
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  body #loginPane .field-help {
    display: block !important;
    margin: 3px 0 0 !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
  }
  body #loginPane .field-guide {
    padding-top: 2px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  body #loginPane .field-card input,
  body #loginPane .field-card textarea,
  body #loginPane .field-card select,
  body #loginPane #loginWhatsappInput {
    min-height: 34px !important;
    height: 34px !important;
    padding: 7px 9px !important;
    font-size: 10.8px !important;
    line-height: 1.15 !important;
  }
  body #loginPane .login-username-row {
    min-height: 34px !important;
    gap: 7px !important;
  }
  body #loginPane .login-avatar {
    width: 24px !important;
    height: 24px !important;
  }
  body #loginPane .login-username-status {
    margin-top: 2px !important;
    font-size: 9px !important;
  }
  body #loginPane .field-row-three {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 2px !important;
    margin-bottom: 3px !important;
  }
  body #loginPane .field-row-three input {
    min-width: 0 !important;
    width: 100% !important;
    height: 33px !important;
    min-height: 33px !important;
    padding: 6px 5px !important;
    font-size: 9.2px !important;
  }
  body #loginPane #loginDynamicForm + .field-card {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
    padding-top: 0 !important;
  }
  body #loginPane .product-pick-head {
    margin-top: 18px !important;
  }
}

/* Final mobile override: restore compact top header actions */
.mobile-header-btn {
  display: none;
}

@media (max-width: 640px) {
  body header .nav-inner {
    display: grid !important;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 7px 10px !important;
  }

  body header .logo {
    min-width: 0 !important;
    max-width: 96px !important;
    overflow: hidden !important;
    gap: 5px !important;
    font-size: 0 !important;
  }

  body header .logo .logo-icon {
    width: 25px !important;
    height: 25px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
  }

  body header .logo.site-logo-link .site-logo-img,
  body header .brand-wrap.site-logo-link .site-logo-img {
    max-width: 86px !important;
    max-height: 25px !important;
  }

  body header nav {
    display: none !important;
  }

  body header .nav-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-self: end !important;
    width: min(100%, 178px) !important;
    gap: 6px !important;
    margin-left: 0 !important;
  }

  body header .nav-actions > a:not(.mobile-header-btn) {
    display: none !important;
  }

  body header .nav-actions .mobile-header-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 29px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 9.4px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  body header .nav-actions .mobile-header-btn.btn-outline {
    background: #fff !important;
    border-color: rgba(203, 213, 225, 0.95) !important;
    color: var(--text-2) !important;
  }

  body header .nav-actions .mobile-header-btn.btn-nav {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(29, 185, 106, 0.22) !important;
  }
}

@media (max-width: 370px) {
  body header .nav-inner {
    grid-template-columns: 30px minmax(0, 1fr) !important;
  }

  body header .logo.site-logo-link .site-logo-img {
    max-width: 28px !important;
    object-fit: contain !important;
  }

  body header .nav-actions {
    width: 100% !important;
  }

  body header .nav-actions .mobile-header-btn {
    padding: 0 6px !important;
    font-size: 8.8px !important;
  }
}

/* Final mobile override: make the top menu match the web header */
@media (max-width: 640px) {
  body header .nav-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo actions"
      "nav nav" !important;
    align-items: center !important;
    row-gap: 7px !important;
    column-gap: 10px !important;
    min-height: 0 !important;
    padding: 8px 12px 10px !important;
  }

  body header .logo {
    grid-area: logo !important;
    justify-self: start !important;
    max-width: 118px !important;
    gap: 6px !important;
    font-size: 0 !important;
  }

  body header .logo .logo-icon {
    width: 27px !important;
    height: 27px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }

  body header .logo.site-logo-link .site-logo-img,
  body header .brand-wrap.site-logo-link .site-logo-img {
    max-width: 94px !important;
    max-height: 28px !important;
    object-fit: contain !important;
  }

  body header .nav-actions {
    grid-area: actions !important;
    display: flex !important;
    justify-self: end !important;
    width: auto !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body header .nav-actions .mobile-header-btn {
    display: none !important;
  }

  body header .nav-actions > a:not(.mobile-header-btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    background: #fff !important;
    color: var(--text-2) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  body header nav {
    grid-area: nav !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  body header nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 31px !important;
    padding: 0 5px !important;
    border-radius: 8px !important;
    font-size: 9.4px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  body header nav a.active,
  body header nav a.nav-active {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
  }
}

@media (max-width: 370px) {
  body header .nav-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body header nav {
    gap: 3px !important;
  }

  body header nav a {
    min-height: 30px !important;
    padding: 0 3px !important;
    font-size: 8.6px !important;
  }

  body header .nav-actions > a:not(.mobile-header-btn) {
    min-height: 29px !important;
    padding: 0 8px !important;
    font-size: 9.4px !important;
  }
}

.category-review-widget {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
  overflow: hidden;
}

.category-review-widget.hidden {
  display: none !important;
}

.category-review-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.category-review-head h3 {
  margin: 0;
  color: var(--text-1, #111827);
  font-size: 16px;
  font-weight: 900;
}

.category-review-head a {
  color: var(--primary, #1DB96A);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.category-review-track {
  display: flex;
  gap: 10px;
  overflow: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  will-change: transform;
  transition: transform 0.35s ease;
}

.category-review-card {
  flex: 0 0 calc((100% - 20px) / 3);
  scroll-snap-align: start;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #f9fafb;
}

.category-review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-light, #e8f8f0);
  border: 1px solid var(--primary-border, #a7e8c7);
  color: var(--primary, #1DB96A);
  font-size: 17px;
  font-weight: 900;
  overflow: hidden;
}

.category-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-review-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.category-review-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-review-row strong {
  min-width: 0;
  color: var(--text-1, #111827);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-review-stars {
  color: #f59e0b;
  font-size: 10px;
  white-space: nowrap;
}

.category-review-card p {
  margin: 0;
  color: var(--text-1, #111827);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-review-card small {
  min-width: 0;
  color: var(--text-3, #9ca3af);
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-review-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.category-review-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.category-review-dots button.active {
  width: 18px;
  background: var(--primary, #1DB96A);
}

@media (max-width: 760px) {
  .category-review-widget {
    padding: 12px;
    border-radius: 10px;
  }

  .category-review-track {
    overflow: visible;
  }

  .category-review-card {
    flex-basis: 100%;
  }
}

.mobile-checkout-dock {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  body.has-mobile-checkout-dock header .mobile-menu-toggle,
  body.has-mobile-action-dock header .mobile-menu-toggle {
    display: none !important;
  }

  body.has-mobile-checkout-dock header .nav-actions,
  body.has-mobile-action-dock header .nav-actions {
    display: flex !important;
    margin-left: auto !important;
  }

  body.has-mobile-checkout-dock {
    padding-bottom: 258px;
  }

  body:not(.has-mobile-checkout-dock) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  body.has-mobile-checkout-dock .mobile-bottom-nav {
    display: none !important;
  }

  body.has-mobile-checkout-dock .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 720;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(226,232,240,0.95);
    box-shadow: 0 -10px 28px rgba(15,23,42,0.10);
  }

  .mobile-bottom-nav a {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 5px 2px 3px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10.8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-bottom-nav a::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: transparent;
  }

  .mobile-bottom-nav a.active {
    color: var(--primary);
  }

  .mobile-bottom-nav a.active::before {
    background: var(--primary);
  }

  .mobile-bottom-nav svg {
    width: 29px;
    height: 29px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav .mobile-nav-home svg {
    fill: currentColor;
    stroke: currentColor;
  }

  .mobile-bottom-nav span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #gamepassPane .checkout-card {
    display: none !important;
  }

  #loginPane .checkout-card {
    display: none !important;
  }

  #detailPage .checkout-card {
    display: none !important;
  }

  body.has-mobile-checkout-dock .mobile-checkout-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 710;
    display: block;
    padding: 0 0 max(8px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.22));
    pointer-events: none;
  }

  .mobile-dock-sheet {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 18px 14px;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
  }

  .mobile-dock-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-dock-eyebrow {
    display: block;
    color: var(--text-1);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
  }

  .mobile-dock-user {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .mobile-dock-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f7;
  }

  .mobile-dock-user strong,
  .mobile-dock-user span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dock-user strong {
    color: var(--text-1);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
  }

  .mobile-dock-user span {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  .mobile-dock-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: #f5f7fb;
    color: #94a3b8;
    cursor: pointer;
    transition: transform 0.18s, background 0.18s;
  }

  .mobile-dock-toggle {
    margin-top: 28px;
  }

  .mobile-checkout-dock.expanded .mobile-dock-toggle {
    transform: rotate(180deg);
    background: var(--primary-light);
    color: var(--primary);
  }

  .mobile-dock-summary {
    display: grid;
    gap: 9px;
    margin-top: 13px;
  }

  .mobile-dock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 24px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-dock-row strong {
    color: var(--text-1);
    font-size: 15px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
  }

  .mobile-dock-row.total strong {
    color: var(--primary);
  }

  .mobile-dock-extra {
    display: none;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .mobile-checkout-dock.expanded .mobile-dock-extra {
    display: grid;
    gap: 8px;
  }

  .mobile-dock-actions {
    display: grid;
    grid-template-columns: minmax(124px, 0.9fr) minmax(0, 1.35fr);
    gap: 10px;
    margin-top: 14px;
  }

  .mobile-cart-btn,
  .mobile-buy-btn {
    min-width: 0;
    min-height: 48px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #05070b;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  }

  .mobile-buy-btn {
    border: 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 9px 20px rgba(29, 185, 106, 0.24);
  }

  .mobile-buy-btn:disabled,
  .mobile-cart-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
  }

}

@media (max-width: 370px) {
  body.has-mobile-checkout-dock {
    padding-bottom: 244px;
  }

  .guarantee-pill {
    min-height: 46px;
    padding: 7px 8px;
    font-size: 11.3px;
    gap: 6px;
  }

  .guarantee-pill svg {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .mobile-dock-sheet {
    padding: 14px 13px 12px;
  }

  .mobile-dock-actions {
    grid-template-columns: minmax(108px, 0.88fr) minmax(0, 1.28fr);
    gap: 8px;
  }

  .mobile-cart-btn,
  .mobile-buy-btn {
    min-height: 45px;
    border-radius: 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  .mobile-product-info:not(.hidden) {
    display: block;
    margin-top: 14px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  input:not([type="range"]),
  textarea,
  select {
    font-size: 16px !important;
    transform: translateZ(0);
    touch-action: manipulation;
  }
}

@media (max-width: 640px) {
  body .method-selector {
    padding: 14px 12px 16px !important;
  }

  body .method-selector .method-selector-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(154px, 0.98fr) !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  body .method-selector .method-selector-title {
    font-size: 20px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body .method-selector .method-guarantee-pills {
    width: 100% !important;
    border-radius: 10px !important;
  }

  body .method-selector .guarantee-pill {
    min-height: 42px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    font-size: 8.8px !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
  }

  body .method-selector .guarantee-pill.green {
    border-radius: 10px 0 0 10px !important;
  }

  body .method-selector .guarantee-pill.blue {
    border-radius: 0 10px 10px 0 !important;
  }

  body .method-selector .guarantee-pill svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  body .method-selector .method-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body .method-selector .method-tab {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
    align-items: center !important;
    min-height: 118px !important;
    padding: 18px 12px 14px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  body .method-selector .method-tab-flash-card {
    padding-top: 24px !important;
  }

  body .method-selector .method-tab-left {
    min-width: 0 !important;
  }

  body .method-selector .method-tab-name {
    font-size: 16px !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
  }

  body .method-selector .method-tab-desc {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  body .method-selector .method-tab-img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    justify-self: end !important;
  }

  body .method-selector .method-tab-flash {
    top: -14px !important;
    left: -2px !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - 12px) !important;
    min-height: 30px !important;
    padding: 6px 13px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 370px) {
  body .method-selector .method-selector-head {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.95fr) !important;
    gap: 7px !important;
  }

  body .method-selector .method-selector-title {
    font-size: 18px !important;
  }

  body .method-selector .guarantee-pill {
    min-height: 38px !important;
    padding: 5px 6px !important;
    font-size: 7.8px !important;
    gap: 4px !important;
  }

  body .method-selector .guarantee-pill svg {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
  }

  body .method-selector .method-tab {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    min-height: 104px !important;
    padding: 18px 10px 12px !important;
  }

  body .method-selector .method-tab-name {
    font-size: 13.5px !important;
  }

  body .method-selector .method-tab-desc {
    font-size: 11.2px !important;
  }

  body .method-selector .method-tab-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }

  body .method-selector .method-tab-flash {
    min-height: 26px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

/* Final mobile polish: compact method selector */
@media (max-width: 640px) {
  body .page-head {
    display: none !important;
  }

  body .method-selector {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body .method-selector .method-selector-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 174px !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body .method-selector .method-selector-title {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body .method-selector .method-guarantee-pills {
    width: 174px !important;
    justify-self: end !important;
    border-radius: 9px !important;
  }

  body .method-selector .guarantee-pill {
    min-height: 34px !important;
    padding: 5px 7px !important;
    gap: 5px !important;
    font-size: 7.2px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body .method-selector .guarantee-pill.green {
    border-radius: 9px 0 0 9px !important;
  }

  body .method-selector .guarantee-pill.blue {
    border-radius: 0 9px 9px 0 !important;
  }

  body .method-selector .guarantee-pill svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  body .method-selector .method-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body .method-selector .method-tab {
    grid-template-columns: minmax(0, 1fr) 34px !important;
    min-height: 84px !important;
    padding: 13px 10px 10px !important;
    gap: 7px !important;
    border-radius: 14px !important;
  }

  body .method-selector .method-tab-flash-card {
    padding-top: 24px !important;
  }

  body .method-selector .method-tab-name {
    font-size: 12.6px !important;
    line-height: 1.18 !important;
    margin: 0 0 5px !important;
  }

  body .method-selector .method-tab-desc {
    font-size: 10.2px !important;
    line-height: 1.25 !important;
  }

  body .method-selector .method-tab-img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    justify-self: end !important;
  }

  body .method-selector .method-tab-flash {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: auto !important;
    max-width: 80% !important;
    min-height: 22px !important;
    padding: 4px 11px !important;
    border-radius: 14px 0 10px 0 !important;
    font-size: 9.6px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }
}

@media (max-width: 370px) {
  body .method-selector .method-selector-head {
    grid-template-columns: 1fr !important;
  }

  body .method-selector .method-guarantee-pills {
    width: 100% !important;
    justify-self: stretch !important;
  }

  body .method-selector .method-tab {
    grid-template-columns: minmax(0, 1fr) 30px !important;
    min-height: 78px !important;
    padding: 12px 9px 9px !important;
  }

  body .method-selector .method-tab-flash-card {
    padding-top: 22px !important;
  }

  body .method-selector .method-tab-name {
    font-size: 11.5px !important;
  }

  body .method-selector .method-tab-desc {
    font-size: 9.4px !important;
  }

  body .method-selector .method-tab-img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  body .method-selector .method-tab-flash {
    min-height: 20px !important;
    padding: 4px 9px !important;
    font-size: 8.8px !important;
    max-width: 86% !important;
  }
}

/* Small-device lock: keep gamepass/login service cards side by side */
@media (max-width: 420px) {
  body .method-selector .method-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body .method-selector .method-tab {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 22px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 8px 7px !important;
    gap: 5px !important;
    align-items: center !important;
  }

  body .method-selector .method-tab-flash-card {
    padding-top: 21px !important;
  }

  body .method-selector .method-tab-left {
    min-width: 0 !important;
    width: auto !important;
  }

  body .method-selector .method-tab-name {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 9.6px !important;
    line-height: 1.1 !important;
    margin: 0 0 2px !important;
  }

  body .method-selector .method-tab-desc {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 8.1px !important;
    line-height: 1.18 !important;
  }

  body .method-selector .method-tab-img {
    position: static !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    justify-self: center !important;
    align-self: center !important;
  }

  body .method-selector .method-tab-flash {
    left: -1px !important;
    right: -1px !important;
    max-width: none !important;
    min-height: 19px !important;
    padding: 3px 5px !important;
    border-radius: 12px 12px 0 0 !important;
    font-size: 7.8px !important;
    line-height: 1 !important;
  }
}

/* Small-device lock: keep gamepass package cards side by side */
@media (max-width: 420px) {
  body #gamepassPane .gp-offer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body #gamepassPane .gp-offer-card {
    min-width: 0 !important;
    min-height: 86px !important;
    padding: 17px 7px 8px !important;
    border-radius: 11px !important;
  }

  body #gamepassPane .gp-discount {
    left: 7px !important;
    padding: 2px 5px !important;
    font-size: 7.4px !important;
    line-height: 1.1 !important;
    border-radius: 0 0 6px 6px !important;
  }

  body #gamepassPane .gp-offer-head {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  body #gamepassPane .gp-offer-media {
    width: 20px !important;
    height: 20px !important;
    border-radius: 7px !important;
    font-size: 7.5px !important;
  }

  body #gamepassPane .gp-offer-title {
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body #gamepassPane .gp-offer-line {
    margin: 6px 0 5px !important;
  }

  body #gamepassPane .gp-offer-price {
    font-size: 11.6px !important;
    line-height: 1.15 !important;
  }

  body #gamepassPane .gp-offer-normal,
  body #gamepassPane .gp-offer-desc {
    font-size: 8px !important;
    line-height: 1.2 !important;
  }
}
