/* ============================================================
   fix-theme.css — lapisan tema global jsx-fix
   Dimuat setelah home.css, sebelum top-up.css / category.css.
   ============================================================ */

/* ---------- 0. Token global & reset ringan ---------- */
:root{
  --brand-red:#e4262b;
  --brand-red-dark:#b91f24;
  --green-dark:#0a8a4a;
  --green-light:#3fbf6f;
  --bg-grey:#f2f2f0;
  --text-dark:#111111;
  --text-grey:#5b5b5b;
  --blue:#1a56ff;
  --border-grey:#e2e2e0;
}

[hidden]{display:none !important}
.is-hidden{display:none !important}
.icon{width:20px;height:20px;flex-shrink:0}

/* ---------- 1. Band header + promo strip (halaman ber-chrome) ---------- */
.jx-home-page .jx-header-band{
  display:block;
  height:96px;
  background:linear-gradient(180deg, var(--jx-bg) 0 56px, var(--mono-white) 96px);
}

/* Kartu produk tanpa gambar: inisial besar ala product-card-img */
.product-card-letter{
  width:48px;
  height:48px;
  border-radius:12px;
  background:var(--bg-grey);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:800;
  color:var(--text-dark);
  text-transform:uppercase;
  margin:0 auto 8px;
  flex-shrink:0;
}

/* Promo cards di home / category-list */
.promo-slot{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:12px;
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:20px var(--wrapper-padding);
}
.promo-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:16px;
  padding:14px;
  text-decoration:none;
  color:inherit;
  min-width:0;
  transition:box-shadow .15s ease, transform .15s ease;
}
.promo-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08);transform:translateY(-2px)}
.promo-card--flash{background:#fff5f6;border-color:#f7c9d5}
.promo-badge{
  align-self:flex-start;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#fff;
  background:var(--brand-red,#d61f2c);
  border-radius:999px;
  padding:3px 9px;
}
.promo-card--flash .promo-badge{background:#d61f2c}
.promo-name{
  font-size:13px;
  font-weight:700;
  color:var(--text-dark);
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.promo-price-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.promo-price{font-size:15px;font-weight:800;color:var(--brand-red,#d61f2c)}
.promo-strike{font-size:12px;color:var(--text-grey);text-decoration:line-through}
.promo-saving{
  align-self:flex-start;
  font-size:11px;
  font-weight:700;
  color:#1a7f43;
  background:#e7f6ec;
  border-radius:999px;
  padding:2px 8px;
}
.promo-until{font-size:11px;color:var(--text-grey)}
time.promo-countdown,
.promo-countdown{
  font-size:12px;
  font-weight:700;
  color:var(--brand-red,#d61f2c);
  font-variant-numeric:tabular-nums;
}

/* ---------- 2. Primitif UI bersama ---------- */
.card{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:20px;
  padding:16px;
}
.divider{height:1px;background:var(--border-grey);margin:10px 0}

.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:6px 0;
  font-size:14px;
}
.summary-row .s-label{font-size:14px;color:var(--text-grey)}
.summary-row .s-value{font-size:14px;font-weight:700;text-align:right;color:var(--text-dark)}
.summary-row.total{font-size:16px;font-weight:800;padding-top:10px}
.summary-row.total .s-label{color:var(--text-dark);font-weight:800}
.summary-row.discount .s-value{color:var(--green-dark)}

.field{margin:14px 0}
.field-label{
  display:block;
  font-size:13.5px;
  font-weight:700;
  margin-bottom:6px;
  color:var(--text-dark);
}
.field-input{
  width:100%;
  border:1.5px solid var(--border-grey);
  border-radius:12px;
  padding:13px 14px;
  font-size:15px;
  color:var(--text-dark);
  background:#fff;
  font-family:inherit;
}
.field-input:focus{outline:none;border-color:var(--text-dark)}
.field-input::placeholder{color:var(--text-grey)}
.field-hint{font-size:12.5px;color:var(--text-grey);margin-top:6px}
.optional{font-size:12px;font-weight:500;color:var(--text-grey)}

.warn-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#fff8e6;
  border:1px solid #f0dc9a;
  color:#6b5200;
  border-radius:12px;
  padding:12px 14px;
  font-size:13.5px;
  line-height:1.55;
  margin:12px 0;
}
.warn-note svg,.warn-note .icon{width:18px;height:18px;flex-shrink:0;margin-top:1px}
.warn-note.danger{background:#fdecec;border-color:#f5b5b8;color:var(--brand-red-dark)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:13px;
  padding:13px 20px;
  font-size:14.5px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  border:none;
  transition:background-color .15s,border-color .15s,color .15s;
  font-family:inherit;
  line-height:1.2;
}
.btn svg,.btn .icon{width:17px;height:17px;flex-shrink:0}
.btn-primary{background:var(--brand-red);color:#fff}
.btn-primary:hover{background:var(--brand-red-dark)}
.btn-primary:disabled{opacity:.55;cursor:not-allowed}
.btn-secondary{background:#fff;border:1.5px solid var(--border-grey);color:var(--text-dark)}
.btn-secondary:hover{background:var(--bg-grey)}
.btn-secondary:disabled{opacity:.55;cursor:not-allowed}

.badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  line-height:1.3;
}
.badge-success{background:#e7f7ee;color:var(--green-dark)}
.badge-warning{background:#fff6e0;color:#a06a00}
.badge-danger{background:#fdecec;color:var(--brand-red-dark)}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 14px;
  border-radius:999px;
  border:1.5px solid var(--border-grey);
  background:#fff;
  font-size:12.5px;
  font-weight:600;
  color:var(--text-grey);
  cursor:pointer;
  font-family:inherit;
}
.chip.active,.chip.is-selected{border-color:var(--brand-red);color:var(--brand-red);background:#fff5f6}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}

.or-divider{display:flex;align-items:center;gap:12px;margin:20px 0}
.or-divider::before,.or-divider::after{content:"";flex:1;height:1px;background:var(--border-grey)}
.or-divider span{font-size:12.5px;color:var(--text-grey)}

.empty-state{
  background:var(--bg-grey);
  border-radius:16px;
  padding:24px;
  text-align:center;
  margin:12px 0;
}
.empty-state strong{display:block;font-size:14px;font-weight:700;color:var(--text-dark)}
.empty-state p{font-size:13px;color:var(--text-grey);margin-top:4px}

.detail-block{margin:22px 0}
.detail-block h4{font-size:16px;font-weight:700;margin-bottom:6px;color:var(--text-dark)}

.text-secondary{color:var(--text-grey)}
.row-chevron{width:18px;height:18px;color:var(--text-grey);flex-shrink:0;margin-left:auto}

/* ---------- 3. Tambahan alur category / product ---------- */
.logo-letter{
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:15px;
  color:#fff;
}
.provider-logo .logo-letter{
  width:100%;
  height:100%;
  border-radius:12px;
  background:var(--brand-red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.category-sub{font-size:13px;color:var(--text-grey);margin-top:2px}

.category-product-grid{display:flex;flex-direction:column;gap:8px;margin:12px 0}

.list-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  box-sizing:border-box;
  text-align:left;
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  color:var(--text-dark);
  cursor:pointer;
  font-family:inherit;
}
.list-row input[type="radio"]{accent-color:var(--brand-red);width:18px;height:18px;flex-shrink:0}

.category-product-card{display:block;text-decoration:none;color:inherit}
.category-product-card:hover{border-color:var(--text-dark)}

.row-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--bg-grey);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  font-size:15px;
  font-weight:800;
  color:var(--text-dark);
  flex-shrink:0;
}
.row-icon img{width:100%;height:100%;object-fit:contain}
.row-letter{font-size:17px;font-weight:800}
.row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.row-title{
  font-size:14px;
  font-weight:700;
  color:var(--text-dark);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.row-sub{
  font-size:12px;
  color:var(--text-grey);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex-shrink:0}
.row-price{font-size:14px;font-weight:800;color:var(--text-dark)}
.row-strike{font-size:11px;color:var(--text-grey);text-decoration:line-through}
.saving-badge{
  font-size:10px;
  font-weight:700;
  color:var(--green-dark);
  background:#e7f7ee;
  border-radius:999px;
  padding:2px 8px;
}

.nominal-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.variant-count{
  font-size:12px;
  font-weight:600;
  color:var(--text-grey);
  background:var(--bg-grey);
  border-radius:999px;
  padding:4px 10px;
}
.nominal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.nominal-card{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:14px;
  padding:12px;
  cursor:pointer;
  font-family:inherit;
  color:var(--text-dark);
  text-align:left;
}
.nominal-card input[type="radio"]{accent-color:var(--brand-red);width:18px;height:18px;flex-shrink:0}
.nominal-card.selected,.nominal-list-row.selected,.list-row.selected,.category-product-card.selected{
  border-color:var(--brand-red);
  background:#fff5f6;
}
.list-row:has(input:checked),.nominal-card:has(input:checked){
  border-color:var(--brand-red);
  background:#fff5f6;
}

/* Pemilih game */
.game-selector{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(96px,1fr));
  gap:10px;
  margin:12px 0;
}
.game-choice{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:14px;
  padding:12px 8px;
  font-size:12px;
  font-weight:600;
  color:var(--text-dark);
  cursor:pointer;
  font-family:inherit;
  text-align:center;
}
.game-choice.active,.game-choice.selected{
  border-color:var(--brand-red);
  background:#fff5f6;
  color:var(--brand-red);
}
.game-choice-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center}
.game-choice-icon img{width:44px;height:44px;object-fit:contain}
.game-choice-icon svg,.game-choice-icon .icon{width:30px;height:30px;color:var(--text-grey)}
.game-account-card{margin-top:14px}

/* Segmented control (pra-bayar / pascabayar dsb) */
.segment-control{
  display:flex;
  background:var(--bg-grey);
  border-radius:14px;
  padding:4px;
  gap:4px;
  margin:14px 0 10px;
}
.segment-option{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:none;
  background:transparent;
  border-radius:11px;
  padding:9px 14px;
  font-size:13px;
  font-weight:700;
  color:var(--text-grey);
  cursor:pointer;
  font-family:inherit;
}
.segment-option.active{background:#fff;color:var(--text-dark);box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* PLN */
.pln-tabs{margin:12px 0}
.mobile-target-field{margin:12px 0}
.mobile-number-status{font-size:13px;color:var(--text-grey);margin-top:6px}
.mobile-number-status.ok{color:var(--green-dark)}
.mobile-number-status.error{color:var(--brand-red)}
.phone-hint{display:block;font-size:12px;color:var(--text-grey);margin-top:6px}
.pln-check-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  margin:10px 0;
  padding:13px 20px;
  border:none;
  border-radius:13px;
  background:var(--brand-red);
  color:#fff;
  font-size:14.5px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
}
.pln-check-btn:hover{background:var(--brand-red-dark)}
.pln-check-btn:disabled{opacity:.55;cursor:not-allowed}
.pln-result{
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:14px;
  padding:14px;
  margin:12px 0;
  font-size:13.5px;
  color:var(--text-dark);
}
.pln-result .customer-result{display:flex;flex-direction:row;align-items:center;gap:10px}
.pln-result .customer-result strong{font-size:14px;font-weight:700}
.pln-result .customer-result .icon{width:22px;height:22px;color:var(--green-dark);flex-shrink:0}
.cr-name{font-size:14px;font-weight:700;color:var(--text-dark)}
.cr-sub{font-size:12px;color:var(--text-grey)}

.spinner{
  width:18px;
  height:18px;
  border:2px solid var(--border-grey);
  border-top-color:var(--text-dark);
  border-radius:50%;
  animation:fix-spin .8s linear infinite;
  display:inline-block;
}
.spinner--dark{border-color:rgba(255,255,255,.35);border-top-color:#fff}
@keyframes fix-spin{to{transform:rotate(360deg)}}

/* Toolbar sortir + flash card */
.category-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:12px 0 6px;
}
.category-toolbar small{font-size:12px;color:var(--text-grey)}
.product-sort{
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
  color:var(--text-dark);
  border:1.5px solid var(--border-grey);
  border-radius:10px;
  background:#fff;
  font-family:inherit;
}
.flash-sale-card{
  border:1.5px solid #f7c9d5;
  border-radius:16px;
  background:linear-gradient(180deg,#fff0f4,#fff);
  padding:12px;
  margin:12px 0;
  overflow:hidden;
}
.flash-sale-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:800;
  color:var(--brand-red);
  margin-bottom:8px;
}
#flash-sale-countdown{
  background:var(--brand-red);
  color:#fff;
  border-radius:999px;
  padding:3px 9px;
  font-size:12px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* CTA mobile + sticky */
.mobile-cart .cta-total{display:flex;flex-direction:column;min-width:0}
.sticky-cta{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:420px;
  background:#fff;
  border-top:1px solid var(--border-grey);
  padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));
  z-index:40;
}
.sticky-cta .btn{width:100%}
#game-order-flow,#pln-order-flow{padding-bottom:92px}

.product-desc{font-size:13.5px;line-height:1.7;color:var(--text-grey);margin:6px 0 18px}

/* Rekonsiliasi dengan aturan category.css (dimuat setelah file ini) */
.category-main form.cta-bar:not([hidden]){display:flex}
.category-main .product-logo{width:150px;height:92px;padding:0}
.category-main .discount-note{
  display:block;
  font-size:11px;
  font-weight:600;
  color:var(--brand-red);
  margin-top:2px;
}

/* ---------- 4. Delta checkout ---------- */
.payment-options{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.payment-option{position:relative}
.payment-option input[type="radio"]{position:absolute;opacity:0;width:1px;height:1px}
.payment-radio{
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid var(--border-grey);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  font-weight:700;
  flex-shrink:0;
}
.payment-options .payment-option.selected{border-color:var(--brand-red);background:#fff5f6}
.payment-options .payment-option.selected .payment-radio{
  background:var(--brand-red);
  border-color:var(--brand-red);
}
.promo-row{display:flex;gap:10px;margin:14px 0 6px}
.promo-input{flex:1;min-width:0}
#apply-promo:disabled{opacity:.55;cursor:not-allowed}
.promo-message{font-size:13px;font-weight:600;margin:6px 0 14px}
.promo-message[data-status="success"]{color:var(--green-dark)}
.promo-message[data-status="error"]{color:var(--brand-red)}

/* ---------- 5. Delta payment ---------- */
.steps-list{margin:10px 0}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:13.5px;
  line-height:1.6;
  padding:8px 0;
  color:var(--text-dark);
}
.step-num{
  width:26px;
  height:26px;
  border-radius:50%;
  background:#fdecec;
  color:var(--brand-red);
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.steps-note{font-size:12.5px;color:var(--text-grey);margin:8px 0 16px}
.sub-heading{font-size:16px;font-weight:800;color:var(--text-dark);margin:22px 0 10px}
.action-grid{display:grid;gap:10px;margin:14px 0}
.download-qris-btn.wide{width:100%;box-sizing:border-box;justify-content:center}
.check-status-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  margin-top:12px;
  padding:12px 18px;
  border:none;
  border-radius:13px;
  background:var(--text-dark);
  color:#fff;
  font-size:14px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
}
.check-status-btn:disabled{opacity:.55;cursor:not-allowed}
.qris-not-ready{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:200px;
  background:var(--bg-grey);
  border-radius:12px;
  font-size:13.5px;
  color:var(--text-grey);
}
#payment-timer{font-weight:800;font-variant-numeric:tabular-nums}
#payment-status-message:empty{display:none}
.qris-status #payment-status-message[data-status="paid"]{color:var(--green-dark)}
.qris-status #payment-status-message[data-status="expired"]{color:var(--brand-red)}
.qris-status #payment-status-message[data-status="payment_detected"]{color:var(--blue)}
.qris-status:has(#payment-status-message[data-status="expired"]) .qris-spinner{display:none}

/* ---------- 6. Order-status + struk ---------- */
.order-status-page{display:flex;flex-direction:column;align-items:center;text-align:center}
.status-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:4px 0 8px;
}
#order-status-heading h1,.status-hero h1{font-size:20px;font-weight:800;color:var(--text-dark)}
#order-status-heading p,.status-hero p{font-size:13px;color:var(--text-grey)}
.status-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
}
.status-icon.success{background:#e7f7ee;color:var(--green-dark)}
.status-icon.warning{background:#fff6e0;color:#a06a00}
.status-icon.danger{background:#fdecec;color:var(--brand-red-dark)}
.order-status-card{margin-top:2px}

.order-timeline{display:flex;flex-direction:column;gap:0}
.progress-step{padding:10px 0}
.p-dot{
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid var(--border-grey);
  background:#fff;
  color:var(--text-grey);
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.p-dot.done{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
.p-dot.danger{background:var(--brand-red);border-color:var(--brand-red);color:#fff}
.p-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:left;
  padding-left:12px;
}
.order-actions{display:flex;flex-direction:column;gap:10px;margin:18px 0 8px}
.order-actions .btn{width:100%}

/* Struk */
.receipt{margin-top:24px}
#receipt.capturing{
  position:fixed;
  left:0;
  top:0;
  z-index:-1;
  opacity:1;
  pointer-events:none;
}
.receipt-paper{
  background:#fffef7;
  border:1.5px dashed var(--border-grey);
  border-radius:8px;
  max-width:340px;
  margin:0 auto;
  padding:22px 18px;
  font-size:12.5px;
  color:var(--text-dark);
  text-align:left;
}
.receipt-head{text-align:center}
.receipt-store{font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:1px}
.receipt-tagline{font-size:11px;color:var(--text-grey);margin-top:2px}
.receipt-stamp{
  display:inline-block;
  border:2px solid var(--green-dark);
  color:var(--green-dark);
  border-radius:999px;
  padding:5px 12px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  margin:10px auto 0;
}
.receipt-stamp.danger{border-color:var(--brand-red);color:var(--brand-red)}
.receipt-cut{border-top:2px dashed var(--text-grey);margin:12px -18px}
.receipt-block{display:flex;flex-direction:column;gap:6px}
.receipt-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px}
.receipt-row > span{color:var(--text-grey)}
.receipt-row b{font-weight:700;text-align:right;max-width:60%}
.receipt-row.total{font-size:14px;font-weight:800}
.num{font-variant-numeric:tabular-nums}
.receipt-total{display:flex;justify-content:space-between;font-size:15px;font-weight:800;margin:8px 0}
.receipt-foot{text-align:center;font-size:11px;line-height:1.6;color:var(--text-grey);margin-top:8px}
.receipt-foot p + p{margin-top:2px}
.receipt-brand{
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--text-dark);
  margin-top:8px;
}

/* ---------- 7. Track-order ---------- */
body.track-order-page{background:#f6f7f8}
.track-wrap{
  max-width:560px;
  margin:0 auto;
  padding:24px 16px 72px;
  font-family:var(--jx-font,"DM Sans",sans-serif);
  color:var(--text-dark);
}
.track-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
  color:var(--text-grey);
  text-decoration:none;
  margin-bottom:18px;
}
.track-back svg{width:16px;height:16px}
.track-back:hover{color:var(--text-dark)}
.track-intro{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  text-align:center;
}
.track-intro h1{font-size:24px;font-weight:800;color:var(--text-dark)}
.track-intro p{font-size:13.5px;color:var(--text-grey);max-width:420px;margin:0 auto}
.track-intro-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--border-grey);
  display:flex;
  align-items:center;
  justify-content:center;
}
.track-intro-icon svg{width:26px;height:26px;color:var(--green-dark)}
.track-form{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:20px;
  padding:20px;
  margin-bottom:16px;
}
.track-form .btn{width:100%}
.card .track-form{border:none;padding:0;margin:0;background:transparent}
.track-otp-form{margin-top:14px}
.track-message{
  background:#eaf1ff;
  color:#1d3f8f;
  border-radius:12px;
  padding:12px 14px;
  font-size:13.5px;
  margin:12px 0;
}
.track-email-card h4{font-size:16px;font-weight:700;margin-bottom:4px;color:var(--text-dark)}
.track-email-desc{font-size:13.5px;color:var(--text-grey);margin:4px 0 12px}
.track-verified{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--green-dark);
  font-size:13.5px;
  font-weight:700;
  margin:10px 0;
}
.track-verified svg{width:18px;height:18px}
.track-history-heading h4{font-size:15px;font-weight:700;margin:18px 0 4px;color:var(--text-dark)}
.track-history-heading p{font-size:12.5px;color:var(--text-grey);margin-bottom:10px}
.track-history-list{display:flex;flex-direction:column;gap:10px}
.track-history-item{transition:box-shadow .15s}
.track-history-item:hover{box-shadow:0 6px 18px rgba(17,17,17,.08)}
.track-history-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.track-history-top strong{font-size:15px;font-weight:700;color:var(--text-dark)}
.track-history-top .badge{text-transform:uppercase;font-size:10.5px}
.track-history-item .summary-row{padding:4px 0}
.track-history-empty{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:16px;
  padding:20px;
  text-align:center;
  font-size:13.5px;
  color:var(--text-grey);
}
.track-result-status{margin:10px 0}
.track-result-status .badge{text-transform:uppercase;letter-spacing:.5px}
.track-privacy-note{font-size:12px;color:var(--text-grey);text-align:center;margin-top:14px}

/* ---------- 8. Static pages ---------- */
body.static-page{background:#fff}
.static-wrap{
  max-width:640px;
  margin:0 auto;
  padding:24px 16px 72px;
  font-family:var(--jx-font,"DM Sans",sans-serif);
  color:var(--text-dark);
}
.static-wrap .section{max-width:none;padding:0 0 8px;margin:0}
.page-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
  color:var(--text-grey);
  text-decoration:none;
  margin-bottom:16px;
}
.page-back svg{width:16px;height:16px}
.page-back:hover{color:var(--text-dark)}
.page-head{margin-bottom:20px}
.page-eyebrow{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.2px;
  color:var(--brand-red);
  margin-bottom:6px;
}
.page-head h1,.static-wrap > h1{font-size:27px;font-weight:800;line-height:1.25;color:var(--text-dark)}
.page-lead{font-size:14.5px;color:var(--text-grey);line-height:1.6;margin-top:8px}
.page-card{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:20px;
  padding:22px 24px;
  margin-bottom:16px;
}
.page-card.prose h2{font-size:17px;font-weight:700;margin:26px 0 12px;color:var(--text-dark)}
.page-card.prose h2:first-child{margin-top:0}
.page-card.prose p{font-size:14.5px;line-height:1.75;color:#333;margin:10px 0}
.page-card.prose ul,.page-card.prose ol{padding-left:20px;margin:8px 0 14px}
.page-card.prose li{font-size:14.5px;line-height:1.65;margin:6px 0}
.page-card.prose a{color:var(--blue);text-decoration:underline}
.page-note{font-size:13px;color:var(--text-grey);margin-top:16px}

/* Contact */
.help-hero{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:16px;
  padding:18px;
  margin-bottom:18px;
}
.help-hero strong,.help-hero-title{font-size:16px;font-weight:700;color:var(--text-dark);display:block;margin:0}
.help-hero p{font-size:14px;color:var(--text-grey);margin-top:2px}
.help-hero-icon{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#fff5f6;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.help-hero-icon svg{width:22px;height:22px;color:var(--brand-red)}
.menu-list{display:flex;flex-direction:column;gap:10px}
.menu-row{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:16px;
  padding:16px;
  text-decoration:none;
  color:var(--text-dark);
  transition:border-color .15s;
}
.menu-row:hover{border-color:var(--text-dark)}
.menu-icon{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--bg-grey);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.menu-icon svg{width:20px;height:20px;color:var(--text-dark)}
.menu-body{display:flex;flex-direction:column;min-width:0}
.menu-title{font-size:15px;font-weight:700}
.menu-sub{font-size:13px;color:var(--text-grey)}
.help-box{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:var(--bg-grey);
  border-radius:14px;
  padding:14px;
  font-size:13.5px;
  color:var(--text-grey);
  margin-top:16px;
}
.help-box svg{width:18px;height:18px;margin-top:1px;flex-shrink:0;color:var(--text-dark)}

/* FAQ */
.faq-item{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:16px;
  margin-bottom:10px;
  overflow:hidden;
}
.faq-item summary{
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  font-size:15px;
  font-weight:600;
  color:var(--text-dark);
  cursor:pointer;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:18px;font-weight:800;color:var(--text-grey)}
.faq-item[open] summary{border-bottom:1px solid var(--border-grey)}
.faq-item[open] summary::after{content:"\2013"}
.faq-answer{padding:14px 18px;font-size:14px;line-height:1.7;color:var(--text-grey)}
.faq-answer a{color:var(--blue);text-decoration:underline}
.faq-hub{margin-top:8px}
.hub-title{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--text-grey);
  margin:22px 0 12px;
}
.quick-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:360px){.quick-help-grid{grid-template-columns:1fr}}
.quick-help-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1.5px solid var(--border-grey);
  border-radius:16px;
  padding:18px;
  text-decoration:none;
  color:var(--text-dark);
  text-align:center;
  transition:border-color .15s;
}
.quick-help-card svg{width:26px;height:26px;color:var(--brand-red)}
.quick-help-card strong{font-size:14px;font-weight:700}
.quick-help-card:hover{border-color:var(--text-dark)}
.hub-links{
  list-style:none;
  margin:0;
  padding:0;
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:16px;
  overflow:hidden;
}
.hub-links li + li{border-top:1px solid var(--border-grey)}
.hub-links a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 16px;
  font-size:14.5px;
  font-weight:600;
  color:var(--text-dark);
  text-decoration:none;
}
.hub-links a svg{width:18px;height:18px;color:var(--text-grey)}

/* ---------- 9. Error pages ---------- */
.error-card{
  background:#fff;
  border:1px solid var(--border-grey);
  border-radius:24px;
  padding:40px 24px;
  max-width:480px;
  margin:24px auto;
  text-align:center;
}
.error-code{
  font-family:var(--jx-font-display,"DM Serif Display",Georgia,serif);
  font-size:64px;
  font-weight:800;
  line-height:1;
  color:var(--brand-red);
}
.error-code svg{width:48px;height:48px;color:var(--text-dark);display:inline-block}
.error-title{font-size:22px;font-weight:800;margin:12px 0 8px;color:var(--text-dark)}
.error-copy{
  font-size:14.5px;
  color:var(--text-grey);
  max-width:420px;
  margin:8px auto;
  line-height:1.6;
}
.error-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}
.error-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  background:var(--brand-red);
  color:#fff;
  font-size:14px;
  font-weight:700;
  border-radius:999px;
  text-decoration:none;
}
.error-button:hover{background:var(--brand-red-dark)}
.error-button.secondary{background:#fff;border:1.5px solid var(--border-grey);color:var(--text-dark)}
.error-button.secondary:hover{background:var(--bg-grey)}

/* ---------- 10. State JS ---------- */
.is-loading{opacity:.6;cursor:wait;pointer-events:none}
button.is-loading{cursor:wait}


/* ---------- 11. Hero home — gradasi turun ke putih (per-kategori via var) ---------- */
.jx-hero-bg--home-gradient{
  background:linear-gradient(180deg,
    var(--jx-hero-1, #f97316) 0%,
    var(--jx-hero-2, #fb923c) 30%,
    var(--jx-hero-3, #c95a3d) 62%,
    var(--jx-hero-4, #e08a63) 84%,
    var(--jx-hero-5, #fff) 100%);
}

/* ---------- 12. Product-list — kartu logo operator ---------- */
/* Proporsi mengikuti referensi themes/fix: kotak 150x92 tanpa padding agar
   gambar memenuhi kotak, sudut ter-crop overflow hidden sehingga logo
   terlihat rounded; background merah diganti putih + border tipis */
.category-main.jx-product-list .product-logo{
  width:150px;
  height:92px;
  padding:0;
  background:#fff;
  border:1px solid #e5e7eb;
}
.category-main.jx-product-list .product-logo .logo-letter{
  width:100%;
  height:100%;
  border-radius:14px;
  background:var(--bg-grey);
  color:var(--text-dark);
  font-size:40px;
}

/* ---------- 13. Product-list — baris produk mengikuti referensi (tanpa logo) ---------- */
.category-main.jx-product-list #brand-product-area{display:flex;flex-direction:column;gap:10px;padding:0 20px 8px}
.category-main.jx-product-list .category-product-grid{gap:10px;padding:0 20px}
.category-main.jx-product-list > .section-title,
.category-main.jx-product-list > .category-toolbar{padding-left:20px;padding-right:20px}
.category-main.jx-product-list .nominal-list-row,
.category-main.jx-product-list .category-product-card{padding:14px}
.category-main.jx-product-list .nominal-list-row input[type="radio"]{display:none}
.category-main.jx-product-list .row-title{font-size:14px;font-weight:600;white-space:normal}
.category-main.jx-product-list .row-price{font-size:15px;font-weight:700}

/* ---------- 14. Direct-order-flow — label kedua (Zone ID) di section yang sama ---------- */
.phone-section .phone-hint + .phone-label{margin-top:14px}

/* ---------- 15. Card-grid — kartu mengisi kolom grid, bukan lebar fix 188px.
   home.css memaksa .card-grid .product-card{width:188px} di ≥768px dengan
   6 kolom 1fr; 6×188+gap melebihi container sehingga kartu luber ke tepi
   kanan layar (dan scroll horizontal) pada viewport 768–1280px. ---------- */
@media (min-width:768px){
  .card-grid{grid-template-columns:repeat(4,1fr)}
  .card-grid .product-card{width:auto;max-width:188px;justify-self:center}
}
@media (min-width:1280px){
  .card-grid{grid-template-columns:repeat(6,1fr)}
}

/* ---------- 16. Order-flow PLN & Games — gutter kiri/kanan 20px ----------
   #pln-order-flow / #game-order-flow tidak punya padding horizontal sehingga
   field, tabs, dan kartu nominal menempel tepi layar di HP. Longhand dipakai
   agar tidak menimpa padding-bottom:92px milik aturan section sticky-cta.
   #mobile-order-flow tidak disentuh — anaknya (breadcrumb, product-header,
   tab-row, phone-section, app-promo) sudah membawa gutter 20px sendiri. ---------- */
#pln-order-flow,
#game-order-flow{padding-left:20px;padding-right:20px}
