/* ==========================================================================
   Store theme — biru #2196f3 & putih
   Satu file untuk semua halaman toko (layout: resources/views/main.blade.php)
   ========================================================================== */

:root {
  --blue-50:  #e3f2fd;
  --blue-100: #bbdefb;
  --blue-200: #90caf9;
  --blue-300: #64b5f6;
  --blue-500: #2196f3;
  --blue-600: #1e88e5;
  --blue-700: #1976d2;
  --blue-800: #1565c0;

  --ink:      #0f1b2d;   /* teks utama */
  --ink-2:    #3b4757;   /* teks sekunder */
  --muted:    #6b7686;   /* teks keterangan */
  --line:     #e3e8ef;   /* garis / border */
  --line-2:   #d3dae4;
  --page:     #f4f6f9;   /* latar halaman */
  --surface:  #ffffff;

  --ok:   #1f9d55;
  --warn: #d97706;
  --bad:  #d93a3a;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Dasar ---------- */
html { scroll-behavior: smooth; }
body.st-body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.st-body h1, .st-body h2, .st-body h3, .st-body h4, .st-body h5, .st-body h6 {
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.01em;
}
.st-body a { color: inherit; text-decoration: none; }
.st-body img { max-width: 100%; }
.st-body ::selection { background: var(--blue-100); }
.st-main { flex: 1 0 auto; }

.st-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 640px) { .st-container { padding: 0 14px; } }

/* ---------- Tombol ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.st-btn-primary { background: var(--blue-500); color: #fff !important; }
.st-btn-primary:hover { background: var(--blue-700); }
.st-btn-outline { background: #fff; color: var(--blue-700) !important; border-color: var(--blue-200); }
.st-btn-outline:hover { border-color: var(--blue-500); background: var(--blue-50); }
.st-btn-ghost { background: transparent; color: var(--ink-2) !important; }
.st-btn-ghost:hover { background: var(--page); color: var(--ink) !important; }
.st-btn-block { width: 100%; }
.st-btn-lg { height: 48px; font-size: 15px; }
.st-btn:disabled, .st-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.st-header {
  position: sticky; top: 0; z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.st-header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.st-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.st-logo img { height: 36px; width: auto; display: block; }
.st-logo-name { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }

.st-search { position: relative; flex: 1; max-width: 460px; }
.st-search input {
  width: 100%; height: 40px;
  border: 1px solid var(--line-2);
  background: var(--page);
  border-radius: var(--r-sm);
  padding: 0 14px 0 38px;
  font: 400 14px var(--font); color: var(--ink);
  outline: none;
  transition: border-color .15s, background-color .15s;
}
.st-search input:focus { border-color: var(--blue-500); background: #fff; }
.st-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.st-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(15, 27, 45, .12);
  list-style: none; margin: 0; padding: 6px;
  max-height: 420px; overflow-y: auto; z-index: 50;
}
.st-search-results li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); }
.st-search-results li a:hover { background: var(--page); }
.st-search-results img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.st-search-results .st-empty { padding: 10px; color: var(--muted); font-size: 14px; }

.st-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.st-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.st-nav-link:hover { color: var(--ink); background: var(--page); }
.st-nav-link.is-active { color: var(--blue-700); }

.st-menu-btn {
  display: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  align-items: center; justify-content: center; flex-shrink: 0;
}
.st-menu-btn svg { width: 20px; height: 20px; }

.st-account { position: relative; }
.st-account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px 0 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font: 600 13px var(--font); color: var(--ink);
}
.st-account-btn:hover { border-color: var(--line-2); }
.st-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.st-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(15, 27, 45, .12);
  padding: 6px; display: none; z-index: 60;
}
.st-dropdown.is-open { display: block; }
.st-dropdown-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.st-dropdown-head small { display: block; color: var(--muted); font-size: 12px; }
.st-dropdown-head strong { font-size: 15px; }
.st-dropdown a, .st-dropdown button {
  display: flex; width: 100%; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font: 500 14px var(--font); color: var(--ink-2); background: none; border: 0; text-align: left;
}
.st-dropdown a:hover, .st-dropdown button:hover { background: var(--page); color: var(--ink); }
.st-dropdown i { width: 16px; color: var(--muted); }

@media (max-width: 991px) {
  .st-nav .st-nav-link { display: none; }
  .st-menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .st-header-inner { gap: 10px; height: 58px; }
  .st-search { display: none; }
  .st-search.is-mobile { display: block; max-width: none; padding: 0 0 12px; }
  .st-logo img { height: 30px; }
}
.st-mobile-search { display: none; }
@media (max-width: 640px) { .st-mobile-search { display: block; } }

/* Drawer menu (mobile) */
.st-drawer.offcanvas { width: 300px; border-right: 1px solid var(--line); background: #fff; color: var(--ink); }
.st-drawer .offcanvas-header { border-bottom: 1px solid var(--line); padding: 14px 18px; }
.st-drawer-nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.st-drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.st-drawer-nav a:hover { background: var(--page); color: var(--ink); }
.st-drawer-nav i { width: 18px; text-align: center; color: var(--muted); }
.st-drawer-label { padding: 14px 12px 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.st-drawer-foot { padding: 14px 20px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Banner ---------- */
.st-hero { padding: 20px 0 8px; }
.st-banner { border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.st-banner .swiper-slide img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.st-banner .swiper-pagination-bullet { background: #fff; opacity: .6; width: 7px; height: 7px; }
.st-banner .swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 4px; }
@media (max-width: 640px) { .st-banner { border-radius: var(--r); } .st-banner .swiper-slide img { aspect-ratio: 16 / 8; } }

/* ---------- Strip info (keunggulan) ---------- */
.st-perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  margin-top: 16px;
}
.st-perk { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.st-perk + .st-perk { border-left: 1px solid var(--line); }
.st-perk-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.st-perk b { display: block; font-size: 14px; }
.st-perk div span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .st-perks { grid-template-columns: repeat(2, 1fr); }
  .st-perk:nth-child(3) { border-left: 0; }
  .st-perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .st-perk { padding: 12px; gap: 10px; }
  .st-perk div span { display: none; }
  .st-perk b { font-size: 13px; }
  .st-perk-icon { width: 30px; height: 30px; font-size: 13px; }
}

/* ---------- Section ---------- */
.st-section { padding: 28px 0 8px; }
.st-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-section-title { font-size: 19px; font-weight: 700; margin: 0; }
.st-section-sub { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }

/* Populer: kartu horizontal */
.st-popular { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st-popular-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; transition: border-color .15s;
}
.st-popular-item:hover { border-color: var(--blue-500); }
.st-popular-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.st-popular-item b { display: block; font-size: 14.5px; line-height: 1.3; }
.st-popular-item span { font-size: 12.5px; color: var(--muted); }
.st-popular-item .st-chev { margin-left: auto; color: var(--line-2); }
.st-popular-item:hover .st-chev { color: var(--blue-500); }
@media (max-width: 860px) { .st-popular { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .st-popular { gap: 8px; }
  .st-popular-item { padding: 8px; gap: 10px; }
  .st-popular-item img { width: 44px; height: 44px; }
  .st-popular-item b { font-size: 13px; }
  .st-popular-item .st-chev { display: none; }
}

/* Tab kategori */
.st-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab {
  flex-shrink: 0; padding: 10px 14px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  font: 600 14px var(--font); color: var(--muted); cursor: pointer;
}
.st-tab:hover { color: var(--ink); }
.st-tab.active { color: var(--blue-700); border-bottom-color: var(--blue-500); }

/* Grid produk */
.st-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px)  { .st-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 600px)  { .st-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

.st-card {
  display: block; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .15s;
}
.st-card:hover { border-color: var(--blue-500); }
.st-card-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--page); }
.st-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.st-card:hover .st-card-img img { transform: scale(1.04); }
.st-card-body { padding: 9px 10px 11px; }
.st-card-body b { display: block; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card-body span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card-square .st-card-img { aspect-ratio: 1 / 1; }
@media (max-width: 480px) { .st-card-body { padding: 7px 8px 9px; } .st-card-body b { font-size: 12.5px; } .st-card-body span { font-size: 11px; } }

.st-empty-state { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------- Cara top up (beranda) ---------- */
.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.st-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.st-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--blue-500); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 10px;
}
.st-step b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.st-step span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .st-steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.st-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; color: var(--ink-2); font-size: 14px; }
.st-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 40px 0 28px; }
.st-footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin: 0 0 14px; }
.st-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.st-footer ul a:hover { color: var(--blue-700); }
.st-footer-about p { margin: 12px 0 0; color: var(--muted); max-width: 340px; }
.st-socials { display: flex; gap: 8px; margin-top: 16px; }
.st-socials a {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.st-socials a:hover { border-color: var(--blue-500); color: var(--blue-700); }
.st-pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pay-logos span {
  height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  display: inline-flex; align-items: center;
}
.st-pay-logos img { height: 16px; width: auto; }
.st-footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
@media (max-width: 860px) { .st-footer-top { grid-template-columns: 1fr 1fr; } .st-footer-about { grid-column: 1 / -1; } }

/* Tombol kontak melayang */
.st-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1020;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 18px rgba(15, 27, 45, .18);
}
.st-fab:hover { background: #1ebe5b; }
.st-to-top {
  position: fixed; right: 24px; bottom: 82px; z-index: 1020;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 27, 45, .08);
}
.st-to-top.is-visible { display: inline-flex; }

/* ---------- Halaman umum (judul + panel) ---------- */
.st-page-head { padding: 28px 0 18px; }
.st-page-head h1 { font-size: 24px; font-weight: 800; margin: 0; }
.st-page-head p { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.st-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.st-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.st-input, .st-body .st-input {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; padding: 0 12px; font: 400 14.5px var(--font); color: var(--ink); outline: none;
}
.st-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }

/* ---------- Auth (login / daftar) ---------- */
.st-auth { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.st-auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; }
.st-auth-card h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.st-auth-card > p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.st-auth-card .st-field { margin-bottom: 14px; }
.st-auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.st-auth-alt a { color: var(--blue-700); font-weight: 600; }
@media (max-width: 480px) { .st-auth-card { padding: 24px 18px; border-radius: var(--r); } }

/* ---------- Halaman order ---------- */
.st-order-head { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0 22px; margin-bottom: 22px; }
.st-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.st-crumbs a { color: var(--muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--blue-700); }
.st-crumbs i { font-size: 9px; }
.st-crumbs span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-order-title { display: flex; align-items: center; gap: 16px; }
.st-order-title img { width: 76px; height: 76px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); flex: none; }
.st-order-title h1 { font-size: 22px; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.st-order-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.st-order-tags i { color: var(--blue-500); margin-right: 6px; font-size: 12px; }

.st-order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding-bottom: 40px; }
.st-order-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-order-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

.st-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.st-box-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.st-box-head h2 { font-size: 15.5px; font-weight: 700; margin: 0; flex: 1; }
.st-box-head h2 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.st-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-500); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-box-body { padding: 18px; }
.st-link-btn { border: 0; background: none; color: var(--blue-700); font: 600 13px var(--font); padding: 4px 0; cursor: pointer; }
.st-link-btn:hover { text-decoration: underline; }
.st-help { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.st-group-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 18px 0 10px; text-transform: none; }
.st-box-body > .st-group-title:first-child, .st-box-body > .st-pay-hint + .st-group-title { margin-top: 0; }

/* item nominal */
.st-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-item, .st-pay { display: block; margin: 0; cursor: pointer; position: relative; }
.st-item input, .st-pay input { position: absolute; opacity: 0; pointer-events: none; }
.st-item-box {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 74px;
  padding: 12px 12px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  position: relative; transition: border-color .12s, background-color .12s;
}
.st-item:hover .st-item-box { border-color: var(--blue-300); }
.st-item input:checked + .st-item-box { border-color: var(--blue-500); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-500); }
.st-item input:focus-visible + .st-item-box, .st-pay input:focus-visible + .st-pay-box { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.st-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; padding-right: 26px; }
.st-item-price { font-size: 13px; color: var(--blue-700); font-weight: 700; margin-top: auto; }
.st-item-price s { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.st-item-icon { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; object-fit: contain; }
.st-item-flag { align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--bad); background: #fdecec; border-radius: 4px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .3px; }

/* metode pembayaran */
.st-pay-hint { margin: 0 0 14px; padding: 9px 12px; background: var(--page); border-radius: var(--r-sm); }
.st-pays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-pay-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 58px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; transition: border-color .12s, background-color .12s;
}
.st-pay:hover .st-pay-box { border-color: var(--blue-300); }
.st-pay input:checked + .st-pay-box { border-color: var(--blue-500); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-500); }
.st-pay-logo { width: 54px; height: 30px; display: flex; align-items: center; justify-content: center; flex: none; background: #fff; border-radius: 4px; }
.st-pay-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-pay-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.st-pay-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.st-pay-price { font-size: 13px; color: var(--ink); white-space: nowrap; }

.st-inline-form { display: flex; gap: 8px; }
.st-inline-form .st-btn { flex: none; height: 44px; }

/* ringkasan */
.st-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.st-summary h2 { font-size: 15.5px; font-weight: 700; margin: 0 0 12px; }
.st-summary dl { margin: 0; }
.st-summary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.st-summary dt { color: var(--muted); font-weight: 400; }
.st-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.st-summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-2); margin: 10px 0 16px; padding-top: 12px; }
.st-summary-total span { font-size: 14px; color: var(--ink-2); }
.st-summary-total b { font-size: 20px; color: var(--blue-700); }
.st-summary-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.st-desc .st-box-body { font-size: 13.5px; line-height: 1.6; }

.st-mobile-bar { display: none; }

@media (max-width: 991px) {
  .st-order { grid-template-columns: 1fr; }
  .st-order-side { position: static; }
  .st-order-side .st-summary { display: none; }
  .st-mobile-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(15, 27, 45, .06);
  }
  .st-mobile-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .st-mobile-bar-info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-mobile-bar-info b { font-size: 16px; color: var(--blue-700); }
  .st-mobile-bar .st-btn { height: 44px; padding: 0 20px; }
  body.st-body:has(.st-mobile-bar) { padding-bottom: 70px; }
  body.st-body:has(.st-mobile-bar) .st-fab, body.st-body:has(.st-mobile-bar) .st-to-top { bottom: 84px; }
}
@media (max-width: 640px) {
  .st-order-head { padding: 12px 0 16px; margin-bottom: 14px; }
  .st-order-title img { width: 60px; height: 60px; }
  .st-order-title h1 { font-size: 18px; margin-bottom: 6px; }
  .st-order-tags { font-size: 12px; gap: 4px 10px; }
  .st-box-head { padding: 12px 14px; }
  .st-box-body { padding: 14px; }
  .st-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-pays { grid-template-columns: 1fr; gap: 8px; }
}

/* popup konfirmasi (SweetAlert) */
.st-swal { border-radius: var(--r-lg) !important; font-family: var(--font) !important; padding: 22px 0 18px !important; }
.st-swal .swal2-title { font-size: 18px !important; color: var(--ink) !important; }
.st-swal .swal2-html-container { margin: 6px 22px 0 !important; text-align: left !important; font-size: 14px !important; color: var(--ink-2) !important; }
.st-swal .swal2-actions { margin-top: 18px !important; padding: 0 22px; width: 100%; gap: 8px; flex-wrap: nowrap; }
.st-swal .swal2-actions button { flex: 1; margin: 0 !important; border-radius: var(--r-sm) !important; font-weight: 600 !important; font-size: 14px !important; height: 44px; box-shadow: none !important; }
.st-swal .swal2-styled.st-swal-cancel { color: var(--ink-2) !important; border: 1px solid var(--line-2) !important; background: #fff !important; }
.st-confirm-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.st-confirm-list { margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.st-confirm-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.st-confirm-list > div:last-child { border-bottom: 0; }
.st-confirm-list dt { font-weight: 400; color: var(--muted); flex: none; }
.st-confirm-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.st-confirm-total { background: var(--blue-50); }
.st-confirm-total dd { color: var(--blue-700); font-size: 15px; }
.st-confirm-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Kompatibilitas: kelas lama (Bootstrap / Tailwind) dibuat terang
   ========================================================================== */
.st-body .bg-thema, .st-body .bg-nvd { background: var(--page) !important; }
.st-body .bg-dark { background: #fff !important; color: var(--ink) !important; }
.st-body .text-white-50 { color: var(--muted) !important; }
.st-body .text-warning { color: var(--warn) !important; }
.st-body .text-primary { color: var(--blue-700) !important; }
.st-body .bg-primary { background-color: var(--blue-500) !important; }

.st-body .card {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: none;
}
.st-body .card-header { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.st-body .card-body { color: var(--ink); }

.st-body .modal-content {
  background: #fff !important; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 20px 48px rgba(15, 27, 45, .18) !important;
}
.st-body .modal-header, .st-body .modal-footer { border-color: var(--line); }
.st-body .modal-backdrop.show { opacity: .45; background: #0f1b2d; }

.st-body .form-control, .st-body .form-select {
  background-color: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  min-height: 44px; font-size: 14.5px;
}
.st-body .form-control:focus, .st-body .form-select:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); background: #fff; color: var(--ink);
}
.st-body .form-control::placeholder { color: #9aa4b2; }
.st-body .form-check-input:checked { background-color: var(--blue-500); border-color: var(--blue-500); }

.st-body .btn { border-radius: var(--r-sm); font-weight: 600; font-family: var(--font); }
.st-body .btn-primary { background: var(--blue-500) !important; border-color: var(--blue-500) !important; color: #fff !important; }
.st-body .btn-primary:hover { background: var(--blue-700) !important; border-color: var(--blue-700) !important; }
.st-body .btn-outline-primary { color: var(--blue-700); border-color: var(--blue-200); }
.st-body .btn-outline-primary:hover { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-500); }

.st-body .table { color: var(--ink); --bs-table-bg: #fff; --bs-table-striped-bg: #f8fafc; border-color: var(--line); }
.st-body .table thead th { background: #f8fafc; color: var(--ink-2); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.st-body .table td, .st-body .table th { border-color: var(--line); vertical-align: middle; }
.st-body .dataTables_wrapper .dataTables_filter input,
.st-body .dataTables_wrapper .dataTables_length select { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px 8px; background: #fff; color: var(--ink); }
.st-body .page-link { color: var(--blue-700); border-color: var(--line); }
.st-body .page-item.active .page-link { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

.st-body .badge.bg-success { background: #e6f6ec !important; color: var(--ok) !important; }
.st-body .badge.bg-warning { background: #fff4e0 !important; color: var(--warn) !important; }
.st-body .badge.bg-danger  { background: #fdecec !important; color: var(--bad) !important; }
.st-body .badge.bg-primary, .st-body .badge.bg-info { background: var(--blue-50) !important; color: var(--blue-700) !important; }

.st-body .nav-tabs { border-color: var(--line); }
.st-body .nav-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.st-body .nav-tabs .nav-link.active { color: var(--blue-700); background: none; border-bottom-color: var(--blue-500); }

.st-body .dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(15, 27, 45, .12); }
.st-body .dropdown-item:active { background: var(--blue-500); }

.st-body .alert { border-radius: var(--r); }
.st-body .prose, .st-body .prose * { color: var(--ink-2); }
.st-body .prose a { color: var(--blue-700); }

/* Toastr & Pace */
#toast-container > div { opacity: 1; border-radius: var(--r); box-shadow: 0 10px 28px rgba(15, 27, 45, .18); font-family: var(--font); }
.pace .pace-progress { background: var(--blue-500) !important; height: 2px !important; }

/* Swiper default color */
.st-body { --swiper-theme-color: var(--blue-500); }
.st-confirm-list dd:empty::after { content: "–"; color: var(--muted); font-weight: 400; }

/* ---------- Form tambahan (auth & akun) ---------- */
.st-field { margin-bottom: 14px; }
.st-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .st-field-row { grid-template-columns: 1fr; } }
.st-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.st-label-row a { font-size: 13px; color: var(--blue-700); text-decoration: none; }
.st-label-row a:hover { text-decoration: underline; }
.st-input-wrap { position: relative; }
.st-input-wrap .st-input { padding-right: 44px; }
.st-input-toggle { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.st-input-toggle:hover { color: var(--ink); }
.st-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin: 4px 0 18px; cursor: pointer; }
.st-check .form-check-input { margin: 2px 0 0; flex: none; }
.st-check a { color: var(--blue-700); }
/* Nomor WhatsApp: pilihan kode negara + nomor dalam satu kotak */
.st-phone { display: flex; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.st-phone:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.st-phone select { flex: none; border: 0; border-right: 1px solid var(--line-2); background: var(--blue-50, #f5f8ff); padding: 0 8px; font: 600 14px var(--font); color: var(--ink-2); outline: none; cursor: pointer; }
.st-phone .st-input { border: 0; height: 100%; box-shadow: none; border-radius: 0; }
.st-phone .st-input:focus { box-shadow: none; }
.st-check-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; }
.st-check-row .st-check { margin: 0; }
.st-check-row a { font-size: 13px; color: var(--blue-700); text-decoration: none; }
.st-check-row a:hover { text-decoration: underline; }
.st-captcha { margin: 0 0 16px; min-height: 78px; }
.st-alert { padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 16px; border: 1px solid transparent; }
.st-alert-ok { background: #e9f7ef; color: #146c3c; border-color: #c8ebd6; }
.st-alert-bad { background: #fdecec; color: #a42828; border-color: #f6cfcf; }
.st-alert-info { background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-100); }
textarea.st-input { height: auto; min-height: 96px; padding: 10px 12px; }
select.st-input { appearance: auto; }

/* ---------- Tabel & status ---------- */
.st-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-table th { text-align: left; font-weight: 600; color: var(--ink-2); background: #f8fafc; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.st-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table .num { text-align: right; white-space: nowrap; }
.st-table-empty { text-align: center; color: var(--muted); padding: 28px 14px !important; }
.st-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-status-ok { background: #e6f6ec; color: var(--ok); }
.st-status-wait { background: #fff4e0; color: var(--warn); }
.st-status-bad { background: #fdecec; color: var(--bad); }
.st-status-info { background: var(--blue-50); color: var(--blue-700); }
.st-page { padding-bottom: 48px; }
.st-page .st-panel + .st-panel, .st-page .st-panel + .st-table-wrap { margin-top: 16px; }
.st-text { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.st-text h2, .st-text h3 { color: var(--ink); font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.st-text p, .st-text ul, .st-text ol { margin: 0 0 12px; }
.st-text a { color: var(--blue-700); }
.st-text h3 { font-size: 15px; margin: 16px 0 4px; }
.st-text li { margin-bottom: 4px; }

.st-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .st-two-col { grid-template-columns: 1fr; } }
.st-rank { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--page); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.st-rank-top { background: var(--blue-500); color: #fff; }

.st-filter { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
@media (max-width: 640px) { .st-filter { grid-template-columns: 1fr; } }
.st-body .dataTables_wrapper .dataTables_info { font-size: 13px; color: var(--muted); padding: 12px 0 0; }
.st-body .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.st-body .dataTables_wrapper .dataTables_paginate .page-link { font-size: 13px; }
.st-table-wrap .dataTables_wrapper { padding: 0 0 12px; }
.st-table-wrap .dataTables_info, .st-table-wrap .dataTables_paginate { padding-left: 14px !important; padding-right: 14px !important; }
table.dataTable.st-table { margin: 0 !important; border-collapse: collapse !important; }

.st-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .st-contact-grid { grid-template-columns: 1fr; } }
.st-contact { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.st-contact:hover { border-color: var(--blue-300); }
.st-contact > span:nth-child(2) { flex: 1; min-width: 0; }
.st-contact b { display: block; font-size: 14.5px; }
.st-contact small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-contact-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-700); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

.st-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-legal-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.st-legal-nav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: var(--r-sm); }
.st-legal-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
@media (max-width: 860px) { .st-legal { grid-template-columns: 1fr; } .st-legal-nav { display: none; } }
.st-track { max-width: 640px; }

.st-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.st-otp .st-input { height: 52px; text-align: center; font-size: 20px; font-weight: 700; padding: 0; }

.st-calc { max-width: 560px; }
.st-calc-result { margin: 16px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-800); font-size: 14.5px; }
.st-calc-result.st-alert { margin: 16px 0 0; }
a.st-tab { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Akun ---------- */
.st-account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; }
.st-account-main { min-width: 0; }
.st-acc-nav { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.st-acc-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.st-acc-nav a i { width: 16px; text-align: center; color: var(--muted); }
.st-acc-nav a:hover { background: var(--page); color: var(--ink); }
.st-acc-nav a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.st-acc-nav a.active i { color: var(--blue-500); }
.st-acc-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.st-acc-user .st-avatar { width: 36px; height: 36px; font-size: 15px; }
.st-acc-user b { display: block; font-size: 14px; line-height: 1.3; }
.st-acc-user small { font-size: 12px; color: var(--muted); }
.st-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; }
.st-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.st-stat span { font-size: 12.5px; color: var(--muted); }
.st-stat b { font-size: 19px; color: var(--ink); }
.st-stat-main { background: var(--blue-500); border-color: var(--blue-500); }
.st-stat-main span { color: rgba(255,255,255,.85); }
.st-stat-main b { color: #fff; font-size: 22px; }
.st-stat-main .st-btn { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--blue-700) !important; height: 34px; font-size: 13px; padding: 0 14px; }
.st-stat-main .st-btn:hover { background: var(--blue-50); }
.st-table-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.st-pagination { margin-top: 14px; display: flex; justify-content: center; }
.st-pagination .pagination { margin: 0; }
@media (max-width: 991px) {
  .st-account-layout { grid-template-columns: 1fr; padding-top: 16px; gap: 16px; }
  .st-acc-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .st-acc-nav::-webkit-scrollbar { display: none; }
  .st-acc-nav a { white-space: nowrap; }
  .st-acc-user { display: none; }
  .st-stats { grid-template-columns: 1fr 1fr; }
  .st-stat-main { grid-column: 1 / -1; }
}

/* ---------- Invoice ---------- */
.st-inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.st-inv-head p b { color: var(--ink); }
.st-inv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.st-inv-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-inv .st-order-side .st-summary { display: block; }
.st-inv-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r); border: 1px solid; }
.st-inv-status b { display: block; font-size: 16px; }
.st-inv-status span { display: block; font-size: 13.5px; margin-top: 2px; }
.st-inv-wait { background: #fff8eb; border-color: #f5dfb5; color: #8a4b05; }
.st-inv-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.st-inv-ok   { background: #e9f7ef; border-color: #c8ebd6; color: #146c3c; }
.st-inv-bad  { background: #fdecec; border-color: #f6cfcf; color: #a42828; }
.st-inv-status .st-btn { flex: none; color: inherit !important; }
.st-qr { display: flex; gap: 20px; align-items: flex-start; }
.st-qr img { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; background: #fff; flex: none; }
.st-steps-list { margin: 16px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.st-copy { display: flex; gap: 8px; align-items: stretch; }
.st-copy code { flex: 1; display: flex; align-items: center; padding: 0 14px; min-height: 48px; background: var(--page); border: 1px dashed var(--line-2); border-radius: var(--r-sm); font: 700 18px/1.2 ui-monospace, Consolas, monospace; color: var(--ink); letter-spacing: .5px; overflow-wrap: anywhere; }
.st-copy .st-btn { height: auto; }
.st-dl { margin: 0; }
.st-dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-dl > div:last-child { border-bottom: 0; }
.st-dl dt { color: var(--muted); font-weight: 400; }
.st-dl dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 991px) { .st-inv { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .st-qr { flex-direction: column; align-items: center; text-align: left; }
  .st-dl > div { grid-template-columns: 120px minmax(0, 1fr); }
  .st-inv-head .st-btn { display: none; }
}
@media print {
  .st-header, .st-footer, .st-fab, .st-to-top, .st-inv-head .st-btn, .st-inv-status .st-btn, [data-copy], [data-copy-text] { display: none !important; }
  body.st-body { background: #fff; }
}

/* Logo teks (dipakai bila logo gambar dikosongkan) */
.logo-text { display: inline-flex; align-items: center; gap: 9px; line-height: 1; white-space: nowrap; }
.logo-text-mark { width: 34px; height: 34px; border-radius: 10px; background: #2196f3; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); flex: none; }
.logo-text-name { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: #0f1b2d; }
.logo-text-name em { font-style: normal; color: #2196f3; }
@media (max-width: 575.98px) { .logo-text-mark { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; } .logo-text-name { font-size: 17px; } }

/* ==========================================================================
   TEMA BIRU-PUTIH
   Warna utama #2196f3 dan #ffffff. Warna solid, tanpa gradasi & efek menyala.
   Huruf: Sora (judul & harga) + Manrope (teks).
   Biru gelap #1976d2 hanya dipakai untuk teks kecil di atas putih (supaya terbaca)
   dan untuk efek hover.
   ========================================================================== */
:root {
  --blue:      #2196f3;
  --blue-dark: #1976d2;
  --blue-deep: #1565c0;
  --blue-tint: #e9f4fe;   /* latar biru sangat muda */
  --blue-tint-2: #d4eafd;

  --blue-50:  #e9f4fe;
  --blue-100: #d4eafd;
  --blue-200: #a6d3fa;
  --blue-300: #6ab8f6;
  --blue-500: #2196f3;
  --blue-600: #1e88e5;
  --blue-700: #1976d2;
  --blue-800: #1565c0;

  --ink:   #0f2440;
  --ink-2: #3a4f6b;
  --muted: #6b7d94;
  --line:  #e1ebf6;
  --line-2:#cfdcec;
  --page:  #ffffff;
  --soft:  #f5f9fe;       /* latar bagian bergantian */

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;

  --sh-1: 0 1px 2px rgba(15,36,64,.05);
  --sh-2: 0 6px 18px -8px rgba(15,36,64,.16);
  --sh-3: 0 16px 36px -14px rgba(15,36,64,.24);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Dasar ---------- */
body.st-body { background: var(--page); font-size: 15px; }
.st-body h1, .st-body h2, .st-body h3, .st-body h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
.st-body ::selection { background: var(--blue-100); }
.st-body :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.st-btn {
  height: 42px; padding: 0 20px; border-radius: 10px;
  font: 700 14px/1 var(--font);
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.st-btn-primary { background: var(--blue); border-color: var(--blue); }
.st-btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.st-btn-primary:active { transform: translateY(1px); }
.st-btn-outline { background: #fff; border: 1.5px solid var(--blue); color: var(--blue-dark) !important; }
.st-btn-outline:hover { background: var(--blue-tint); }
.st-btn-lg { height: 50px; font-size: 15px; border-radius: 12px; }

/* ---------- Header biru ---------- */
.st-header { background: var(--blue); border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.st-header-inner { height: 66px; }
.st-header .st-logo-name, .st-header .logo-text-name { color: #fff; }
.st-header .logo-text-name em { color: #fff; opacity: .85; }
.logo-text-mark { background: var(--blue); box-shadow: none; border-radius: 10px; font-family: var(--font-display); }
.logo-text-name { font-family: var(--font-display); }
.logo-text-name em { color: var(--blue); }
.st-header .logo-text-mark { background: #fff; color: var(--blue); }

.st-header .st-search input {
  height: 42px; border-radius: 10px; background: #fff; border: 0; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.st-header .st-search input::placeholder { color: #8a9ab0; }
.st-header .st-search svg { color: #8a9ab0; }
.st-header .st-search input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.st-search-results { border-radius: 14px; border-color: var(--line); box-shadow: var(--sh-3); padding: 6px; }
.st-search-results li a { border-radius: 10px; color: var(--ink); }
.st-search-results li a:hover { background: var(--blue-tint); }

.st-header .st-nav-link { color: #fff; opacity: .92; border-radius: 10px; font-weight: 700; }
.st-header .st-nav-link:hover, .st-header .st-nav-link.is-active { opacity: 1; background: rgba(255,255,255,.16); color: #fff; }
.st-header .st-menu-btn { background: rgba(255,255,255,.16); border: 0; color: #fff; border-radius: 10px; }
.st-header .st-account-btn { background: rgba(255,255,255,.16); border: 0; color: #fff; border-radius: 10px; height: 42px; }
.st-header .st-account-btn:hover { background: rgba(255,255,255,.24); }
.st-header .st-account-btn .fa-chevron-down { color: #fff !important; }
.st-avatar { background: var(--blue-tint); color: var(--blue-dark); }
.st-header .st-avatar { background: #fff; color: var(--blue); }
.st-header .st-btn-primary { background: #fff; border-color: #fff; color: var(--blue-dark) !important; }
.st-header .st-btn-primary:hover { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep) !important; }
.st-header .st-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff !important; }
.st-header .st-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff !important; }
.st-dropdown { border-radius: 14px; box-shadow: var(--sh-3); border-color: var(--line); padding: 6px; top: calc(100% + 10px); }
.st-dropdown a, .st-dropdown button { border-radius: 10px; }
.st-dropdown a:hover, .st-dropdown button:hover { background: var(--blue-tint); color: var(--blue-dark); }
.st-dropdown a:hover i, .st-dropdown button:hover i { color: var(--blue); }

/* Drawer */
.st-drawer.offcanvas { border-right: 0; }
.st-drawer .offcanvas-header { background: var(--blue); border-bottom: 0; }
.st-drawer .offcanvas-header .logo-text-name { color: #fff; }
.st-drawer .offcanvas-header .logo-text-name em { color: #fff; opacity: .85; }
.st-drawer .offcanvas-header .logo-text-mark { background: #fff; color: var(--blue); }
.st-drawer .offcanvas-header .btn-close { filter: invert(1) brightness(2); opacity: 1; }
.st-drawer-nav a { border-radius: 10px; font-weight: 600; }
.st-drawer-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.st-drawer-nav a:hover i { color: var(--blue); }

/* ---------- Beranda: pita biru di belakang banner ---------- */
/* biru solid di 60% atas, pola titik halus hanya di area biru */
.st-hero { padding: 16px 0 4px; position: relative; background: linear-gradient(var(--blue), var(--blue)) top / 100% 60% no-repeat; }
.st-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
.st-hero > .st-container { position: relative; }
.st-banner { border-radius: var(--r-lg); box-shadow: 0 18px 40px -20px rgba(15,36,64,.45); }
.st-banner .swiper-pagination-bullet { background: #fff; opacity: .55; }
.st-banner .swiper-pagination-bullet-active { opacity: 1; width: 22px; }

/* Keunggulan */
.st-perks { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); margin-top: 16px; gap: 0; }
.st-perk { padding: 16px 18px; }
.st-perk + .st-perk { border-left: 1px solid var(--line); }
.st-perk-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 17px; box-shadow: none; }
.st-perk b { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .st-perk:nth-child(3) { border-left: 0; }
  .st-perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Bagian ---------- */
.st-section { padding: 34px 0 6px; }
.st-section-title { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.st-section-title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--blue); flex: none; }
.st-section-sub { margin-left: 15px; }

/* Populer */
.st-popular { gap: 12px; }
.st-popular-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.st-popular-item:hover { border-color: var(--blue); box-shadow: var(--sh-2); transform: translateY(-2px); }
.st-popular-item img { width: 56px; height: 56px; border-radius: 12px; }
.st-popular-item b { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.st-popular-item .st-chev { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-popular-item:hover .st-chev { background: var(--blue); color: #fff; }

/* Tab kategori */
.st-tabs { gap: 8px; border-bottom: 0; margin-bottom: 20px; padding-bottom: 2px; }
.st-tab { border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); padding: 8px 18px; font-weight: 700; margin: 0; }
.st-tab:hover { border-color: var(--blue); color: var(--blue-dark); }
.st-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Kartu produk */
.st-grid { gap: 16px; }
@media (max-width: 860px) { .st-grid { gap: 12px; } }
@media (max-width: 600px) { .st-grid { gap: 10px; } }
.st-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.st-card:hover { border-color: var(--blue); box-shadow: var(--sh-3); transform: translateY(-3px); }
.st-card:hover .st-card-img img { transform: scale(1.05); }
.st-card-body { padding: 10px 12px 12px; border-top: 3px solid transparent; transition: border-color .15s; }
.st-card:hover .st-card-body { border-top-color: var(--blue); }
.st-card-body b { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.st-card:hover .st-card-body b { color: var(--blue-dark); }
@media (max-width: 480px) { .st-card { border-radius: 12px; } .st-card-body { padding: 8px 9px 10px; } .st-card-body b { font-size: 12.5px; } }

/* Cara top up: blok biru */
.st-steps { gap: 12px; }
.st-step { background: var(--blue); border: 0; border-radius: 16px; padding: 18px; color: #fff; }
.st-step::before { background: #fff; color: var(--blue); width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-display); font-size: 15px; margin-bottom: 12px; }
.st-step b { font-family: var(--font-display); font-size: 15px; color: #fff; }
.st-step span { color: rgba(255,255,255,.9); }

.st-empty-state { border-radius: 14px; }

/* ---------- Footer biru ---------- */
.st-footer { background: var(--blue); border-top: 0; color: #fff; margin-top: 56px; }
.st-footer h4 { color: #fff; font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 15px; }
.st-footer a { color: rgba(255,255,255,.92); }
.st-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.st-footer-about p { color: rgba(255,255,255,.88); }
.st-footer .logo-text-name { color: #fff; }
.st-footer .logo-text-name em { color: #fff; opacity: .85; }
.st-footer .logo-text-mark { background: #fff; color: var(--blue); }
.st-socials a { border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 10px; }
.st-socials a:hover { background: #fff; border-color: #fff; color: var(--blue); }
.st-pay-logos span { border-radius: 8px; border-color: transparent; }
.st-footer-bottom { border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }

.st-fab { box-shadow: 0 8px 20px -8px rgba(15,36,64,.4); }
.st-to-top { border-radius: 10px; border-color: var(--line); color: var(--blue); box-shadow: var(--sh-2); }

/* ---------- Halaman umum, panel, form ---------- */
.st-page-head { padding: 32px 0 20px; }
.st-page-head h1 { font-size: 28px; font-weight: 700; }
.st-panel, .st-box, .st-summary, .st-stat, .st-contact, .st-legal-nav, .st-acc-nav, .st-table-wrap {
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); background: #fff;
}
.st-panel { padding: 22px; }
.st-label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.st-input, .st-body .st-input, .st-body .form-control, .st-body .form-select {
  height: 46px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.st-input:hover { border-color: var(--blue-200); }
.st-input:focus, .st-body .form-control:focus, .st-body .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint-2); }
textarea.st-input { height: auto; }
.st-phone { height: 46px; border-radius: 10px; border: 1.5px solid var(--line-2); }
.st-phone:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint-2); }
.st-phone select { background: var(--blue-tint); color: var(--blue-dark); }
.st-alert { border-radius: 10px; }
.st-table th { background: var(--blue-tint); color: var(--blue-deep); }
.st-status { padding: 3px 10px; }

/* ---------- Auth: latar biru, kartu putih ---------- */
.st-auth { background: var(--blue); position: relative; }
.st-auth::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px); background-size: 18px 18px;
}
.st-auth-card { position: relative; border: 0; border-radius: 20px; box-shadow: 0 24px 50px -24px rgba(15,36,64,.5); padding: 36px 32px; }
.st-auth-card h1 { font-size: 26px; font-weight: 700; }
.st-auth-alt a { color: var(--blue-dark); }
@media (max-width: 480px) { .st-auth { padding: 20px 12px 32px; align-items: flex-start; } .st-auth-card { padding: 26px 18px; border-radius: 18px; } }

/* ---------- Halaman order ---------- */
.st-order-head { background: var(--blue); border-bottom: 0; color: #fff; padding: 16px 0 34px; margin-bottom: 0; position: relative; }
.st-order-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.4px); background-size: 18px 18px;
}
.st-order-head > .st-container { position: relative; }
.st-order-head .st-crumbs, .st-order-head .st-crumbs a { color: rgba(255,255,255,.85); }
.st-order-head .st-crumbs a:hover, .st-order-head .st-crumbs span { color: #fff; }
.st-order-title img { width: 84px; height: 84px; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 10px 24px -12px rgba(15,36,64,.5); }
.st-order-title h1 { color: #fff; font-size: 26px; font-weight: 700; }
.st-order-tags { color: #fff; }
.st-order-tags > * { display: inline-flex; align-items: center; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.st-order-tags i { color: #fff; }
.st-order { margin-top: -18px; position: relative; }
.st-order-side { top: 86px; }

.st-box { overflow: hidden; box-shadow: var(--sh-2); }
.st-box-head { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; border-radius: 0; }
.st-box-head h2 { font-size: 16px; font-weight: 700; }
.st-num { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); font-family: var(--font-display); }
.st-box-body { padding: 20px; }
.st-link-btn { color: var(--blue-dark); }
.st-group-title { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.st-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* pilihan nominal & pembayaran */
.st-item-box, .st-pay-box { border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .12s, background-color .12s; position: relative; }
.st-item:hover .st-item-box, .st-pay:hover .st-pay-box { border-color: var(--blue); }
.st-item input:checked + .st-item-box, .st-pay input:checked + .st-pay-box { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.st-item input:checked + .st-item-box::after, .st-pay input:checked + .st-pay-box::after {
  content: "\2713"; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; border-radius: 0 11px 0 8px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.st-item-name { font-weight: 700; }
.st-item-price { font-family: var(--font-display); font-weight: 700; color: var(--blue-dark); }
.st-item-flag { border-radius: 6px; background: #e53935; color: #fff; }
.st-pay-logo { border-radius: 6px; }
.st-pay-hint { border-radius: 10px; background: var(--blue-tint); color: var(--blue-deep); }

.st-summary { padding: 20px; box-shadow: var(--sh-2); }
.st-summary h2 { font-size: 16px; }
.st-summary-total b { font-family: var(--font-display); font-size: 22px; color: var(--blue-dark); }
@media (max-width: 991px) {
  .st-mobile-bar { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15,36,64,.22); }
  .st-mobile-bar-info b { font-family: var(--font-display); font-size: 18px; color: var(--blue-dark); }
}
@media (max-width: 640px) {
  .st-order-head { padding: 12px 0 30px; }
  .st-order-title img { width: 64px; height: 64px; border-radius: 14px; }
  .st-order-title h1 { font-size: 19px; }
  .st-order-tags > * { padding: 3px 9px; }
  .st-box-head { padding: 13px 14px; }
  .st-box-body { padding: 14px; }
  .st-item-box { min-height: 70px; padding: 11px; }
}

/* popup konfirmasi */
.st-swal { border-radius: 18px !important; }
.st-swal .swal2-title { font-family: var(--font-display) !important; }
.st-swal .swal2-actions button { border-radius: 10px !important; }
.st-confirm-list { border-radius: 10px; }
.st-confirm-total { background: var(--blue-tint); }

/* ---------- Akun ---------- */
.st-acc-nav { padding: 8px; }
.st-acc-nav a { border-radius: 10px; font-weight: 600; }
.st-acc-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.st-acc-nav a.active { background: var(--blue); color: #fff; }
.st-acc-nav a.active i { color: #fff; }
.st-stat b { font-family: var(--font-display); }
.st-stat-main { background: var(--blue); border-color: var(--blue); box-shadow: none; }
.st-stat-main .st-btn { background: #fff; color: var(--blue-dark) !important; border-radius: 8px; }

/* ---------- Invoice ---------- */
.st-inv-status { border-radius: 14px; }
.st-qr img { border-radius: 12px; }
.st-copy code { border-radius: 10px; font-family: var(--font-display); }

/* Kontak, legal, peringkat */
.st-contact:hover { border-color: var(--blue); box-shadow: var(--sh-2); }
.st-contact-icon { border-radius: 10px; background: var(--blue); color: #fff; }
.st-legal-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.st-rank-top { background: var(--blue); }

/* Kompatibilitas kelas lama */
.st-body .card { border-radius: 16px; }
.st-body .modal-content { border-radius: 18px; }

/* ---------- Menu bawah (ponsel) ---------- */
.st-bottom-nav { display: none; }
@media (max-width: 767px) {
  .st-bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px -12px rgba(15,36,64,.25);
  }
  .st-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 52px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none;
    position: relative;
  }
  .st-bottom-nav a i { font-size: 18px; }
  .st-bottom-nav a.is-active { color: var(--blue); }
  .st-bottom-nav a.is-active::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  body.st-body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .st-fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; font-size: 24px; }
  .st-to-top { bottom: calc(136px + env(safe-area-inset-bottom)); right: 18px; }
  body.st-body:has(.st-mobile-bar) .st-bottom-nav { display: none; }
  body.st-body:has(.st-mobile-bar) { padding-bottom: 76px; }
  .st-footer { margin-top: 40px; }
}

/* Ponsel umum */
@media (max-width: 640px) {
  .st-header-inner { height: 60px; }
  .st-section { padding: 26px 0 4px; }
  .st-section-title { font-size: 18px; }
  .st-section-sub { font-size: 12.5px; }
  .st-page-head { padding: 22px 0 14px; }
  .st-page-head h1 { font-size: 22px; }
  .st-panel { padding: 16px; border-radius: 14px; }
  .st-tab { padding: 7px 14px; font-size: 13px; }
  .st-perk { padding: 11px 12px; }
  .st-perk-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .st-steps { gap: 10px; }
  .st-step { padding: 14px; }
  .st-hero { padding-top: 12px; }
  .st-banner { border-radius: 14px; }
  .st-popular-item .st-chev { display: none; }
  .st-popular-item { padding: 8px; gap: 10px; border-radius: 12px; }
  .st-popular-item img { width: 46px; height: 46px; border-radius: 10px; }
  .st-popular-item b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-card, .st-popular-item, .st-btn, .st-item-box, .st-pay-box, .st-contact { transition: none !important; transform: none !important; }
}

/* Huruf kapital di awal kata untuk teks antarmuka (bukan data) */
.st-nav-link, .st-btn, .st-link-btn, .st-tab, .st-section-title, .st-group-title,
.st-page-head h1, .st-auth-card h1, .st-box-head h2, .st-label,
.st-perk b, .st-step b, .st-order-tags,
.st-footer h4, .st-footer ul a, .st-drawer-nav a, .st-dropdown a, .st-dropdown button,
.st-acc-nav a, .st-legal-nav a, .st-crumbs a, .st-confirm-list dt, .st-dl dt, .st-contact b,
.st-body thead th, .st-body .card-header, .st-body .btn, .st-mobile-bar a {
  text-transform: capitalize;
}
.st-box-head h2 small { text-transform: none; }

/* Tampilkan Lainnya (beranda) */
.st-card.is-hidden { display: none; }
.st-more { display: flex; justify-content: center; margin-top: 22px; }
.st-more .st-btn { min-width: 220px; height: 46px; }
.st-more .st-btn i { transition: transform .15s; }
.st-more .st-btn:hover i { transform: translateY(2px); }
@media (max-width: 640px) { .st-more .st-btn { width: 100%; } }

/* Jarak teks "Belum memiliki akun? / Sudah punya akun?" dari tombol */
.st-auth-card form + .st-auth-alt, .st-auth-alt { margin-top: 26px; margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Pemilih kode negara dengan bendera */
.st-phone.has-cc { overflow: visible; position: relative; }
.st-phone .st-cc-asli { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.st-cc { position: relative; flex: none; display: flex; }
.st-cc-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px 0 12px;
  border: 0; border-right: 1.5px solid var(--line-2); border-radius: 9px 0 0 9px;
  background: var(--blue-tint); color: var(--blue-dark); font: 700 14px var(--font); cursor: pointer;
}
.st-cc-btn:hover { background: var(--blue-tint-2); }
.st-cc-btn i { font-size: 10px; transition: transform .15s; }
.st-cc.is-open .st-cc-btn i { transform: rotate(180deg); }
.st-flag { width: 24px; height: 16px; border-radius: 3px; flex: none; display: block; box-shadow: 0 0 0 1px rgba(15,36,64,.12); overflow: hidden; }
.st-cc-list {
  display: none; position: absolute; left: -1.5px; top: calc(100% + 6px); z-index: 70; min-width: 230px;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3);
}
.st-cc.is-open .st-cc-list { display: block; }
.st-cc-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); outline: none; }
.st-cc-list li:hover, .st-cc-list li:focus { background: var(--blue-tint); }
.st-cc-list li[aria-selected="true"] { background: var(--blue-tint); color: var(--blue-dark); }
.st-cc-list li .st-cc-nama { flex: 1; }
.st-cc-list li b { color: var(--muted); font-weight: 700; }
.st-cc-list li[aria-selected="true"] b { color: var(--blue-dark); }
.st-phone.has-cc .st-input { border-radius: 0 9px 9px 0; }

/* ==========================================================================
   Ulasan pembeli
   ========================================================================== */
.st-stars { display: inline-flex; gap: 2px; font-size: 13px; color: #d5deea; }
.st-stars .on { color: #ffb300; }
.st-review-score { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.st-review-score > b { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.st-review-score small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.st-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-review { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.st-review.is-hidden { display: none; }
.st-review header { display: flex; align-items: center; gap: 10px; }
.st-review header > div:first-of-type { flex: 1; }
.st-review header b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-review header small { font-size: 12px; color: var(--muted); }
.st-review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.st-review p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.st-review-item { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); border-radius: 999px; padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-review-own { border: 0; padding: 0; }
.st-review-own small { font-size: 12.5px; color: var(--muted); }
.st-order-tags .st-tag-rating { text-decoration: none; color: #fff; }
.st-order-tags .st-tag-rating i { color: #ffd54f; }

/* Pilih bintang (radio terbalik supaya hover mewarnai bintang sebelumnya) */
.st-rate { display: inline-flex; flex-direction: row-reverse; gap: 6px; margin-bottom: 14px; }
.st-rate input { position: absolute; opacity: 0; pointer-events: none; }
.st-rate label { font-size: 30px; color: #d5deea; cursor: pointer; transition: color .12s, transform .12s; line-height: 1; }
.st-rate label:hover, .st-rate label:hover ~ label, .st-rate input:checked ~ label { color: #ffb300; }
.st-rate label:active { transform: scale(.9); }
.st-rate input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.st-review-form textarea.st-input { min-height: 90px; resize: vertical; padding-top: 10px; }

@media (max-width: 991px) { .st-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .st-review-grid { grid-template-columns: 1fr; gap: 10px; }
  .st-reviews .st-section-head { flex-wrap: wrap; gap: 10px; }
}

/* Halaman Ulasan Pembeli */
.st-review-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-review-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 90px; }
.st-review-big { text-align: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.st-review-big > b { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.st-review-big .st-stars { font-size: 17px; margin: 6px 0 4px; }
.st-review-big small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.st-review-bars { display: flex; flex-direction: column; gap: 4px; }
.st-review-bars a { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.st-review-bars a > span:last-child { text-align: right; color: var(--muted); }
.st-review-bars a i { color: #ffb300; font-size: 11px; }
.st-review-bars a:hover, .st-review-bars a.is-active { background: var(--blue-tint); color: var(--blue-dark); }
.st-review-bar { height: 8px; background: #edf2f8; border-radius: 99px; overflow: hidden; }
.st-review-bar > span { display: block; height: 100%; background: #ffb300; border-radius: 99px; }
.st-review-grid.st-review-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.st-review-item { text-decoration: none; }
a.st-review-item:hover { background: var(--blue-tint-2); }
.st-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.st-pager .is-disabled { opacity: .45; pointer-events: none; }
.st-pager-info { font-size: 13px; font-weight: 700; color: var(--muted); }
@media (max-width: 991px) {
  .st-review-page { grid-template-columns: 1fr; }
  .st-review-summary { position: static; }
}
@media (max-width: 640px) {
  .st-review-grid.st-review-grid-2 { grid-template-columns: 1fr; }
  .st-pager .st-btn { padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   Kalkulator: kartu putih di tengah panggung biru
   ========================================================================== */
.st-calc-stage { position: relative; overflow: hidden; background: var(--blue); padding: 56px 16px 72px; min-height: calc(100vh - 260px); display: flex; align-items: flex-start; justify-content: center; }
.st-calc-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.st-calc-stage::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -260px; border-radius: 50%; border: 70px solid rgba(255,255,255,.08); pointer-events: none; }
.st-calc-card { position: relative; z-index: 1; width: 100%; max-width: 480px; background: #fff; border-radius: 22px; padding: 26px 26px 28px; box-shadow: 0 30px 60px -28px rgba(10,40,90,.55); }
.st-calc-card h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.02em; }
.st-calc-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; line-height: 1.55; }
.st-calc-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-tint); color: var(--blue-dark); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }

.st-calc-menu { display: flex; flex-direction: column; gap: 10px; }
.st-calc-menu a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s, transform .15s; }
.st-calc-menu a:hover { border-color: var(--blue); background: var(--blue-tint); transform: translateY(-1px); }
.st-calc-menu a > span:nth-child(2) { flex: 1; min-width: 0; }
.st-calc-menu b { display: block; font-size: 15.5px; font-family: var(--font-display); font-weight: 600; }
.st-calc-menu small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.st-calc-menu > a > i { color: var(--blue); font-size: 13px; }
.st-calc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }

.st-calc-top { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.st-calc-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--blue-dark); text-decoration: none; }
.st-calc-back:hover { color: var(--blue-deep); }
.st-calc-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--blue-tint); padding: 4px; border-radius: 12px; }
.st-calc-switch a { text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--blue-dark); text-decoration: none; white-space: nowrap; }
.st-calc-switch a:hover { background: rgba(255,255,255,.7); }
.st-calc-switch a.active { background: var(--blue); color: #fff; }

.st-calc-card .st-calc-result { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-deep); font-size: 15px; line-height: 1.55; }
.st-calc-card .st-calc-result b { font-family: var(--font-display); font-size: 17px; color: var(--blue-deep); }
.st-calc-card .st-calc-result.st-alert-bad { background: #fdecec; color: #b42318; }
.st-calc-card .st-calc-result.st-alert-ok { background: #e8f7ee; color: #17803d; }
.st-calc-card #hasil { margin-top: 4px; }
.st-calc-range { width: 100%; margin-top: 12px; accent-color: var(--blue); }

@media (max-width: 640px) {
  .st-calc-stage { padding: 24px 12px 90px; min-height: 0; }
  .st-calc-card { padding: 20px 18px 22px; border-radius: 18px; }
  .st-calc-card h1 { font-size: 22px; }
  .st-calc-card .st-field-row { grid-template-columns: 1fr; }
}
.st-calc-stage + .st-footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.22); }
