:root {
  --bg: #0f0e14;
  --paper: #17151f;
  --paper-soft: #1e1b2a;
  --ink: #f1edf8;
  --muted: #aea8c0;
  --line: #343043;
  --accent: #d4a446;
  --accent-soft: #f2d59f;
  --ok: #27c778;
  --error: #e05667;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  background:
    radial-gradient(circle at 84% -8%, rgba(212, 164, 70, 0.24), transparent 35%),
    radial-gradient(circle at 10% 20%, rgba(43, 72, 135, 0.2), transparent 34%),
    var(--bg);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Prata", serif;
  line-height: 1.22;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(15, 14, 20, 0.75);
  border-bottom: 1px solid rgba(212, 164, 70, 0.16);
}

.topbar-inner {
  width: min(940px, 94vw);
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #151015;
  text-decoration: none;
  border: 1px solid rgba(212, 164, 70, 0.65);
  border-radius: 999px;
  padding: 0.46rem 0.98rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(140deg, var(--accent), #b98a33);
}

.topbar-link:hover {
  border-color: rgba(212, 164, 70, 0.9);
}

.index-wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 0.72rem 0 0.96rem;
  display: grid;
  gap: 0.56rem;
  grid-template-columns: 1fr;
}

.index-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, #151320, #1a1727);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  padding: 0.64rem;
}

.section-pricing {
  position: relative;
  min-width: 0;
  overflow: visible;
  isolation: isolate;
  --pricing-hero-bg-opacity: 0.24;
}

.section-pricing > * {
  position: relative;
  z-index: 1;
}

.section-pricing::before,
.section-pricing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 220ms ease;
}

.section-pricing::before {
  background-image: var(--pricing-hero-bg-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.section-pricing::after {
  background: linear-gradient(150deg, rgba(18, 16, 27, 0.82), rgba(15, 13, 24, 0.9));
}

.section-pricing.has-custom-bg::before {
  opacity: var(--pricing-hero-bg-opacity, 0.24);
}

.section-pricing.has-custom-bg::after {
  opacity: 1;
}

.section-context {
  overflow: hidden;
}

.section-sidebar {
  display: grid;
  gap: 0.52rem;
  align-content: start;
}

.pricing-intro {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.56rem;
}

.section-pricing h1 {
  font-size: clamp(1.18rem, 2.6vw, 1.8rem);
}

.pricing-summary {
  max-width: 44ch;
  white-space: pre-line;
}

.pricing-summary p,
.pricing-summary ul,
.pricing-summary ol {
  margin: 0 0 0.38rem;
}

.pricing-summary > :last-child {
  margin-bottom: 0;
}

.pricing-summary ul,
.pricing-summary ol {
  padding-left: 1.14rem;
}

.pricing-summary a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 1.2px;
  text-underline-offset: 2px;
}

.section-pricing .section-head,
.section-stock .section-head,
.section-actions .section-head {
  margin-bottom: 0.24rem;
}

.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.52rem;
}

.pricing-lead {
  margin: -0.04rem 0 0;
  color: #ddd8ea;
  line-height: 1.34;
  font-size: 0.82rem;
  max-width: 48ch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.pricing-card {
  position: relative;
  z-index: 0;
  background: #1e1c28;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.48rem 0.36rem 0.46rem;
  cursor: pointer;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  display: grid;
  align-content: center;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pricing-card:hover,
.pricing-card:focus-visible {
  z-index: 6;
  border-color: rgba(160, 118, 48, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 84, 26, 0.1);
}

.pricing-tooltip {
  --tooltip-shift-x: 0px;
  --tooltip-arrow-shift-x: 0px;
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(calc(-50% + var(--tooltip-shift-x)), 8px) scale(0.98);
  width: max-content;
  max-width: min(320px, calc(100vw - 2.2rem));
  padding: 0.52rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 164, 70, 0.4);
  background: linear-gradient(160deg, rgba(24, 21, 34, 0.98), rgba(15, 13, 23, 0.98));
  color: #f2ecd9;
  font-size: 0.72rem;
  line-height: 1.46;
  text-align: center;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition:
    opacity 170ms ease,
    transform 190ms ease,
    visibility 190ms ease;
}

.pricing-tooltip::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--tooltip-arrow-shift-x));
  top: 100%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(15, 13, 23, 0.98);
  border-right: 1px solid rgba(212, 164, 70, 0.4);
  border-bottom: 1px solid rgba(212, 164, 70, 0.4);
}

.pricing-card.has-tooltip:hover .pricing-tooltip,
.pricing-card.has-tooltip:focus-visible .pricing-tooltip {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--tooltip-shift-x)), 0) scale(1);
}

.pricing-card.tooltip-bottom .pricing-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translate(calc(-50% + var(--tooltip-shift-x)), -8px) scale(0.98);
}

.pricing-card.tooltip-bottom.has-tooltip:hover .pricing-tooltip,
.pricing-card.tooltip-bottom.has-tooltip:focus-visible .pricing-tooltip {
  display: block;
  transform: translate(calc(-50% + var(--tooltip-shift-x)), 0) scale(1);
}

.pricing-card.tooltip-bottom .pricing-tooltip::after {
  top: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(212, 164, 70, 0.4);
  border-top: 1px solid rgba(212, 164, 70, 0.4);
}

@media (hover: none) {
  .pricing-tooltip {
    display: none;
  }
}

.pricing-badge {
  display: none;
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card.featured .pricing-badge {
  display: inline-block;
}

.pricing-duration {
  margin: 0 0 0.14rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e8b84b;
}

.pricing-title {
  margin: 0 0 0.18rem;
  font-family: "Prata", serif;
  font-size: 0.8rem;
  line-height: 1.2;
}

.pricing-price-group {
  margin: 0;
  display: grid;
  gap: 0.08rem;
}

.pricing-price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.pricing-price-original {
  font-size: 0.74rem;
  color: #e05060;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 0.06rem;
}

.pricing-price-final {
  color: #26c775;
}

.pricing-meta,
.pricing-cta {
  display: none;
}

.pricing-meta {
  margin: 0;
  color: #cfc7df;
  font-size: 0.68rem;
  margin-top: 0.08rem;
}

.section-lead {
  margin: 0;
  color: #ddd8ea;
  line-height: 1.34;
  font-size: 0.88rem;
  max-width: 52ch;
}

.context-slider {
  position: relative;
  touch-action: pan-y;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.context-slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 164, 70, 0.12);
}

.context-viewport {
  border: 1px solid rgba(239, 230, 210, 0.08);
  border-radius: 16px;
  background: #17141f;
  overflow: hidden;
  min-height: 344px;
}

.context-track {
  position: relative;
  min-height: inherit;
}

.context-track > .context-slide {
  display: none;
}

.context-track > .context-slide.is-active {
  display: grid;
  animation: context-fade 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.context-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
  grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.18fr);
  min-height: 332px;
  align-items: center;
  padding: clamp(0.92rem, 1.8vw, 1.1rem);
}

.context-image-stage {
  display: grid;
  align-items: stretch;
}

.context-image-shell {
  position: relative;
  min-height: 248px;
  border: 0;
  border-radius: 16px;
  padding: 0.84rem;
  background: #12101a;
  box-shadow: none;
  overflow: hidden;
}

.context-image-shell::after {
  content: none;
}

.context-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(212, 164, 70, 0.28);
  background: #14111d;
  color: var(--accent-soft);
  font: inherit;
  font-size: 1.08rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.context-nav:hover,
.context-nav:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(28, 24, 36, 0.88);
}

.context-nav:focus-visible {
  outline: none;
}

.context-nav-prev {
  left: 1rem;
}

.context-nav-next {
  right: 1rem;
}

.context-slider-footer {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.88rem;
  align-items: center;
}

.context-dots {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.context-dot {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.context-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(242, 213, 159, 0.26);
  transition: width 220ms ease, background-color 220ms ease, opacity 180ms ease;
}

.context-dot.is-active {
  width: 44px;
}

.context-dot.is-active::before {
  width: 34px;
  background: var(--accent);
}

.context-progress {
  position: relative;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(242, 213, 159, 0.14);
}

.context-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 280ms ease;
}

.context-image-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  margin: auto;
  background: transparent;
}

.context-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: scale(var(--slider-img-zoom, 1.06));
  transition: transform 420ms ease, opacity 220ms ease;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

.context-slide.is-active .context-image {
  transform: scale(calc(var(--slider-img-zoom, 1.06) + 0.02));
}

.context-content {
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-width: 0;
}

.context-title {
  margin: 0;
  font-family: "Prata", serif;
  font-size: 18px;
  line-height: 1.28;
}

.context-text {
  margin: 0;
  color: #d8d3e7;
  font-size: 0.95rem;
  line-height: 1.62;
  overflow: hidden;
  max-width: 49ch;
}

.context-text p,
.context-text ul,
.context-text ol {
  margin: 0 0 0.58rem;
}

.context-text > :last-child {
  margin-bottom: 0;
}

.context-text ul,
.context-text ol {
  padding-left: 1.22rem;
}

.context-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.74rem;
}

.context-actions .context-link {
  justify-self: center;
  text-align: center;
}

.context-link {
  justify-self: start;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--accent), #b98a33);
  color: #151015;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(185, 138, 51, 0.22);
}

.context-link:hover {
  opacity: 0.95;
}

@keyframes context-fade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  margin-bottom: 0.4rem;
}

.section-head.center {
  justify-content: center;
}

.section-kicker {
  margin: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(212, 164, 70, 0.38);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
}

.section-stock h2,
.section-actions h2 {
  font-size: 0.94rem;
}

/* ── Progress Bar Stok ala Baterai MUI (capsule, tanpa terminal) ── */
.stock-bar {
  position: relative;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stock-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

/* ── Warna fill: muted, dark-theme friendly ── */
.stock-bar-fill.is-high {
  background: linear-gradient(180deg, #1f7a4a, #1a6b40);
}

.stock-bar-fill.is-medium {
  background: linear-gradient(180deg, #7a5d26, #6b4f1d);
}

.stock-bar-fill.is-low {
  background: linear-gradient(180deg, #8b3a42, #7a2e38);
  animation: stockPulse 2s ease-in-out infinite;
}

@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ── Shimmer sweep ── */
.stock-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 2.8s cubic-bezier(0.4, 0, 0.6, 1) 0.6s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(130%); }
}

.stock-bar-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0 0.58rem 0 0.9rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
  gap: 0.36rem;
}

.stock-bar-count {
  font-size: 1.4em;
  line-height: 1;
}

.stock-bar-label {
  font-size: 1em;
  line-height: 1;
  opacity: 0.85;
}

/* ── Estimasi "tersedia lagi dalam N menit" (hanya saat stok 0) ── */
.stock-eta-note {
  margin: 0.5rem 0 0;
  padding: 0.44rem 0.62rem;
  border-radius: 9px;
  border: 1px solid rgba(212, 164, 70, 0.26);
  background: rgba(212, 164, 70, 0.09);
  color: var(--accent-soft);
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Tanpa angka yang bisa dipercaya, nadanya netral — bukan janji berwarna emas. */
.stock-eta-note.is-unreachable {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

/* ── Popup social proof ──────────────────────────────────────────────────── */

/*
 * Toast: muncul sendiri, hitung mundur, lalu pergi sendiri.
 *
 * Posisinya diatur admin dan datang sebagai atribut `data-position`. Tiap varian
 * menyetel koordinatnya DAN arah masuknya lewat `--social-proof-enter-x/y` — toast
 * masuk dari TEPI TERDEKAT, seperti toast pada umumnya: yang di kanan menggeser dari
 * kanan, yang di kiri dari kiri, yang di tengah atas turun dari atas. Arah masuk yang
 * seragam vertikal membuat toast di tepi kanan terbaca "jatuh", bukan "masuk".
 *
 * `--social-proof-visible-ms` DISETEL DARI JS (lihat `SOCIAL_PROOF_VISIBLE_MS` di
 * index.js). Menuliskan durasinya lagi di sini berarti dua sumber untuk satu angka:
 * bilah hitung mundur akan selesai di waktu yang berbeda dari saat toast benar-benar
 * ditutup, dan tidak ada yang error — cuma terlihat salah.
 */
.social-proof {
  position: fixed;
  z-index: 6;
  width: min(304px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  transform: translate3d(
    var(--social-proof-enter-x, 0),
    var(--social-proof-enter-y, 0),
    0
  );
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
  pointer-events: none;
}

.social-proof.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  pointer-events: auto;
}

.social-proof[data-position="top-left"] {
  top: 78px;
  left: 16px;
  --social-proof-enter-x: -24px;
  --social-proof-enter-y: 0;
}

.social-proof[data-position="top-center"] {
  top: 78px;
  left: 50%;
  margin-left: calc(min(304px, calc(100vw - 32px)) / -2);
  --social-proof-enter-x: 0;
  --social-proof-enter-y: -20px;
}

.social-proof[data-position="top-right"] {
  top: 78px;
  right: 16px;
  --social-proof-enter-x: 24px;
  --social-proof-enter-y: 0;
}

.social-proof[data-position="middle-left"] {
  top: 50%;
  left: 16px;
  --social-proof-enter-x: -24px;
  --social-proof-enter-y: 0;
}

.social-proof[data-position="middle-right"] {
  top: 50%;
  right: 16px;
  --social-proof-enter-x: 24px;
  --social-proof-enter-y: 0;
}

.social-proof[data-position="bottom-left"] {
  bottom: 16px;
  left: 16px;
  --social-proof-enter-x: -24px;
  --social-proof-enter-y: 0;
}

.social-proof[data-position="bottom-center"] {
  bottom: 16px;
  left: 50%;
  margin-left: calc(min(304px, calc(100vw - 32px)) / -2);
  --social-proof-enter-x: 0;
  --social-proof-enter-y: 20px;
}

.social-proof[data-position="bottom-right"] {
  bottom: 16px;
  right: 16px;
  --social-proof-enter-x: 24px;
  --social-proof-enter-y: 0;
}

.social-proof-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 2rem 0.62rem 0.72rem;
  border-radius: 13px;
  /*
   * Mengurung bilah hitung mundur ke dalam sudut membulat kartu. Tanpa ini ujung
   * bilah yang lurus menyembul keluar di sudut kiri-bawah — terlihat seperti garis
   * yang lepas dari kartunya, bukan bagian dari kartu itu.
   */
  overflow: hidden;
  border: 1px solid rgba(212, 164, 70, 0.28);
  background:
    linear-gradient(135deg, rgba(212, 164, 70, 0.14), transparent 62%),
    rgba(23, 21, 31, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Tanda centang emas — digambar CSS supaya tidak menambah permintaan gambar. */
.social-proof-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(212, 164, 70, 0.9), rgba(212, 164, 70, 0.52));
  box-shadow: 0 0 0 3px rgba(212, 164, 70, 0.14);
  position: relative;
}

.social-proof-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 6px;
  height: 12px;
  border: solid #17151f;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.social-proof-body {
  min-width: 0;
}

.social-proof-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
}

.social-proof-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.social-proof-verb {
  color: var(--muted);
  font-weight: 400;
}

.social-proof-duration {
  color: var(--accent-soft);
  font-weight: 700;
  white-space: nowrap;
}

.social-proof-meta {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0.12rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.social-proof-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(39, 199, 120, 0.16);
}

.social-proof-close {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.social-proof-close:hover,
.social-proof-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/*
 * Bilah hitung mundur: memberi tahu bahwa toast ini akan pergi sendiri, dan berapa
 * lama lagi. Durasinya dari `--social-proof-visible-ms` yang disetel JS, jadi bilah
 * dan pewaktu penutupnya tidak mungkin berbeda angka.
 */
.social-proof-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(212, 164, 70, 0.95), rgba(242, 213, 159, 0.75));
  /*
   * 🔴 LONGHAND, bukan shorthand `animation:` — dan itu bukan soal selera.
   *
   * `clean-css` (level 2, dipakai `npm run build`) memecah setiap deklarasi
   * `animation` jadi 8 komponen untuk mencari nama @keyframes yang terpakai. Nilai
   * `var()` di dalam shorthand membuat pemecahan itu gagal, komponen ke-8 jadi
   * `undefined`, dan BUILD-nya jatuh dengan `Cannot read properties of undefined`.
   * Regex-nya hanya mencocokkan properti `animation` persis, jadi bentuk longhand
   * lolos dengan aman.
   */
  animation-name: socialProofDrain;
  animation-duration: var(--social-proof-visible-ms, 6000ms);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

/* Kartu yang tidak sedang tampil tidak boleh menghabiskan hitung mundurnya di balik layar. */
.social-proof:not(.is-visible) .social-proof-progress {
  animation-play-state: paused;
}

/*
 * Ditahan saat pembeli menyentuh/memfokus kartunya. Toast yang hilang tepat ketika
 * seseorang mulai membacanya adalah keluhan paling umum tentang pola ini; pewaktu
 * penutup di JS dijeda pada saat yang sama persis, jadi bilahnya tidak berbohong.
 */
.social-proof.is-paused .social-proof-progress {
  animation-play-state: paused;
}

@keyframes socialProofDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/*
 * Layar sempit: kartu melebar penuh dengan sela 16px di kedua sisi, jadi seluruh varian
 * kiri/kanan/tengah jatuh ke koordinat yang sama.
 *
 * 🔴 Selektornya WAJIB `[data-position]`, bukan `.social-proof` telanjang. Aturan posisi
 * di atas berbobot (0,2,0); `.social-proof` cuma (0,1,0) dan akan KALAH untuk properti
 * yang mereka setel — `left: 50%` dan `margin-left` milik varian tengah bertahan, dan
 * kartunya terdorong keluar layar. Bobot yang sama + urutan belakangan = menang.
 */
@media (max-width: 560px) {
  .social-proof[data-position] {
    width: auto;
    left: 16px;
    right: 16px;
    margin-left: 0;
  }

  .social-proof[data-position="top-left"],
  .social-proof[data-position="top-center"],
  .social-proof[data-position="top-right"] {
    top: 72px;
  }

  .social-proof[data-position="middle-left"],
  .social-proof[data-position="middle-right"],
  .social-proof[data-position="bottom-left"],
  .social-proof[data-position="bottom-center"],
  .social-proof[data-position="bottom-right"] {
    top: auto;
    bottom: 14px;
  }
}

/*
 * Gerakan dikurangi: kartunya tetap muncul, cuma tidak bergeser.
 *
 * Bilah hitung mundurnya SENGAJA tidak ikut dimatikan — ia bukan hiasan melainkan
 * satu-satunya petunjuk bahwa kartu ini akan menutup sendiri sebentar lagi.
 */
@media (prefers-reduced-motion: reduce) {
  .social-proof {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  .social-proof.is-visible {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s;
  }
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
}

.action-btn {
  border: 0;
  border-radius: 10px;
  min-height: 34px;
  padding: 0.34rem 0.58rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.action-primary {
  color: #151015;
  background: linear-gradient(140deg, var(--accent), #b98a33);
}

.action-secondary {
  color: #151015;
  background: linear-gradient(140deg, #eadab3, #d2b67c);
}

.action-ghost {
  color: var(--accent-soft);
  background: transparent;
  border: 1px solid rgba(212, 164, 70, 0.5);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.action-ghost:hover,
.action-ghost:focus-visible {
  background: rgba(212, 164, 70, 0.12);
  border-color: rgba(212, 164, 70, 0.85);
  color: var(--ink);
}

.action-hint {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.43;
}

.global-message {
  min-height: 1rem;
  margin: 0.24rem 0 0;
  font-size: 0.78rem;
  color: var(--ok);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin: 0.8rem auto 1.05rem;
  width: min(980px, 94vw);
  border: 1px solid rgba(212, 164, 70, 0.2);
  border-radius: 12px;
  background: rgba(17, 15, 25, 0.84);
}

.site-footer-inner {
  padding: 0.72rem 1rem 0.78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.36rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.66rem;
}

.site-footer-links a {
  color: #d4bf90;
  text-decoration: none;
  font-size: 0.8rem;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-copy {
  margin: 0;
  color: #b7aecf;
  font-size: 0.76rem;
}

@media (min-width: 900px) {
  .index-wrap {
    grid-template-columns: minmax(0, 1.36fr) minmax(250px, 0.82fr);
    grid-template-areas:
      "pricing sidebar"
      "context context";
    align-items: start;
  }

  .section-pricing {
    grid-area: pricing;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .section-sidebar {
    grid-area: sidebar;
    position: static;
    top: auto;
  }

  .section-sidebar > .index-card {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .pricing-grid {
    flex: 1;
    height: 100%;
    grid-auto-rows: 1fr;
    align-items: stretch;
  }

  .pricing-card {
    height: 100%;
  }

  .section-context {
    grid-area: context;
  }

  .section-stock .stock-bar {
    height: 34px;
  }
}

@media (max-width: 580px) {
  .pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
  }

  .pricing-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .pricing-card {
    padding: 0.52rem 0.34rem 0.48rem;
  }

  .pricing-title {
    font-size: 0.82rem;
  }

  .pricing-price {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .pricing-grid {
    padding: 0;
    gap: 0.4rem;
  }

  .pricing-card {
    padding: 0.48rem 0.32rem 0.44rem;
  }

  .pricing-title {
    font-size: 0.78rem;
  }

  .pricing-price {
    font-size: 0.94rem;
  }

  .pricing-price-original {
    font-size: 0.72rem;
  }
}

.skeleton-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.modal-card {
  width: min(500px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #15131d;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 1rem;
}

.modal-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.88rem 0.9rem 0.95rem;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.field-label {
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text-input {
  width: 100%;
  border: 1.4px solid var(--line);
  border-radius: 9px;
  min-height: 40px;
  background: #1d1a26;
  color: var(--ink);
  padding: 0 0.74rem;
  font: inherit;
  font-size: 1rem;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 164, 70, 0.18);
}

.modal-message {
  margin: 0;
  min-height: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.modal-inline-link-wrap {
  margin: -0.2rem 0 0;
  min-height: 1rem;
}

.modal-inline-link {
  color: #e8b84b;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.modal-inline-link:hover,
.modal-inline-link:focus-visible {
  color: #f3d58b;
}

/* Tombol yang tampil sebagai text link (pembuka kolom Nomor Transaksi). */
.modal-link-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.modal-optional-field {
  display: grid;
  gap: 0.5rem;
}

.credentials-box {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.44rem;
}

.credential-row {
  border: 1px solid #373144;
  border-radius: 9px;
  padding: 0.55rem;
  background: #1b1823;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.credential-label {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.credential-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 32px;
  padding: 0 0.6rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.modal-overlay-splash {
  background:
    radial-gradient(circle at 12% 14%, rgba(212, 164, 70, 0.22), transparent 36%),
    rgba(7, 5, 10, 0.72);
}

.landing-popup-card {
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  border-color: rgba(212, 164, 70, 0.26);
  background:
    linear-gradient(150deg, rgba(20, 18, 29, 0.97), rgba(14, 13, 21, 0.98)),
    radial-gradient(circle at 84% 12%, rgba(212, 164, 70, 0.2), transparent 48%);
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
  overflow: auto;
}

.landing-popup-close {
  justify-self: end;
  margin: -0.12rem 0 0;
}

.landing-popup-media {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 164, 70, 0.22);
  background: rgba(12, 11, 18, 0.88);
}

.landing-popup-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-popup-body {
  color: #dfd9ea;
  font-size: 0.9rem;
  line-height: 1.62;
}

.landing-popup-body:empty {
  display: none;
}

.landing-popup-body p,
.landing-popup-body ul,
.landing-popup-body ol {
  margin: 0 0 0.62rem;
}

.landing-popup-body > :last-child {
  margin-bottom: 0;
}

.landing-popup-body a {
  color: var(--accent-soft);
}

.landing-popup-actions {
  display: flex;
  justify-content: center;
}

.landing-popup-cta {
  min-width: 196px;
}

@media (max-width: 820px) {
  .context-card {
    grid-template-columns: minmax(180px, 220px) 1fr;
    min-height: 308px;
  }

  .context-viewport {
    min-height: 308px;
  }

  .context-nav {
    width: 38px;
    height: 38px;
  }

  .stock-bar {
    height: 34px;
  }
}

@media (max-width: 560px) {
  .section-stock {
    position: static;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    padding: 0.48rem 0.62rem;
    border-radius: 12px;
    background: rgba(20, 17, 29, 0.82);
    box-shadow: inset 0 0 0 1px rgba(212, 164, 70, 0.15);
  }

  .section-stock .section-head {
    display: none;
  }

  .section-stock .stock-bar-fill {
    border-radius: 999px;
  }

  .section-stock .stock-bar-text {
    justify-content: center;
    font-size: 0.78rem;
    padding: 0 0.48rem;
    gap: 0.24rem;
  }

  .section-stock .stock-bar-count {
    font-size: 1.35em;
  }

  .stock-value.is-loading.is-floating-stock-label {
    color: #d2c9e4;
  }

  .topbar-inner {
    min-height: 56px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .topbar-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.84rem;
  }

  .index-wrap {
    width: min(100%, 98.6vw);
    padding-top: 0.5rem;
    gap: 0.48rem;
  }

  .index-card {
    border-radius: 11px;
    padding: 0.5rem;
  }

  .section-context h1 {
    font-size: 1.06rem;
  }

  .section-lead {
    font-size: 0.9rem;
  }

  .section-stock h2,
  .section-actions h2 {
    font-size: 0.92rem;
  }

  .context-slider {
    margin-top: 0.52rem;
    padding: 0;
    border-radius: 0;
  }

  .context-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    gap: 0.62rem;
    padding: 0.52rem;
  }

  .context-viewport {
    min-height: 0;
  }

  .context-nav {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .context-nav-prev {
    left: 0.22rem;
  }

  .context-nav-next {
    right: 0.22rem;
  }

  .context-image-shell {
    min-height: 232px;
    padding: 0.5rem;
    border-radius: 15px;
  }

  .context-image-wrap {
    max-width: min(100%, 246px);
    max-height: 246px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .context-content {
    gap: 0.58rem;
  }

  .context-title {
    font-size: 1rem;
  }

  .context-text {
    font-size: 0.84rem;
    line-height: 1.56;
  }

  .context-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .context-link {
    width: 100%;
    justify-content: center;
    padding: 0.68rem 0.82rem;
    font-size: 0.72rem;
  }

  .context-slider-footer {
    grid-template-columns: 1fr;
    gap: 0.56rem;
  }

  .action-btn {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .stock-bar {
    height: 34px;
  }

  .credential-row {
    grid-template-columns: 1fr;
  }

  .landing-popup-card {
    padding: 0.72rem;
    gap: 0.6rem;
  }

  .landing-popup-cta {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .section-stock {
    padding: 0.42rem 0.56rem;
    border-radius: 10px;
  }

  .context-slider {
    padding: 0;
    margin-top: 0.44rem;
  }

  .context-card {
    padding: 0.42rem;
  }

  .context-image-shell {
    min-height: 206px;
    padding: 0.42rem;
  }

  .context-image-wrap {
    max-width: min(100%, 206px);
    max-height: 206px;
  }

  .context-content {
    gap: 0.48rem;
  }

  .context-title {
    font-size: 0.94rem;
  }

  .context-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .topbar-link,
  .action-btn,
  .context-link,
  .modal-close,
  .copy-btn,
  .modal-inline-link,
  .site-footer-links a {
    min-height: 45px;
  }

  .context-nav {
    width: 44px;
    height: 44px;
  }

  .site-footer-links a,
  .modal-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding-inline: 0.28rem;
  }
}
