/*
 * Barengin UI: sistem desain halaman pelanggan.
 * HP mengikuti rasa iOS (judul besar, daftar berkelompok, lembar bawah),
 * desktop mengikuti rasa macOS (panel samping, jendela, ukuran lebih rapat).
 * Warna merek: mesh gradient cyan dan putih, dengan aksen biru langit, mint, dan lavender.
 * Semua kelas berawalan bgn- dan hanya berlaku di dalam .bgn, jadi header dan footer tidak terpengaruh.
 */
.bgn {
  --bgn-cyan: #06b6d4;
  --bgn-cyan-600: #0891b2;
  --bgn-cyan-700: #0e7490;
  --bgn-sky: #38bdf8;
  --bgn-mint: #2dd4bf;
  --bgn-lav: #818cf8;
  --bgn-sun: #fbbf24;
  --bgn-rose: #fb7185;
  --bgn-green: #22c55e;
  --bgn-label: #0b1b26;
  --bgn-label-2: rgba(11, 27, 38, .62);
  --bgn-label-3: rgba(11, 27, 38, .42);
  --bgn-sep: rgba(11, 27, 38, .09);
  --bgn-fill: rgba(120, 140, 150, .12);
  --bgn-surface: rgba(255, 255, 255, .82);
  --bgn-surface-solid: #ffffff;
  --bgn-glass: saturate(180%) blur(22px);
  --bgn-shadow: 0 1px 2px rgba(11, 27, 38, .04), 0 8px 24px -12px rgba(11, 60, 80, .18);
  --bgn-shadow-lift: 0 2px 4px rgba(11, 27, 38, .05), 0 18px 40px -16px rgba(8, 90, 120, .28);
  --bgn-ease: cubic-bezier(.32, .72, 0, 1);
  --bgn-spring: cubic-bezier(.34, 1.4, .64, 1);
  --bgn-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", Inter, "Segoe UI", Roboto, sans-serif;

  /* Ukuran HP (iOS) */
  --bgn-body: 16px;
  --bgn-small: 13px;
  --bgn-title: 34px;
  --bgn-headline: 20px;
  --bgn-r-lg: 22px;
  --bgn-r-md: 16px;
  --bgn-r-sm: 12px;
  --bgn-row: 60px;
  --bgn-gap: 16px;
  --bgn-pad: 16px;
  --bgn-tap: 44px;

  position: relative;
  min-height: 70vh;
  padding: 18px 0 40px;
  color: var(--bgn-label);
  font-family: var(--bgn-font);
  font-size: var(--bgn-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(55% 38% at 8% 0%, rgba(34, 211, 238, .30), transparent 70%),
    radial-gradient(45% 32% at 95% 6%, rgba(129, 140, 248, .20), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(45, 212, 191, .16), transparent 70%),
    linear-gradient(180deg, #f2fbfe 0%, #f7fbfd 45%, #ffffff 100%);
  overflow-x: clip;
}
.bgn *, .bgn *::before, .bgn *::after { box-sizing: border-box; }
.bgn a { color: inherit; text-decoration: none; }
.bgn img { display: block; max-width: 100%; }
.bgn h1, .bgn h2, .bgn h3, .bgn p { margin: 0; }
.bgn button { font: inherit; color: inherit; }

/* Ukuran desktop (macOS): lebih rapat dan presisi */
@media (min-width: 1024px) {
  .bgn {
    --bgn-body: 14px;
    --bgn-small: 12px;
    --bgn-title: 28px;
    --bgn-headline: 17px;
    --bgn-r-lg: 16px;
    --bgn-r-md: 12px;
    --bgn-r-sm: 9px;
    --bgn-row: 48px;
    --bgn-gap: 18px;
    --bgn-pad: 18px;
    --bgn-tap: 32px;
    padding: 28px 0 56px;
  }
}

/* ------------------------------------------------------------ tata letak */
.bgn-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.bgn-shell { display: block; padding-block: 20px 40px; }
@media (min-width: 1024px) {
  .bgn-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 32px 56px; }
}
.bgn-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--bgn-gap) + 6px); }
.bgn-main > * { min-width: 0; }

/* Panel samping ala macOS (hanya desktop) */
.bgn-side { display: none; }
@media (min-width: 1024px) {
  .bgn-side {
    display: block; position: sticky; top: 88px; padding: 10px;
    border-radius: 16px; background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: var(--bgn-glass); backdrop-filter: var(--bgn-glass);
    border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--bgn-shadow);
  }
}
.bgn-side-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--bgn-sep); }
.bgn-side-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bgn-fill); }
.bgn-side-user b { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; }
.bgn-side-user span { font-size: 11.5px; color: var(--bgn-label-2); }
.bgn-side-label { padding: 12px 8px 4px; font-size: 11px; font-weight: 600; color: var(--bgn-label-3); letter-spacing: .02em; }
.bgn-side a { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 500; transition: background .18s var(--bgn-ease); }
.bgn-side a:hover { background: rgba(8, 145, 178, .08); }
.bgn-side a[aria-current="page"] { background: linear-gradient(180deg, #16c2de, #0891b2); color: #fff; box-shadow: 0 4px 12px -6px rgba(8, 145, 178, .7); }
.bgn-side a[aria-current="page"] .bgn-ico-sq { background: rgba(255, 255, 255, .22) !important; }

/* Kotak ikon berwarna (ala Pengaturan iOS dan macOS) */
.bgn-ico-sq { display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: var(--bgn-cyan-600); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5), inset 0 -.5px 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(11, 27, 38, .1); }
.bgn-ico-sq svg { width: 14px; height: 14px; }
.bgn-ico-sq svg.is-glyph { width: 15px; height: 15px; filter: drop-shadow(0 .5px .5px rgba(0, 0, 0, .12)); }
.bgn-ico-sq.is-sky { background: linear-gradient(180deg, #4cc3ff, #1d9bf0); }
.bgn-ico-sq.is-cyan { background: linear-gradient(180deg, #22d3ee, #0891b2); }
.bgn-ico-sq.is-mint { background: linear-gradient(180deg, #34e3c4, #0f9f8c); }
.bgn-ico-sq.is-lav { background: linear-gradient(180deg, #a5b4fc, #6366f1); }
.bgn-ico-sq.is-sun { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.bgn-ico-sq.is-rose { background: linear-gradient(180deg, #fda4af, #f43f5e); }
.bgn-ico-sq.is-slate { background: linear-gradient(180deg, #94a3b8, #64748b); }
.bgn-ico-sq.is-lg { width: 44px; height: 44px; border-radius: 13px; }
/* Ikon aplikasi gaya iOS (aksi cepat) */
.bgn-app-ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 5px rgba(0, 0, 0, .1), 0 7px 14px -7px var(--bgn-app-glow); }
.bgn-app-ico::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%); }
.bgn-app-ico svg { position: relative; width: 28px; height: 28px; filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .16)); }
.bgn-app-ico.is-cyan { --bgn-app-glow: rgba(8, 145, 178, .7); background: linear-gradient(160deg, #3be0f5, #0891b2 70%, #0a7a99); }
.bgn-app-ico.is-mint { --bgn-app-glow: rgba(15, 159, 140, .7); background: linear-gradient(160deg, #4ff0cf, #10a88f 70%, #0b8a76); }
.bgn-app-ico.is-lav { --bgn-app-glow: rgba(99, 102, 241, .7); background: linear-gradient(160deg, #b2b9ff, #6d6ff5 65%, #5646e0); }
.bgn-app-ico.is-sun { --bgn-app-glow: rgba(245, 158, 11, .7); background: linear-gradient(160deg, #ffd970, #f7a21b 65%, #ea7f0c); }
.bgn-tile:active .bgn-app-ico { transform: scale(.94); }
.bgn-app-ico { transition: transform .3s var(--bgn-spring); }
@media (min-width: 1024px) { .bgn-app-ico { width: 36px; height: 36px; border-radius: 10px; } .bgn-app-ico svg { width: 21px; height: 21px; } }
.bgn-ico-sq.is-lg svg { width: 22px; height: 22px; }
.bgn-ico-sq.is-lg svg.is-glyph { width: 24px; height: 24px; }
@media (min-width: 1024px) { .bgn-ico-sq.is-lg { width: 36px; height: 36px; border-radius: 10px; } .bgn-ico-sq.is-lg svg { width: 18px; height: 18px; } .bgn-ico-sq.is-lg svg.is-glyph { width: 20px; height: 20px; } }

/* ------------------------------------------------------------ judul */
.bgn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bgn-eyebrow { display: block; margin-bottom: 2px; font-size: var(--bgn-small); font-weight: 600; color: var(--bgn-label-2); text-transform: uppercase; letter-spacing: .04em; }
.bgn-title { font-size: var(--bgn-title); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
.bgn-subtitle { margin-top: 6px; color: var(--bgn-label-2); font-size: calc(var(--bgn-body) - 1px); }
.bgn-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 10px; }
.bgn-section-head h2 { font-size: var(--bgn-headline); font-weight: 700; letter-spacing: -.012em; }
.bgn-section-head a, .bgn-link { color: var(--bgn-cyan-600); font-weight: 600; font-size: calc(var(--bgn-body) - 1px); }

/* ------------------------------------------------------------ kartu dan daftar */
.bgn-card {
  position: relative; border-radius: var(--bgn-r-lg); background: var(--bgn-surface);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--bgn-shadow);
}
.bgn-card-pad { padding: var(--bgn-pad); }
.bgn-group { overflow: hidden; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); border: 1px solid rgba(11, 27, 38, .04); }
.bgn-row {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--bgn-row);
  padding: 10px var(--bgn-pad); transition: background .18s var(--bgn-ease);
}
.bgn-row + .bgn-row::before { content: ""; position: absolute; top: 0; right: 0; left: calc(var(--bgn-pad) + 56px); height: 1px; background: var(--bgn-sep); }
.bgn-row.is-plain + .bgn-row.is-plain::before { left: var(--bgn-pad); }
a.bgn-row:hover { background: rgba(8, 145, 178, .05); }
a.bgn-row:active { background: rgba(8, 145, 178, .1); }
.bgn-row-media { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; object-fit: cover; background: #eef6f9; }
.bgn-row-media[src$=".svg"] { object-fit: contain; padding: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--bgn-sep); }
@media (min-width: 1024px) { .bgn-row-media { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; } .bgn-row-media[src$=".svg"] { padding: 6px; } .bgn-row + .bgn-row::before { left: calc(var(--bgn-pad) + 48px); } }
.bgn-row-body { flex: 1; min-width: 0; }
.bgn-row-title { display: block; font-weight: 600; font-size: var(--bgn-body); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgn-row-sub { display: block; margin-top: 1px; font-size: var(--bgn-small); color: var(--bgn-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgn-row-end { flex: 0 0 auto; text-align: right; font-size: var(--bgn-small); color: var(--bgn-label-2); }
.bgn-row-end b { display: block; color: var(--bgn-label); font-size: var(--bgn-body); font-weight: 650; }
.bgn-chev { width: 8px; height: 13px; flex: 0 0 8px; color: rgba(11, 27, 38, .28); }

/* Bilah progres tipis */
.bgn-progress { height: 4px; margin-top: 7px; border-radius: 99px; background: var(--bgn-fill); overflow: hidden; }
.bgn-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #0891b2); transform-origin: left; animation: bgnGrow .9s var(--bgn-ease) both; }
.bgn-progress.is-warn i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.bgn-progress.is-danger i { background: linear-gradient(90deg, #fda4af, #f43f5e); }
@keyframes bgnGrow { from { transform: scaleX(0); } }

/* ------------------------------------------------------------ tombol */
.bgn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--bgn-tap);
  padding: 0 18px; border: 0; border-radius: 999px; font-weight: 600; font-size: calc(var(--bgn-body) - 1px);
  cursor: pointer; white-space: nowrap; transition: transform .25s var(--bgn-spring), background .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.bgn-btn:active, .bgn-press:active { transform: scale(.96); }
.bgn-btn svg { width: 16px; height: 16px; }
.bgn-btn.is-fill { color: #fff; background: linear-gradient(180deg, #17c3df, #0891b2); box-shadow: 0 6px 16px -8px rgba(8, 145, 178, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.bgn-btn.is-fill:hover { box-shadow: 0 10px 22px -10px rgba(8, 145, 178, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.bgn-btn.is-tint { color: var(--bgn-cyan-700); background: rgba(6, 182, 212, .13); }
.bgn-btn.is-tint:hover { background: rgba(6, 182, 212, .2); }
.bgn-btn.is-gray { color: var(--bgn-label); background: var(--bgn-fill); }
.bgn-btn.is-sm { min-height: 30px; padding: 0 13px; font-size: 13px; }
.bgn-btn.is-block { width: 100%; }
@media (min-width: 1024px) { .bgn-btn { border-radius: 8px; padding: 0 14px; } .bgn-btn.is-pill { border-radius: 999px; } .bgn-btn.is-sm { min-height: 26px; border-radius: 6px; } }
.bgn-btn:focus-visible, .bgn-row:focus-visible, .bgn-tile:focus-visible, .bgn-chip:focus-visible { outline: 3px solid rgba(6, 182, 212, .45); outline-offset: 2px; }

/* ------------------------------------------------------------ ubin aksi cepat */
.bgn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bgn-tile { display: grid; justify-items: center; gap: 7px; padding: 12px 4px 10px; border-radius: var(--bgn-r-md); background: var(--bgn-surface); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--bgn-shadow); font-size: 12px; font-weight: 600; text-align: center; transition: transform .3s var(--bgn-spring), box-shadow .25s; }
.bgn-tile:hover { transform: translateY(-2px); box-shadow: var(--bgn-shadow-lift); }
.bgn-tile:active { transform: scale(.95); }
@media (min-width: 1024px) {
  .bgn-tiles { gap: 12px; }
  .bgn-tile { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; text-align: left; }
  .bgn-side ~ .bgn-main .bgn-tiles { display: none; } /* isinya sudah ada di panel samping */
}

/* ------------------------------------------------------------ chip dan kontrol segmen */
.bgn-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--bgn-pad) * -1); padding: 2px var(--bgn-pad) 4px; scroll-snap-type: x proximity; scroll-padding-inline: var(--bgn-pad); }
.bgn-chips::-webkit-scrollbar { display: none; }
.bgn-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bgn-surface-solid); border: 1px solid var(--bgn-sep); font-size: 14px; font-weight: 600; scroll-snap-align: start; transition: background .2s, border-color .2s, transform .25s var(--bgn-spring); }
.bgn-chip:hover { border-color: rgba(8, 145, 178, .35); }
.bgn-chip:active { transform: scale(.95); }
.bgn-chip span { color: var(--bgn-label-3); font-weight: 500; }
@media (min-width: 1024px) { .bgn-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } .bgn-chip { height: 30px; padding: 0 12px; font-size: 13px; } }

.bgn-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 10px; background: var(--bgn-fill); }
.bgn-seg button, .bgn-seg a { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--bgn-label-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .25s var(--bgn-ease), color .2s, box-shadow .25s; }
.bgn-seg [aria-selected="true"], .bgn-seg [aria-current="true"] { background: #fff; color: var(--bgn-label); box-shadow: 0 3px 8px rgba(11, 27, 38, .12), 0 1px 1px rgba(11, 27, 38, .06); }

/* ------------------------------------------------------------ karosel */
.bgn-carousel { position: relative; }
.bgn-carousel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--bgn-pad) * -1); padding: 0 var(--bgn-pad); scroll-behavior: smooth; }
.bgn-carousel-track::-webkit-scrollbar { display: none; }
.bgn-slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--bgn-r-lg); overflow: hidden; background: #e6f6fa; box-shadow: var(--bgn-shadow); }
.bgn-slide img, .bgn-slide video { width: 100%; height: auto; display: block; }
.bgn-slide iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
@media (min-width: 1024px) { .bgn-carousel-track { margin: 0; padding: 0; } }
.bgn-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.bgn-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(11, 27, 38, .18); cursor: pointer; transition: width .35s var(--bgn-ease), background .3s; }
.bgn-dots button[aria-current="true"] { width: 20px; background: var(--bgn-cyan-600); }

/* ------------------------------------------------------------ kartu produk */
.bgn-products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1024px) {
  .bgn-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgn-products .bgn-row:nth-child(2)::before { display: none; }
  .bgn-products .bgn-row:nth-child(odd)::after { content: ""; position: absolute; top: 12px; bottom: 12px; right: 0; width: 1px; background: var(--bgn-sep); }
}
.bgn-price { font-weight: 700; color: var(--bgn-label); }
.bgn-price s { margin-left: 5px; font-weight: 500; color: var(--bgn-label-3); font-size: .85em; }

/* ------------------------------------------------------------ grid pintasan */
.bgn-grid-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: var(--bgn-pad); }
.bgn-grid-icons a { display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.25; color: var(--bgn-label-2); transition: transform .25s var(--bgn-spring); }
.bgn-grid-icons a:active { transform: scale(.93); }
.bgn-grid-icons img { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; background: #f1f6f8; box-shadow: 0 2px 6px rgba(11, 27, 38, .08); }
@media (min-width: 1024px) { .bgn-grid-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); } .bgn-grid-icons img { width: 42px; height: 42px; border-radius: 11px; } }

/* ------------------------------------------------------------ ulasan */
.bgn-reviews { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--bgn-pad) * -1); padding: 2px var(--bgn-pad) 8px; scroll-padding-inline: var(--bgn-pad); }
.bgn-reviews::-webkit-scrollbar { display: none; }
/* Pita berjalan: kartu digeser terus, salinannya disambung di belakang */
.bgn-marquee.is-running { overflow: hidden; margin: 0 calc(var(--bgn-pad) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.bgn-marquee.is-running .bgn-reviews { width: max-content; margin: 0; overflow: visible; scroll-snap-type: none; padding: 2px var(--bgn-pad) 12px; animation: bgnMarquee var(--bgn-mq-dur, 40s) linear infinite; will-change: transform; }
.bgn-marquee.is-running .bgn-review { flex: 0 0 280px; }
.bgn-marquee.is-running:hover .bgn-reviews, .bgn-marquee.is-held .bgn-reviews, .bgn-marquee.is-off .bgn-reviews { animation-play-state: paused; }
@keyframes bgnMarquee { to { transform: translate3d(var(--bgn-mq-shift, -50%), 0, 0); } }
@media (min-width: 1024px) { .bgn-marquee.is-running { margin: 0; } .bgn-marquee.is-running .bgn-reviews { padding-inline: 0; } .bgn-marquee.is-running .bgn-review { flex-basis: 300px; } }
.bgn-review { flex: 0 0 82%; scroll-snap-align: start; padding: 16px; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .bgn-review { flex-basis: 46%; } }
@media (min-width: 1024px) { .bgn-reviews { margin: 0; padding: 2px 0 8px; } .bgn-review { flex-basis: calc((100% - 24px) / 3); padding: 14px; } }
.bgn-review p { color: var(--bgn-label); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bgn-review footer { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: var(--bgn-small); color: var(--bgn-label-2); }
.bgn-review footer img, .bgn-initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; }
.bgn-initial { display: grid; place-items: center; background: linear-gradient(180deg, #a5f3fc, #67e8f9); color: #075e70; font-weight: 700; font-size: 13px; }
.bgn-review footer b { display: block; color: var(--bgn-label); font-size: calc(var(--bgn-small) + 1px); }
.bgn-stars { display: inline-block; width: calc(var(--n, 5) * 16px - 2px); height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.7 20'%3E%3Cpath fill='%23fbbf24' d='M10 1.8l2.5 5.2 5.7.8-4.1 4 1 5.7L10 14.8l-5.1 2.7 1-5.7-4.1-4 5.7-.8z'/%3E%3C/svg%3E") 0 0 / 16px 14px repeat-x; }

/* ------------------------------------------------------------ status kecil */
.bgn-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--bgn-small); font-weight: 600; color: var(--bgn-label-2); }
.bgn-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bgn-green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: bgnPulse 1.8s ease-out infinite; }
@keyframes bgnPulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.bgn-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 650; background: rgba(34, 197, 94, .14); color: #15803d; }
.bgn-badge.is-warn { background: rgba(245, 158, 11, .16); color: #b45309; }
.bgn-badge.is-danger { background: rgba(244, 63, 94, .14); color: #be123c; }
.bgn-badge.is-info { background: rgba(6, 182, 212, .14); color: var(--bgn-cyan-700); }

/* Kondisi kosong */
.bgn-empty { display: grid; justify-items: center; gap: 8px; padding: 26px var(--bgn-pad); text-align: center; color: var(--bgn-label-2); }
.bgn-empty b { color: var(--bgn-label); font-size: var(--bgn-body); }
.bgn-empty .bgn-ico-sq { margin-bottom: 4px; }

/* ------------------------------------------------------------ lembar (sheet) */
.bgn-sheet { position: fixed; inset: 0; z-index: 99990; display: grid; align-items: end; justify-items: center; visibility: hidden; }
.bgn-sheet[hidden] { display: none; }
.bgn-sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 22, 32, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--bgn-ease); }
.bgn-sheet-panel {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: var(--bgn-glass); backdrop-filter: var(--bgn-glass);
  box-shadow: 0 -10px 40px -10px rgba(4, 40, 55, .35); transform: translateY(100%); transition: transform .5s var(--bgn-ease);
  font-family: var(--bgn-font); color: var(--bgn-label);
}
.bgn-sheet-grab { width: 38px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: rgba(11, 27, 38, .18); }
.bgn-sheet.is-open { visibility: visible; }
.bgn-sheet.is-open .bgn-sheet-backdrop { opacity: 1; }
.bgn-sheet.is-open .bgn-sheet-panel { transform: none; }
@media (min-width: 768px) {
  .bgn-sheet { align-items: center; }
  .bgn-sheet-panel { width: min(460px, 92vw); padding: 22px 24px 22px; border-radius: 14px; transform: translateY(12px) scale(.96); opacity: 0; transition: transform .38s var(--bgn-spring), opacity .25s var(--bgn-ease); box-shadow: 0 30px 70px -20px rgba(4, 40, 55, .45), 0 0 0 1px rgba(11, 27, 38, .06); }
  .bgn-sheet.is-open .bgn-sheet-panel { opacity: 1; transform: none; }
  .bgn-sheet-grab { display: none; }
}

/* ------------------------------------------------------------ halaman umum (tanpa panel samping) */
.bgn-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--bgn-gap) + 4px); padding-block: 20px 40px; }
@media (min-width: 1024px) { .bgn-page { padding-block: 32px 56px; } }
.bgn-hide-sm { display: contents; }
@media (max-width: 1023px) { .bgn-hide-sm { display: none; } }
.bgn-page > * { min-width: 0; }
.bgn-note { margin: 0 4px; color: var(--bgn-label-2); font-size: var(--bgn-small); }
.bgn-chip.is-active { color: #fff; background: linear-gradient(180deg, #17c3df, #0891b2); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(8, 145, 178, .8); }
.bgn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: var(--bgn-small); color: var(--bgn-label-3); }
.bgn-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .8; }

/* Kolom cari ala iOS dan macOS */
.bgn-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(118, 118, 128, .12); color: var(--bgn-label-2); transition: background .2s, box-shadow .2s; }
.bgn-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(6, 182, 212, .28), var(--bgn-shadow); }
.bgn-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.bgn-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--bgn-label); -webkit-appearance: none; appearance: none; }
.bgn-search input::-webkit-search-cancel-button { display: none; }
.bgn-search input::placeholder { color: var(--bgn-label-3); }
.bgn-search-clear { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: rgba(11, 27, 38, .28); color: #fff; }
.bgn-search-clear svg { width: 12px; height: 12px; }
@media (min-width: 1024px) { .bgn-search { height: 32px; padding: 0 10px; border-radius: 8px; } .bgn-search svg { width: 15px; height: 15px; } .bgn-search input { font-size: 13px; } }

/* Artikel */
.bgn-arts-head { flex-wrap: wrap; }
.bgn-arts-head > div { flex: 1 1 320px; }
.bgn-arts-head .bgn-search { flex: 1 1 100%; }
@media (min-width: 1024px) { .bgn-arts-head .bgn-search { flex: 0 0 300px; } }

/* Artikel utama: kartu besar (gambar di atas di HP, mendatar di desktop) */
.bgn-feature { position: relative; display: block; overflow: hidden; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow-lift); transition: transform .45s var(--bgn-ease), box-shadow .3s; }
.bgn-feature:active { transform: scale(.98); }
.bgn-feature-media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #e0f7fb, #eef0ff); }
.bgn-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--bgn-ease); }
.bgn-feature-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.bgn-feature-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bgn-cyan-600); }
.bgn-feature h2 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.bgn-feature p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--bgn-label-2); font-size: 15px; }
@media (min-width: 1024px) {
  .bgn-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); box-shadow: var(--bgn-shadow); }
  .bgn-feature-body { align-content: center; gap: 10px; padding: 28px 30px; }
  .bgn-feature h2 { font-size: 26px; }
  .bgn-feature p { -webkit-line-clamp: 3; font-size: 14px; }
  .bgn-feature:hover { box-shadow: var(--bgn-shadow-lift); }
  .bgn-feature:hover .bgn-feature-media img { transform: scale(1.03); }
}

/* Daftar artikel: baris ala Apple News di HP, kartu tiga kolom di desktop */
.bgn-news { display: grid; overflow: hidden; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); }
.bgn-news-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 14px; padding: 14px var(--bgn-pad); transition: background .2s; }
.bgn-news-item + .bgn-news-item::before { content: ""; position: absolute; top: 0; left: var(--bgn-pad); right: 0; height: 1px; background: var(--bgn-sep); }
.bgn-news-item:active { background: rgba(8, 145, 178, .08); }
.bgn-news-media { order: 2; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(160deg, #e0f7fb, #eef0ff); }
.bgn-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bgn-ease); }
.bgn-news-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bgn-cyan-600); }
.bgn-news-ph svg { width: 32%; height: 32%; opacity: .55; }
.bgn-news-body { display: grid; gap: 4px; min-width: 0; }
.bgn-news-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bgn-cyan-600); }
.bgn-news h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.bgn-news p { display: none; }
@media (min-width: 640px) and (max-width: 1023px) { .bgn-news-item { grid-template-columns: minmax(0, 1fr) 128px; } }
@media (min-width: 1024px) {
  .bgn-news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .bgn-news-item { grid-template-columns: 1fr; align-items: stretch; align-content: start; gap: 0; padding: 0; overflow: hidden; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); transition: transform .35s var(--bgn-ease), box-shadow .3s; }
  .bgn-news-item + .bgn-news-item::before { display: none; }
  .bgn-news-item:hover { transform: translateY(-3px); box-shadow: var(--bgn-shadow-lift); }
  .bgn-news-item:hover .bgn-news-media img { transform: scale(1.04); }
  .bgn-news-media { order: 0; aspect-ratio: 16 / 10; border-radius: 0; }
  .bgn-news-body { gap: 6px; padding: 14px 16px 16px; }
  .bgn-news h3 { -webkit-line-clamp: 2; font-size: 15px; }
  .bgn-news p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--bgn-label-2); font-size: 13px; line-height: 1.5; }
}

/* Nomor halaman */
.bgn-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.bgn-pager a, .bgn-pager span { display: inline-grid; place-items: center; min-width: var(--bgn-tap); height: var(--bgn-tap); padding: 0 10px; border-radius: 12px; font-size: calc(var(--bgn-body) - 1px); font-weight: 600; }
.bgn-pager a { background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); transition: transform .25s var(--bgn-spring), color .2s; }
.bgn-pager a:hover { color: var(--bgn-cyan-700); }
.bgn-pager a:active { transform: scale(.94); }
.bgn-pager a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, #17c3df, #0891b2); }
.bgn-pager span { color: var(--bgn-label-3); }
.bgn-pager svg { width: 16px; height: 16px; }
.bgn-pager .is-off { opacity: .4; pointer-events: none; }
@media (min-width: 1024px) { .bgn-pager a, .bgn-pager span { border-radius: 8px; } }

/* ------------------------------------------------------------ halaman baca artikel */
.bgn-readbar { position: fixed; top: 0; left: 0; right: 0; z-index: 2101; height: 3px; pointer-events: none; }
.bgn-readbar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #0891b2 60%, #818cf8); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.bgn-read-wrap { width: min(760px, 100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 12px 40px; }
.bgn-read-wrap > * { min-width: 0; }
.bgn-back a { display: inline-flex; align-items: center; gap: 2px; height: 36px; margin-left: -6px; padding: 0 10px 0 2px; border-radius: 10px; color: var(--bgn-cyan-600); font-size: calc(var(--bgn-body) + 1px); font-weight: 600; transition: opacity .15s, background .2s; }
.bgn-back a:hover { background: rgba(6, 182, 212, .08); }
.bgn-back a:active { opacity: .5; }
.bgn-back svg { width: 22px; height: 22px; }
.bgn-read-head { display: grid; gap: 12px; }
.bgn-read-cat { justify-self: start; padding: 5px 11px; border-radius: 999px; background: rgba(6, 182, 212, .12); color: var(--bgn-cyan-700); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bgn-read-title { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.018em; text-wrap: balance; }
.bgn-read-lede { color: var(--bgn-label-2); font-size: 18px; line-height: 1.5; }
.bgn-read-meta { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.bgn-read-meta .bgn-initial { width: 38px; height: 38px; flex: 0 0 38px; font-size: 15px; }
.bgn-read-meta b { display: block; font-size: var(--bgn-body); font-weight: 650; }
.bgn-read-hero { margin: 0 calc(var(--bgn-pad) * -1); }
.bgn-read-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(160deg, #e0f7fb, #eef0ff); }
@media (min-width: 640px) { .bgn-read-hero { margin: 0; } .bgn-read-hero img { border-radius: var(--bgn-r-lg); box-shadow: var(--bgn-shadow-lift); } }
@media (min-width: 1024px) {
  .bgn-read-wrap { gap: 26px; padding-block: 24px 56px; }
  .bgn-read-title { font-size: 42px; }
  .bgn-read-lede { font-size: 19px; }
  .bgn-read-hero { margin-inline: -70px; }
}

/* Bagikan: kotak alamat dengan tombol salin, lalu deretan tombol bulat bergaris */
.bgn-share { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; padding: 20px; border: 1px solid var(--bgn-sep); border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); }
.bgn-share-text b { display: block; font-size: var(--bgn-headline); font-weight: 700; letter-spacing: -.01em; }
.bgn-share-text span { color: var(--bgn-label-2); font-size: var(--bgn-small); }
.bgn-share-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 6px; border: 1px solid var(--bgn-sep); border-radius: 14px; background: var(--bgn-fill); }
.bgn-share-url { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 8px 4px; color: var(--bgn-label-2); font-size: 14px; }
.bgn-share-url svg { flex: 0 0 auto; width: 15px; height: 15px; }
.bgn-share-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgn .bgn-share-copy { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--bgn-label); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .25s var(--bgn-spring), opacity .2s; }
.bgn .bgn-share-copy:hover { opacity: .88; }
.bgn .bgn-share-copy:active { transform: scale(.96); }
.bgn-share-copy svg { width: 16px; height: 16px; }
.bgn-share-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bgn .bgn-share-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--bgn-sep); border-radius: 50%; background: var(--bgn-surface-solid); color: var(--bgn-label); cursor: pointer; transition: transform .25s var(--bgn-spring), background .2s, color .2s, border-color .2s; }
.bgn .bgn-share-btn:hover { border-color: var(--bgn-label); background: var(--bgn-label); color: #fff; }
.bgn .bgn-share-btn:active { transform: scale(.92); }
.bgn-share-btn svg { width: 19px; height: 19px; }
.bgn-share-btn[hidden] { display: none; }
.bgn-share-copy:focus-visible, .bgn-share-btn:focus-visible { outline: 3px solid rgba(26, 26, 26, .35); outline-offset: 2px; }
@media (min-width: 640px) {
  .bgn-share-link { flex-wrap: nowrap; padding: 6px 6px 6px 14px; }
  .bgn-share-url { flex: 1 1 0; padding: 0; }
  .bgn .bgn-share-copy { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .bgn-share { padding: 22px 24px; }
  .bgn-share-btn { width: 40px; height: 40px; }
  .bgn-share-btn svg { width: 17px; height: 17px; }
}
.bgn-related { padding-top: 10px; }
@media (min-width: 1024px) { .bgn-related { margin-inline: -70px; } }

/* ------------------------------------------------------------ pesanan */
.bgn-orders { display: grid; gap: 10px; }
.bgn-order { overflow: hidden; border-radius: var(--bgn-r-lg); background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); transition: box-shadow .25s; }
.bgn-order-main { display: flex; align-items: center; gap: 12px; padding: 14px var(--bgn-pad); transition: background .2s; }
.bgn-order-main:active { background: rgba(8, 145, 178, .07); }
.bgn-order-end { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; text-align: right; }
.bgn-order .bgn-row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.bgn-order-end b { font-size: var(--bgn-body); font-weight: 700; }
.bgn-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--bgn-pad); border-top: 1px solid var(--bgn-sep); background: rgba(245, 158, 11, .07); color: #92400e; font-size: var(--bgn-small); font-weight: 600; }
@media (hover: hover) { .bgn-order:hover { box-shadow: var(--bgn-shadow-lift); } .bgn-order-main:hover { background: rgba(8, 145, 178, .04); } }
@media (min-width: 1024px) { .bgn-orders { gap: 8px; } .bgn-order-main { padding: 12px 16px; } .bgn-order-foot { padding: 8px 16px; } }
.bgn-badge-lg { height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; }

/* Daftar kunci dan nilai (ringkasan) */
.bgn-kv > div { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px var(--bgn-pad); font-size: var(--bgn-body); }
.bgn-kv > div + div::before { content: ""; position: absolute; top: 0; left: var(--bgn-pad); right: 0; height: 1px; background: var(--bgn-sep); }
.bgn-kv span { flex: 0 0 auto; color: var(--bgn-label-2); }
.bgn-kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bgn-kv .is-good span, .bgn-kv .is-good b { color: #059669; }
.bgn-kv .is-total span { color: var(--bgn-label); font-weight: 600; }
.bgn-kv .is-total b { color: var(--bgn-cyan-700); font-size: calc(var(--bgn-body) + 3px); font-weight: 750; }
.bgn-kv.is-compact > div { padding: 8px 0; font-size: var(--bgn-small); }
.bgn-kv.is-compact > div + div::before { left: 0; }
@media (min-width: 1024px) { .bgn-kv > div { padding: 10px 16px; } }

/* Ajakan bertindak */
.bgn-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px var(--bgn-pad); border: 1px solid rgba(245, 158, 11, .25); border-radius: var(--bgn-r-lg); background: linear-gradient(135deg, #fff7e6, #fffdf6); box-shadow: var(--bgn-shadow); }
.bgn-callout > div { flex: 1 1 200px; min-width: 0; }
.bgn-callout b { display: block; }
.bgn-callout span { color: var(--bgn-label-2); font-size: var(--bgn-small); }
.bgn-callout .bgn-btn { flex: 1 1 100%; }
@media (min-width: 640px) { .bgn-callout .bgn-btn { flex: 0 0 auto; } }

/* Item pesanan */
.bgn-order-items { display: grid; gap: 12px; }
.bgn-item { display: grid; gap: 14px; padding: var(--bgn-pad); }
.bgn-item-head { display: flex; align-items: center; gap: 12px; }
.bgn-item-name { display: block; font-size: var(--bgn-body); font-weight: 650; line-height: 1.35; }
.bgn-item-price { flex: 0 0 auto; color: var(--bgn-cyan-700); font-weight: 700; }
.bgn-sn { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(34, 197, 94, .08); color: #15803d; font-size: var(--bgn-small); font-weight: 600; }
.bgn-sn code { display: block; padding: 8px 10px; border-radius: 8px; background: #fff; color: #166534; font-weight: 700; white-space: pre-wrap; word-break: break-all; }
.bgn-cred { display: grid; gap: 10px; }
.bgn-cred-head { display: flex; align-items: center; gap: 8px; font-size: var(--bgn-body); }
.bgn-cred-box { overflow: hidden; padding: 12px 14px; border-radius: 12px; background: var(--bgn-fill); }
.bgn-cred-line { margin-bottom: 6px; font-size: calc(var(--bgn-body) - 1px); line-height: 1.5; overflow-wrap: anywhere; }
.bgn-cred-line:last-child { margin-bottom: 0; }
.bgn-cred-line strong { font-weight: 700; }
.bgn-cred-line strong::after { content: ":"; }
.bgn-cred-line.is-bold { font-weight: 700; }
.bgn-cred-line a { color: var(--bgn-cyan-700); font-weight: 600; text-decoration: underline; word-break: break-all; }

/* Email undangan tim (isi stok ditahan sampai email diisi) */
.bgn-invite { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(99, 102, 241, .16); border-radius: 14px; background: linear-gradient(160deg, rgba(129, 140, 248, .10), rgba(34, 211, 238, .08)); }
.bgn-invite .bgn-cred-head .bgn-badge { margin-left: auto; }
.bgn-invite-text { color: var(--bgn-label-2); font-size: calc(var(--bgn-body) - 1px); line-height: 1.5; }
.bgn-invite-form { display: grid; gap: 10px; }
.bgn-invite-form[hidden], .bgn-invite-msg[hidden], .bgn-invite-edit[hidden] { display: none; }
.bgn .bgn-invite-edit { justify-self: start; padding: 0; border: 0; background: none; color: var(--bgn-cyan-600); font-weight: 600; cursor: pointer; }
.bgn-invite .bgn-cred-head b { flex: 1 1 auto; min-width: 0; }
.bgn-invite .bgn-cred-head .bgn-badge { flex: 0 0 auto; }
.bgn-invite-list { display: grid; gap: 6px; }
.bgn-invite-list div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .78); font-size: calc(var(--bgn-body) - 1px); font-weight: 600; overflow-wrap: anywhere; }
.bgn-invite-msg { padding: 10px 12px; border-radius: 10px; font-size: var(--bgn-small); font-weight: 600; }
.bgn-invite-msg.is-bad { background: rgba(244, 63, 94, .1); color: #be123c; }
.bgn-invite-msg.is-ok { background: rgba(34, 197, 94, .12); color: #15803d; }
.bgn-locked { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1px dashed rgba(11, 27, 38, .18); border-radius: 12px; color: var(--bgn-label-3); font-size: var(--bgn-small); font-weight: 600; text-align: center; }
.bgn-locked svg { width: 16px; height: 16px; flex: 0 0 auto; }
.bgn-field { display: grid; gap: 5px; color: var(--bgn-label-2); font-size: var(--bgn-small); font-weight: 600; }
.bgn-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--bgn-sep); border-radius: 12px; outline: 0; background: #fff; color: var(--bgn-label); font: inherit; font-size: 16px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.bgn-field input:focus { border-color: var(--bgn-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, .22); }
.bgn-btn:disabled { opacity: .6; cursor: not-allowed; }
@media (min-width: 1024px) { .bgn-field input { height: 36px; border-radius: 8px; font-size: 14px; } }

/* Masa aktif */
.bgn-life { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(34, 211, 238, .10), rgba(129, 140, 248, .08)); }
.bgn-life-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bgn-life-label { font-size: var(--bgn-small); font-weight: 600; color: var(--bgn-label-2); }
.bgn-life-days { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.bgn-life-days small { color: var(--bgn-label-2); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.bgn-life-days.is-low { color: #e11d48; }
.bgn-life .bgn-progress { height: 6px; margin: 8px 0 6px; }

/* Kartu kode masuk dan bukti login mengikuti sudut Barengin UI */
.bgn .bx-card { margin-top: 0; border-color: var(--bgn-sep); border-radius: 14px; }
.bgn .bx-title .bgn-ico-sq { width: 28px; height: 28px; border-radius: 8px; }
.bgn .bx-title .bgn-ico-sq svg.is-glyph { width: 16px; height: 16px; }

/* ------------------------------------------------------------ dokumen legal (tanpa tumpukan kartu) */
.bgn-legal-wrap { width: min(1100px, 100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 16px 40px; }
.bgn-legal-wrap > * { min-width: 0; }
.bgn-legal-head { display: grid; gap: 8px; max-width: 720px; }
.bgn-legal-head .bgn-meta { margin-top: 2px; }
.bgn-legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bgn-legal-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .bgn-legal-wrap { gap: 30px; padding-block: 36px 64px; }
  .bgn-legal-grid { grid-template-columns: 240px minmax(0, 720px); gap: 56px; }
}

/* Daftar isi */
.bgn-legal-toc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(118, 118, 128, .1); font-size: 16px; font-weight: 600; cursor: pointer; }
.bgn-legal-toc-btn svg { width: 16px; height: 16px; transition: transform .3s var(--bgn-ease); }
.bgn-legal-toc.is-open .bgn-legal-toc-btn svg { transform: rotate(180deg); }
.bgn-legal-toc-label { display: none; }
.bgn-legal-toc ol { display: none; margin: 8px 0 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--bgn-surface-solid); box-shadow: var(--bgn-shadow); }
.bgn-legal-toc.is-open ol { display: block; animation: bgnIn .35s var(--bgn-ease) both; }
.bgn-legal-toc a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--bgn-label-2); font-size: 15px; line-height: 1.35; transition: background .2s, color .2s; }
.bgn-legal-toc a span { flex: 0 0 22px; color: var(--bgn-label-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.bgn-legal-toc a:hover { color: var(--bgn-label); background: rgba(6, 182, 212, .08); }
.bgn-legal-toc a[aria-current="true"] { color: var(--bgn-cyan-700); background: rgba(6, 182, 212, .1); font-weight: 600; }
.bgn-legal-toc a[aria-current="true"] span { color: var(--bgn-cyan-600); }
@media (min-width: 1024px) {
  .bgn-legal-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
  .bgn-legal-toc-btn { display: none; }
  .bgn-legal-toc-label { display: block; padding: 0 10px 8px; color: var(--bgn-label-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .bgn-legal-toc ol { display: block; margin: 0; padding: 0; background: none; box-shadow: none; }
  .bgn-legal-toc a { padding: 6px 10px; border-radius: 7px; font-size: 13px; }
}

/* Isi pasal: dibaca seperti dokumen, bukan kumpulan kartu */
.bgn-legal-body, .bgn-legal-text { color: #1d2d3a; font-size: 16px; line-height: 1.72; }
.bgn-legal-sec { padding: 26px 0; border-top: 1px solid var(--bgn-sep); scroll-margin-top: 84px; }
.bgn-legal-sec:first-child { padding-top: 4px; border-top: 0; }
.bgn-legal-sec h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; color: var(--bgn-label); font-size: 21px; font-weight: 750; line-height: 1.3; letter-spacing: -.015em; }
.bgn-legal-num { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: linear-gradient(180deg, #22d3ee, #0891b2); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px -5px rgba(8, 145, 178, .8); transform: translateY(-2px); }
.bgn-legal-sec p { margin: 0 0 12px; }
.bgn-legal-sec ul, .bgn-legal-sec ol { margin: 0 0 12px; padding-left: 1.25em; }
.bgn-legal-sec ul { list-style: disc outside; }
.bgn-legal-sec ol { list-style: decimal outside; }
.bgn-legal-sec li { display: list-item; }
.bgn-legal-sec li { margin-bottom: 8px; padding-left: 4px; }
.bgn-legal-sec li::marker { color: var(--bgn-cyan-600); font-weight: 700; }
.bgn-legal-sec strong { color: var(--bgn-label); font-weight: 650; }
.bgn-legal-sec a { color: var(--bgn-cyan-700); text-decoration: underline; text-underline-offset: 3px; }
.bgn-legal-note { margin: 14px 0 4px; padding: 14px 16px; border-left: 3px solid var(--bgn-cyan); border-radius: 0 14px 14px 0; background: rgba(6, 182, 212, .07); }
.bgn-legal-note p { margin: 0; color: #17445a; font-size: 15px; }
@media (min-width: 1024px) { .bgn-legal-body { font-size: 16.5px; } .bgn-legal-sec { padding: 30px 0; } .bgn-legal-sec h2 { font-size: 22px; } }
.bgn-legal-end { display: grid; justify-items: start; gap: 14px; max-width: 720px; padding-top: 22px; border-top: 1px solid var(--bgn-sep); color: var(--bgn-label-2); font-size: var(--bgn-small); }
.bgn-legal-end p { margin: 0; }
.bgn-legal-end-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .bgn-legal-end { margin-left: 296px; } }

/* ------------------------------------------------------------ animasi masuk */
.bgn-in { animation: bgnIn .7s var(--bgn-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
/* ------------------------------------------------------------ pre-order di halaman Pesanan */
.bgn-tag { display: inline-flex; align-items: center; height: 17px; margin-right: 6px; padding: 0 6px; border-radius: 5px; background: rgba(99, 102, 241, .12); color: #4f46e5; font-size: 10.5px; font-weight: 650; vertical-align: 1px; }
.bgn-callout.is-info { border-color: rgba(6, 182, 212, .28); background: linear-gradient(135deg, #e9fafd, #f8fdff); }
.bgn-callout.is-good { border-color: rgba(34, 197, 94, .28); background: linear-gradient(135deg, #ebfbf1, #f9fefb); }
.bgn-callout.is-muted { border-color: var(--bgn-sep); background: linear-gradient(135deg, #f3f5f7, #fbfcfd); }
.bgn-steps { margin: 0; padding: 6px var(--bgn-pad); list-style: none; }
.bgn-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.bgn-steps li + li::before { content: ""; position: absolute; left: 12px; top: -10px; width: 2px; height: 20px; border-radius: 2px; background: var(--bgn-sep); }
.bgn-steps li.is-done + li::before { background: rgba(34, 197, 94, .55); }
.bgn-step-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bgn-fill); color: var(--bgn-label-3); font-size: 12px; font-weight: 700; }
.bgn-step-dot svg { width: 14px; height: 14px; }
.bgn-steps li.is-done .bgn-step-dot { background: var(--bgn-green); color: #fff; }
.bgn-steps li.is-now .bgn-step-dot { background: var(--bgn-cyan-600); color: #fff; box-shadow: 0 0 0 4px rgba(8, 145, 178, .16); }
.bgn-steps b { display: block; font-weight: 600; color: var(--bgn-label-2); }
.bgn-steps li.is-done b, .bgn-steps li.is-now b { color: var(--bgn-label); }
.bgn-steps span { color: var(--bgn-label-2); font-size: var(--bgn-small); }
.bgn-steps li:not(.is-done):not(.is-now) span:not(.bgn-step-dot) { color: var(--bgn-label-3); }
.bgn-steps em { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(6, 182, 212, .14); color: var(--bgn-cyan-700); font-size: 11px; font-style: normal; font-weight: 650; vertical-align: 1px; }
.bgn-po-product { border-bottom: 1px solid var(--bgn-sep); }
.bgn-head.is-wrap { flex-wrap: wrap; }
.bgn-head.is-wrap .bgn-badge { white-space: nowrap; }
@media (max-width: 639px) { .bgn-head.is-wrap > div { flex: 1 1 100%; } }
.bgn-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 1024px) { .bgn-steps { padding: 4px 16px; } .bgn-steps li { padding: 8px 0; } .bgn-steps li + li::before { top: -8px; height: 16px; } .bgn-actions { display: flex; justify-content: flex-end; } }

/* ------------------------------------------------------------ tema hitam putih (artikel, syarat & ketentuan)
   Bersih seperti pusat bantuan: latar putih, teks hitam, garis tipis, tanpa bayangan dan tanpa gradasi.
   Dipasang dengan menambah kelas is-mono pada <main class="bgn">. */
.bgn.is-mono {
  --bgn-cyan: #1a1a1a; --bgn-cyan-600: #1a1a1a; --bgn-cyan-700: #1a1a1a;
  --bgn-label: #1a1a1a; --bgn-label-2: #5c5c5c; --bgn-label-3: #8c8c8c;
  --bgn-sep: #e6e6e6; --bgn-fill: #f2f2f2; --bgn-surface-solid: #fff;
  --bgn-shadow: none; --bgn-shadow-lift: none;
  --bgn-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bgn-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  background: #fff;
}
main.bgn.bgn-read.is-mono { background: #fff !important; }
.bgn-readbar.is-mono i { background: #1a1a1a; }
.is-mono .bgn-title, .is-mono .bgn-read-title, .is-mono .bgn-feature h2, .is-mono .bgn-section-head h2 { font-family: var(--bgn-serif); font-weight: 700; letter-spacing: -.01em; }
.is-mono .bgn-title { font-size: 34px; line-height: 1.15; }
.is-mono .bgn-subtitle { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.is-mono .bgn-eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.is-mono .bgn-btn.is-fill { background: #1a1a1a; box-shadow: none; }
.is-mono .bgn-btn.is-fill:hover { background: #000; box-shadow: none; }
.is-mono .bgn-btn.is-tint { color: #1a1a1a; background: #f2f2f2; }
.is-mono .bgn-chip:hover { border-color: #1a1a1a; }
.is-mono .bgn-chip.is-active { background: #1a1a1a; border-color: #1a1a1a; box-shadow: none; }
.is-mono .bgn-search { height: 52px; padding: 0 16px; border: 1px solid var(--bgn-sep); border-radius: 14px; background: #fff; }
.is-mono .bgn-search:focus-within { border-color: #1a1a1a; box-shadow: none; }
.is-mono .bgn-pager a { border: 1px solid var(--bgn-sep); }
.is-mono .bgn-pager a[aria-current="page"] { background: #1a1a1a; border-color: #1a1a1a; }
.is-mono .bgn-back a:hover { background: #f2f2f2; }
.is-mono .bgn-initial { background: #f2f2f2; color: #1a1a1a; }
.is-mono .bgn-ico-sq { background: #1a1a1a; box-shadow: none; }
.is-mono .bgn-empty { border: 1px solid var(--bgn-sep); }

/* Daftar artikel: baris sederhana dengan garis pemisah */
.is-mono .bgn-page { width: min(920px, 100% - 40px); }
.is-mono .bgn-feature { padding-bottom: 26px; border-bottom: 1px solid var(--bgn-sep); border-radius: 0; background: none; }
.is-mono .bgn-feature-media { overflow: hidden; border-radius: 14px; background: #f2f2f2; }
.is-mono .bgn-feature-body { padding: 16px 0 0; }
.is-mono .bgn-feature-cat, .is-mono .bgn-news-cat { color: var(--bgn-label-2); letter-spacing: .04em; }
.is-mono .bgn-feature h2 { font-size: 24px; line-height: 1.25; }
.is-mono .bgn-news { overflow: visible; border-radius: 0; background: none; }
.is-mono .bgn-news-item { padding: 18px 0; }
.is-mono .bgn-news-item:active { background: none; opacity: .6; }
.is-mono .bgn-news-item + .bgn-news-item::before { left: 0; }
.is-mono .bgn-news-media, .is-mono .bgn-news-ph { background: #f2f2f2; }
.is-mono .bgn-news h3 { font-size: 17px; }
@media (min-width: 1024px) {
  .is-mono .bgn-title { font-size: 44px; }
  .is-mono .bgn-search { height: 44px; border-radius: 12px; }
  .is-mono .bgn-search input { font-size: 15px; }
  .is-mono .bgn-arts-head .bgn-search { flex: 1 1 100%; margin-top: 10px; }
  .is-mono .bgn-chip { height: 34px; padding: 0 14px; font-size: 14px; }
  .is-mono .bgn-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 36px; padding-bottom: 34px; }
  .is-mono .bgn-feature-body { padding: 0; }
  .is-mono .bgn-feature h2 { font-size: 30px; }
  .is-mono .bgn-feature p { font-size: 16px; }
  .is-mono .bgn-feature:hover .bgn-feature-media img, .is-mono .bgn-news-item:hover .bgn-news-media img { transform: none; }
  .is-mono .bgn-news { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .is-mono .bgn-news-item { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 36px; padding: 26px 0; overflow: visible; border-radius: 0; background: none; }
  .is-mono .bgn-news-item:hover { transform: none; }
  .is-mono .bgn-news-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
  .is-mono .bgn-news-item + .bgn-news-item::before { display: block; }
  .is-mono .bgn-news-media { order: 2; aspect-ratio: 16 / 10; border-radius: 12px; }
  .is-mono .bgn-news-body { gap: 8px; padding: 0; }
  .is-mono .bgn-news h3 { font-size: 20px; line-height: 1.3; }
  .is-mono .bgn-news p { font-size: 15px; line-height: 1.55; }
}

/* Baca artikel */
.is-mono .bgn-read-wrap { width: min(720px, 100% - 40px); }
.is-mono .bgn-read-cat { padding: 0; border-radius: 0; background: none; color: var(--bgn-label-2); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.is-mono .bgn-read-title { font-size: 32px; line-height: 1.18; }
.is-mono .bgn-read-hero img { box-shadow: none; }
.bgn-read.is-mono .clean-content { max-width: none; margin-inline: 0; color: #1a1a1a; }
.bgn-read.is-mono .clean-content a { color: #1a1a1a; }
.bgn-read.is-mono .clean-content blockquote { border-left: 3px solid #1a1a1a; border-radius: 0; background: #f7f7f7; color: #333; }
.bgn-read.is-mono .clean-content .article-inline-video, .bgn-read.is-mono .clean-content .article-youtube { background: #111; }
.bgn-read.is-mono .article-ad { max-width: none; margin-inline: 0; background: none; }
.is-mono .bgn-share-link { background: #fafafa; }
.is-mono .bgn-related .bgn-news-item { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding: 16px 0; }
.is-mono .bgn-related .bgn-news-media { aspect-ratio: 1; border-radius: 10px; }
.is-mono .bgn-related .bgn-news h3 { font-size: 16px; }
.is-mono .bgn-related .bgn-news p { display: none; }
.bgn-read-toc { display: none; }
@media (min-width: 640px) { .is-mono .bgn-read-hero img { border-radius: 14px; } }
@media (min-width: 1024px) {
  .is-mono .bgn-read-title { font-size: 44px; }
  .is-mono .bgn-read-hero, .is-mono .bgn-related { margin-inline: 0; }
  .is-mono .bgn-related .bgn-news-item { grid-template-columns: minmax(0, 1fr) 132px; }
  .is-mono .bgn-related .bgn-news-media { aspect-ratio: 16 / 10; }
}
/* Daftar isi di kanan, hanya di layar lebar dan bila artikel punya subjudul */
@media (min-width: 1140px) {
  .is-mono .bgn-read-wrap.has-toc { position: relative; width: min(1100px, 100% - 48px); }
  .is-mono .bgn-read-wrap.has-toc > *:not(.bgn-read-toc) { max-width: 720px; }
  .is-mono .bgn-read-wrap.has-toc .bgn-read-toc { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 290px; padding-top: 86px; }
  .bgn-read-toc ol { position: sticky; top: 96px; max-height: calc(100vh - 130px); margin: 0; padding: 0; overflow: auto; list-style: none; border-left: 1px solid var(--bgn-sep); scrollbar-width: thin; }
  .bgn-read-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 22px; border-left: 2px solid transparent; color: var(--bgn-label-2); font-size: 15px; line-height: 1.4; transition: color .2s; }
  .bgn-read-toc li.is-sub a { padding-left: 38px; font-size: 14px; }
  .bgn-read-toc a:hover { color: var(--bgn-label); }
  .bgn-read-toc a[aria-current="true"] { border-left-color: #1a1a1a; color: var(--bgn-label); }
}

/* Syarat & Ketentuan: daftar isi di kanan dengan garis tipis */
.is-mono .bgn-legal-wrap { width: min(1100px, 100% - 40px); }
.is-mono .bgn-legal-toc-btn { background: #f2f2f2; }
.is-mono .bgn-legal-toc ol { border: 1px solid var(--bgn-sep); }
.is-mono .bgn-legal-toc a:hover { background: #f2f2f2; }
.is-mono .bgn-legal-toc a[aria-current="true"] { background: none; color: var(--bgn-label); }
.is-mono .bgn-legal-toc a[aria-current="true"] span { color: var(--bgn-label); }
.is-mono .bgn-legal-body { color: #1a1a1a; }
.is-mono .bgn-legal-sec h2 { font-size: 20px; }
.is-mono .bgn-legal-num { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--bgn-label-3); font-size: inherit; font-weight: 700; transform: none; }
.is-mono .bgn-legal-note { border-left-color: #1a1a1a; border-radius: 0; background: #f7f7f7; }
.is-mono .bgn-legal-note p { color: #333; }
@media (min-width: 1024px) {
  .is-mono .bgn-legal-grid { grid-template-columns: minmax(0, 720px) 270px; justify-content: space-between; gap: 64px; }
  .is-mono .bgn-legal-toc { order: 2; }
  .is-mono .bgn-legal-toc-label { padding: 0 0 10px 22px; }
  .is-mono .bgn-legal-toc ol { border: 0; border-left: 1px solid var(--bgn-sep); border-radius: 0; }
  .is-mono .bgn-legal-toc a { margin-left: -1px; padding: 7px 0 7px 22px; border-left: 2px solid transparent; border-radius: 0; font-size: 14px; }
  .is-mono .bgn-legal-toc a:hover { background: none; }
  .is-mono .bgn-legal-toc a[aria-current="true"] { border-left-color: #1a1a1a; }
  .is-mono .bgn-legal-end { margin-left: 0; }
  .is-mono .bgn-legal-sec h2 { font-size: 22px; }
}

@keyframes bgnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bgn *, .bgn *::before, .bgn *::after, .bgn-sheet * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
