/*
 * Halaman depan katalog.
 * Aturan: warna netral + SATU aksen (biru merek) hanya untuk elemen interaktif/terpilih.
 * Skala font tetap: 12 / 14 / 16 / 18, judul 28 (22 di HP). Jarak: 4 / 8 / 12 / 16 / 24.
 * Warna diambil dari variabel tema layout publik, jadi ikut mode terang/gelap.
 */
.ct {
    --c-bg: var(--bg, #fff);
    --c-soft: var(--bg2, #f8fafc);
    --c-line: var(--bdr, #e2e8f0);
    --c-ink: var(--tx, #0f172a);
    --c-muted: var(--txM, #64748b);
    --c-accent: var(--pr, #366cff);
    --c-accent-soft: rgba(54, 108, 255, .08);
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 28px;
    --r: 10px;
    --r-sm: 8px;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

[data-theme-mode="dark"] .ct {
    --c-bg: #0f0f0f;
    --c-soft: #161616;
    --c-accent-soft: rgba(54, 108, 255, .14);
}

[x-cloak] { display: none !important; }

/* ── Logo netral (inisial atau gambar asli) ───────── */
.lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    color: var(--c-ink);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .02em;
    overflow: hidden;
}

.lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.lg-lg {
    width: 44px;
    height: 44px;
    font-size: var(--fs-sm);
}

/* Logo merek monokrom: warna ikut teks (terang/gelap) */
.lg-ico {
    display: block;
    width: 58%;
    height: 58%;
    background: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}

/* Logo besar di area gambar kartu */
.lg-thumb {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-lg);
}

.lg-thumb .lg-ico {
    width: 100%;
    height: 100%;
}

.lg-thumb.is-text {
    width: 48px;
    height: 48px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-md);
}

/* ── Hero ─────────────────────────────────────────── */
.ct-hero {
    padding: calc(var(--ct-nav, 70px) + 24px) 0 20px;
    border-bottom: 1px solid var(--c-line);
    text-align: center;
}

.ct-h1 {
    margin: 0 0 8px;
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--c-ink);
}

.ct-lead {
    max-width: 560px;
    margin: 0 auto 16px;
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

.ct-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    height: 44px;
    margin: 0 auto;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    cursor: text;
    transition: border-color .15s, box-shadow .15s;
}

.ct-search:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.ct-search i { color: var(--c-muted); }

.ct-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-sm);
}

.ct-search input::-webkit-search-cancel-button { display: none; }

.ct-search button {
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--c-muted);
}

/* ── Tab ──────────────────────────────────────────── */
.ct-tabbar {
    position: sticky;
    top: var(--ct-stick, 60px);
    z-index: 20;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-bg);
}

.ct-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ct-tabs::-webkit-scrollbar { display: none; }

.ct-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
}

.ct-tab small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 500;
}

.ct-tab:hover { color: var(--c-ink); }

.ct-tab.is-on { color: var(--c-ink); }

.ct-tab.is-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--c-accent);
}

.ct-body {
    padding: 16px 0 32px;
    min-height: 60vh;
}

/* ── Kontrol bersama: chip, input, tombol ─────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}

.chip:hover { border-color: var(--c-muted); }

.chip.is-on {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ct-btn-primary {
    background: var(--c-accent);
    color: #fff;
}

.ct-btn-primary:hover {
    background: var(--prH, #1f55e6);
    color: #fff;
}

.ct-btn-ghost {
    border-color: var(--c-line);
    background: var(--c-bg);
    color: var(--c-ink);
}

.ct-btn-ghost:hover { border-color: var(--c-muted); color: var(--c-ink); }

.ct-btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: var(--fs-xs);
}

.mk-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
}

/* ── Produk digital: marketplace ──────────────────── */
.mk {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.mk-filter {
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    padding: 4px 16px 8px;
}

.mk-filter-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
}

.mk-filter-hd b {
    margin-right: auto;
    font-size: var(--fs-sm);
}

.mk-fgroup {
    padding: 12px 0;
    border-top: 1px solid var(--c-line);
}

.mk-flabel {
    margin-bottom: 4px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.mk-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 0;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.mk-check input {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--c-accent);
}

.mk-check span { flex: 1; }

.mk-check small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.mk-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mk-range input {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-xs);
}

.mk-range input:focus {
    outline: 0;
    border-color: var(--c-accent);
}

.mk-range span { color: var(--c-muted); }

.mk-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mk-quick .chip {
    height: 26px;
    padding: 0 10px;
}

.mk-filter-ft {
    display: flex;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--c-line);
}

.mk-filter-ft .ct-btn { flex: 1; }

.mk-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 12px;
}

.mk-count { color: var(--c-muted); }

.mk-count b {
    color: var(--c-ink);
    font-weight: 600;
}

.mk-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 auto;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.mk-sort select,
.mk-fbtn {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.mk-fbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--c-accent);
    color: #fff;
    font-size: 11px;
}

.mk-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.mk-chips .chip { height: 26px; padding: 0 8px 0 10px; }

.mk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.mk-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-ink);
    text-align: left;
    overflow: hidden;
    transition: border-color .15s;
}

.mk-card:hover { border-color: var(--c-accent); }

.mk-card:focus-visible {
    outline: 0;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.mk-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-soft);
}

.mk-thumb em {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--c-accent);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
}

.mk-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 12px 12px;
}

.mk-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.35;
}

.mk-sub {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.mk-price {
    margin-top: 8px;
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.2;
}

.mk-price small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 400;
}

.mk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.mk-backdrop { display: none; }

/* ── Top up & tagihan ─────────────────────────────── */
.tp-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tp-pills::-webkit-scrollbar { display: none; }

.tp-group + .tp-group { margin-top: 24px; }

.tp-hd {
    margin: 0 0 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-ink);
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.tp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-ink);
    text-decoration: none;
    transition: border-color .15s;
}

.tp-item:hover {
    border-color: var(--c-accent);
    color: var(--c-ink);
}

.tp-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tp-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.tp-price {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

/* ── Sosial media ─────────────────────────────────── */
.sm-list {
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    overflow: hidden;
}

.sm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--c-ink);
    text-decoration: none;
}

.sm-row + .sm-row { border-top: 1px solid var(--c-line); }

.sm-row:hover {
    background: var(--c-soft);
    color: var(--c-ink);
}

.sm-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sm-name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.sm-types {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.sm-types span + span::before {
    content: "·";
    margin: 0 6px;
}

.sm-count {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    white-space: nowrap;
}

.sm-price {
    min-width: 120px;
    text-align: right;
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
}

.sm-price small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 400;
}

.sm-go { color: var(--c-muted); }

.sm-note {
    margin: 8px 0 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

/* ── Umum ─────────────────────────────────────────── */
.ct-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--c-muted);
}

.ct-empty i { font-size: 24px; }

.ct-empty p { margin: 8px 0 12px; }

.ct-steps {
    padding: 32px 0 40px;
    border-top: 1px solid var(--c-line);
}

.ct-h2 {
    margin: 0 0 12px;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--c-ink);
}

.ct-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ct-step-list li {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
}

.ct-step-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-soft);
    color: var(--c-ink);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.ct-step-list b {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ct-step-list p {
    margin: 2px 0 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Detail produk (modal) ────────────────────────── */
.ct-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(2, 6, 23, .5);
}

.ct-sheet {
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 16px;
    border-radius: 14px 14px 0 0;
    background: var(--c-bg);
    color: var(--c-ink);
}

@media (min-width: 640px) {
    .ct-modal {
        align-items: center;
        padding: 24px;
    }

    .ct-sheet { border-radius: 14px; }
}

.ct-sheet-hd {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-sheet-hd h3 {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 700;
}

.ct-sheet-hd small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    align-self: flex-start;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
}

.ct-desc {
    margin: 12px 0 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-vlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ct-v {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
}

.ct-v.is-dim { opacity: .45; }

.ct-v-main {
    flex: 1;
    min-width: 0;
}

.ct-v-name {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ct-v-tags {
    margin-top: 2px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-v-tags span + span::before {
    content: "·";
    margin: 0 6px;
}

.ct-v-tags span[style*="display: none"] + span::before { content: none; }

.ct-v details { margin-top: 6px; }

.ct-v summary {
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
}

.ct-v details p {
    margin: 6px 0 0;
    white-space: pre-line;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-v-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}

.ct-v-buy b {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.ct-note {
    margin: 12px 0 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ct-note a {
    color: var(--c-accent);
    font-weight: 600;
}

/* ── Tablet & HP ──────────────────────────────────── */
@media (max-width: 991.98px) {
    .mk { grid-template-columns: minmax(0, 1fr); }

    /* Filter jadi panel dari bawah */
    .mk-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1990;
        background: rgba(2, 6, 23, .5);
    }

    .mk-filter {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1995;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 14px 14px 0 0;
        border-bottom: 0;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform .2s ease, visibility .2s;
    }

    .mk-filter.is-open {
        transform: none;
        visibility: visible;
    }

    .mk-filter-ft {
        position: sticky;
        bottom: -8px;
        margin: 0 -16px -8px;
        padding: 12px 16px;
        background: var(--c-bg);
    }

    .mk-filter .mk-check { padding: 6px 0; }

    .ct-step-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .ct {
        --fs-xl: 22px;
    }

    .ct-hero { padding: calc(var(--ct-nav, 70px) + 8px) 0 12px; }

    .ct-body { padding-top: 12px; padding-bottom: 20px; }

    .gt-card { padding: 12px; }
    .gt-layout { gap: 12px; }
    .gt-aside { margin-top: 12px; }
    .gt-main > .gt-card + .gt-card { margin-top: 8px; }
    .gt-opt { min-height: 52px; padding: 8px 10px; }
    .gt-plan { padding: 8px 12px; }
    .gt-title { gap: 10px; }
    .ck-steps { margin-bottom: 8px; }

    .ct-tabs {
        justify-content: flex-start;
        gap: 18px;
    }

    .ct-tab { flex-shrink: 0; }

    .ct-tab small { display: none; }

    .mk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mk-thumb { height: 64px; }

    .mk-body { padding: 8px 10px 10px; }

    .mk-sort select { max-width: 150px; }

    .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tp-item { padding: 10px; }

    .sm-row {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 12px;
    }

    .sm-main { flex-basis: calc(100% - 48px); }

    .sm-count { margin-left: 48px; }

    .sm-price {
        min-width: 0;
        margin-left: auto;
    }

    .sm-go { display: none; }
}

/* ── Top up tanpa login ───────────────────────────── */
.gt-hero { padding-bottom: 20px; }

/* Halaman top up memakai lebar kontainer yang sama dengan landing; di desktop dua kolom */
.gt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 16px;
    align-items: start;
}

.gt-main > .gt-card + .gt-card { margin-top: 12px; }

.gt-aside {
    position: sticky;
    top: calc(var(--ct-stick, 60px) + 16px);
}

@media (max-width: 991.98px) {
    .gt-layout { grid-template-columns: minmax(0, 1fr); }

    .gt-aside {
        position: static;
        margin-top: 16px;
    }
}

.gt-hero .container { text-align: left; }

.gt-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
}

.gt-back:hover { color: var(--c-ink); }

.gt-hero .ct-h1,
.gt-hero .ct-lead { text-align: left; margin-left: 0; margin-right: 0; }

.gt-card {
    padding: 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    scroll-margin-top: 75px;
}

.gt-card + .gt-card { margin-top: 12px; }

.gt-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.gt-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-soft);
    font-size: var(--fs-xs);
}

/* Keterangan langkah (mis. jumlah nominal yang cocok dengan pencarian) */
.gt-step-n { margin-left: auto; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 500; }

.gt-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.gt-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    text-align: left;
}

.gt-opt:hover:not(:disabled) { border-color: var(--c-muted); }

.gt-opt.is-on {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}

.gt-opt:disabled { opacity: .5; }

.gt-opt-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.3;
}

.gt-opt-price {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-opt.is-on .gt-opt-price { color: var(--c-accent); font-weight: 600; }

.gt-opt small {
    color: var(--c-muted);
    font-size: 11px;
}

.gt-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-sm);
}

.gt-input:focus {
    outline: 0;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.gt-input.is-bad { border-color: #dc2626; }

.gt-label {
    display: block;
    margin: 12px 0 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.gt-label small { color: var(--c-muted); font-weight: 400; }

.gt-err {
    margin-top: 4px;
    color: #dc2626;
    font-size: var(--fs-xs);
}

.gt-sum {
    margin: 0 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
}

.gt-sum > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    font-size: var(--fs-sm);
}

.gt-sum > div + div { border-top: 1px solid var(--c-line); }

.gt-sum dt {
    color: var(--c-muted);
    font-weight: 400;
}

.gt-sum dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.gt-total dd {
    font-size: var(--fs-md);
    font-weight: 700;
}

.gt-warn {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    font-size: var(--fs-xs);
}

.gt-bad-box {
    border-color: #dc2626;
    color: #dc2626;
}

.gt-actions {
    display: flex;
    gap: 8px;
}

.gt-actions .ct-btn-primary { flex: 1; }

.gt-full { width: 100%; }

.gt-note {
    margin: 12px 0 0;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-note a { color: var(--c-accent); font-weight: 600; }

.gt-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-md);
}

.gt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-muted);
}

.st-ok .gt-dot { background: #16a34a; }
.st-bad .gt-dot { background: #dc2626; }
.st-warn .gt-dot,
.st-info .gt-dot { background: var(--c-accent); }

@media (max-width: 575.98px) {
    .gt-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Top up game: judul, form akun, metode bayar ──── */
.gt-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gt-title .ct-h1 { margin-bottom: 2px; }

.gt-row {
    display: flex;
    gap: 12px;
}

.gt-col { flex: 1; min-width: 0; }

.gt-col-sm { flex: 0 0 38%; }

.gt-nick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 12px;
    font-size: var(--fs-xs);
}

.gt-ok { color: #16a34a; font-weight: 600; }
.gt-bad { color: #dc2626; font-weight: 600; }
.gt-muted { color: var(--c-muted); }

.gt-promo {
    margin-top: 2px;
    color: var(--c-accent);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.gt-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gt-method {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    cursor: pointer;
}

.gt-method input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--c-accent);
}

.gt-method.is-on {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}

.gt-method.is-off { opacity: .6; cursor: default; }

.gt-method-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
}

.gt-method-main small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    line-height: 1.4;
}

.gt-method-main small a { color: var(--c-accent); font-weight: 600; }

.gt-method > i { color: var(--c-muted); font-size: var(--fs-lg); }

.gt-pin {
    letter-spacing: .4em;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .gt-methods { grid-template-columns: minmax(0, 1fr); }

    .gt-row { flex-direction: column; }

    .gt-col-sm { flex: 1; }
}

.gt-search { margin: 0 0 20px; max-width: none; }

a.gt-method { color: var(--c-ink); text-decoration: none; }

a.gt-method:hover { border-color: var(--c-accent); color: var(--c-ink); }

/* Produk yang tidak bisa dibeli: tetap tampil, redup, dengan alasan */
.mk-card.is-off { opacity: .6; }

.mk-card.is-off:hover { border-color: var(--c-line); }

.mk-off {
    color: var(--c-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ct-v-buy b.is-off { color: var(--c-muted); }

.ct-v-off {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.ct-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 12px 0;
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .ct-tab-link { display: none; }
}

/* Pilihan paket (akun premium / Jaspay) */
.gt-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gt-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    text-align: left;
}

.gt-plan:hover:not(:disabled) { border-color: var(--c-muted); }

.gt-plan.is-on {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}

.gt-plan:disabled { opacity: .55; }

.gt-plan-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gt-plan-main b {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.gt-plan-main small {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-plan-main small.gt-bad { color: #dc2626; font-weight: 600; }

.gt-plan-price {
    flex-shrink: 0;
    font-size: var(--fs-md);
    font-weight: 700;
}

.gt-terms { margin-top: 12px; }

.gt-terms summary {
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
}

.gt-terms div {
    margin-top: 8px;
    white-space: pre-line;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    max-height: 240px;
    overflow-y: auto;
}

/* Data akun di halaman status */
.gt-acc {
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
}

.gt-acc + .gt-acc { margin-top: 8px; }

.gt-acc-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-acc .chip { height: 26px; padding: 0 10px; }

.gt-acc code {
    display: block;
    padding: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    white-space: pre-wrap;
    word-break: break-all;
}

.gt-flabel {
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.gt-terms-body {
    margin-top: 4px;
    white-space: pre-line;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    max-height: 200px;
    overflow-y: auto;
}

/* ── Keranjang: stepper jumlah, laci, halaman checkout, bilah beli, status ───── */
.qty {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
}

.qty button {
    width: 32px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-md);
    line-height: 1;
}

.qty button:hover:not(:disabled) { background: var(--c-soft); }
.qty button:disabled { opacity: .35; cursor: default; }

.qty span {
    min-width: 28px;
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ct-v-act { display: flex; gap: 6px; }

.gt-trust {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--c-line);
    list-style: none;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-trust li { display: flex; align-items: center; gap: 8px; }
.gt-trust i { font-size: var(--fs-sm); }

/* Laci keranjang */
html.cd-lock { overflow: hidden; }

.cd-back {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(2, 6, 23, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.cd-back.is-open { opacity: 1; pointer-events: auto; }

.cd-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2101;
    display: flex;
    flex-direction: column;
    width: 400px;
    max-width: 100%;
    border-left: 1px solid var(--c-line);
    background: var(--c-bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
}

.cd-panel.is-open { transform: none; visibility: visible; }

.cd-hd {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--c-line);
    font-size: var(--fs-lg);
}

.cd-hd span { color: var(--c-muted); font-weight: 400; }

.cd-msg {
    padding: 8px 16px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-soft);
    font-size: var(--fs-xs);
}

.cd-list {
    flex: 1;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.cd-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-line);
}

.cd-main { min-width: 0; }

.cd-name {
    display: block;
    overflow: hidden;
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-main small { display: block; color: var(--c-muted); font-size: var(--fs-xs); }

.cd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.cd-del,
.ck-del {
    border: 0;
    background: transparent;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.cd-del:hover,
.ck-del:hover { color: #dc2626; }

.cd-ft {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--c-line);
}

.cd-sum { display: flex; justify-content: space-between; font-size: var(--fs-md); }
.cd-ft small { color: var(--c-muted); font-size: var(--fs-xs); text-align: center; }

.cd-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--c-muted);
    text-align: center;
}

.cd-empty i { font-size: 32px; }
.cd-empty p { margin: 0; }

/* Checkout */
.ck-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.ck-steps li { display: inline-flex; align-items: center; gap: 6px; }

.ck-steps li + li::before {
    content: "";
    width: 24px;
    height: 1px;
    margin-right: 2px;
    background: var(--c-line);
}

.ck-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
}

.ck-steps .is-on span { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.ck-steps .is-now { color: var(--c-ink); }

.ck-list { margin: 0; padding: 0; list-style: none; }

.ck-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0;
}

.ck-item + .ck-item { border-top: 1px solid var(--c-line); }
.ck-item:first-child { padding-top: 0; }
.ck-item.is-off { opacity: .65; }

.ck-name { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.ck-name:hover { color: var(--c-accent); }
.ck-sub { color: var(--c-muted); }

.ck-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.ck-tags span {
    padding: 0 8px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.ck-info .gt-input { margin-top: 4px; }

.ck-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.ck-side b { font-size: var(--fs-md); }
.ck-side small { margin-top: -4px; color: var(--c-muted); font-size: var(--fs-xs); }

.ck-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .ck-item { grid-template-columns: auto minmax(0, 1fr); }

    .ck-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ck-side small { display: none; }
}

/* Detail produk: kotak beli */
.pd-price b { font-size: var(--fs-lg); }
.pd-price small { color: var(--c-muted); }
.pd-pick { margin-top: 2px; color: var(--c-muted); }

.pd-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.pd-bar { display: none; }

@media (max-width: 991.98px) {
    .gt:has(.pd-bar) { padding-bottom: 72px; }

    .pd-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1500;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--c-line);
        background: var(--c-bg, #fff);
        color: var(--c-ink);
    }

    .pd-bar > div { flex: 1; min-width: 0; line-height: 1.2; }
    .pd-bar small { display: block; color: var(--c-muted); font-size: var(--fs-xs); }
    .pd-bar b { font-size: var(--fs-md); }
}

/* Status: garis waktu, rincian keranjang */
.st-copy { margin-left: 8px; height: 26px; cursor: pointer; }

.tl {
    display: flex;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tl li {
    position: relative;
    flex: 1;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-align: center;
}

.tl li + li::before {
    content: "";
    position: absolute;
    top: 11px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: var(--c-line);
}

.tl span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto 4px;
    border: 2px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-bg);
    font-size: var(--fs-sm);
}

.tl .done,
.tl .now { color: var(--c-ink); }
.tl .done span { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.tl .done::before { background: var(--c-accent); }
.tl .now span { border-color: var(--c-accent); color: var(--c-accent); }
.tl .now::before { background: var(--c-accent); }
.tl .bad { color: #dc2626; }
.tl .bad span { border-color: #dc2626; background: #dc2626; color: #fff; }
.tl .bad::before { background: #dc2626; }
.tl .warn span { border-color: #d97706; color: #d97706; }
.tl .warn::before { background: #d97706; }
.tl .now:not(.done) span i { visibility: hidden; }
.tl li:not(.done):not(.bad):not(.warn) span i { visibility: hidden; }

/* Nada garis waktu mengikuti kepala kartu status: langkah yang sedang berjalan tetap sewarna statusnya,
   bukan selalu biru — supaya "diproses", "sebagian", dan "gagal" langsung terbaca dari satu warna. */
.tl-ok .now span,
.tl-ok .now::before { border-color: #16a34a; }
.tl-ok .now span { color: #16a34a; background: var(--c-bg); }
.tl-ok .now::before { background: #16a34a; }
.tl-bad .done span,
.tl-bad .done::before { border-color: #dc2626; }
.tl-bad .done span { background: #dc2626; }
.tl-bad .done::before { background: #dc2626; }
.tl-warn .now span { border-color: #d97706; }
.tl-warn .now span { color: #d97706; }
.tl-warn .now::before { background: #d97706; }


.st-items {
    margin: 12px 0 0;
    padding: 0;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    list-style: none;
}

.st-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
}

.st-items li + li { border-top: 1px solid var(--c-line); }
.st-items small { display: block; color: var(--c-muted); font-size: var(--fs-xs); }
/* Token / SN per produk di keranjang: dibaca sebagai hasil, bukan sebagai keterangan */
.st-items .st-sn {
    margin-top: 2px;
    padding: 2px 0;
    color: var(--c-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .3px;
    word-break: break-all;
    user-select: all;
}


.st-chip {
    padding: 0 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.st-chip.st-ok { color: #16a34a; }
.st-chip.st-bad { color: #dc2626; }
.st-chip.st-warn { color: #d97706; }
.st-chip.st-info { color: var(--c-accent); }

@media (max-width: 575.98px) {
    .st-items li { grid-template-columns: minmax(0, 1fr) auto; }
    .st-items li > b { grid-column: 1 / -1; }
    .cd-panel { width: 100%; }
}

/* Ringkasan keranjang: nominal tidak terpotong ke baris baru */
.ck .gt-sum dd { white-space: nowrap; }
.ck .gt-sum dt { min-width: 0; }

/* ══ Tampilan modern: blur, animasi lembut, kartu & daftar produk, hero 3D ═══════ */
html.ct-lock { overflow: hidden; }

@keyframes soft-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes soft-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes sheet-in {
    from { opacity: 0; transform: translateY(28px) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* Hero 3D: kanvas di belakang teks, memudar ke bawah */
.ct-hero.has-3d { position: relative; overflow: hidden; }

.ct-hero > .container { position: relative; z-index: 1; }

.hero3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.hero3d.is-ready { opacity: .95; }

@media (max-width: 575.98px) {
    .gt-hero .hero3d { display: none; } /* halaman detail: tanpa 3D di HP */
}

.ct-hero > .container > * { animation: soft-in .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.ct-hero > .container > :nth-child(2) { animation-delay: .07s; }
.ct-hero > .container > :nth-child(3) { animation-delay: .14s; }

/* Kartu & ubin: muncul pelan, naik sedikit saat disorot */
.mk-card,
.tp-item,
.sm-row {
    animation: soft-in .45s cubic-bezier(.2, .7, .2, 1) backwards;
    transition: border-color .15s, translate .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s;
}

.mk-grid > :nth-child(2), .tp-grid > :nth-child(2) { animation-delay: .03s; }
.mk-grid > :nth-child(3), .tp-grid > :nth-child(3) { animation-delay: .06s; }
.mk-grid > :nth-child(4), .tp-grid > :nth-child(4) { animation-delay: .09s; }
.mk-grid > :nth-child(5), .tp-grid > :nth-child(5) { animation-delay: .12s; }
.mk-grid > :nth-child(6), .tp-grid > :nth-child(6) { animation-delay: .15s; }
.mk-grid > :nth-child(n+7), .tp-grid > :nth-child(n+7) { animation-delay: .18s; }

@supports (animation-timeline: view()) {
    .mk-card,
    .tp-item {
        animation: soft-in linear backwards;
        animation-timeline: view();
        animation-range: entry 0% entry 45%;
        animation-delay: 0s !important;
    }
}

@media (hover: hover) {
    .mk-card:hover,
    .tp-item:hover {
        translate: 0 -2px;
        box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-card, .tp-item, .sm-row, .ct-hero > .container > *, .ct-modal, .ct-sheet, .cd-panel { animation: none !important; transition: none !important; }
    .hero3d { transition: none; }
}

/* Modal detail produk: latar kabur, lembar naik pelan */
.ct-modal {
    background: rgba(8, 12, 24, .38);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    overscroll-behavior: contain;
}

.ct-sheet {
    max-width: 620px;
    padding: 20px;
    border: 1px solid var(--c-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 30px 80px -24px rgba(2, 6, 23, .55);
    overscroll-behavior: contain;
    animation: sheet-in .32s cubic-bezier(.2, .8, .2, 1) backwards;
}

@media (min-width: 640px) {
    .ct-sheet { border-bottom: 1px solid var(--c-line); border-radius: 18px; }
}

.ct-sheet-hd { gap: 14px; }
.ct-sheet-hd .lg-lg { width: 56px; height: 56px; border-radius: 14px; }
.ct-sheet-hd h3 { font-size: var(--fs-lg); line-height: 1.25; }

.ct-desc { line-height: 1.55; }

.ct-v {
    align-items: center;
    background: var(--c-soft);
    border-color: transparent;
    transition: border-color .15s, background-color .15s;
}

.ct-v:hover { border-color: var(--c-accent); }
.ct-v-name { font-size: var(--fs-md); }
.ct-v-buy { align-items: flex-end; justify-content: center; }
.ct-v-buy b { font-size: var(--fs-md); }

.ct-x { transition: border-color .15s, color .15s; }
.ct-x:hover { border-color: var(--c-accent); color: var(--c-ink); }

/* Kabur latar untuk panel lain */
.mk-backdrop,
.cd-back {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cd-panel { box-shadow: -24px 0 60px -24px rgba(2, 6, 23, .5); }

/* Kartu produk: label stok di gambar, meta satu baris */
.mk-stock {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: .01em;
}

.mk-stock i { font-size: 9px; }

.mk-stock.is-low { border-color: rgba(220, 38, 38, .22); background: rgba(239, 68, 68, .1); color: #dc2626; }
[data-theme-mode="dark"] .mk-stock.is-low { border-color: rgba(248, 113, 113, .25); background: rgba(248, 113, 113, .12); color: #f87171; }

/* Label "Otomatis" (top up, pulsa, game): emas supaya tidak terlihat mati seperti label abu-abu */
.mk-stock.is-auto { border-color: rgba(202, 138, 4, .3); background: rgba(250, 204, 21, .16); color: #a16207; }
.mk-stock.is-auto i { color: #ca8a04; }
[data-theme-mode="dark"] .mk-stock.is-auto { border-color: rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .14); color: #facc15; }
[data-theme-mode="dark"] .mk-stock.is-auto i { color: #facc15; }

.mk-meta {
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    gap: 0;
}

.mk-meta > span + span::before { content: "·"; margin: 0 6px; }

.mk-view {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.mk-view button {
    width: 34px;
    height: 32px;
    border: 0;
    background: var(--c-bg);
    color: var(--c-muted);
}

.mk-view button + button { border-left: 1px solid var(--c-line); }
.mk-view button.is-on { background: var(--c-accent-soft); color: var(--c-accent); }

/* Logo merek asli: tampil utuh (tidak terpotong) di ubin putih */
.lg img { object-fit: contain; }
.tp-item .lg { width: 44px; height: 44px; border-radius: 10px; }
.tp-n { margin-left: 6px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }

/* Tampilan daftar: satu baris per produk, mudah dipindai */
.mk-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }

.mk-grid.is-list .mk-card { flex-direction: row; align-items: center; }

.mk-grid.is-list .mk-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-right: 1px solid var(--c-line);
    border-bottom: 0;
}

.mk-grid.is-list .mk-thumb { padding-bottom: 14px; }
.mk-grid.is-list .lg-thumb { width: 34px; height: 34px; }
.mk-grid.is-list .mk-thumb em { display: none; }
.mk-grid.is-list .mk-stock { top: auto; right: auto; bottom: 4px; left: 50%; translate: -50% 0; font-size: 10px; line-height: 16px; white-space: nowrap; }

.mk-grid.is-list .mk-body {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "sub meta";
    align-items: center;
    gap: 2px 16px;
    padding: 10px 16px;
}

.mk-grid.is-list .mk-name { grid-area: name; }
.mk-grid.is-list .mk-sub { grid-area: sub; }
.mk-grid.is-list .mk-price { grid-area: price; margin: 0; text-align: right; }
.mk-grid.is-list .mk-meta { grid-area: meta; justify-content: flex-end; margin: 0; padding: 0; }

@media (max-width: 575.98px) {
    .mk-grid.is-list .mk-thumb { flex-basis: 64px; width: 64px; height: 64px; }
    .mk-grid.is-list .mk-body { grid-template-areas: "name name" "sub price" "meta meta"; padding: 8px 12px; gap: 2px 8px; }
    .mk-grid.is-list .mk-meta { justify-content: flex-start; }
    .ct-sheet { padding: 16px; }
}

/* Nomor HP: operator terdeteksi otomatis */
.pn-field { position: relative; width: 100%; }
.pn-field .gt-input,
.pn-field input {
    width: 100%;
    height: 44px;
    padding: 0 135px 0 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-md);
    letter-spacing: .02em;
    transition: border-color .15s, box-shadow .15s;
}

.pn-field input:focus,
.pn-field .gt-input:focus {
    outline: 0;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.pn-op {
    position: absolute;
    top: 50%;
    right: 6px;
    translate: 0 -50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 160px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--c-soft);
    color: var(--c-muted);
    font-size: var(--fs-xs);
    line-height: 1.25;
    animation: soft-fade .25s ease both;
    pointer-events: none;
    z-index: 2;
}

.pn-op.is-ok {
    background: var(--c-accent-soft);
    color: var(--c-accent);
    border: 1px solid rgba(54, 108, 255, .15);
}

.pn-op.is-bad {
    background: rgba(220, 38, 38, .08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .15);
}

.pn-op-val {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.pn-op.is-ok { padding: 3px 10px 3px 4px; }

.pn-op .pn-lg {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 1px;
    border: 1px solid rgba(0, 0, 0, .06);
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .pn-field .gt-input,
    .pn-field input {
        height: 42px;
        font-size: 13.5px;
        padding-right: 110px;
    }
    .pn-op {
        right: 5px;
        padding: 2px 7px;
        font-size: 11px;
        max-width: 120px;
    }
    .pn-op .pn-lg {
        width: 22px;
        height: 22px;
    }
}

/* Hero: pendar biru lembut di kedua sisi + titik-titik halus yang memudar */
.ct-hero.has-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 230px at 12% 72%, rgba(54, 108, 255, .17), transparent 70%),
        radial-gradient(560px 230px at 88% 72%, rgba(54, 108, 255, .17), transparent 70%),
        radial-gradient(rgba(54, 108, 255, .16) 1px, transparent 1.3px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}

.ct-hl { color: var(--c-accent); }

@media (max-width: 575.98px) {
    .ct-hero.has-3d::before { opacity: .6; }
}

/* Isi pulsa cepat di landing */
.pn-quick {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-soft);
}

.pn-quick label { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }

.pn-quick-row { display: flex; align-items: center; gap: 8px; }

.pn-quick-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-md);
    letter-spacing: .02em;
}

.pn-quick-row input:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.pn-quick-row .pn-op { position: static; translate: none; max-width: none; flex-shrink: 0; }
.pn-quick-row .ct-btn { height: 44px; }
.pn-quick-row .ct-btn:disabled { opacity: .5; }

@media (max-width: 575.98px) {
    .pn-quick-row { flex-wrap: wrap; }
    .pn-quick-row input { flex-basis: 100%; }
    .pn-quick-row .pn-op { flex: 1; }
}

/* Layanan lengkap per merek di tab Top Up */
.tp-sec + .tp-sec { margin-top: 20px; }

.tp-sec-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: var(--fs-sm);
}

.tp-sec-hd a { margin-left: auto; color: var(--c-accent); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.tp-sec-hd .tp-sec-lg { width: 32px; height: 32px; border-radius: 8px; }

.tp-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
}

.tp-pills { margin-top: 12px; }
.pn-quick { margin-bottom: 0; }
.pn-quick-row .pn-op { flex: 0 1 auto; }

/* Ubin nominal: nominal besar + harga, tanpa logo berulang dan tanpa teks terpotong */
.tp-grid.tp-svcs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.tp-svc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-ink);
    text-decoration: none;
    animation: soft-in .45s cubic-bezier(.2, .7, .2, 1) backwards;
    transition: border-color .15s, translate .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s, background-color .15s;
}

.tp-svc:hover { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-ink); }

@media (hover: hover) {
    .tp-svc:hover { translate: 0 -2px; box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .35); }
}

.tp-svc-n { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.tp-svc-p { color: var(--c-accent); font-size: var(--fs-sm); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .tp-svc { animation: none; transition: none; } }

/* ── Rapikan tipografi: skala 12 / 14 / 16 / 18, bobot 400 / 600 / 700 ───────── */
.ct-tab { align-items: baseline; line-height: 1.4; }
.ct-tab small { font-size: var(--fs-xs); font-weight: 400; line-height: 1; }
.ct-tab:focus { outline: 0; }
.ct-tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; border-radius: 4px; }
.ct-tab.is-on small { color: var(--c-muted); }

.gt-label small { font-size: var(--fs-xs); }

.ct .fs-13,
.ct .pg-info { font-size: var(--fs-sm) !important; font-weight: 400; }
.ct .btn, .ct .form-control, .ct .form-select { font-size: var(--fs-sm); }

/* Judul kecil huruf kapital seragam: 12px / 700 / jarak huruf sama */
.tp-hd, .mk-flabel { letter-spacing: .04em; }
.tp-hd { font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; }

/* ══ Terlaris & Baru: kartu produk ═══════════════════════════════════════════ */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

.rc {
    display: flex;
    flex-direction: column;
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-ink);
    text-decoration: none;
    overflow: hidden;
    animation: soft-in .45s cubic-bezier(.2, .7, .2, 1) backwards;
    transition: border-color .15s, translate .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s;
}

.rc:hover { border-color: var(--c-accent); color: var(--c-ink); }

@media (hover: hover) {
    .rc:hover { translate: 0 -2px; box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .35); }
}

.rc-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-soft);
    overflow: hidden;
}

.rc-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-media .lg { width: 52px; height: 52px; border-radius: 14px; }

.rc-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--c-accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-style: normal;
    font-weight: 700;
}

.rc-tag {
    position: absolute;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    font-size: var(--fs-xs);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }

.rc-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.35;
}

.rc-sub { color: var(--c-muted); font-size: var(--fs-xs); }
.rc-price { margin-top: 6px; font-size: var(--fs-md); font-weight: 700; }
.rc-price small { color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }

@media (max-width: 575.98px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Top up: satu kartu per merek, nominal tersusun rapi dan mengisi lebar */
.tp-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 12px;
    align-items: stretch;
}

.tp-brands.is-one { grid-template-columns: minmax(0, 1fr); }

.tp-bcard {
    padding: 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    animation: soft-in .45s cubic-bezier(.2, .7, .2, 1) backwards;
}

.tp-bhd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tp-bhd .lg { width: 36px; height: 36px; border-radius: 9px; }
.tp-bname { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tp-bname b { font-size: var(--fs-sm); font-weight: 600; }
.tp-bname small { color: var(--c-muted); font-size: var(--fs-xs); }

.tp-ball {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--c-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tp-bcard .tp-grid.tp-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-brands.is-one .tp-grid.tp-svcs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tp-bcard .tp-svc { min-height: 56px; padding: 8px 12px; }
.tp-bcard .tp-more { margin-top: 10px; }

.pn-card .pn-quick { margin: 0 0 12px; padding: 0; border: 0; background: none; }
.pn-card .tp-pills { margin-top: 0; }
.pn-card .tp-grid.tp-svcs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

@media (max-width: 575.98px) {
    .tp-brands { grid-template-columns: minmax(0, 1fr); }
    .tp-bcard .tp-grid.tp-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Daftar paket operator: pencarian + jenis paket */
.pn-filter { margin: 0 0 12px; }

.pn-filter input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-ink);
    font-size: var(--fs-sm);
}

.pn-filter input:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.pn-filter .tp-pills { margin: 8px 0 0; flex-wrap: wrap; overflow: visible; }
.chip small { margin-left: 2px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }
.chip.is-on small { color: inherit; opacity: .8; }

/* Deretan tab panjang: tautan "Harga per tier" tetap terlihat di kanan saat tab digeser */
.ct-tab-link {
    position: sticky;
    right: 0;
    padding-left: 16px;
    background: var(--c-bg);
    box-shadow: -14px 0 12px -2px var(--c-bg);
}

/* ══ UX pesan: pencarian dengan saran, tab bisa digeser, langkah pesan ═════════ */
.sg-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.sg-wrap .ct-search { max-width: none; }

.sg {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .4);
    text-align: left;
}

.sg a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--r-sm);
    color: var(--c-ink);
    text-decoration: none;
}

.sg li.is-on a, .sg a:hover { background: var(--c-accent-soft); }

.sg-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-line);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.sg-ic img { width: 100%; height: 100%; object-fit: cover; }
.sg-ic b { color: var(--c-muted); font-size: var(--fs-xs); font-weight: 700; }
.sg-tx { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.sg-tx b { overflow: hidden; font-size: var(--fs-sm); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sg-tx small { color: var(--c-muted); font-size: var(--fs-xs); }
.sg a > i { color: var(--c-muted); font-size: var(--fs-xs); }
.sg-none { padding: 12px; color: var(--c-muted); font-size: var(--fs-sm); }

/* Deretan tab: bisa digeser dengan panah, tepi memudar */
.ct-tabs-wrap { position: relative; }
.ct-tabs-wrap .ct-tabs { padding-right: 8px; }

.ct-tabs-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    translate: 0 -50%;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-ink);
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .35);
}

.ct-tabs-nav.prev { left: 0; }
.ct-tabs-nav.next { right: 0; }
@media (hover: hover) and (min-width: 768px) { .ct-tabs-nav { display: inline-flex; } }

.ct-tabs-wrap::before,
.ct-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 36px;
    pointer-events: none;
}

.ct-tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--c-bg), transparent); opacity: 0; transition: opacity .2s; }
.ct-tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--c-bg), transparent); opacity: 0; transition: opacity .2s; }
.ct-tabs-wrap.has-l::before, .ct-tabs-wrap.has-r::after { opacity: 1; }

/* Langkah memesan */
.how {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.how li { display: inline-flex; align-items: center; gap: 6px; }

.how li b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-weight: 700;
}

.how .how-note { margin-left: auto; color: var(--c-accent); font-weight: 600; }
@media (max-width: 575.98px) { .how { gap: 6px 12px; } .how .how-note { margin-left: 0; } }

/* Cari nominal di halaman pesan (daftar panjang) */
.gt-nsearch { max-width: none; height: 40px; margin: 0 0 12px; }
.pd-bar > div { overflow: hidden; }
.pd-bar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Operator, panduan, dan deskripsi produk */
.pv-block { margin-top: 4px; }
.pv-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 10px;
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .01em;
}
.pv-hd i {
    color: var(--c-accent);
    font-size: 13px;
    flex-shrink: 0;
}
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

.pv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    color: var(--c-ink);
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.pv:hover { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-ink); }
.pv .lg { width: 40px; height: 40px; border-radius: 10px; }
.pv-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pv-tx b { font-size: var(--fs-sm); font-weight: 600; }
.pv-tx small { color: var(--c-muted); font-size: var(--fs-xs); }

.tp-svc-d {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 400;
    line-height: 1.35;
}

/* Halaman pesan: deskripsi per nominal dan detail produk terpilih */
.gt-opt-d { margin-top: 2px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; line-height: 1.35; }

.gt-detail {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    font-size: var(--fs-xs);
}

.gt-detail b { display: block; margin-bottom: 2px; font-size: var(--fs-xs); font-weight: 700; }
.gt-detail p { margin: 0; color: var(--c-muted); line-height: 1.45; white-space: pre-line; }

/* Halaman pesan: grid menyesuaikan jumlah nominal, info produk sekali saja */
.gt-options.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gt-options.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .gt-options.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gt-info {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-accent-soft);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.gt-info i { flex-shrink: 0; margin-top: 2px; color: var(--c-accent); }
.gt-main .guide { margin-top: 12px; }
.gt-title .lg-lg { width: 56px; height: 56px; border-radius: 14px; font-size: var(--fs-md); }
.gt-title .lg-lg .bi { font-size: 24px; }

@media (max-width: 575.98px) {
    .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pv { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px; border-radius: var(--r-sm); }
    .pv .lg { width: 32px; height: 32px; border-radius: 8px; }
    .pv-hd { font-size: 11.5px; line-height: 1.35; gap: 5px; margin: 2px 0 8px; }
    .pv-hd i { font-size: 12px; }
    .pv-tx b { font-size: 12.5px; }
    .pv-tx small { font-size: 10.5px; }
}

/* Kartu merek rapi: tinggi baris seragam, kolom nominal menyesuaikan lebar kartu, teks dipotong rapi */
.tp-bcard { display: flex; flex-direction: column; }
.tp-bcard .tp-more { margin-top: auto; padding-top: 10px; }
.tp-bcard .tp-grid.tp-svcs { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.tp-brands.is-one .tp-grid.tp-svcs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tp-bcard .tp-svc { min-height: 64px; justify-content: space-between; }

.tp-svc-n {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tp-svc-d { -webkit-line-clamp: 1; }
@media (max-width: 575.98px) { .tp-bcard .tp-grid.tp-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gambar produk seragam: ikon aplikasi tampil utuh (rounded, bayangan), foto/cover game memenuhi kartu */
.rc-media.is-art {
    background:
        radial-gradient(120% 90% at 50% 0%, var(--c-accent-soft), transparent 70%),
        var(--c-soft);
}

.rc-art {
    position: static !important;
    inset: auto !important;
    width: 84px !important;
    height: 84px !important;
    border-radius: 20px;
    object-fit: cover !important;
    background: #fff;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06);
}

.rc-media.is-art .lg {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: var(--c-bg);
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .4);
}

.rc-media .lg .bi { font-size: 34px; }

.mk-thumb .lg-thumb {
    width: 64px;
    height: 64px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: var(--c-bg);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .4);
}

.mk-thumb .lg-thumb img { border-radius: inherit; }
.mk-thumb .lg-thumb .lg-ico { width: 56%; height: 56%; }

/* Ikon Bootstrap (tagihan, kategori): kotak aksen lembut */
.lg:has(> .bi) { border-color: transparent; background: var(--c-accent-soft); color: var(--c-accent); }
.lg > .bi { font-size: 18px; }
.lg-lg > .bi { font-size: 24px; }
.mk-grid.is-list .mk-thumb .lg-thumb { width: 44px; height: 44px; border-radius: 12px; }

/* Gambar tidak pernah terpotong: cover/foto ditampilkan utuh di atas latar buram dari gambar yang sama */
.rc-media.is-cover { background: var(--c-soft); }

.rc-media.is-cover::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--bg) center / cover no-repeat;
    filter: blur(18px) saturate(1.2);
    opacity: .85;
}

.rc-media.is-cover > img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: contain; }
.sg-ic img { object-fit: contain; }

.rc-tag.is-sold { display: inline-flex; align-items: center; gap: 4px; background: var(--c-accent); }

/* Tombol tampilan kartu/daftar di pojok kanan toolbar */
.mk-view { margin-left: 8px; }
.mk-sort { margin-left: auto; }
@media (max-width: 575.98px) { .mk-view button { width: 32px; } }

/* Kartu merek tunggal (mis. Token PLN): grid 4 kolom, lebih banyak nominal terlihat sekaligus */
.tp-brands.is-one .tp-grid.tp-svcs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .tp-brands.is-one .tp-grid.tp-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rc-art { object-fit: contain !important; padding: 3px; }

/* Hero halaman pesan: jarak atas (di bawah navbar) dan bawah seimbang */
.gt-hero { padding-bottom: 26px; }

/* ══ Pencarian & sortir per tab, pemisah tab ═══════════════════════════════ */
.ct-sep {
    flex-shrink: 0;
    align-self: center;
    width: 1px;
    height: 20px;
    background: var(--c-line);
}

.ct-tabs { gap: 18px; }

.tb { display: flex; margin: 0 0 12px; }

.tb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 360px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    cursor: text;
    transition: border-color .15s, box-shadow .15s;
}

.tb-search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.tb-search > i { color: var(--c-muted); font-size: var(--fs-sm); }

.tb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-sm);
}

.tb-search input::-webkit-search-cancel-button { display: none; }
.tb-search button { border: 0; background: transparent; color: var(--c-muted); padding: 0; line-height: 1; }

.mk-toolbar .tb-search { margin-left: 12px; }

.tp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0 0 8px;
}

.tp-bar .tp-hd { margin: 0; }
.tp-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tp-tools .tb-search { width: 240px; flex: none; }
.tp-tools .mk-sort { margin-left: 0; }

@media (max-width: 575.98px) {
    .tp-tools { width: 100%; margin-left: 0; }
    .tp-tools .tb-search { flex: 1; width: auto; max-width: none; }
    .tb-search { max-width: none; }
    .mk-toolbar .tb-search { order: 9; flex: 1 0 100%; margin: 8px 0 0; }
}

/* ══ Rapikan spasi & tipografi: hero lebih tinggi, teks di tengah, toolbar HP, gambar kartu ═══════════ */
#beranda {
    padding: calc(var(--ct-nav, 70px) + 44px) 0 52px;
}

#beranda .ct-h1 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

#beranda .ct-lead {
    max-width: 660px;
    margin: 0 auto;
    font-size: var(--fs-md);
    line-height: 1.6;
}

/* Judul hero halaman pesan: sedikit lebih besar dan lega */
.gt-hero { padding-top: calc(var(--ct-nav, 70px) + 28px); padding-bottom: 32px; }
.gt-hero .ct-h1 { font-size: 30px; }
.gt-hero .ct-lead { font-size: var(--fs-sm); }

.ct-body { padding-top: 24px; padding-bottom: 40px; }
.mk-toolbar { flex-wrap: wrap; row-gap: 8px; }
.mk-count { white-space: nowrap; }

@media (max-width: 991.98px) {
    #beranda { padding: calc(var(--ct-nav, 70px) + 36px) 0 44px; }
    #beranda .ct-h1 { font-size: 34px; }
}

@media (max-width: 575.98px) {
    #beranda { padding: calc(var(--ct-nav, 64px) + 20px) 0 30px; }
    #beranda .ct-h1 { margin-bottom: 8px; font-size: 28px; line-height: 1.2; }
    #beranda .ct-lead { padding: 0 4px; font-size: var(--fs-sm); line-height: 1.55; margin-bottom: 12px; }

    .gt-hero { padding-top: calc(var(--ct-nav, 64px) + 14px); padding-bottom: 18px; }
    .gt-hero .ct-h1 { font-size: 24px; }
    .gt-hero .ct-lead { font-size: var(--fs-sm); }

    .ct-tab { font-size: 13px; padding: 10px 0; gap: 4px; }
    .ct-tab small { font-size: 11px; }

    .ct-body { padding-top: 14px; padding-bottom: 28px; }

    /* Toolbar produk digital: baris 1 = Filter + jumlah + urutan + tampilan, baris 2 = pencarian penuh */
    .mk-toolbar { gap: 8px; }
    .mk-toolbar .mk-sort { margin-left: auto; }
    .mk-toolbar .mk-sort select { max-width: 132px; font-size: 12px; height: 34px; }
    .mk-toolbar .tb-search { order: 9; flex: 1 0 100%; width: 100%; max-width: none; margin: 0; height: 36px; }
    .mk-toolbar .tb-search input { font-size: 12.5px; }
    .mk-view { margin-left: 0; }

    /* Gambar kartu produk: ruang cukup, tidak menimpa tepi */
    .mk-thumb { height: 88px; }
    .mk-thumb .lg-thumb { width: 56px; height: 56px; border-radius: 14px; }
    .mk-body { padding: 10px 12px 12px; }
}

/* Judul tidak menyisakan satu kata sendirian di baris kedua */
#beranda .ct-h1, #beranda .ct-lead, .gt-hero .ct-h1 { text-wrap: balance; }

/* ══ Skala font produk: lebih kecil dan seragam (nama 13, harga 13-15, keterangan 11-12) ═══════════ */
.tp-svc { gap: 1px; min-height: 56px; padding: 8px 10px; }
.tp-svc-n { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--c-ink); }
.tp-svc-p { font-size: 13px; font-weight: 600; }
.tp-svc-d { font-size: 11px; line-height: 1.3; }
.tp-bname b { font-size: 13px; }
.tp-bname small { font-size: 11px; }
.tp-ball, .tp-more { font-size: 12px; }

.tp-name { font-size: 13px; font-weight: 600; }
.tp-price { font-size: 12px; }
.tp-item { padding: 9px 12px; }

.mk-name { font-size: 13px; }
.mk-sub { font-size: 12px; }
.mk-price { font-size: 15px; }
.mk-price small { font-size: 12px; }
.mk-meta { font-size: 12px; }

.rc-name { font-size: 13px; min-height: 2.6em; }
.rc-sub { font-size: 12px; }
.rc-price { font-size: 14px; }

.gt-opt-name { font-size: 13px; }
.gt-opt-price { font-size: 12px; }
.gt-opt { padding: 9px 12px; min-height: 52px; }
.gt-opt-d { font-size: 11px; }
.gt-plan-main b { font-size: 14px; }

.pv-tx b { font-size: 13px; }
.pv-tx small { font-size: 11px; }

@media (max-width: 575.98px) {
    /* Chips */
    .chip { height: 28px; padding: 0 10px; font-size: 11.5px; }
    .chip small { font-size: 10.5px; }

    /* How steps */
    .how { font-size: 11.5px; gap: 6px 12px; }
    .how li b { width: 18px; height: 18px; font-size: 10.5px; }
    .how .how-note { font-size: 11px; }

    /* Service & product items */
    .tp-svc { min-height: 50px; padding: 6px 8px; gap: 1px; }
    .tp-svc-n { font-size: 12px; line-height: 1.25; }
    .tp-svc-p { font-size: 12.5px; }
    .tp-svc-d { font-size: 10px; line-height: 1.25; }

    .tp-bname b { font-size: 12.5px; }
    .tp-bname small { font-size: 10.5px; }
    .tp-ball, .tp-more { font-size: 11.5px; }

    .tp-name { font-size: 12.5px; }
    .tp-price { font-size: 11.5px; }

    .rc-name, .mk-name { font-size: 12.5px; line-height: 1.3; }
    .rc-price, .mk-price { font-size: 13.5px; }
    .rc-sub, .mk-sub, .mk-meta { font-size: 11px; }

    /* Cara kerja / beli steps */
    .ct-h2 { font-size: 16px; margin-bottom: 10px; }
    .ct-step-list li { padding: 10px 12px; gap: 8px; }
    .ct-step-list b { font-size: 12.5px; }
    .ct-step-list p { font-size: 11px; line-height: 1.4; }

    /* Filter & search inputs */
    .pn-filter input { height: 36px; font-size: 12.5px; }
    .gt-note, .ct-note { font-size: 11px; line-height: 1.4; }
    .ct-terms, .gt-terms-box { font-size: 11px; padding: 8px 10px; }
}

/* Judul hero: baris pertama diam, frasa biru diketik bergantian di baris kedua (rata tengah, tinggi baris tetap). */
.ct-type {
    display: block;
    min-height: 1.2em;
    text-align: center;
    white-space: nowrap;
}

.ct-type-t::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: .88em;
    margin-left: 4px;
    border-radius: 2px;
    background: var(--c-accent);
    vertical-align: -.08em;
    animation: ct-blink 1s steps(1) infinite;
}

@keyframes ct-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-type-t::after { animation: none; } }

/* ══ Bobot & ukuran akhir: judul 700, sub-judul/harga/label 600, isi 400-500; tidak ada teks tebal berlebihan ═══════════ */
.ct-tab { font-weight: 500; }
.ct-tab.is-on { font-weight: 600; }
.ct-h2 { font-weight: 600; }

.mk-price, .rc-price, .hl-price { font-weight: 600; }
.mk-filter-hd b { font-size: 14px; font-weight: 600; }
.gt-plan-price { font-size: 15px; font-weight: 600; }
.gt-plan-main b { font-weight: 600; }
.pd-price b { font-size: 17px; font-weight: 600; }
.cd-hd b { font-size: 16px; font-weight: 600; }
.ck-side b, .cd-row b { font-weight: 600; }

/* lencana angka pada langkah & panduan */
.how li b, .ck-steps span, .gt-step span, .guide-steps b, .tl span, .rc-rank, .rc-tag { font-weight: 600; }

.gt-total dd { font-weight: 600; }
.ct-btn { font-weight: 600; }
.chip { font-weight: 500; }
.chip.is-on { font-weight: 600; }

/* Footer HP: ruang di bawah supaya tombol naik tidak menutupi baris hak cipta */
@media (max-width: 575.98px) { .site-footer { padding-bottom: 4.25rem; } }

/* Syarat & ketentuan: selalu terbuka (dibaca sebelum membayar) */
.gt-terms-box,
.ct-terms {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    font-size: var(--fs-xs);
}

.gt-terms-box b,
.ct-terms b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--c-ink); font-size: var(--fs-xs); font-weight: 600; }
.gt-terms-box b i { color: var(--c-accent); }

.gt-terms-box p,
.ct-terms p {
    margin: 0;
    max-height: 240px;
    overflow-y: auto;
    color: var(--c-muted);
    line-height: 1.5;
    white-space: pre-line;
}

.ct-terms { margin-top: 8px; }

/* Panah geser tab: selalu terlihat (HP juga) selama masih ada tab di luar layar */
.ct-tabs-nav {
    display: inline-flex;
    opacity: 1;
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.ct-tabs-nav.prev { left: 0; }
.ct-tabs-nav.next { right: 0; }

@media (max-width: 767.98px) {
    .ct-tabs-nav { width: 28px; height: 28px; box-shadow: 0 2px 10px rgba(15, 23, 42, .28); }
    .ct-tabs-wrap::before, .ct-tabs-wrap::after { width: 44px; }
}

@media (hover: hover) and (min-width: 768px) {
    .ct-tabs-nav { opacity: 1; }
}

/* Label "Stok habis" / "Ditutup sementara": lencana kecil, bukan teks harga besar */
.mk-price.mk-off {
    align-self: flex-start;
    margin-top: 8px;
    padding: 0 8px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-soft);
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
}

.mk-grid.is-list .mk-price.mk-off { align-self: center; justify-self: end; margin: 0; }
.mk-card.is-off { opacity: .75; }

/* alasan tidak tersedia di tempat lain: seragam kecil */
.ct-v-off, .gt-plan-main small.gt-bad, .gt-opt small { font-size: 11px; }
.gt-opt-price { font-size: 12px; }

/* ══ HP: baris sosial media rapi (ikon | nama + jenis 1 baris + jumlah | harga) ═══════════ */
.sm-price { font-weight: 600; }
.sm-types { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 575.98px) {
    .sm-row {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-areas: "ico main price" "ico count price";
        align-items: center;
        gap: 1px 12px;
        padding: 12px;
    }

    .sm-row > .lg { grid-area: ico; width: 36px; height: 36px; }
    .sm-main { grid-area: main; flex-basis: auto; min-width: 0; }
    .sm-count { grid-area: count; margin: 0; font-size: 11px; }
    .sm-price { grid-area: price; min-width: 0; margin: 0; font-size: 13px; line-height: 1.3; }
    .sm-name { font-size: 14px; }
}

/* ══ HP & desktop: tampilan daftar produk, ikon tidak tertimpa lencana ═══════════ */
.mk-grid.is-list .mk-thumb {
    flex-direction: column;
    gap: 4px;
    height: auto;
    min-height: 76px;
    padding: 8px 4px;
}

.mk-grid.is-list .mk-thumb .lg-thumb { width: 40px; height: 40px; border-radius: 10px; }
.mk-grid.is-list .mk-stock { position: static; translate: none; margin: 0; padding: 0 6px; font-size: 10px; line-height: 16px; }

@media (max-width: 575.98px) {
    .mk-grid.is-list .mk-thumb { flex-basis: 64px; width: 64px; }
    .mk-grid.is-list .mk-body { padding: 8px 12px; }
    .mk-grid.is-list .mk-name { font-size: 13px; }
}

/* ══ HP: ubin kategori rata tengah (ikon di atas, nama utuh di bawah) ═══════════ */
@media (max-width: 575.98px) {
    .tp-grid:not(.tp-svcs) { gap: 8px; }

    .tp-grid:not(.tp-svcs) .tp-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 104px;
        padding: 14px 8px 12px;
        text-align: center;
    }

    .tp-grid:not(.tp-svcs) .tp-item .lg { width: 44px; height: 44px; }
    .tp-grid:not(.tp-svcs) .tp-text { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; min-width: 0; }

    .tp-grid:not(.tp-svcs) .tp-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .tp-grid:not(.tp-svcs) .tp-price { text-align: center; }

    /* jumlah ganjil: ubin terakhir tidak menempel di kiri */
    .tp-grid:not(.tp-svcs) > .tp-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 4px);
    }
}

/* ══ Navbar: dropdown "Halaman" (desktop) dan grup lipat (menu HP) ═══════════ */
.nav-dd { position: relative; }

.nav-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .45rem .8rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--txM);
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s, background-color .2s;
}

.nav-dd-btn:hover,
.nav-dd-btn.active,
.nav-dd-btn[aria-expanded="true"] { color: var(--pr); }

.nav-dd-btn i { font-size: 10px; transition: transform .2s; }
.nav-dd-btn i.is-open { transform: rotate(180deg); }

.nav-dd-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1100;
    width: 230px;
    margin: 6px 0 0;
    padding: 6px;
    translate: -50% 0;
    list-style: none;
    border: 1px solid var(--bdr);
    border-radius: 12px;
    background: var(--bg, #fff);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .4);
}

/* jembatan tak terlihat agar kursor bisa turun ke menu tanpa menutupnya */
.nav-dd-menu::before { content: ""; position: absolute; top: -8px; right: 0; left: 0; height: 8px; }

.nav-dd-menu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 9px 10px !important;
    border-radius: 8px;
    color: var(--tx) !important;
}

.nav-dd-menu a:hover { background: var(--prL); }
.nav-dd-menu a.active { background: var(--prL); color: var(--pr) !important; }
.nav-dd-menu a.active::after { display: none !important; }
.nav-dd-menu a > i { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--prL); color: var(--pr); font-size: 15px; }
.nav-dd-menu a > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nav-dd-menu a b { font-size: 13px; font-weight: 600; }
.nav-dd-menu a small { color: var(--txM); font-size: 12px; font-weight: 400; }

#mobileNav .mn-group { border-bottom: 1px solid var(--bdr); }

#mobileNav .mn-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tx);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

#mobileNav .mn-group-btn i { color: var(--txM); font-size: 12px; transition: transform .2s; }
#mobileNav .mn-group-btn i.is-open { transform: rotate(180deg); }
#mobileNav .mn-group-list { padding: 0 0 8px 12px; }

#mobileNav .mn-group-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border-bottom: 0;
    color: var(--txM);
    font-size: 14px;
}

#mobileNav .mn-group-list a i { color: var(--pr); }

#mobileNav .mn-after { margin: 0; padding: 0; list-style: none; }

/* HP: ruang di atas judul beranda untuk deretan ikon 3D (hanya bila scene berjalan) */
@media (max-width: 575.98px) {
    #beranda.has-strip { padding-top: calc(var(--ct-nav, 64px) + 84px); }
    #beranda.has-strip + .ct-tabbar { margin-top: 0; }
}

/* Lacak pesanan: satu kolom terpusat */
.trk-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.trk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trk-fld { min-width: 0; }

.trk-card {
    padding: 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
}

.trk-lbl { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-sm); font-weight: 600; }
.trk-lbl i { color: var(--c-accent); }

.trk-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-soft);
    transition: border-color .15s, box-shadow .15s;
}

.trk-field:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); background: var(--c-bg); }
.trk-field.is-bad { border-color: #dc2626; }

.trk-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: 500;
}

#trk-no { letter-spacing: .05em; text-transform: uppercase; }
#trk-no::placeholder { text-transform: none; letter-spacing: .02em; }
.trk-field input::placeholder { color: var(--c-muted); font-weight: 400; }

.trk-paste {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

.trk-paste:hover { border-color: var(--c-accent); color: var(--c-accent); }
.trk-go { width: 100%; height: 42px; margin-top: 12px; font-size: var(--fs-sm); }
.trk-help { margin: 12px 0 0; color: var(--c-muted); font-size: var(--fs-xs); }

.trk-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: var(--fs-sm); }
.trk-hd b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.trk-hd b i { color: var(--c-accent); }

.trk-list { margin: 0; padding: 0; list-style: none; }

.trk-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-ink);
    text-decoration: none;
}

.trk-list li:last-child a { border-bottom: 0; padding-bottom: 0; }

.trk-ico {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--c-soft);
    color: var(--c-muted);
}

.trk-ico.st-ok { background: rgba(22, 163, 74, .12); color: #16a34a; }
.trk-ico.st-bad { background: rgba(220, 38, 38, .1); color: #dc2626; }
.trk-ico.st-info, .trk-ico.st-warn { background: var(--c-accent-soft); color: var(--c-accent); }

.trk-main { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.trk-main b { overflow: hidden; font-size: var(--fs-sm); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.trk-main small { color: var(--c-muted); font-size: var(--fs-xs); }
.trk-list .st-chip { flex-shrink: 0; }
.trk-go-i { color: var(--c-muted); font-size: var(--fs-xs); }

.trk-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.trk-src > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-soft);
}

.trk-src i { margin-bottom: 4px; color: var(--c-accent); font-size: 20px; }
.trk-src b { font-size: var(--fs-sm); font-weight: 600; }
.trk-src span { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.45; }

.trk-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-soft);
}

.trk-help-box > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.trk-help-box b { font-size: var(--fs-sm); font-weight: 600; }
.trk-help-box span { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.5; }
.trk-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.trk-contact .ct-btn { font-size: var(--fs-xs); }

@media (max-width: 575.98px) {
    .trk-help-box { padding: 14px; }
    .trk-contact { width: 100%; }
    .trk-contact .ct-btn { flex: 1 1 100%; justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .trk-grid { grid-template-columns: minmax(0, 1fr); }
    .trk-src { grid-template-columns: minmax(0, 1fr); }
    .trk-src > div { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
    .trk-src i { margin: 0; }
    .trk-src span { flex-basis: 100%; padding-left: 30px; }
}

@media (max-width: 575.98px) {
    .trk-card { padding: 14px; }
}

/* ══ Bagian pembayaran di atas footer ═══════════════════════════════════════ */
.pay {
    padding: 28px 0;
    border-top: 1px solid var(--bdr);
    background: var(--bg);
    color: var(--tx);
}

.pay-hd { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }

.pay-qris {
    flex-shrink: 0;
    width: 80px;
    height: auto;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.pay-hd h2 { margin: 0 0 2px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.pay-hd p { margin: 0; color: var(--txM); font-size: 13px; line-height: 1.5; }

.pay-grp { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }

.pay-lbl {
    flex: 0 0 156px;
    color: var(--txM);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pay-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }

.pay-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 64px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff; /* logo selalu di atas putih: terbaca di mode terang maupun gelap */
}

.pay-list img { display: block; width: auto; height: 22px; max-width: 76px; object-fit: contain; }
.pay-list li:not(.is-bank):not(.pay-more) img { height: 26px; border-radius: 6px; }

.pay-list .pay-more {
    height: auto;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--txM);
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .pay { padding: 20px 0; }
    .pay-hd { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
    .pay-qris { width: 68px; padding: 4px 6px; border-radius: 8px; }
    .pay-hd h2 { font-size: 13.5px; line-height: 1.35; margin-bottom: 3px; }
    .pay-hd p { font-size: 11.5px; line-height: 1.45; }
    .pay-grp { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pay-lbl { flex: none; font-size: 10.5px; }
    .pay-list li { height: 36px; min-width: 56px; padding: 0 10px; }
    .pay-list img { height: 20px; max-width: 64px; }
}

@media (max-width: 575.98px) {
    .pay { padding: 16px 0; }
    .pay-hd { gap: 10px; margin-bottom: 12px; }
    .pay-qris { width: 58px; padding: 3px 5px; border-radius: 6px; }
    .pay-hd h2 { font-size: 12.5px; line-height: 1.3; margin-bottom: 2px; }
    .pay-hd p { font-size: 11px; line-height: 1.4; }
    .pay-note { font-size: 11px; margin-top: 6px; }
}

/* Bagian pembayaran, versi rapi: semua chip sama ukurannya (104x44), logo dipusatkan dengan tinggi seragam, satu garis kolom */
.pay-grp { align-items: flex-start; margin-bottom: 12px; }
.pay-lbl { padding-top: 14px; flex: 0 0 156px; }

.pay-list { gap: 10px; }

.pay-list li {
    width: 104px;
    height: 44px;
    min-width: 0;
    padding: 0 10px;
}

.pay-list img,
.pay-list li:not(.is-bank):not(.pay-more) img {
    width: auto;
    height: auto;
    max-width: 84px;
    max-height: 26px;
    border-radius: 0;
    object-fit: contain;
}

.pay-list img[alt="BRI"] { max-height: 30px; max-width: 30px; }

.pay-list .pay-more { width: auto; height: 44px; padding: 0 6px; display: inline-flex; align-items: center; }

@media (max-width: 767.98px) {
    .pay-grp { margin-bottom: 14px; }
    .pay-lbl { padding-top: 0; flex: none; }
    .pay-list { gap: 8px; }
    .pay-list li { width: calc((100% - 24px) / 4); min-width: 76px; height: 40px; padding: 0 6px; }
    .pay-list img, .pay-list li:not(.is-bank):not(.pay-more) img { max-width: 100%; max-height: 22px; }
    .pay-list .pay-more { width: 100%; height: auto; padding: 4px 2px 0; }
}

.pay-note { margin: 4px 0 0 170px; color: var(--txM); font-size: 12px; }
.pay-note i { margin-right: 4px; color: var(--pr); }

@media (max-width: 767.98px) {
    .pay-note { margin-left: 0; }
    .pay-list.is-wallet li { width: calc((100% - 16px) / 3); }
    .pay-list.is-bank-list li { width: calc((100% - 24px) / 4); min-width: 0; padding: 0 4px; }
}

/* Kartu produk di HP: logo turun sedikit supaya label Otomatis/Stok tidak menempel di pojoknya */
@media (max-width: 575.98px) {
    .mk-grid:not(.is-list) .mk-thumb { padding-top: 14px; }
}

/* ── Daftar harga ───────────────────────────────────────────────────────── */
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.pl-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }

.pl-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
}

.pl-tabs button small { font-size: var(--fs-xs); font-weight: 400; opacity: .8; }
.pl-tabs button.is-on { background: var(--c-bg); color: var(--c-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }

.pl-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    max-width: 380px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
}

.pl-search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.pl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--c-ink); font-size: var(--fs-sm); }

.pl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.pl-sel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 0;
    padding: 0 4px 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
}

.pl-sel span { color: var(--c-muted); font-size: var(--fs-xs); }

.pl-sel select {
    max-width: 190px;
    height: 100%;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.pl-count { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--c-muted); font-size: var(--fs-sm); }

.pl-card { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); overflow: hidden; transition: opacity .15s; }
.pl-card.is-busy { opacity: .6; }

.pl-table { width: 100%; border-collapse: collapse; }

.pl-table thead th {
    padding: 0;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-soft);
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}

.pl-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.pl-num .pl-sort { justify-content: flex-end; }
.pl-sort:hover, .pl-sort.is-on { color: var(--c-ink); }
.pl-sort i { color: var(--c-accent); font-size: 11px; }

.pl-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; font-size: var(--fs-sm); }
.pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table tbody tr:hover td { background: var(--c-soft); }

.pl-name { min-width: 280px; }
.pl-name b { font-weight: 600; }

.pl-desc {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pl-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--c-muted); font-size: var(--fs-xs); }
.pl-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.pl-promo { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: rgba(250, 204, 21, .18); color: #a16207; font-size: 10px; font-weight: 600; vertical-align: 1px; }
[data-theme-mode="dark"] .pl-promo { color: #facc15; }

.pl-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-table tbody .pl-num { font-weight: 400; }
.pl-table tbody .pl-num.is-sorted { color: var(--c-ink); font-weight: 600; }

.pl-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 16px; color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
.pl-empty i { font-size: 24px; margin-bottom: 4px; }
.pl-empty b { color: var(--c-ink); font-weight: 600; }
.pl-empty .ct-btn { margin-top: 10px; }

.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--c-line); }
.pl-info { color: var(--c-muted); font-size: var(--fs-xs); }
.pl-foot nav { display: flex; }
.pl-foot nav p, .pl-foot nav .hidden { display: none !important; }
.pl-foot .pagination { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }

.pl-foot .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
}

.pl-foot .page-link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pl-foot .page-item.active .page-link { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.pl-foot .page-item.disabled .page-link { opacity: .4; pointer-events: none; }

@media (max-width: 767.98px) {
    .pl-top { flex-direction: column; align-items: stretch; }
    .pl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    .pl-tabs button { justify-content: center; padding: 0 6px; }
    .pl-search { max-width: none; flex-basis: auto; }
    .pl-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-sel { min-width: 0; }
    .pl-sel select { flex: 1; min-width: 0; max-width: none; }
    .pl-count { grid-column: 1 / -1; margin: 0; justify-content: space-between; }

    /* HP tetap tabel: kartu tabel bisa digeser ke samping, kolom nama menempel di kiri */
    .pl-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pl-table { min-width: 100%; }
    .pl-table thead th, .pl-table tbody td { white-space: nowrap; }
    .pl-table thead th.pl-th-name, .pl-table tbody td.pl-name { position: sticky; left: 0; z-index: 2; min-width: 190px; max-width: 220px; white-space: normal; background: var(--c-bg); box-shadow: 1px 0 0 var(--c-line); }
    .pl-table thead th.pl-th-name { background: var(--c-soft); }
    .pl-table tbody tr:hover td.pl-name { background: var(--c-soft); }
    .pl-sort { padding: 0 10px; }
    .pl-table tbody td { padding: 10px; }
    .pl-foot { justify-content: center; }
}

/* Dropdown (select) di mode gelap: kotak dan daftar pilihannya sama-sama gelap, teks terang */
[data-theme-mode="dark"] select { color-scheme: dark; background-color: var(--c-bg); color: var(--c-ink); }
[data-theme-mode="dark"] select option,
[data-theme-mode="dark"] select optgroup { background-color: #1a1a1a; color: #f1f5f9; }
[data-theme-mode="dark"] select option:checked { background-color: #2a3350; color: #fff; }
[data-theme-mode="dark"] select option:disabled { color: #6b7280; }
.pl-sel select { background-color: transparent; }
[data-theme-mode="dark"] .pl-sel select { background-color: transparent; }

/* ── Blog ───────────────────────────────────────────────────────────────── */
.bl-tools { display: flex; align-items: center; gap: 12px; }
.bl-count { color: var(--c-muted); font-size: var(--fs-sm); white-space: nowrap; }

.bl-cats { display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.bl-cats::-webkit-scrollbar { display: none; }
.bl-cats .chip { flex-shrink: 0; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transition: opacity .15s; }
.bl-grid.is-busy { opacity: .6; }

.bl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: var(--c-bg);
    overflow: hidden;
    transition: border-color .15s;
}

.bl-card:hover { border-color: var(--c-accent); }

.bl-img { display: block; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--c-line); background: var(--c-soft); overflow: hidden; }
.bl-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--c-muted); font-size: 28px; }

.bl-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.bl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--c-muted); font-size: var(--fs-xs); }
.bl-cat { color: var(--c-accent); font-weight: 600; }

.bl-title { margin: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.bl-title a { color: var(--c-ink); text-decoration: none; }
.bl-title a:hover { color: var(--c-accent); }

.bl-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bl-empty { grid-column: 1 / -1; border: 1px solid var(--c-line); border-radius: var(--r); }
.bl-foot { margin-top: 16px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }

@media (max-width: 991.98px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 575.98px) {
    .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bl-tools { justify-content: space-between; }
    .bl-body { padding: 12px 14px 14px; }
}

/* ── Detail artikel ─────────────────────────────────────────────────────── */
.bd-top { padding-top: calc(var(--ct-nav, 64px) + 20px); }
.bd-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; color: var(--c-muted); font-size: var(--fs-xs); }
.bd-crumb a { color: var(--c-muted); text-decoration: none; }
.bd-crumb a:hover { color: var(--c-accent); }
.bd-crumb i { font-size: 10px; }
.bd-crumb span { color: var(--c-ink); }

.bd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.bd-main { min-width: 0; }

.bd-article { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.bd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--c-muted); font-size: var(--fs-xs); }
.bd-meta .bl-cat { text-decoration: none; }
.bd-title { margin: 8px 0 16px; font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.bd-cover { display: block; width: 100%; max-height: 360px; margin: 0 0 20px; border: 1px solid var(--c-line); border-radius: var(--r); object-fit: cover; }

.bd-prose { color: var(--c-ink); font-size: var(--fs-sm); line-height: 1.75; overflow-wrap: anywhere; }
.bd-prose > :first-child { margin-top: 0; }
.bd-prose p { margin: 0 0 14px; }
.bd-prose h2, .bd-prose h3, .bd-prose h4 { margin: 24px 0 10px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.bd-prose h2 { font-size: var(--fs-lg); }
.bd-prose h3, .bd-prose h4 { font-size: var(--fs-md); }
.bd-prose ul, .bd-prose ol { margin: 0 0 14px; padding-left: 22px; }
.bd-prose li { margin: 0 0 2px; }
.bd-prose a { color: var(--c-accent); }
.bd-prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.bd-prose blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--c-accent); background: var(--c-soft); color: var(--c-muted); }
.bd-prose code { padding: 1px 5px; border-radius: 4px; background: var(--c-soft); font-size: .9em; }
.bd-prose pre { margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-soft); }
.bd-prose pre code { padding: 0; background: transparent; }
.bd-prose hr { margin: 20px 0; border: 0; border-top: 1px solid var(--c-line); opacity: 1; }
.bd-prose table { width: 100%; max-width: 560px; margin: 0 0 16px; border-collapse: collapse; font-size: var(--fs-sm); }
.bd-prose th, .bd-prose td { padding: 6px 12px; border: 1px solid var(--c-line); text-align: left; }
.bd-prose th { background: var(--c-soft); font-weight: 600; }
.bd-prose td p, .bd-prose th p, .bd-prose li p { margin: 0; }
.bd-prose tbody tr:hover td { background: var(--c-soft); }
.bd-prose li { line-height: 1.6; }

.bd-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-sm); }
.bd-share > div { display: flex; gap: 6px; }

.bd-share a, .bd-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.bd-share a:hover, .bd-share button:hover { border-color: var(--c-accent); color: var(--c-accent); }

.bd-h2 { margin: 28px 0 12px; font-size: var(--fs-md); font-weight: 600; }
.bd-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-rel .bl-body { padding: 10px 12px 12px; }
.bd-rel .bl-title { font-size: var(--fs-sm); }

.bd-side { display: grid; gap: 14px; position: sticky; top: 88px; }
.bd-box { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.bd-box-t { margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 600; }

.bd-links { display: grid; gap: 2px; }
.bd-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--c-ink); font-size: var(--fs-sm); text-decoration: none; }
.bd-links a small { color: var(--c-muted); font-size: var(--fs-xs); }
.bd-links a:hover { background: var(--c-soft); }
.bd-links a.is-on { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }

.bd-pop { display: grid; gap: 12px; }
.bd-pop a { display: flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; }
.bd-pop-img { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 56px; height: 42px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-soft); color: var(--c-muted); }
.bd-pop-img img { width: 100%; height: 100%; object-fit: cover; }
.bd-pop-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.bd-pop-tx b { display: -webkit-box; overflow: hidden; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bd-pop-tx small { color: var(--c-muted); font-size: 11px; }
.bd-pop a:hover b { color: var(--c-accent); }

.bd-trx { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.bd-trx li { display: flex; align-items: center; gap: 10px; }
.bd-av { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); font-size: var(--fs-xs); font-weight: 600; }
.bd-trx-tx { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bd-trx-tx b { overflow: hidden; font-size: var(--fs-xs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bd-trx-tx small, .bd-trx-p small { display: block; color: var(--c-muted); font-size: 11px; font-weight: 400; }
.bd-trx-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-trx-p { font-size: var(--fs-xs); font-weight: 600; text-align: right; white-space: nowrap; }
.bd-cta { width: 100%; height: 38px; font-size: var(--fs-sm); }

@media (max-width: 991.98px) {
    .bd-wrap { grid-template-columns: minmax(0, 1fr); }
    .bd-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 767.98px) {
    .bd-prose table { display: block; max-width: none; overflow-x: auto; }
    .bd-article { padding: 16px; }
    .bd-title { font-size: var(--fs-lg); }
    .bd-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .bd-rel { grid-template-columns: minmax(0, 1fr); }
}

/* Pindah tema terang/gelap: warna berubah halus, bukan langsung berkedip */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important;
}

@media (prefers-reduced-motion: reduce) {
    html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
}

/* ── Panduan memesan ────────────────────────────────────────────────────────
   Dua panel: "Cara memesan" (langkah bernomor, garis penghubung) dan "Perlu diketahui" (catatan).
   Di kolom sempit (halaman pesan) dan HP keduanya bertumpuk. */
.guide { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }
.gt-main .guide { margin-top: 12px; }

.guide-hd { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: var(--fs-md); font-weight: 600; }
.guide-hd i { color: var(--c-accent); }

.guide-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 32px; align-items: start; }
.gt-main .guide-body { grid-template-columns: minmax(0, 1fr); }

.guide-lbl { margin: 0 0 12px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.guide-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.guide-steps li { position: relative; padding: 3px 0 16px 40px; color: var(--c-ink); font-size: var(--fs-sm); line-height: 1.5; }
.guide-steps li:last-child { padding-bottom: 0; }

.guide-steps b {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.guide-steps li:not(:last-child)::before { content: ""; position: absolute; top: 30px; bottom: 4px; left: 12px; border-left: 2px solid var(--c-line); }

.guide-box { padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); }
.guide-box .guide-lbl { margin-bottom: 10px; }
.guide-tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.55; }
.guide-tips li { display: flex; gap: 8px; }
.guide-tips i { flex-shrink: 0; margin-top: 2px; color: var(--c-accent); font-size: 13px; }

@media (max-width: 991.98px) {
    .guide-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .guide { padding: 14px; }
    .guide-box { padding: 12px 14px; }
}

/* ── Alat ───────────────────────────────────────────────────────────────── */
.al-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.al-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

.al-nav { position: sticky; top: 88px; display: grid; gap: 2px; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }

.al-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.al-nav button i { font-size: 16px; }
.al-nav button:hover { background: var(--c-soft); color: var(--c-ink); }
.al-nav button.is-on { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }

.al-card { padding: 20px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.al-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; }
.al-ico { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); font-size: 18px; }
.al-head h2 { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.al-head p { margin: 2px 0 0; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.5; }

.al-card .sub-tool-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 0 0 2px; overflow-x: auto; border: 0; background: transparent; scrollbar-width: none; }
.al-card .sub-tool-tabs::-webkit-scrollbar { display: none; }

.al-card .sub-tool-tab-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    box-shadow: none;
}

.al-card .sub-tool-tab-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.al-card .sub-tool-tab-btn.active-tab { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }

.al-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.al-feats li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }
.al-feats i { margin-top: 1px; color: var(--c-accent); font-size: 18px; }
.al-feats span { display: flex; flex-direction: column; color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.45; }
.al-feats b { color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600; }

.al-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 20px; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }
.al-cta > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; }
.al-cta b { font-size: var(--fs-sm); font-weight: 600; }
.al-cta span { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.5; }

/* Isi alat (komponen anak): judul dan teks mengikuti skala situs */
.al-card h3, .al-card h4 { font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.al-card h5, .al-card h6 { font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.al-card label { font-size: var(--fs-sm); }
.al-card .form-control, .al-card .form-select, .al-card input[type="text"], .al-card input[type="url"], .al-card textarea, .al-card select { font-size: var(--fs-sm); }
.al-card .btn { font-size: var(--fs-sm); font-weight: 600; }

@media (max-width: 991.98px) {
    .al-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .al-nav { position: static; display: flex; gap: 6px; padding: 0; overflow-x: auto; border: 0; background: transparent; scrollbar-width: none; }
    .al-nav::-webkit-scrollbar { display: none; }
    .al-nav button { flex-shrink: 0; height: 34px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-bg); }
    .al-nav button.is-on { border-color: var(--c-accent); }
    .al-nav button i { font-size: 14px; }
}

@media (max-width: 767.98px) {
    .al-card { padding: 14px; }
    .al-feats { grid-template-columns: minmax(0, 1fr); }
}

/* Alat: tombol dan kolom isian di dalam komponen anak */
.al-card .inp-grp-custom, .al-card .form-select-custom { min-height: 42px; height: auto; border-radius: var(--r-sm); }
.al-card .btn-paste-custom { height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600; }
.al-card .btn-download-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.al-card .btn-download-action.w-100 { width: 100%; }
.al-card .table-responsive { border-radius: var(--r-sm); }

/* ── Dokumentasi API (halaman publik) ──────────────────────────────────── */
.apd .apidoc { --ad-sticky: 100px; }
.apd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (max-width: 575.98px) {
    .gt-title { align-items: flex-start; }
    .al-feats li { padding: 10px 12px; }
}

/* Kartu nominal pulsa/paket: operator (logo + nama) di atas nominal */
.tp-svc-top { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 4px; }
.tp-svc-lg { flex-shrink: 0; width: 22px; height: 22px; padding: 1px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; object-fit: contain; }
.tp-svc-op { overflow: hidden; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

/* Paginasi nominal (kotak pulsa di beranda dan halaman pesan) */
.pg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pg-info { color: var(--c-muted); font-size: var(--fs-xs); }
.pg-btns { display: flex; gap: 4px; }

.pg-btns button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.pg-btns button:hover:not(:disabled) { border-color: var(--c-accent); color: var(--c-accent); }
.pg-btns button.is-on { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.pg-btns button:disabled { opacity: .45; cursor: default; }
.pg-btns button.is-on:disabled { opacity: 1; }
.tp-svcs, .gt-options { scroll-margin-top: 120px; }

@media (max-width: 575.98px) {
    .pg-bar { justify-content: center; }
}

/* Menu tab layanan di HP: chip yang jelas terlihat sebagai menu, bisa digeser (panah + pudar di tepi) */
@media (max-width: 767.98px) {
    .ct-tabs { gap: 8px; padding: 10px 30px 10px 0; scroll-snap-type: x proximity; }

    .ct-tab {
        align-items: center;
        height: 34px;
        padding: 0 12px;
        border: 1px solid var(--c-line);
        border-radius: 999px;
        background: var(--c-bg);
        scroll-snap-align: center;
    }

    .ct-tab.is-on { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-accent); }
    .ct-tab.is-on::after { display: none; }
    .ct-tab.is-on small { color: var(--c-accent); }
    .ct-sep { height: 20px; margin: 0 2px; }
    .ct-tabs-nav { display: inline-flex; }
    .ct-tabs-wrap::before, .ct-tabs-wrap::after { width: 44px; }

    /* Judul grup (E-Wallet, Voucher, ...) tidak lebih besar dari isi */
    .tp-hd { font-size: var(--fs-sm); }
    .tp-hd .tp-n { font-size: var(--fs-xs); }
}

/* HP: bar pesan (produk terpilih + Lanjut) menempel di bawah; tombol "ke atas" naik di atasnya supaya tidak tertutup */
@media (max-width: 991.98px) {
    body:has(.pd-bar) #scrollTop { bottom: calc(72px + env(safe-area-inset-bottom)); transition: bottom .2s ease; }
}

/* ══ Skala tipografi (hasil audit): ukuran mengikuti fungsi, sama di HP dan desktop ═══════════════
   11  lencana mikro (Stok, Sisa, Otomatis)
   12  keterangan, meta, label kecil, hak cipta
   13  teks sekunder padat: nama kartu, chip, daftar, footer
   14  isi teks, tombol, isian, harga di kartu
   16  judul bagian kecil, nama merek
   18  judul bagian (h2), harga utama
   24 / 28 judul halaman (HP / desktop); beranda 28 / 40
   Diberi awalan "body" supaya menang atas aturan lama yang tersebar. */
body .mk-stock { font-size: 11px; }
body .mk-name, body .tp-name, body .rc-name { font-size: 13px; }
body .mk-sub, body .mk-price small, body .mk-price.mk-off, body .tp-price, body .tp-svc-d, body .gt-note, body .pay-lbl,
body .chip small, body .bd-pop-tx small, body .bd-trx-tx small, body .bd-trx-p small, body .apidoc-stat small,
body .apidoc-method, body .apidoc-tone, body .ct-step-list li > span { font-size: 12px; }
body .mk-price, body .rc-price { font-size: 14px; font-weight: 600; }
body .chip { font-size: 13px; }
body .ct-step-list b { font-size: 14px; }
body .ct-step-list li p { font-size: 13px; line-height: 1.5; }
body .pay-hd h2 { font-size: 14px; line-height: 1.4; }
body .nav-brand-name { font-size: 16px; }
body .foot-brand { font-size: 16px; }
body .btn-nv-pri, body .btn-nv-out { font-size: 14px; }
body .apidoc-pill { font-size: 13px; }
body .gt-plan-price { font-size: 14px; }
body .pd-price b { font-size: 18px; }
body .al-card .btn-download-action { font-size: 14px !important; }
body .gt-hero .ct-h1 { font-size: 28px; }

@media (max-width: 575.98px) {
    body .gt-hero .ct-h1 { font-size: 24px; }
    body .pay-hd h2 { font-size: 14px; }
}

@media (min-width: 768px) {
    body .pay-hd h2 { font-size: 16px; }
}

body .gt-plan-price small { font-size: 12px; }

.pl-sel select { padding-right: 20px; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    /* pilihan sudah menjelaskan diri ("Semua kategori", "Harga termurah"), label kecil dibuang supaya teks tidak terpotong */
    .pl-sel { padding-left: 6px; }
    .pl-sel > span { display: none; }
    .pl-sel select { flex: 1; font-size: var(--fs-sm); }
}

/* Metode pembayaran di HP: marquee (dua baris bergerak berlawanan arah), desktop tetap rapi statis */
.pay-list .pay-dup { display: none; }

@keyframes pay-marquee { to { transform: translateX(-50%); } }

@media (max-width: 767.98px) {
    .pay-grp { display: block; margin-bottom: 12px; }
    .pay-lbl { display: block; margin: 0 0 8px; }

    .pay-view {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    }

    .pay-view .pay-list { flex-wrap: nowrap; width: max-content; gap: 8px; padding-right: 8px; animation: pay-marquee 26s linear infinite; }
    .pay-view .pay-list.is-bank-list { animation-duration: 32s; animation-direction: reverse; }
    .pay-view:active .pay-list { animation-play-state: paused; }

    .pay-view .pay-list li,
    .pay-view .pay-list.is-wallet li,
    .pay-view .pay-list.is-bank-list li { flex: 0 0 92px; width: 92px; min-width: 92px; height: 40px; padding: 0 8px; }

    .pay-view .pay-list .pay-dup { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .pay-view .pay-list { animation: none !important; flex-wrap: wrap !important; width: auto !important; }
    .pay-view .pay-list .pay-dup { display: none !important; }
    .pay-view { -webkit-mask-image: none; mask-image: none; }
}

/* Baca selengkapnya: teks panjang dipotong, tombol muncul hanya bila terpotong */
.rm-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--rm, 3); overflow: hidden; white-space: pre-line; }
.rm-body.is-open { display: block; -webkit-line-clamp: unset; }
.rm-btn { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--c-accent); font-size: var(--fs-xs); font-weight: 600; }
.rm-btn:hover { text-decoration: underline; }

/* Ganti tema: lapisan baru menutup lapisan lama lewat lingkaran (animasinya dijalankan skrip toggleTheme) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2147483646; }

/* Navbar: label menu dan tombol tidak pernah turun baris; di lebar 992-1199px jarak dan isi dirapatkan */
body .nav-links a, body .btn-nv-pri, body .btn-nv-out { white-space: nowrap; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    body .nav-links { gap: 0; margin-right: 8px !important; }
    body .nav-links a { font-size: 13px; padding: .4rem .55rem; }
    body .btn-nv-pri, body .btn-nv-out { padding-left: 11px; padding-right: 11px; font-size: 13px; }
    body .nav-brand-name { font-size: 15px; }
}

/* Reset pilihan / kosongkan keranjang */
.gt-reset { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.gt-reset:hover { color: #dc2626; }
.pd-price .gt-reset { margin-left: 12px; }
.cd-clear { display: flex; justify-content: flex-end; padding: 6px 16px 0; }

@media (max-width: 991.98px) {
    .pd-reset { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-muted); font-size: 16px; }
    .pd-reset:hover { border-color: #dc2626; color: #dc2626; }
}
@media (min-width: 992px) { .pd-reset { display: none; } }

/* ── Halaman informasi publik: FAQ, Syarat & Ketentuan, Kebijakan Privasi ─────────────────── */
.lp-date { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--c-muted); font-size: var(--fs-xs); }

.lp-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }

.lp-toc { position: sticky; top: 88px; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.lp-toc b { padding: 0 8px 6px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.lp-toc a { padding: 6px 8px; border-radius: var(--r-sm); color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.4; text-decoration: none; }
.lp-toc a:hover { background: var(--c-soft); color: var(--c-ink); }

.lp-doc { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); color: var(--c-ink); font-size: var(--fs-sm); line-height: 1.75; overflow-wrap: anywhere; }
.lp-doc section { scroll-margin-top: 96px; }
.lp-doc section + section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.lp-doc h2 { margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; }
.lp-doc p { margin: 0 0 10px; }
.lp-doc ul { margin: 0 0 10px; padding-left: 22px; }
.lp-doc li { margin: 0 0 6px; }
.lp-doc a { color: var(--c-accent); }
.lp-doc > :last-child, .lp-doc section > :last-child { margin-bottom: 0; }
.lp-solo { max-width: 860px; }

.lp-help { margin-top: 20px; }

.lp-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.lp-faq { min-width: 0; }
.lp-search { margin: 0 0 16px; }
/* Tanda di atas judul grup: garis aksen pendek, lalu ikon + judul + jumlah pertanyaan */
.fq-group { margin: 0 0 28px; }
.fq-group::before { content: ""; display: block; width: 36px; height: 3px; margin: 0 0 12px; border-radius: 2px; background: var(--c-accent); }
.fq-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.fq-ico { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-accent-soft); color: var(--c-accent); font-size: 16px; }
.fq-h small { margin-left: auto; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; white-space: nowrap; }

.fq-item { border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); transition: border-color .25s ease, box-shadow .25s ease; }
.fq-item + .fq-item { margin-top: 8px; }
.fq-item.is-open { border-color: var(--c-accent); box-shadow: 0 6px 18px -12px rgba(54, 108, 255, .55); }

.fq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: none;
    color: var(--c-ink);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.fq-q i { flex-shrink: 0; color: var(--c-muted); font-size: 13px; transition: rotate .3s ease, color .25s ease; }
.fq-item.is-open .fq-q i { rotate: 180deg; color: var(--c-accent); }
.fq-q:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; border-radius: var(--r-sm); }
.fq-item p { margin: 0; padding: 0 14px 14px; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .fq-item, .fq-q i { transition: none; } }

@media (max-width: 991.98px) {
    .lp-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .lp-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-toc b { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .lp-doc { padding: 16px; }
    .lp-toc { grid-template-columns: minmax(0, 1fr); padding: 10px; }
}

/* HP: target sentuh minimal ~32px untuk tautan kecil (footer, kembali, jejak, baca selengkapnya, chip) */
@media (max-width: 767.98px) {
    body .foot-lnk { padding: 7px 0; }
    body .foot-ul li { margin-bottom: 0; }
    body .gt-back { display: inline-flex; align-items: center; padding: 8px 0; }
    body .rm-btn { padding: 8px 0 4px; }
    body .bd-crumb a { padding: 6px 0; }
    body .chip { min-height: 32px; }
}

/* Dropdown Halaman: lebar menu tetap supaya semua baris sejajar */
.nav-dd-menu { min-width: 270px; }
.nav-dd-menu a > i, .nav-dd-menu a > i::before { flex-shrink: 0; }

/* FAQ: kolom kanan (topik, tautan cepat, bantuan) */
.lp-aside { position: sticky; top: 88px; display: grid; gap: 12px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; align-content: start; }
.lp-card { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.lp-card > b { padding: 0 6px 6px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.lp-card > p { margin: 0 6px 6px; color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.5; }

.lp-card > a { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: var(--r-sm); color: var(--c-ink); font-size: var(--fs-sm); text-decoration: none; }
.lp-card > a:hover { background: var(--c-soft); color: var(--c-accent); }
.lp-card > a i { flex-shrink: 0; width: 16px; color: var(--c-accent); font-size: 14px; text-align: center; }
.lp-card > a span { min-width: 0; overflow-wrap: anywhere; }
.lp-card > a small { margin-left: auto; color: var(--c-muted); font-size: var(--fs-xs); }
.fq-group { scroll-margin-top: 96px; }

@media (max-width: 991.98px) {
    .lp-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lp-aside { position: static; max-height: none; overflow: visible; }
    .lp-desk { display: none; }
}

@media (min-width: 992px) {
    .lp-help-mobile { display: none; }
}

/* Petunjuk harga member untuk tamu */
.pd-save { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--c-accent); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.pd-save:hover { text-decoration: underline; }

/* Galeri gambar produk (produk milik sendiri dengan lebih dari satu gambar) */
.pd-gallery { padding: 12px; }
.pd-gallery-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-gallery-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-soft); opacity: .7; transition: opacity .15s, border-color .15s; }
.pd-gallery-thumbs button:hover { opacity: 1; }
.pd-gallery-thumbs button.is-on { border-color: var(--c-accent); opacity: 1; }
.pd-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Tombol navbar (saldo, Dashboard, Masuk, Daftar): huruf 13px, tinggi sama dengan ikon, tidak besar */
body .btn-nv-pri, body .btn-nv-out { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; line-height: 1; }
body .btn-nv-pri i, body .btn-nv-out i { font-size: 14px; }
@media (max-width: 575.98px) {
    body .btn-nv-pri, body .btn-nv-out { height: 32px; padding: 0 11px; font-size: 12px; }
    body .btn-nv-pri i, body .btn-nv-out i { font-size: 13px; }
}

/* Tautan "Semua nominal" di halaman game */
.gt-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px dashed var(--c-line); border-radius: var(--r); color: var(--c-ink); font-size: var(--fs-sm); text-decoration: none; transition: border-color .15s, color .15s; }
.gt-more small { display: block; margin-top: 1px; color: var(--c-muted); font-size: 12px; }
.gt-more:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Status pesanan tamu: kepala status, token, penanda batas bayar, kirim ulang email ───── */
.st-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
    animation: soft-in .5s cubic-bezier(.2, .7, .2, 1) backwards;
}

.st-head-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-accent);
    font-size: 20px;
}

.st-head-txt { flex: 1; min-width: 0; }
.st-head-txt b { display: block; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
.st-head-txt small { display: block; color: var(--c-muted); font-size: var(--fs-xs); }

.st-head-amt { text-align: right; white-space: nowrap; }
.st-head-amt small { display: block; color: var(--c-muted); font-size: var(--fs-xs); }
.st-head-amt b { font-size: var(--fs-md); font-weight: 700; }

/* Nada kepala status: kepala kartu diberi kelas st-ok / st-info / st-warn / st-bad langsung */
.st-head.st-ok { border-color: rgba(22, 163, 74, .38); background: rgba(22, 163, 74, .07); }
.st-head.st-bad { border-color: rgba(220, 38, 38, .38); background: rgba(220, 38, 38, .07); }
.st-head.st-warn { border-color: rgba(217, 119, 6, .38); background: rgba(217, 119, 6, .07); }
.st-head.st-info { border-color: rgba(54, 108, 255, .38); background: var(--c-accent-soft); }

.st-head.st-ok .st-head-ico { color: #16a34a; }
.st-head.st-bad .st-head-ico { color: #dc2626; }
.st-head.st-warn .st-head-ico { color: #d97706; }

/* Token / SN hasil pesanan: bagian yang paling dicari pembeli, jadi dibuat menonjol */
.st-out {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
}

.st-out-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.st-out code { display: block; color: var(--c-ink); font-size: var(--fs-md); font-weight: 700; letter-spacing: .4px; word-break: break-all; }
.st-out .gt-note { margin-top: 8px; }

/* Batas waktu pembayaran (hitung mundur, hanya tampilan) */
.st-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(217, 119, 6, .38);
    border-radius: var(--r-sm);
    background: rgba(217, 119, 6, .07);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.st-timer b { font-variant-numeric: tabular-nums; }
.st-timer.is-out { border-color: rgba(220, 38, 38, .38); background: rgba(220, 38, 38, .07); color: #dc2626; }

/* Laporan pengiriman email bukti (tanpa tombol: pengiriman ulang dikerjakan sistem) */
.st-mail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-soft);
}

.st-mail .gt-note { margin: 0; }
.st-mail .st-chip { flex-shrink: 0; margin-top: 1px; }

/* Kontak bantuan di kartu "Butuh bantuan?" halaman status */
.gt-ct {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--c-line);
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.gt-ct span { display: flex; align-items: flex-start; gap: 8px; word-break: break-word; }
.gt-ct i { color: var(--c-accent); font-size: var(--fs-sm); line-height: 1.4; }

@media (max-width: 575.98px) {
    .st-head { flex-wrap: wrap; }
    .st-head-amt { width: 100%; padding-top: 8px; border-top: 1px solid var(--c-line); text-align: left; }
    .st-head-amt small, .st-head-amt b { display: inline; margin-right: 4px; }
    .st-mail { flex-direction: column; align-items: flex-start; }
}

/* Tombol di kartu status (Beli lagi, Hubungi kami): ada jarak dari teks di atasnya dan dari isi di bawahnya */
.st-help-btn { margin: 14px 0 16px; }
.gt-card > .gt-note:last-child + .st-help-btn,
.gt-card .st-help-btn:last-child { margin-bottom: 0; }

/* Judul halaman publik: tenang dan proporsional (24px, di HP 21px); beranda 32px, di HP 24px. Teks pengantar 14-15px. */
.ct-h1, .gt-hero .ct-h1 { font-size: 24px; letter-spacing: -.015em; }
.ct-lead { font-size: 14px; }
#beranda .ct-h1 { font-size: 32px; }
#beranda .ct-lead { font-size: 15px; }
@media (max-width: 991.98px) {
    #beranda .ct-h1 { font-size: 28px; }
}
@media (max-width: 575.98px) {
    .ct-h1, .gt-hero .ct-h1 { font-size: 21px; }
    #beranda .ct-h1 { font-size: 24px; }
    #beranda .ct-lead { font-size: 14px; }
}


/* Petunjuk operator di dalam kolom nomor HP: satu baris, tidak membungkus, teks panjang dipotong */
.pn-field input, .pn-field .gt-input { padding-right: 150px; }
.pn-op { max-width: 142px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; }
.pn-op.is-idle { background: transparent; border: 0; color: var(--c-muted); padding-right: 6px; }
@media (max-width: 575.98px) { .pn-op { max-width: 128px; } .pn-field input, .pn-field .gt-input { padding-right: 136px; } }
