/* ============================================================
   Digital88 — Design System
   ------------------------------------------------------------
   Warna merek (--brand / --gold) DISUNTIKKAN dari PHP di <head>
   karena admin bisa mengganti tema. File ini hanya boleh memakai
   token, jangan pernah menulis ulang hex merek di sini.

   Mode gelap memakai atribut Bootstrap 5.3 `data-bs-theme` pada
   <html>, jadi komponen bawaan Bootstrap ikut berubah sendiri;
   yang perlu diurus di sini hanya komponen buatan kita.
   ============================================================ */

/* ---------- 1. Token dasar ---------- */

:root {
    /* Nilai cadangan bila injeksi PHP gagal (mis. CSS dibuka langsung). */
    --brand: #1B7A43;
    --brand-dark: #14562F;
    --gold: #C9A227;
    --gold-dark: #A8871C;
    --brand-rgb: 27, 122, 67;
    --brand-dark-rgb: 20, 86, 47;
    --gold-rgb: 201, 162, 39;
    --on-brand: #fff;  /* tulisan di atas warna utama — preset terang memakai warna gelap */

    /* Skala sudut & bayangan — dipakai konsisten di semua komponen. */
    --r-sm: .5rem;
    --r-md: .875rem;
    --r-lg: 1.25rem;
    --r-xl: 1.75rem;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 20, .06);
    --shadow-sm: 0 2px 8px rgba(16, 24, 20, .06), 0 1px 2px rgba(16, 24, 20, .04);
    --shadow-md: 0 8px 24px rgba(16, 24, 20, .08), 0 2px 6px rgba(16, 24, 20, .04);
    --shadow-lg: 0 18px 48px rgba(16, 24, 20, .12), 0 4px 12px rgba(16, 24, 20, .06);
    --shadow-brand: 0 10px 30px rgba(var(--brand-rgb), .22);

    --ease: cubic-bezier(.2, .7, .3, 1);

    /* Permukaan & teks — mode terang */
    --surface: #ffffff;
    --surface-2: #f6f8f7;
    --surface-3: #eef2f0;
    --page-bg: #f4f7f5;
    --ink: #10201a;
    --ink-2: #5b6b64;
    --ink-3: #8b9993;
    --line: #e3e9e6;
    --line-strong: #cfd8d4;

    /* Warna merek yang aman dibaca di atas permukaan terang. */
    --brand-on-surface: var(--brand);
    --gold-on-surface: var(--gold-dark);
    --brand-soft: rgba(var(--brand-rgb), .09);
    --gold-soft: rgba(var(--gold-rgb), .14);

    /* Jembatan ke variabel Bootstrap supaya komponen bawaan ikut merek. */
    --bs-primary: var(--brand);
    --bs-link-color: var(--brand-on-surface);
    --bs-link-hover-color: var(--brand-dark);
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-bg: var(--page-bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--ink-2);
    --bs-border-radius: var(--r-sm);
    --bs-border-radius-lg: var(--r-md);
    --bs-border-radius-xl: var(--r-lg);
}

/* ---------- 2. Mode gelap ---------- */

[data-bs-theme="dark"] {
    --surface: #16211d;
    --surface-2: #1b2823;
    --surface-3: #23322c;
    --page-bg: #0f1714;
    --ink: #e8efeb;
    --ink-2: #a3b3ac;
    --ink-3: #7b8a84;
    --line: #26352e;
    --line-strong: #33453c;

    /* Warna merek gelap tidak terbaca di atas latar gelap. Nilai sesungguhnya
       dihitung di PHP (Theme::lighten) dan disuntikkan di <head> agar ikut
       tema pilihan admin; baris di bawah hanya cadangan bila injeksi absen. */
    --brand-on-surface: #6DD39B;
    --gold-on-surface: var(--gold);
    --brand-soft: rgba(var(--brand-rgb), .20);
    --gold-soft: rgba(var(--gold-rgb), .18);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    --shadow-brand: 0 10px 30px rgba(0, 0, 0, .5);

    --bs-body-bg: var(--page-bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--ink-2);
    --bs-emphasis-color: #ffffff;
    --bs-tertiary-bg: var(--surface-2);
    --bs-secondary-bg: var(--surface-3);
}

/* Utilitas Bootstrap yang latarnya dipaku putih/terang tidak ikut mode gelap.
   Dipetakan ke token permukaan supaya markup lama tetap benar tanpa diubah. */
[data-bs-theme="dark"] .bg-white { background-color: var(--surface) !important; }
[data-bs-theme="dark"] .bg-light { background-color: var(--surface-2) !important; }
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] .border { border-color: var(--line) !important; }
[data-bs-theme="dark"] .alert-light {
    background-color: var(--surface-2);
    border-color: var(--line);
    color: var(--ink);
}

/* ---------- 3. Dasar ---------- */

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: var(--bs-body-font-family);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.006em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -.022em;
    color: var(--ink);
}

/* Judul besar mengecil mulus mengikuti lebar layar — tanpa lompatan
   di titik breakpoint seperti kalau memakai media query bertingkat. */
.display-hero {
    font-size: clamp(1.7rem, 1.15rem + 2.4vw, 3.05rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 800;
}
.section-title {
    font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem);
    font-weight: 700;
}
.lead-sm { font-size: clamp(.94rem, .9rem + .25vw, 1.06rem); line-height: 1.6; }

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

hr { border-color: var(--line); opacity: 1; }

/* Fokus keyboard yang konsisten & terlihat di kedua mode. */
:focus-visible {
    outline: 2px solid var(--brand-on-surface);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Lompat ke konten — pertama di urutan tab, tersembunyi sampai difokus. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 2000;
    background: var(--surface);
    color: var(--ink);
    padding: .6rem 1rem;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

::selection { background: rgba(var(--brand-rgb), .22); }

/* Batang gulir halus di mode gelap (peramban berbasis WebKit). */
[data-bs-theme="dark"] ::-webkit-scrollbar { width: 11px; height: 11px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: var(--page-bg); }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: var(--r-pill);
    border: 3px solid var(--page-bg);
}

/* ---------- 4. Utilitas merek ---------- */

.text-brand { color: var(--brand-on-surface) !important; }
.text-gold { color: var(--gold-on-surface) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.bg-surface { background: var(--surface) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.text-ink-2 { color: var(--ink-2) !important; }

/* Utilitas kecil yang tidak disediakan Bootstrap. */
.opacity-85 { opacity: .85; }
.min-w-0 { min-width: 0; }
@media (min-width: 992px) { .w-lg-auto { width: auto !important; } }

/* Judul dengan garis aksen pendek di bawahnya. */
.title-rule { position: relative; padding-bottom: .7rem; }
.title-rule::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 46px; height: 3px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.title-rule.text-center::after { left: 50%; transform: translateX(-50%); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand-on-surface);
}

/* Potong judul panjang agar tinggi kartu tetap seragam. */
.clamp-1, .clamp-2, .clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ---------- 5. Tombol ---------- */

.btn {
    --bs-btn-border-radius: var(--r-sm);
    font-weight: 600;
    letter-spacing: -.01em;
    border-radius: var(--r-sm);
    transition: transform .16s var(--ease), box-shadow .16s var(--ease),
                background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { border-radius: var(--r-md); padding: .72rem 1.35rem; font-size: 1rem; }
.btn-sm { border-radius: var(--r-sm); }

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 1px 2px rgba(var(--brand-dark-rgb), .3);
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--on-brand);
    box-shadow: var(--shadow-brand);
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
    color: #1a1400;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(var(--gold-rgb), .35);
}
.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold-dark));
    border-color: var(--gold-dark);
    color: #1a1400;
    box-shadow: 0 10px 26px rgba(var(--gold-rgb), .38);
}

.btn-outline-brand {
    border-color: var(--brand-on-surface);
    color: var(--brand-on-surface);
    background: transparent;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
}

/* Tombol netral: memakai token permukaan agar benar di mode gelap. */
.btn-outline-secondary {
    --bs-btn-color: var(--ink-2);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-bg: var(--surface-3);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--line-strong);
}

/* Tombol ikon bulat — dipakai untuk pengalih tema & aksi kecil. */
.btn-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    border-radius: var(--r-pill);
    line-height: 1;
}

/* ---------- 6. Kartu & permukaan ---------- */

.card {
    --bs-card-bg: var(--surface);
    --bs-card-border-color: var(--line);
    --bs-card-color: var(--ink);
    border-radius: var(--r-md);
}
.card.rounded-4 { border-radius: var(--r-lg) !important; }

/* Kartu standar situs: tanpa garis, bayangan lembut, naik sedikit saat disentuh. */
.card-soft {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-soft:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.surface-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

/* Panel yang menempel saat digulir (mis. kotak beli di detail produk). */
@media (min-width: 992px) {
    .sticky-panel { position: sticky; top: 92px; }
}

/* ---------- 7. Navbar ---------- */

.navbar-88 {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.navbar-88.is-scrolled { box-shadow: 0 6px 24px rgba(var(--brand-dark-rgb), .28); }

.navbar-brand {
    font-weight: 800;
    letter-spacing: -.04em;
    font-size: 1.32rem;
}
.navbar-brand .dot { color: var(--gold); }

/* Logo (PNG transparan; bagian putih/kuning dirancang untuk latar hijau/gelap). */
.navbar-brand { padding-block: .1rem; }
/* Logo horizontal (tulisan putih + lambang kuning, transparan): langsung di atas navbar hijau. */
.navbar-brand .brand-logo-h { height: 36px; width: auto; display: block; }
/* Tema "glass" memakai navbar terang: tulisan putih akan hilang, jadi beri ubin hijau di belakang logo. */
html[data-style="glass"] .navbar-88 .brand-logo-h {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 10px;
    padding: 4px 10px;
}
.brand-logo-lg { height: 72px; width: auto; display: block; margin-inline: auto; }
.brand-tile { width: 64px; height: 64px; border-radius: 14px; display: block; }
.admin-logo { height: 38px; width: auto; vertical-align: middle; margin-right: .35rem; }

.navbar-88 .nav-link {
    color: rgba(255, 255, 255, .84);
    font-weight: 600;
    font-size: .93rem;
    border-radius: var(--r-sm);
    padding: .45rem .7rem;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.navbar-88 .nav-link:hover,
.navbar-88 .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .12); }
.navbar-88 .nav-link.active { color: #fff; background: rgba(255, 255, 255, .17); }

.navbar-88 .navbar-toggler {
    border-color: rgba(255, 255, 255, .3);
    border-radius: var(--r-sm);
    padding: .35rem .6rem;
}
.navbar-88 .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

/* Pengalih tema di navbar: kontras putih di atas hijau, bukan token permukaan. */
.navbar-88 .theme-toggle {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
}
.navbar-88 .theme-toggle:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Di layar kecil menu terbuka mendapat panel sendiri agar terbaca,
   bukan sekadar daftar menempel di gradien. */
@media (max-width: 991.98px) {
    .navbar-88 .navbar-collapse {
        margin: .75rem -.25rem -.25rem;
        padding: .5rem;
        background: rgba(0, 0, 0, .18);
        border-radius: var(--r-md);
    }
    .navbar-88 .nav-link { padding: .6rem .75rem; }
    .navbar-88 .navbar-nav > li { width: 100%; }
    .navbar-88 .navbar-nav .btn { width: 100%; }
    .navbar-88 .dropdown-menu { width: 100% !important; }
}

.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-color: var(--ink);
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-bg: var(--surface-2);
    --bs-dropdown-link-hover-color: var(--ink);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: .35rem;
}
.dropdown-item { border-radius: var(--r-sm); padding: .5rem .7rem; }

/* Panel notifikasi: lebar tetap di desktop, ikut layar di ponsel. */
.notif-panel {
    width: min(340px, calc(100vw - 2rem));
    max-height: min(60vh, 420px);
    overflow: auto;
    padding: 0;
}
.notif-item { padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.is-unread { background: var(--brand-soft); }

/* ---------- 8. Hero ---------- */

.hero-88 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, var(--brand-dark));
    color: #fff;
    border-radius: var(--r-xl);
}
/* Dua sorot cahaya lembut memberi kedalaman tanpa menambah file gambar. */
.hero-88::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), .38), transparent 62%);
    pointer-events: none;
}
.hero-88::after {
    content: "";
    position: absolute;
    inset: auto auto -55% -12%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
    pointer-events: none;
}
.hero-88 > * { position: relative; z-index: 1; }
.hero-88 .accent { color: var(--gold); }
.hero-88 h1, .hero-88 h2, .hero-88 h3 { color: #fff; }

/* Angka statistik di hero. */
.hero-stat {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-md);
    padding: .75rem 1.1rem;
    text-align: center;
    backdrop-filter: blur(6px);
    min-width: 104px;
}
.hero-stat .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.hero-stat .lbl { font-size: .74rem; opacity: .8; letter-spacing: .03em; }

/* Baris lencana kepercayaan di bawah tombol hero. */
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    padding: .32rem .7rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
}

/* ---------- 9. Kartu produk ---------- */

.card-product {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--brand-rgb), .35);
}

.card-product .thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}
.card-product .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s var(--ease);
}
.card-product:hover .thumb img { transform: scale(1.05); }

/* Cadangan saat berkas gambar hilang: gradien merek + ikon, bukan kotak abu kosong. */
.thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
    color: var(--brand-on-surface);
}
.thumb-fallback i { font-size: 1.6rem; opacity: .75; }
.thumb-fallback span { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.card-product .card-body { padding: .85rem .9rem .5rem; flex: 1 1 auto; }
.card-product .card-footer {
    background: transparent;
    border: 0;
    padding: 0 .9rem .9rem;
}
.card-product .cat {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.card-product .title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: .3rem 0 .45rem;
    min-height: 2.6em;
}
.card-product .title a { color: var(--ink); text-decoration: none; }
.card-product:hover .title a { color: var(--brand-on-surface); }
.card-product .price { font-size: 1.02rem; font-weight: 800; color: var(--brand-on-surface); }
.card-product .price-old { font-size: .78rem; color: var(--ink-3); text-decoration: line-through; }

/* Lencana diskon & terjual mengambang di atas gambar. */
.ribbon,
.card-product .ribbon {
    position: absolute;
    top: .6rem; left: .6rem;
    z-index: 2;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .25rem .55rem;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: #1a1400;
    box-shadow: var(--shadow-xs);
}
.sold-chip,
.card-product .sold-chip {
    position: absolute;
    right: .6rem; bottom: .6rem;
    z-index: 2;
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, .58);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Strip thumbnail di halaman detail produk. */
.gallery-thumb {
    border: 2px solid var(--line) !important;
    background: var(--surface-2);
    transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.gallery-thumb:hover { transform: translateY(-2px); border-color: var(--line-strong) !important; }
.gallery-thumb.is-active { border-color: var(--brand) !important; }

/* ---------- 10. Formulir ---------- */

.form-control, .form-select {
    background-color: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
    border-radius: var(--r-sm);
    padding: .55rem .8rem;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    color: var(--ink);
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18);
}
.form-control::placeholder { color: var(--ink-3); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .3rem; }
.form-text { color: var(--ink-2); }
.input-group-text {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--ink-2);
}

/* Panel pencarian katalog. */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: .85rem;
}

/* ---------- 11. Lencana & status ---------- */

.badge { font-weight: 700; letter-spacing: .01em; border-radius: var(--r-pill); padding: .38em .7em; }
.badge-gold { background: var(--gold); color: #1a1400; }

.badge-status-pending { background: #F0AD4E; color: #3A2A00; }
.badge-status-waiting-confirmation { background: #3B82F6; color: #fff; }
.badge-status-paid { background: var(--brand); color: var(--on-brand); }
.badge-status-cancelled,
.badge-status-expired { background: #DC3545; color: #fff; }
.badge-status-disputed { background: #6F42C1; color: #fff; }

.stars i { color: var(--gold); }

/* ---------- 12. Tabel, alert, paginasi ---------- */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: var(--surface-2);
    --bs-table-hover-bg: var(--surface-2);
}
.table > thead th {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom-color: var(--line);
    white-space: nowrap;
}
/* Beri isyarat bahwa tabel lebar bisa digeser di layar sempit. */
.table-responsive { border-radius: var(--r-md); }

.alert {
    border-radius: var(--r-md);
    border-width: 1px;
    font-size: .93rem;
}

.pagination {
    --bs-pagination-bg: var(--surface);
    --bs-pagination-color: var(--brand-on-surface);
    --bs-pagination-border-color: var(--line);
    --bs-pagination-hover-bg: var(--surface-2);
    --bs-pagination-hover-color: var(--brand-on-surface);
    --bs-pagination-hover-border-color: var(--line-strong);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-color: var(--on-brand);
    --bs-pagination-active-border-color: var(--brand);
    --bs-pagination-disabled-bg: var(--surface-2);
    --bs-pagination-border-radius: var(--r-sm);
    gap: .25rem;
    flex-wrap: wrap;
}
.page-link { border-radius: var(--r-sm) !important; font-weight: 600; }

.accordion {
    --bs-accordion-bg: var(--surface);
    --bs-accordion-color: var(--ink);
    --bs-accordion-border-color: var(--line);
    --bs-accordion-btn-color: var(--ink);
    --bs-accordion-active-bg: var(--brand-soft);
    --bs-accordion-active-color: var(--brand-on-surface);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18);
}
.accordion-button { font-weight: 600; }

.modal-content {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    border-radius: var(--r-lg);
}

.breadcrumb { --bs-breadcrumb-divider-color: var(--ink-3); font-size: .85rem; }
.breadcrumb-item.active { color: var(--ink-2); }

/* ---------- 12b. Kompatibilitas utilitas Bootstrap ---------- */

/* Bayangan bawaan Bootstrap memakai rgba hitam tetap — hampir tak terlihat
   di mode gelap. Dipetakan ke token agar markup lama ikut benar. */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Kartu tanpa garis tetap butuh batas tipis di mode gelap, kalau tidak
   permukaannya melebur dengan latar halaman. */
[data-bs-theme="dark"] .card.border-0 { border: 1px solid var(--line) !important; }

/* .text-dark tetap gelap di mode gelap. Hanya pasangan dengan .bg-light
   yang dibalik — .bg-warning/.bg-gold sengaja dibiarkan bertulisan gelap. */
[data-bs-theme="dark"] .bg-light.text-dark { color: var(--ink) !important; }

.btn-link { color: var(--brand-on-surface); }
.btn-link:hover { color: var(--brand-dark); }
[data-bs-theme="dark"] .btn-link:hover { color: #fff; }

code {
    background: var(--brand-soft);
    color: var(--brand-on-surface);
    padding: .12em .4em;
    border-radius: .3rem;
    font-size: .88em;
}

.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18); }

.list-group {
    --bs-list-group-bg: var(--surface);
    --bs-list-group-color: var(--ink);
    --bs-list-group-border-color: var(--line);
}

.progress { background: var(--surface-3); }
.progress-bar { background: var(--brand); }

/* ---------- 13. Footer ---------- */

.site-footer {
    margin-top: 4rem;
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--ink-2);
}
.site-footer h2, .site-footer h3 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .7rem;
}
.site-footer a { color: var(--ink-2); text-decoration: none; transition: color .16s var(--ease); }
.site-footer a:hover { color: var(--brand-on-surface); }
.site-footer .footer-links li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- 14. Panel admin ---------- */

.admin-shell { min-height: 100vh; background: var(--page-bg); }

.admin-sidebar {
    width: 250px;
    flex: 0 0 250px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
/* Sidebar tetap & panel geser berbagi kulit yang sama. */
.admin-sidebar,
.admin-offcanvas {
    background: linear-gradient(180deg, var(--brand-dark), #0d1a12);
    background: linear-gradient(180deg, var(--brand-dark), color-mix(in srgb, var(--brand-dark) 72%, #000));
    color: #fff;
}
.admin-offcanvas { width: min(280px, 84vw); }
.admin-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.admin-sidebar .brand,
.admin-offcanvas .brand { color: #fff; font-weight: 800; letter-spacing: -.04em; }

.admin-sidebar .nav-link,
.admin-offcanvas .nav-link {
    color: rgba(255, 255, 255, .78);
    border-radius: var(--r-sm);
    padding: .55rem .8rem;
    font-size: .92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.admin-sidebar .nav-link:hover,
.admin-offcanvas .nav-link:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.admin-sidebar .nav-link.active,
.admin-offcanvas .nav-link.active { background: rgba(255, 255, 255, .18); color: #fff; }
.admin-sidebar .nav-link i,
.admin-offcanvas .nav-link i { width: 1.15rem; text-align: center; font-size: 1rem; }

.admin-sidebar .section-label,
.admin-offcanvas .section-label {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    padding: .9rem .8rem .3rem;
    font-weight: 700;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.kpi-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.kpi-card .kpi-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-on-surface);
    font-size: 1.1rem;
}
.kpi-card .kpi-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.kpi-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.border-brand { border-color: var(--brand) !important; }

.kpi-card .kpi-label { font-size: .76rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ---------- 15. Popup social proof ---------- */

.social-proof { position: fixed; left: 16px; bottom: 16px; z-index: 1050; max-width: 330px; }
.sp-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border: 1px solid var(--gold-dark);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: .7rem .9rem;
    color: var(--sp-ink);
}
/* Palet di atas latar kuning. Nilai dipilih dari uji kontras WCAG:
   #1A1400 -> 7.6:1 (gold) / 10.3:1 (kuning KBC)
   #3D3000 -> 5.4:1 (gold) /  7.2:1 (kuning KBC)
   Warna abu bawaan Bootstrap (1.9:1) TIDAK terbaca di atas kuning. */
.social-proof {
    --sp-ink: #1A1400;
    --sp-ink-soft: #3D3000;
}
.sp-avatar {
    width: 32px; height: 32px;
    min-width: 32px; max-width: 32px;
    flex: 0 0 32px;
    border-radius: 50%; overflow: hidden;
    background: var(--brand-dark);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
    display: block;
}
.sp-avatar .sp-photo {
    width: 32px; height: 32px;
    object-fit: cover; object-position: center;
    display: block; border-radius: 50%;
}
.sp-avatar .sp-initials {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .3px;
}
/* min-width:0 mencegah teks panjang mendorong kartu melebar */
.sp-body { flex: 1 1 auto; min-width: 0; font-size: .82rem; line-height: 1.25; color: var(--sp-ink); }
.sp-text { overflow-wrap: anywhere; }
.sp-time { font-size: .72rem; margin-top: 2px; color: var(--sp-ink-soft); }
.sp-card .text-muted { color: var(--sp-ink-soft) !important; }

.sp-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sp-close, .sp-mute {
    border: 0; background: transparent; padding: 0;
    line-height: 1; cursor: pointer;
    color: var(--sp-ink-soft);
}
.sp-close { font-size: 1.15rem; }
.sp-mute { font-size: .8rem; }
.sp-close:hover, .sp-mute:hover { color: var(--sp-ink); }
.sp-mute:focus-visible, .sp-close:focus-visible {
    outline: 2px solid var(--sp-ink); outline-offset: 2px; border-radius: 3px;
}
.social-proof.sp-in { animation: spIn .4s var(--ease); }
@keyframes spIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 576px) { .social-proof { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* ---------- 16. Avatar & ikon ---------- */

.avatar-initial {
    width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--on-brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}

.why-icon {
    width: 52px; height: 52px; margin: 0 auto;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-on-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    transition: transform .2s var(--ease);
}
.card-soft:hover .why-icon { transform: scale(1.06) rotate(-3deg); }

/* Langkah bernomor di "Belanja Cuma 3 Langkah". */
.step-chip {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-md);
    padding: .6rem .8rem;
    font-size: .87rem;
}
.step-chip .n {
    width: 26px; height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--gold);
    color: #1a1400;
    font-weight: 800;
    font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- 17. Input rating bintang ---------- */

/* Trik: urutan bintang DIBALIK di HTML (5..1) lalu dibalik lagi dgn row-reverse,
   supaya selektor "~" (sibling berikutnya) bisa mewarnai bintang di KIRI
   dari yang di-hover/dipilih. CSS tidak punya selektor "sibling sebelumnya". */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-input input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.star-input label {
    color: var(--line-strong);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s, transform .12s;
    margin: 0;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover,
.star-input label:hover ~ label { transform: scale(1.08); }
.star-input input:focus-visible + label {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}
.star-input.star-sm label { font-size: 1.05rem; }

/* ---------- 17b. Efek 3D parallax ----------
   Variabel --rx/--ry (sudut), --mx/--my & --px/--py (posisi kursor), --sy (gulir)
   ditulis app-ui.js. Tanpa JS semuanya bernilai 0 — tampilan tetap datar. */

/* Panel hero: perspektif di panel, yang miring adalah .row di dalamnya.
   overflow:hidden pada .hero-88 memaksa bidang datar, jadi ruang 3D-nya
   harus dimulai satu tingkat di bawah. */
[data-parallax] { perspective: 1100px; }
[data-parallax] > .row {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .6s var(--ease);
}
[data-parallax].is-tilting > .row { transition: transform .12s linear; }
[data-parallax] > .row > *,
[data-parallax] > .row > * > .row,
[data-parallax] > .row > * > .row > * { transform-style: preserve-3d; }

.depth-1 { transform: translateZ(18px); }
.depth-2 { transform: translateZ(36px); }
.depth-3 { transform: translateZ(60px); }

/* Sorot cahaya bergerak lebih lambat dari halaman saat digulir (parallax),
   dan sedikit mengikuti kursor. */
[data-parallax]::before {
    transform: translate3d(calc(var(--px, 0) * 28px),
                           calc(var(--sy, 0) * .22px + var(--py, 0) * 28px), 0);
    transition: transform .6s var(--ease);
}
[data-parallax]::after { transform: translate3d(0, calc(var(--sy, 0) * -.12px), 0); }
[data-parallax].is-tilting::before { transition: transform .12s linear; }

/* Kartu produk: miring mengikuti kursor + kilau cahaya. */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
/* Selektor kedua mengalahkan .reveal-ready .reveal.is-visible { transform:none }. */
[data-tilt].is-tilting,
.reveal-ready .reveal[data-tilt].is-tilting {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px) scale(1.02);
    transition: transform .12s linear, box-shadow .22s var(--ease), border-color .22s var(--ease);
    box-shadow: var(--shadow-lg);
}
[data-tilt]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .16), transparent 45%);
    opacity: 0;
    transition: opacity .25s var(--ease);
}
[data-tilt].is-tilting::after { opacity: 1; }
[data-style="noir"] [data-tilt]::after {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(var(--brand-rgb), .18), transparent 45%);
}

/* ---------- 17c. Tipografi kinetik ----------
   Potongan .kt-word/.kt-inner/.kt-char dibuat app-ui.js. Kelas .kt-ready di
   <html> dipasang skrip <head> hanya bila animasi diizinkan. */

/* Sembunyikan judul sampai dipecah. Bila app-ui.js gagal dimuat, animasi
   cadangan memunculkannya lagi setelah 1,2 detik — judul tidak pernah hilang. */
.kt-ready .display-hero:not(.is-split),
.kt-ready .section-title:not(.is-split) {
    opacity: 0;
    animation: ktFallback 0s 1.2s forwards;
}
@keyframes ktFallback { to { opacity: 1; } }

/* Tiap kata punya "jendela" sendiri; isinya naik dari bawah garis. */
.kt-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .12em;          /* ruang untuk ekor huruf g, j, y */
    margin-bottom: -.12em;
}
.kt-inner {
    display: inline-block;
    transform: translateY(110%) rotate(6deg);
    transform-origin: 0 100%;
    opacity: 0;
    filter: blur(6px);
    transition:
        transform .9s cubic-bezier(.16, 1, .3, 1),
        opacity .6s ease,
        filter .7s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
}
.kt-in .kt-inner {
    transform: none;
    opacity: 1;
    filter: none;
}
.display-hero .kt-inner { transition-delay: calc(120ms + var(--i, 0) * 90ms); }

/* Kata aksen berganti huruf demi huruf. */
.kt-rotate { display: inline-block; white-space: nowrap; }
.kt-char {
    display: inline-block;
    transition: transform .4s cubic-bezier(.7, 0, .84, 0), opacity .3s ease;
    transition-delay: calc(var(--c, 0) * 22ms);
}
.kt-rotate.is-leaving .kt-char { transform: translateY(-105%); opacity: 0; }
.kt-rotate.is-entering .kt-char { animation: ktCharIn .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--c, 0) * 35ms); }
@keyframes ktCharIn {
    from { transform: translateY(105%) rotateX(-80deg); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* Kata aksen di hero berkilau perlahan. */
.hero-88 .accent .kt-char {
    background: linear-gradient(100deg, var(--gold) 20%, #fff 50%, var(--gold) 80%) 0 0 / 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ktShine 3.2s linear infinite;
}
.hero-88 .kt-rotate.is-entering .kt-char {
    animation: ktCharIn .6s cubic-bezier(.16, 1, .3, 1) both, ktShine 3.2s linear infinite;
    animation-delay: calc(var(--c, 0) * 35ms), .6s;
}
@keyframes ktShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
[data-style="noir"] .hero-88 .accent .kt-char {
    background-image: linear-gradient(100deg, var(--brand) 20%, #FFF3C4 50%, var(--brand) 80%);
}

/* ---------- 17d. Live chat WhatsApp ----------
   Tombol di kanan bawah (popup social proof ada di kiri bawah). */

.lc {
    --lc-green: #25D366;
    --lc-green-dark: #128C7E;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.lc-fab {
    position: relative;
    width: 58px; height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--lc-green);
    color: #fff;
    font-size: 1.65rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .42), 0 2px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lc-fab:hover { transform: translateY(-2px) scale(1.04); }
/* Denyut lembut menarik perhatian tanpa bergerak-gerak terus. */
.lc-fab::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid var(--lc-green);
    animation: lcPulse 2.4s ease-out infinite;
}
.lc.is-open .lc-fab::before { animation: none; opacity: 0; }
@keyframes lcPulse {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.55); opacity: 0; }
}
.lc-ico-close { display: none; }
.lc.is-open .lc-ico-open { display: none; }
.lc.is-open .lc-ico-close { display: inline; font-size: 1.3rem; }

.lc-badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: #EF4444;
    color: #fff;
    font-size: .7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--page-bg);
}
.lc-badge[hidden] { display: none; }

.lc-panel {
    width: min(370px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform-origin: bottom right;
    animation: lcIn .28s var(--ease);
}
.lc-panel[hidden] { display: none; }
@keyframes lcIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.lc-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    background: linear-gradient(135deg, var(--lc-green-dark), #075E54);
    color: #fff;
}
.lc-avatar {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.lc-title { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.lc-status { font-size: .74rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFC9A; box-shadow: 0 0 0 2px rgba(124, 252, 154, .3); }
.lc-close {
    margin-left: auto;
    border: 0; background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.lc-close:hover { background: rgba(255, 255, 255, .22); }

/* Latar percakapan bernuansa WhatsApp, mengikuti mode terang/gelap. */
.lc-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem .85rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background:
        radial-gradient(circle at 1px 1px, rgba(127, 127, 127, .10) 1px, transparent 0) 0 0 / 16px 16px,
        var(--surface-2);
    overscroll-behavior: contain;
}
.lc-msg {
    max-width: 85%;
    padding: .5rem .7rem .35rem;
    border-radius: 12px;
    font-size: .86rem;
    line-height: 1.45;
    box-shadow: var(--shadow-xs);
    animation: lcMsg .25s var(--ease);
}
@keyframes lcMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lc-text { white-space: pre-line; overflow-wrap: anywhere; }
.lc-time { font-size: .66rem; opacity: .6; text-align: right; margin-top: 2px; }
.lc-bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-top-left-radius: 4px; }
.lc-me  { align-self: flex-end; background: #D9FDD3; color: #111B21; border-top-right-radius: 4px; }
[data-bs-theme="dark"] .lc-me { background: #005C4B; color: #E9EDEF; }

.lc-typing { display: flex; gap: 4px; padding: .7rem .8rem; }
.lc-typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ink-3);
    animation: lcDot 1s infinite ease-in-out;
}
.lc-typing span:nth-child(2) { animation-delay: .15s; }
.lc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lcDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.lc-ask {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-top: .45rem;
    font-size: .76rem; font-weight: 700;
    color: var(--lc-green-dark);
    text-decoration: none;
}
[data-bs-theme="dark"] .lc-ask { color: var(--lc-green); }
.lc-ask:hover { text-decoration: underline; }

/* Jawaban cepat: daftar bertingkat vertikal yang bisa dilipat. */
.lc-quick {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: .4rem .75rem .5rem;
}
.lc-quick[hidden] { display: none; }
.lc-quick-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .4rem;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem 0 .4rem;
}
.lc-quick-toggle .bi-lightning-charge-fill { color: var(--lc-green); }
.lc-caret { margin-left: auto; transition: transform .2s var(--ease); }
.lc-quick.is-collapsed .lc-caret { transform: rotate(-90deg); }

.lc-quick-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 210px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    transition: max-height .25s var(--ease), opacity .2s var(--ease);
}
.lc-quick.is-collapsed .lc-quick-list { max-height: 0; opacity: 0; overflow: hidden; }

.lc-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--lc-green);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: var(--r-sm);
    padding: .5rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
    animation: lcChipIn .35s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}
.lc-chip span { flex: 1 1 auto; }
.lc-chip .bi-chevron-right { font-size: .7rem; opacity: .55; transition: transform .16s var(--ease); }
.lc-chip:hover { background: var(--lc-green); border-color: var(--lc-green); color: #fff; transform: translateX(2px); }
.lc-chip:hover .bi-chevron-right { opacity: 1; transform: translateX(2px); }
@keyframes lcChipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lc-form {
    display: flex;
    gap: .5rem;
    padding: .6rem .75rem .75rem;
    background: var(--surface);
}
.lc-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: var(--r-pill);
    padding: .5rem .9rem;
    font-size: .88rem;
}
.lc-input:focus { outline: none; border-color: var(--lc-green); box-shadow: 0 0 0 .2rem rgba(37, 211, 102, .2); }
.lc-send {
    width: 40px; height: 40px; flex: 0 0 40px;
    border: 0; border-radius: 50%;
    background: var(--lc-green);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.lc-send:hover { background: var(--lc-green-dark); }

@media (max-width: 576px) {
    .lc { right: 12px; bottom: 12px; }
    .lc-panel { height: min(540px, calc(100vh - 96px)); }
    /* Popup social proof memenuhi lebar layar di ponsel — angkat ke atas tombol chat. */
    .social-proof { bottom: 84px; }
}

/* ---------- 18. Gerak & preferensi pengguna ---------- */

/* Muncul lembut saat elemen masuk layar. Dinonaktifkan bila pengguna
   meminta pengurangan animasi, dan tidak pernah menyembunyikan konten
   secara permanen kalau JS mati (lihat kelas .reveal-ready di layout). */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Penyesuaian layar kecil ---------- */

@media (max-width: 575.98px) {
    .card-product .card-body { padding: .7rem .75rem .4rem; }
    .card-product .card-footer { padding: 0 .75rem .75rem; }
    .card-product .title { font-size: .87rem; min-height: 2.4em; }
    .card-product .price { font-size: .95rem; }
    .hero-88 { border-radius: var(--r-lg); }
    .btn-lg { padding: .65rem 1.1rem; font-size: .95rem; }
    /* Sasaran sentuh minimal 44px sesuai pedoman aksesibilitas seluler. */
    .btn:not(.btn-sm):not(.btn-link) { min-height: 44px; }
}

/* ---------- 20. Gaya "Noir" (preset Noir Amber) ----------
   Aktif bila <html data-style="noir">. Selalu dipasangkan dengan mode gelap
   (lihat head_theme.php). Selektor html[...] sengaja lebih spesifik daripada
   [data-bs-theme="dark"] agar token di sini menang atas mode gelap biasa. */

html[data-style="noir"] {
    --page-bg: #0B0B0F;
    --surface: #15161C;
    --surface-2: #1B1C23;
    --surface-3: #25262F;
    --ink: #F4F1EA;
    --ink-2: #A9A8B3;
    --ink-3: #7D7C88;
    --line: #262730;
    --line-strong: #363744;

    /* Warna utama sudah terang — aman dibaca langsung di atas latar gelap. */
    --brand-on-surface: var(--brand);
    --gold-on-surface: var(--gold);
    --brand-soft: rgba(var(--brand-rgb), .14);
    --gold-soft: rgba(var(--gold-rgb), .14);

    --r-sm: .75rem;
    --r-md: 1.1rem;
    --r-lg: 1.6rem;
    --r-xl: 2.1rem;

    --shadow-brand: 0 12px 32px rgba(var(--brand-rgb), .28);
    --bs-link-hover-color: var(--gold);
}

/* Sorot amber lembut di sudut atas, seperti cahaya di belakang ponsel. */
html[data-style="noir"] body {
    background:
        radial-gradient(900px 520px at 105% -8%, rgba(var(--brand-rgb), .13), transparent 62%),
        radial-gradient(700px 420px at -10% 110%, rgba(var(--brand-rgb), .06), transparent 60%),
        var(--page-bg);
    background-attachment: fixed;
}

/* Mode terang tidak tersedia di gaya ini. */
html[data-style="noir"] [data-theme-toggle] { display: none !important; }

/* Tombol berbentuk kapsul. */
html[data-style="noir"] .btn { border-radius: var(--r-pill); }
html[data-style="noir"] .btn-link { border-radius: var(--r-sm); }
html[data-style="noir"] .btn-brand:hover,
html[data-style="noir"] .btn-brand:focus { background: var(--gold); border-color: var(--gold); }

/* Latar merek berarti latar amber — tulisan putih tidak terbaca di atasnya. */
html[data-style="noir"] .bg-brand,
html[data-style="noir"] .bg-brand.text-white { color: var(--on-brand) !important; }
html[data-style="noir"] [data-bs-theme="dark"] .btn-link:hover,
html[data-style="noir"] .btn-link:hover { color: var(--gold); }

/* Navbar: kaca gelap, bukan gradien warna utama. */
html[data-style="noir"] .navbar-88 {
    background: rgba(11, 11, 15, .82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
html[data-style="noir"] .navbar-88.is-scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
html[data-style="noir"] .navbar-brand .dot { color: var(--brand); }
html[data-style="noir"] .navbar-88 .nav-link { color: var(--ink-2); border-radius: var(--r-pill); }
html[data-style="noir"] .navbar-88 .nav-link:hover,
html[data-style="noir"] .navbar-88 .nav-link:focus { color: var(--ink); background: rgba(255, 255, 255, .06); }
html[data-style="noir"] .navbar-88 .nav-link.active { color: var(--on-brand); background: var(--brand); }
@media (max-width: 991.98px) {
    html[data-style="noir"] .navbar-88 .navbar-collapse { background: var(--surface); border: 1px solid var(--line); }
}

/* Hero: panel hitam dengan cahaya amber. */
html[data-style="noir"] .hero-88 {
    background:
        radial-gradient(520px 340px at 92% 0%, rgba(var(--brand-rgb), .30), transparent 65%),
        linear-gradient(160deg, #1C1D25, #0F1015 70%);
    border: 1px solid var(--line);
}
html[data-style="noir"] .hero-88::after { background: radial-gradient(circle, rgba(var(--brand-rgb), .12), transparent 65%); }
html[data-style="noir"] .hero-88 .accent { color: var(--brand); }
html[data-style="noir"] .hero-stat,
html[data-style="noir"] .trust-chip,
html[data-style="noir"] .step-chip {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .09);
}
html[data-style="noir"] .hero-stat .num { color: var(--brand); }

/* Kartu: permukaan lebih dalam, garis amber saat disentuh. */
html[data-style="noir"] .card-product:hover,
html[data-style="noir"] .card-soft:hover { border-color: rgba(var(--brand-rgb), .45); }
html[data-style="noir"] .why-icon,
html[data-style="noir"] .kpi-card .kpi-icon {
    background: var(--brand);
    color: var(--on-brand);
    border-radius: var(--r-pill);
}
html[data-style="noir"] .kpi-card .kpi-value { color: var(--ink); }

/* Panel admin. */
html[data-style="noir"] .admin-sidebar,
html[data-style="noir"] .admin-offcanvas {
    background: #0E0F14;
    border-right: 1px solid var(--line);
}
html[data-style="noir"] .admin-sidebar .brand,
html[data-style="noir"] .admin-offcanvas .brand { color: var(--brand); }
html[data-style="noir"] .admin-sidebar .nav-link,
html[data-style="noir"] .admin-offcanvas .nav-link { border-radius: var(--r-pill); color: var(--ink-2); }
html[data-style="noir"] .admin-sidebar .nav-link:hover,
html[data-style="noir"] .admin-offcanvas .nav-link:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
html[data-style="noir"] .admin-sidebar .nav-link.active,
html[data-style="noir"] .admin-offcanvas .nav-link.active { background: var(--brand); color: var(--on-brand); }
html[data-style="noir"] .admin-header {
    background: rgba(11, 11, 15, .85);
    backdrop-filter: blur(12px);
}

html[data-style="noir"] .site-footer { background: #0E0F14; }
html[data-style="noir"] .form-control:focus,
html[data-style="noir"] .form-select:focus { background-color: var(--surface-2); }

/* ---------- 21. Gaya "Clay" (preset Hijau Tokopedia 3D) ----------
   Soft 3D monokrom: halaman, kartu, dan tombol berasal dari satu rona hijau.
   Kesan timbul dibuat dari tiga lapis bayangan:
     1. sorot putih tipis di tepi atas (inset) — cahaya dari atas,
     2. bayangan gelap di tepi bawah (inset) — ketebalan benda,
     3. bayangan jatuh lembut di bawah — benda melayang di atas latar.
   Kolom isian kebalikannya: tampak "ditekan" ke dalam. */

html[data-style="clay"] {
    --page-bg: #066F0E;
    --surface: #0A8115;
    --surface-2: #087612;
    --surface-3: #0E8E1A;
    --ink: #FFFFFF;
    --ink-2: #D3F3D6;
    --ink-3: #A8E2AE;
    --line: rgba(255, 255, 255, .16);
    --line-strong: rgba(255, 255, 255, .26);

    --brand-on-surface: #C9FACD;
    --gold-on-surface: var(--gold);
    --brand-soft: rgba(255, 255, 255, .10);
    --gold-soft: rgba(var(--gold-rgb), .18);

    --r-sm: .9rem;
    --r-md: 1.25rem;
    --r-lg: 1.75rem;
    --r-xl: 2.4rem;

    --clay-raise:
        inset 0 2px 0 rgba(255, 255, 255, .20),
        inset 0 -4px 8px rgba(0, 0, 0, .14),
        0 12px 26px rgba(0, 38, 4, .38),
        0 2px 5px rgba(0, 38, 4, .25);
    --clay-raise-sm:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -2px 4px rgba(0, 0, 0, .14),
        0 6px 14px rgba(0, 38, 4, .32);
    --clay-press:
        inset 0 3px 7px rgba(0, 0, 0, .28),
        inset 0 -1px 0 rgba(255, 255, 255, .10);

    --shadow-xs: var(--clay-raise-sm);
    --shadow-sm: var(--clay-raise);
    --shadow-md: var(--clay-raise), 0 18px 40px rgba(0, 38, 4, .25);
    --shadow-lg: var(--clay-raise), 0 26px 56px rgba(0, 38, 4, .35);
    --shadow-brand: var(--clay-raise-sm);

    --bs-link-hover-color: #FFFFFF;
    --bs-emphasis-color: #FFFFFF;
}

/* Latar: terang di tengah atas, menggelap ke tepi — seperti cahaya studio. */
html[data-style="clay"] body {
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, .10), transparent 60%),
        linear-gradient(180deg, #078012, #055E0B);
    background-attachment: fixed;
}

html[data-style="clay"] [data-theme-toggle] { display: none !important; }

/* Permukaan timbul: semua kartu & panel. Garis diganti sorot cahaya. */
html[data-style="clay"] .card,
html[data-style="clay"] .card-soft,
html[data-style="clay"] .card-product,
html[data-style="clay"] .surface-panel,
html[data-style="clay"] .filter-bar,
html[data-style="clay"] .kpi-card,
html[data-style="clay"] .modal-content,
html[data-style="clay"] .dropdown-menu,
html[data-style="clay"] .lc-panel {
    background: linear-gradient(160deg, #0E8D1A, #097A13);
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: var(--clay-raise);
}
html[data-style="clay"] .card { --bs-card-bg: transparent; }
html[data-style="clay"] .card-product:hover,
html[data-style="clay"] .card-soft:hover { border-color: rgba(255, 255, 255, .28) !important; }
html[data-style="clay"] .card-product .thumb { background: #087612; }

/* Tombol: kapsul hijau mengilap yang menonjol. */
html[data-style="clay"] .btn { border-radius: var(--r-pill); }
html[data-style="clay"] .btn-brand,
html[data-style="clay"] .btn-outline-brand:hover {
    background: linear-gradient(180deg, #33CC40, var(--brand) 55%, var(--brand-dark));
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 50, 5, .45);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .40),
        inset 0 -3px 0 rgba(0, 0, 0, .14),
        0 8px 18px rgba(0, 38, 4, .40);
}
html[data-style="clay"] .btn-brand:hover,
html[data-style="clay"] .btn-brand:focus {
    background: linear-gradient(180deg, #45D851, #12B81D 55%, var(--brand));
    color: #fff;
    transform: translateY(-1px);
}
html[data-style="clay"] .btn-brand:active,
html[data-style="clay"] .btn-gold:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25);
}
html[data-style="clay"] .btn-gold {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .55),
        inset 0 -3px 0 rgba(0, 0, 0, .12),
        0 8px 18px rgba(0, 38, 4, .40);
}
html[data-style="clay"] .btn-outline-brand { border-color: rgba(255, 255, 255, .45); color: #fff; }
html[data-style="clay"] .btn-outline-secondary,
html[data-style="clay"] .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .30);
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-color: #fff;
    background: rgba(255, 255, 255, .06);
    box-shadow: var(--clay-raise-sm);
}

/* Kolom isian tampak ditekan ke dalam permukaan. */
html[data-style="clay"] .form-control,
html[data-style="clay"] .form-select,
html[data-style="clay"] .lc-input {
    background-color: #066A0D;
    border-color: rgba(0, 0, 0, .12);
    color: #fff;
    box-shadow: var(--clay-press);
}
html[data-style="clay"] .form-control:focus,
html[data-style="clay"] .form-select:focus,
html[data-style="clay"] .lc-input:focus {
    background-color: #05630C;
    border-color: rgba(255, 255, 255, .45);
    box-shadow: var(--clay-press), 0 0 0 .2rem rgba(255, 255, 255, .18);
}
html[data-style="clay"] .input-group-text { background: #087612; color: var(--ink-2); }

/* Navbar: lempeng timbul; menu aktif berupa segmen kapsul. */
html[data-style="clay"] .navbar-88 {
    background: linear-gradient(180deg, #0C8A17, #08780F);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .10), 0 8px 22px rgba(0, 38, 4, .35);
}
html[data-style="clay"] .navbar-88 .nav-link { border-radius: var(--r-pill); color: rgba(255, 255, 255, .85); }
html[data-style="clay"] .navbar-88 .nav-link.active,
html[data-style="clay"] .navbar-88 .nav-link:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 38, 4, .25);
}
html[data-style="clay"] .navbar-brand .dot { color: var(--gold); }

/* Hero: lempeng besar timbul dengan sorot di kiri atas. */
html[data-style="clay"] .hero-88 {
    background:
        radial-gradient(600px 360px at 10% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(160deg, #13A020, #0A8114 60%, #087211);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-lg);
}
html[data-style="clay"] .hero-stat,
html[data-style="clay"] .trust-chip,
html[data-style="clay"] .step-chip {
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
    border-color: rgba(255, 255, 255, .18);
    box-shadow: var(--clay-raise-sm);
}

/* Ikon di dalam "tombol" timbul kecil. */
html[data-style="clay"] .why-icon,
html[data-style="clay"] .kpi-card .kpi-icon {
    background: linear-gradient(180deg, #33CC40, var(--brand));
    color: #fff;
    box-shadow: var(--clay-raise-sm);
}

html[data-style="clay"] .badge-status-paid { background: #fff; color: var(--brand-dark); }
html[data-style="clay"] .bg-brand { background: linear-gradient(180deg, #33CC40, var(--brand)) !important; }
html[data-style="clay"] .pagination { --bs-pagination-bg: #087612; --bs-pagination-active-bg: var(--brand); }
html[data-style="clay"] .title-rule::after { background: linear-gradient(90deg, #fff, var(--gold)); }
html[data-style="clay"] .table { --bs-table-hover-bg: rgba(255, 255, 255, .06); --bs-table-striped-bg: rgba(255, 255, 255, .04); }

/* Panel admin. */
html[data-style="clay"] .admin-sidebar,
html[data-style="clay"] .admin-offcanvas {
    background: linear-gradient(180deg, #087C12, #055E0B);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .10), 8px 0 24px rgba(0, 38, 4, .25);
}
html[data-style="clay"] .admin-sidebar .nav-link,
html[data-style="clay"] .admin-offcanvas .nav-link { border-radius: var(--r-pill); }
html[data-style="clay"] .admin-sidebar .nav-link.active,
html[data-style="clay"] .admin-offcanvas .nav-link.active {
    background: linear-gradient(180deg, #33CC40, var(--brand));
    box-shadow: var(--clay-raise-sm);
}
html[data-style="clay"] .admin-header {
    background: linear-gradient(180deg, #0C8A17, #08780F);
    border-bottom-color: rgba(255, 255, 255, .10);
}
html[data-style="clay"] .site-footer {
    background: #055E0B;
    border-top-color: rgba(255, 255, 255, .10);
}

/* Live chat: isi percakapan ikut nuansa hijau. */
html[data-style="clay"] .lc-body { background-color: #087612; }
html[data-style="clay"] .lc-bot { background: #0E8D1A; color: #fff; }
html[data-style="clay"] .lc-quick,
html[data-style="clay"] .lc-form { background: transparent; }
html[data-style="clay"] .lc-chip { background: rgba(255, 255, 255, .07); box-shadow: var(--clay-raise-sm); }

/* ---------- 22. Gaya "Glass" (preset Liquid Glass) ----------
   Kaca mengilap di atas latar berwarna lembut. Tiga bahan utamanya:
     - panel tembus pandang + backdrop-filter (kaca buram),
     - sorot putih di tepi atas (inset) — kilap permukaan kaca,
     - bayangan jatuh berwarna (ungu/mint), bukan hitam — cahaya yang
       menembus kaca berwarna.
   Tepi berpelangi dibuat dengan ::after + mask, hanya pada panel besar,
   karena ::after kartu produk sudah dipakai efek kilau tilt. */

html[data-style="glass"] {
    --page-bg: #ECE8EE;
    --surface: rgba(255, 255, 255, .58);
    --surface-2: rgba(255, 255, 255, .40);
    --surface-3: rgba(255, 255, 255, .72);
    --ink: #1E1B2E;
    --ink-2: #565270;
    --ink-3: #8682A0;
    --line: rgba(110, 100, 170, .16);
    --line-strong: rgba(110, 100, 170, .28);

    --brand-on-surface: var(--brand);
    --gold-on-surface: #13897C;
    --brand-soft: rgba(var(--brand-rgb), .12);
    --gold-soft: rgba(var(--gold-rgb), .25);

    --r-sm: .9rem;
    --r-md: 1.3rem;
    --r-lg: 1.8rem;
    --r-xl: 2.4rem;

    --glass-blur: blur(18px) saturate(170%);
    --glass-edge:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -1px 0 rgba(255, 255, 255, .35),
        inset 0 0 0 1px rgba(255, 255, 255, .45);
    --glass-drop: 0 14px 34px rgba(76, 64, 150, .16), 0 2px 6px rgba(76, 64, 150, .08);

    --shadow-xs: var(--glass-edge), 0 2px 6px rgba(76, 64, 150, .08);
    --shadow-sm: var(--glass-edge), var(--glass-drop);
    --shadow-md: var(--glass-edge), 0 20px 44px rgba(76, 64, 150, .20);
    --shadow-lg: var(--glass-edge), 0 28px 60px rgba(76, 64, 150, .24);
    --shadow-brand: 0 12px 26px rgba(var(--brand-rgb), .40);

    --iris: linear-gradient(135deg, #B79CFF, #7DD3FC 35%, #8EF0D8 60%, #F9A8D4 85%, #B79CFF);
}

/* Latar: krem hangat ke abu kebiruan, dengan gumpalan warna di belakang kaca. */
html[data-style="glass"] body {
    background:
        radial-gradient(520px 420px at 12% 18%, rgba(167, 139, 250, .38), transparent 70%),
        radial-gradient(560px 460px at 88% 30%, rgba(125, 224, 212, .38), transparent 70%),
        radial-gradient(620px 520px at 70% 95%, rgba(249, 168, 212, .30), transparent 70%),
        radial-gradient(500px 400px at 20% 90%, rgba(253, 186, 116, .25), transparent 70%),
        linear-gradient(135deg, #F5EFE8, #E8E4EF 50%, #CDD3DF);
    background-attachment: fixed;
}

html[data-style="glass"] [data-theme-toggle] { display: none !important; }

/* Semua panel menjadi kaca buram. */
html[data-style="glass"] .card,
html[data-style="glass"] .card-soft,
html[data-style="glass"] .card-product,
html[data-style="glass"] .surface-panel,
html[data-style="glass"] .filter-bar,
html[data-style="glass"] .kpi-card,
html[data-style="glass"] .modal-content,
html[data-style="glass"] .dropdown-menu,
html[data-style="glass"] .lc-panel,
html[data-style="glass"] .site-footer {
    background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
    border: 1px solid rgba(255, 255, 255, .7) !important;
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
html[data-style="glass"] .card { --bs-card-bg: transparent; }
html[data-style="glass"] .card-product .thumb { background: rgba(255, 255, 255, .35); }
html[data-style="glass"] .card-product:hover,
html[data-style="glass"] .card-soft:hover { box-shadow: var(--shadow-md); }
html[data-style="glass"] [data-tilt]::after {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .55), rgba(183, 156, 255, .12) 30%, transparent 55%);
}

/* Tepi pelangi pada panel besar. */
html[data-style="glass"] .surface-panel,
html[data-style="glass"] .kpi-card,
html[data-style="glass"] .filter-bar { position: relative; }
html[data-style="glass"] .surface-panel::after,
html[data-style="glass"] .kpi-card::after,
html[data-style="glass"] .filter-bar::after,
html[data-style="glass"] .hero-88::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--iris);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .75;
    pointer-events: none;
    transform: none;
    width: auto; height: auto;
}

/* Tombol utama: kapsul ungu glossy dengan bayangan berwarna. */
html[data-style="glass"] .btn { border-radius: var(--r-pill); }
html[data-style="glass"] .btn-brand,
html[data-style="glass"] .btn-outline-brand:hover {
    background: linear-gradient(180deg, #8D90FF, var(--brand) 60%, var(--brand-dark));
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    font-weight: 700;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .55),
        inset 0 -2px 0 rgba(0, 0, 0, .10),
        0 12px 24px rgba(var(--brand-rgb), .42);
}
html[data-style="glass"] .btn-brand:hover,
html[data-style="glass"] .btn-brand:focus {
    background: linear-gradient(180deg, #9EA1FF, #6B6FF5 60%, var(--brand));
    color: #fff;
    transform: translateY(-1px);
}
/* Tombol sekunder (beli): mint glossy bertulisan gelap. */
html[data-style="glass"] .btn-gold {
    background: linear-gradient(180deg, #B6F3EA, var(--gold) 60%, var(--gold-dark));
    border-color: rgba(255, 255, 255, .6);
    color: #0B3B35;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .7),
        inset 0 -2px 0 rgba(0, 0, 0, .06),
        0 12px 24px rgba(79, 199, 184, .40);
}
html[data-style="glass"] .btn-gold:hover,
html[data-style="glass"] .btn-gold:focus { color: #0B3B35; transform: translateY(-1px); }
/* Tombol netral: kaca bening. */
html[data-style="glass"] .btn-outline-secondary,
html[data-style="glass"] .btn-outline-light,
html[data-style="glass"] .btn-outline-brand {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: rgba(255, 255, 255, .8);
    --bs-btn-hover-bg: rgba(255, 255, 255, .8);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: #fff;
    color: var(--ink);
    background: rgba(255, 255, 255, .45);
    border-color: rgba(255, 255, 255, .8);
    box-shadow: var(--glass-edge), 0 8px 18px rgba(76, 64, 150, .12);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

/* Kolom isian: kapsul kaca yang sedikit cekung. */
html[data-style="glass"] .form-control,
html[data-style="glass"] .form-select,
html[data-style="glass"] .lc-input {
    background-color: rgba(255, 255, 255, .62);
    border-color: rgba(255, 255, 255, .9);
    color: var(--ink);
    box-shadow: inset 0 2px 5px rgba(76, 64, 150, .10), 0 1px 0 rgba(255, 255, 255, .8);
}
html[data-style="glass"] .form-control:focus,
html[data-style="glass"] .form-select:focus,
html[data-style="glass"] .lc-input:focus {
    background-color: rgba(255, 255, 255, .85);
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: inset 0 2px 5px rgba(76, 64, 150, .08), 0 0 0 .22rem rgba(var(--brand-rgb), .18);
}
html[data-style="glass"] .input-group-text { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .9); }
html[data-style="glass"] .form-check-input:checked { box-shadow: 0 4px 10px rgba(var(--brand-rgb), .35); }

/* Navbar: lembaran kaca yang menempel di atas. */
html[data-style="glass"] .navbar-88 {
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .8), 0 8px 24px rgba(76, 64, 150, .10);
}
html[data-style="glass"] .navbar-88 .navbar-brand { color: var(--ink); }
html[data-style="glass"] .navbar-88 .navbar-brand .dot { color: var(--brand); }
html[data-style="glass"] .navbar-88 .navbar-toggler { border-color: var(--line-strong); }
html[data-style="glass"] .navbar-88 .navbar-toggler-icon { filter: invert(1) brightness(.3); }
html[data-style="glass"] .navbar-88 .nav-link { color: var(--ink-2); border-radius: var(--r-pill); }
html[data-style="glass"] .navbar-88 .nav-link:hover,
html[data-style="glass"] .navbar-88 .nav-link:focus { color: var(--ink); background: rgba(255, 255, 255, .7); }
html[data-style="glass"] .navbar-88 .nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, #8D90FF, var(--brand));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 14px rgba(var(--brand-rgb), .35);
}
@media (max-width: 991.98px) {
    html[data-style="glass"] .navbar-88 .navbar-collapse { background: rgba(255, 255, 255, .6); }
}

/* Hero: panel kaca besar bertulisan gelap. */
html[data-style="glass"] .hero-88 {
    color: var(--ink);
    background: linear-gradient(160deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .38));
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
html[data-style="glass"] .hero-88::before {
    background: radial-gradient(circle, rgba(167, 139, 250, .40), transparent 62%);
}
html[data-style="glass"] .hero-88 h1,
html[data-style="glass"] .hero-88 h2,
html[data-style="glass"] .hero-88 h3,
html[data-style="glass"] .hero-88 .text-white { color: var(--ink) !important; }
html[data-style="glass"] .hero-88 .eyebrow { color: var(--brand) !important; }
html[data-style="glass"] .hero-88 .accent { color: var(--brand); }
html[data-style="glass"] .hero-88 .accent .kt-char {
    background-image: linear-gradient(100deg, var(--brand) 15%, #E879F9 45%, #22D3EE 60%, var(--brand) 85%);
}
html[data-style="glass"] .hero-stat,
html[data-style="glass"] .trust-chip,
html[data-style="glass"] .step-chip {
    color: var(--ink);
    background: rgba(255, 255, 255, .55);
    border-color: rgba(255, 255, 255, .85);
    box-shadow: var(--glass-edge), 0 8px 18px rgba(76, 64, 150, .12);
}
html[data-style="glass"] .hero-stat .num { color: var(--brand); }

/* Ikon dalam gelembung kaca berwarna. */
html[data-style="glass"] .why-icon,
html[data-style="glass"] .kpi-card .kpi-icon {
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(var(--brand-rgb), .18));
    color: var(--brand);
    box-shadow: var(--glass-edge), 0 6px 14px rgba(var(--brand-rgb), .22);
    border-radius: var(--r-pill);
}

html[data-style="glass"] .stars i,
html[data-style="glass"] .star-input input:checked ~ label { color: #F5A524; }
html[data-style="glass"] .ribbon { color: #0B3B35; }
html[data-style="glass"] .title-rule::after { background: var(--iris); }

/* Panel admin: sidebar kaca bertulisan gelap. */
html[data-style="glass"] .admin-sidebar,
html[data-style="glass"] .admin-offcanvas {
    background: rgba(255, 255, 255, .5);
    color: var(--ink);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .9), 8px 0 28px rgba(76, 64, 150, .10);
}
html[data-style="glass"] .admin-sidebar .brand,
html[data-style="glass"] .admin-offcanvas .brand { color: var(--brand); }
html[data-style="glass"] .admin-sidebar .nav-link,
html[data-style="glass"] .admin-offcanvas .nav-link { color: var(--ink-2); border-radius: var(--r-pill); }
html[data-style="glass"] .admin-sidebar .nav-link:hover,
html[data-style="glass"] .admin-offcanvas .nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
html[data-style="glass"] .admin-sidebar .nav-link.active,
html[data-style="glass"] .admin-offcanvas .nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, #8D90FF, var(--brand));
    box-shadow: 0 6px 14px rgba(var(--brand-rgb), .35);
}
html[data-style="glass"] .admin-sidebar .section-label,
html[data-style="glass"] .admin-offcanvas .section-label { color: var(--ink-3); }
html[data-style="glass"] .admin-sidebar hr,
html[data-style="glass"] .admin-offcanvas hr { color: var(--line-strong) !important; }
html[data-style="glass"] .admin-offcanvas .btn-close { filter: none; }
html[data-style="glass"] .admin-header {
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom-color: rgba(255, 255, 255, .8);
}

/* Live chat: gelembung kaca. */
html[data-style="glass"] .lc-body { background-color: rgba(255, 255, 255, .25); }
html[data-style="glass"] .lc-bot { background: rgba(255, 255, 255, .85); }
html[data-style="glass"] .lc-quick,
html[data-style="glass"] .lc-form { background: transparent; }
html[data-style="glass"] .lc-chip { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .9); }

/* Peramban tanpa backdrop-filter: kaca dibuat lebih pekat agar teks tetap terbaca. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html[data-style="glass"] .card,
    html[data-style="glass"] .card-product,
    html[data-style="glass"] .hero-88,
    html[data-style="glass"] .navbar-88,
    html[data-style="glass"] .dropdown-menu,
    html[data-style="glass"] .modal-content { background: rgba(255, 255, 255, .9); }
}
