/* ==========================================================================
   Binaje - Stylesheet utama
   1. Pembolehubah & asas
   2. Laman awam (landing page, produk)
   3. Shell dashboard (sidebar + kandungan)
   4. Komponen dashboard (stat card, panel, jadual)
   5. Halaman auth (login/daftar)
   6. Responsif
   ========================================================================== */

/* 1. PEMBOLEHUBAH & ASAS ================================================== */
:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --staff-grad: linear-gradient(135deg, #0f172a 0%, #334155 100%);

  --ink: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e9ecf1;
  --page: #f4f6f9;
  --card: #ffffff;

  --radius: 14px;
  --sidebar-w: 264px;
}

/* Offset supaya tajuk seksyen tidak tersorok di bawah navbar sticky
   bila pengguna klik anchor link (#apa-itu, #faq, dll). */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: none;
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  color: #fff;
}
/* Bootstrap menetapkan latar telus untuk .btn:disabled dengan spesifisiti lebih
   tinggi, jadi butang brand yang dilumpuhkan akan hilang tanpa peraturan ini. */
.btn-brand:disabled,
.btn-brand.disabled {
  background: var(--brand);
  color: #fff;
  opacity: .65;
}

/* 2. LAMAN AWAM =========================================================== */
.navbar-brand {
  letter-spacing: .3px;
}

.btn-ebook-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #4f46e5;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .28), 0 8px 22px rgba(79, 70, 229, .4);
}
.btn-ebook-nav:hover,
.btn-ebook-nav:focus {
  background: #eef2ff;
  color: #3730a3;
}
.btn-ebook-nav.is-active {
  background: #e0e7ff;
  color: #312e81;
  box-shadow: 0 0 0 2px #fff, 0 8px 22px rgba(79, 70, 229, .4);
}
.btn-ebook-nav.btn-lg {
  padding: 10px 22px;
  font-size: 1.1rem;
}

.hero-landing {
  background: var(--brand-grad);
  color: #fff;
  padding: 60px 0;
}

/* Hanya padding menegak: kelas ini dipakai bersama .container, jadi shorthand
   akan memadam padding sisi Bootstrap dan menyebabkan baris bergutter (g-4/g-5)
   melimpah keluar skrin pada peranti kecil. */
.landing-section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.landing-section h2 {
  font-weight: 700;
  margin-bottom: 24px;
}

.card-product {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transition: transform .15s ease;
}
.card-product:hover {
  transform: translateY(-4px);
}

.content-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
}
.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.content-body h2,
.content-body h3,
.content-body h4 {
  font-weight: 700;
  margin-top: 1.4em;
}
.content-body ul,
.content-body ol {
  padding-left: 1.3rem;
}

.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

footer.site-footer {
  padding: 24px 0;
  color: var(--faint);
  font-size: .9rem;
  text-align: center;
}

/* 3. SHELL DASHBOARD ====================================================== */
body.app-body {
  background: var(--page);
}

/* Bar amaran apabila staff sedang "log masuk sebagai" akaun usahawan.
   Fixed di atas segalanya supaya staff tidak lupa mereka bukan di akaun sendiri. */
.impersonate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  height: var(--impersonate-h, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(90deg, #b45309, #92400e);
  color: #fff;
  font-size: 13px;
  flex-wrap: wrap;
}
.impersonate-bar i {
  margin-right: 4px;
}
body.impersonating .sidebar {
  top: var(--impersonate-h, 44px);
}
body.impersonating .app-main {
  margin-top: var(--impersonate-h, 44px);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1040;
}

.brand-card {
  margin: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
}
.brand-card.staff {
  background: var(--staff-grad);
}
.brand-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.brand-sub {
  font-size: 11.5px;
  opacity: .82;
  margin-top: 4px;
}

.side-nav {
  padding: 2px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Kumpulan terakhir ditolak ke bawah sidebar, supaya Tetapan dan Log Keluar
   sentiasa duduk di penjuru bawah tanpa mengira berapa banyak menu di atasnya. */
.side-bottom {
  margin-top: auto;
  padding-top: 12px;
}

/* Elak item menu dimampatkan apabila sidebar menjadi flex column. */
.side-item,
.side-section,
.side-bottom {
  flex: none;
}

/* Nota: kelas sidebar sengaja diprefiks "side-" supaya tidak bertembung
   dengan kelas Bootstrap (.nav-item) yang digunakan navbar laman awam. */
.side-section {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin: 16px 10px 6px;
}

.side-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 2px;
}
.side-item:hover {
  background: #f6f7f9;
  color: var(--ink);
}
.side-item.active {
  background: var(--brand-soft);
}
.side-item.active .ni-label {
  color: var(--brand-dark);
}
.side-item.danger .ni-label {
  color: #dc2626;
}

.ni-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.side-item.active .ni-icon {
  background: #fff;
}
.ni-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
}
.ni-desc {
  display: block;
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

/* Versi kecil ikon untuk pautan "Tetapan" dalam kad akaun. */
.ni-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}

/* Kad terkumpul "Tetapan" + profil + log keluar di penjuru bawah sidebar. */
.acct-card {
  margin: 4px 10px 0;
  padding: 6px;
  border-radius: 14px;
  background: #f7f7fb;
  border: 1px solid var(--line);
}
.acct-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
}
.acct-link:hover,
.acct-link.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
}
.acct-link .ni-icon-sm {
  background: transparent;
  width: 20px;
  height: 20px;
  font-size: 13px;
  color: inherit;
}
.acct-link .ni-label {
  font-size: 12.5px;
}
.acct-link.active .ni-icon-sm {
  color: var(--brand);
}
.acct-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 4px;
}
.acct-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 3px 3px;
}
.acct-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  flex: none;
}
.sidebar-account-info {
  min-width: 0;
  flex: 1;
}
.sidebar-account-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-account-role {
  font-size: 10.5px;
  color: var(--faint);
}
.btn-logout {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  flex: none;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .35);
}
.btn-logout:hover,
.btn-logout:focus {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 3px 8px rgba(220, 38, 38, .45);
}

.side-foot {
  padding: 14px 18px 18px;
  font-size: 10.5px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 22px 26px 44px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.crumb {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 2px;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.page-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sb-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 17px;
  line-height: 1;
}
.topbar-title {
  font-weight: 700;
}
.sb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 1035;
}

/* 4. KOMPONEN DASHBOARD =================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.stat-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.i-purple { background: #ede9fe; }
.i-green  { background: #dcfce7; }
.i-pink   { background: #fce7f3; }
.i-blue   { background: #dbeafe; }
.i-orange { background: #ffedd5; }
.i-yellow { background: #fef9c3; }
.i-red    { background: #fee2e2; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}
.panel-body {
  padding: 16px;
}

.panel .table {
  margin: 0;
}
.panel .table thead th {
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.panel .table td {
  font-size: 13.5px;
  vertical-align: middle;
  padding: 12px 16px;
  border-color: #f1f3f6;
}

.empty-state {
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
  padding: 34px 16px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  /* Lencana sepatutnya sentiasa satu baris. Tanpa ini ia berpecah dan menjadi
     bulat herot bila diletak sebelah tajuk panel pada skrin sempit. */
  white-space: nowrap;
  flex: none;
}
.pill-green  { background: #dcfce7; color: #15803d; }
.pill-grey   { background: #f1f3f6; color: #4b5563; }
.pill-red    { background: #fee2e2; color: #b91c1c; }
.pill-amber  { background: #fef3c7; color: #a16207; }
.pill-blue   { background: #dbeafe; color: #1d4ed8; }

.thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

/* 5. HALAMAN AUTH ========================================================= */
body.auth-body {
  background: var(--page);
  display: flex;
  align-items: center;
  min-height: 100vh;
}
.auth-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 16px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}
.auth-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-grad);
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 10px;
}
.auth-mark.staff {
  background: var(--staff-grad);
}
.auth-brand h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
.auth-brand p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 0;
}
.auth-foot {
  text-align: center;
  font-size: 13px;
  margin-top: 18px;
  color: var(--muted);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.auth-back:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 5b. HALAMAN AUTH VERSI GELAP ============================================
   Dipakai bersama .auth-body pada halaman log masuk, daftar dan status
   bayaran, supaya seragam dengan laman utama yang berlatar animasi.
   ========================================================================== */
body.auth-dark {
  background: #0a0618;
  color: #b9c0d4;
}
body.auth-dark .auth-wrap {
  position: relative;
  z-index: 1;
}
body.auth-dark .auth-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.auth-dark h1,
body.auth-dark h2,
body.auth-dark h3,
body.auth-dark h4,
body.auth-dark h5,
body.auth-dark h6 {
  color: #fff;
}
body.auth-dark .auth-brand p,
body.auth-dark .auth-foot {
  color: #98a1bd;
}
body.auth-dark .auth-foot a {
  color: #c4b5fd;
}
body.auth-dark .auth-foot a.text-muted {
  color: #8e97b4 !important;
}

body.auth-dark .auth-back {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #c3cadd;
}
body.auth-dark .auth-back:hover {
  border-color: rgba(167, 139, 250, .6);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Medan borang atas latar gelap. Dikongsi oleh halaman auth dan borang belian
   pada landing page produk, kerana kedua-duanya berdiri atas latar animasi. */
body.auth-dark .form-label,
body.landing-dark .form-label {
  color: #c3cadd;
  font-size: 13.5px;
  font-weight: 600;
}
body.auth-dark .form-control,
body.landing-dark .form-control,
body.landing-dark .form-control-dark {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #e8eaf3 !important;
}
body.auth-dark .form-control:focus,
body.landing-dark .form-control:focus,
body.landing-dark .form-control-dark:focus {
  background: rgba(255, 255, 255, .09) !important;
  border-color: rgba(167, 139, 250, .6) !important;
  box-shadow: 0 0 0 .2rem rgba(139, 92, 246, .22) !important;
  color: #fff !important;
}
body.auth-dark .form-control::placeholder,
body.landing-dark .form-control::placeholder,
body.landing-dark .form-control-dark::placeholder {
  color: #78819e !important;
}
body.auth-dark .form-control:disabled,
body.landing-dark .form-control:disabled {
  background: rgba(255, 255, 255, .03);
  color: #8e97b4;
}
body.auth-dark .form-text,
body.landing-dark .form-text {
  color: #8e97b4 !important;
}
/* Browser memaksa latar cerah pada medan autofill, jadi ia perlu ditindih
   supaya tidak jadi kotak putih terang atas kad gelap. */
body.auth-dark .form-control:-webkit-autofill,
body.auth-dark .form-control:-webkit-autofill:hover,
body.landing-dark .form-control:-webkit-autofill,
body.landing-dark .form-control:-webkit-autofill:hover,
body.landing-dark .form-control-dark:-webkit-autofill,
body.landing-dark .form-control-dark:-webkit-autofill:hover {
  -webkit-text-fill-color: #e8eaf3 !important;
  -webkit-box-shadow: 0 0 0 1000px #1b1440 inset !important;
  box-shadow: 0 0 0 1000px #1b1440 inset !important;
  caret-color: #fff;
  /* Tanpa ini, pelayar melukis latar terang sekelip sebelum box-shadow di atas
     ditindih semasa medan diisi automatik ("flash" putih yang nampak semasa
     klik/pilih cadangan kata laluan tersimpan). */
  transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s;
}
/* Gabungkan latar inset gelap dengan gegelang ungu fokus DALAM SATU
   box-shadow. Tanpa ini, peraturan ".form-control:focus" (guna !important
   juga) menindih box-shadow inset di atas apabila medan autofill DAN fokus
   serentak - menyebabkan latar putih asli pelayar terdedah semula walaupun
   sudah diklik/dipilih. */
body.auth-dark .form-control:-webkit-autofill:focus,
body.landing-dark .form-control:-webkit-autofill:focus,
body.landing-dark .form-control-dark:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #1b1440 inset, 0 0 0 .2rem rgba(139, 92, 246, .22) !important;
  box-shadow: 0 0 0 1000px #1b1440 inset, 0 0 0 .2rem rgba(139, 92, 246, .22) !important;
  caret-color: #fff;
}

body.auth-dark .btn-dark {
  background: var(--staff-grad);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}
body.auth-dark .btn-dark:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
body.auth-dark .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .24);
  color: #c3cadd;
}
body.auth-dark .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

body.auth-dark .alert-danger,
body.landing-dark .alert-danger {
  background: rgba(220, 38, 38, .16);
  border-color: rgba(248, 113, 113, .34);
  color: #fecaca;
}
body.auth-dark .alert-success,
body.landing-dark .alert-success {
  background: rgba(22, 163, 74, .16);
  border-color: rgba(74, 222, 128, .34);
  color: #bbf7d0;
}
body.auth-dark .text-muted {
  color: #98a1bd !important;
}
body.auth-dark .table {
  --bs-table-color: #c3cadd;
  --bs-table-border-color: rgba(255, 255, 255, .12);
}
body.auth-dark code {
  color: #c4b5fd;
  background: rgba(255, 255, 255, .08);
  padding: 2px 6px;
  border-radius: 5px;
}

@media (max-width: 767px) {
  body.auth-dark .auth-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(24, 17, 51, .88);
  }
}

/* 6. RESPONSIF ============================================================ */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  body.sidebar-open .sidebar {
    transform: none;
  }
  body.sidebar-open .sb-backdrop {
    display: block;
  }
  .app-main {
    margin-left: 0;
    padding: 16px 16px 40px;
  }
  .topbar {
    display: flex;
  }
  .page-title {
    font-size: 22px;
  }
}

/* 7. LATAR ANIMASI LAMAN AWAM ==============================================
   Latar berlapis bergaya moden, ditukar kepada palet indigo/ungu
   Binaje. Semua peraturan diskop di bawah .landing-dark supaya portal,
   panel admin dan halaman auth kekal bertema cerah.
   ========================================================================== */
body.landing-dark {
  background: #0a0618;
  color: #b9c0d4;
}

.bg-anim {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, #0a0618 0%, #150a2f 30%, #1e1b4b 52%, #17103a 74%, #0b0720 100%);
  background-size: 400% 400%;
  animation: gradientBG 24s ease infinite;
}

/* Grid halus yang hanyut perlahan */
.bg-anim .bg-grid,
.bg-anim .bg-grid-dots {
  position: absolute;
  inset: 0;
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 18%, transparent 74%);
}
.bg-anim .bg-grid {
  background-image:
    linear-gradient(rgba(129, 140, 248, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, .055) 1px, transparent 1px);
  animation: gridDrift 45s linear infinite;
}
.bg-anim .bg-grid-dots {
  background-image: radial-gradient(circle, rgba(167, 139, 250, .32) 1px, transparent 1px);
  opacity: .3;
  animation: gridDrift 45s linear infinite reverse;
}

/* Mesh gradien warna yang berombak */
.bg-anim .bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 15% 20%, rgba(79, 70, 229, .24) 0%, transparent 60%),
    radial-gradient(ellipse 700px 600px at 85% 25%, rgba(124, 58, 237, .20) 0%, transparent 55%),
    radial-gradient(ellipse 800px 600px at 50% 75%, rgba(34, 211, 238, .10) 0%, transparent 55%),
    radial-gradient(ellipse 600px 500px at 80% 85%, rgba(236, 72, 153, .12) 0%, transparent 50%),
    radial-gradient(ellipse 500px 400px at 20% 60%, rgba(245, 158, 11, .07) 0%, transparent 45%);
  animation: meshFloat 25s ease-in-out infinite;
}

/* Aurora menyapu perlahan di atas mesh */
.bg-anim .bg-aurora {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background:
    linear-gradient(125deg, transparent 0%, rgba(99, 102, 241, .06) 25%, rgba(167, 139, 250, .09) 45%,
      rgba(34, 211, 238, .05) 65%, rgba(79, 70, 229, .05) 85%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, .05) 20%, rgba(99, 102, 241, .07) 40%,
      rgba(236, 72, 153, .04) 60%, transparent 85%);
  animation: auroraShift 30s ease-in-out infinite;
}

/* Kilauan pepenjuru */
.bg-anim .bg-shimmer {
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 38%, rgba(139, 92, 246, .03) 42%,
    rgba(167, 139, 250, .08) 50%, rgba(139, 92, 246, .03) 58%, transparent 62%);
  animation: shimmerSweep 14s ease-in-out infinite;
}

/* Orb kabur yang berenang */
.bg-anim .bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bg-anim .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-anim .orb-1 {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(79, 70, 229, .30) 0%, transparent 70%);
  animation-duration: 22s;
}
.bg-anim .orb-2 {
  width: 500px; height: 500px; top: 50%; right: -8%;
  background: radial-gradient(circle, rgba(124, 58, 237, .26) 0%, transparent 70%);
  animation-duration: 26s; animation-delay: -5s;
}
.bg-anim .orb-3 {
  width: 450px; height: 450px; bottom: -5%; left: 30%;
  background: radial-gradient(circle, rgba(99, 102, 241, .22) 0%, transparent 70%);
  animation-duration: 24s; animation-delay: -10s;
}
.bg-anim .orb-4 {
  width: 400px; height: 400px; top: 30%; left: 60%;
  background: radial-gradient(circle, rgba(34, 211, 238, .16) 0%, transparent 70%);
  animation-duration: 28s; animation-delay: -15s;
}
.bg-anim .orb-5 {
  width: 350px; height: 350px; top: 70%; left: 10%;
  background: radial-gradient(circle, rgba(236, 72, 153, .16) 0%, transparent 70%);
  animation-duration: 30s; animation-delay: -8s;
}
.bg-anim .orb-6 {
  width: 320px; height: 320px; top: 5%; left: 45%;
  background: radial-gradient(circle, rgba(245, 158, 11, .12) 0%, transparent 70%);
  animation-duration: 32s; animation-delay: -12s;
}

/* Bintang berkelip */
.bg-anim .bg-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bg-anim .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, .8);
  animation: starTwinkle 3s ease-in-out infinite;
}
.bg-anim .star:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s; }
.bg-anim .star:nth-child(2)  { top: 15%; left: 35%; width: 3px; height: 3px; animation-delay: .4s; }
.bg-anim .star:nth-child(3)  { top: 22%; left: 68%; animation-delay: .8s; }
.bg-anim .star:nth-child(4)  { top: 10%; left: 88%; animation-delay: 1.2s; }
.bg-anim .star:nth-child(5)  { top: 32%; left: 8%;  animation-delay: .2s; }
.bg-anim .star:nth-child(6)  { top: 38%; left: 52%; width: 3px; height: 3px; animation-delay: 1.6s; }
.bg-anim .star:nth-child(7)  { top: 45%; left: 78%; animation-delay: 1s; }
.bg-anim .star:nth-child(8)  { top: 55%; left: 22%; animation-delay: 2s; }
.bg-anim .star:nth-child(9)  { top: 62%; left: 60%; animation-delay: .6s; }
.bg-anim .star:nth-child(10) { top: 70%; left: 40%; width: 3px; height: 3px; animation-delay: 2.4s; }
.bg-anim .star:nth-child(11) { top: 78%; left: 85%; animation-delay: 1.4s; }
.bg-anim .star:nth-child(12) { top: 85%; left: 18%; animation-delay: .9s; }
.bg-anim .star:nth-child(13) { top: 90%; left: 62%; animation-delay: 1.8s; }
.bg-anim .star:nth-child(14) { top: 28%; left: 95%; animation-delay: 2.2s; }

@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(54px, 54px); }
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -20px) scale(1.02); }
  50%  { transform: translate(-20px, 15px) scale(.98); }
  75%  { transform: translate(15px, 25px) scale(1.01); }
}
@keyframes auroraShift {
  0%, 100% { opacity: .65; transform: translateY(0) rotate(0deg); }
  33% { opacity: 1;  transform: translateY(-3%) rotate(.5deg); }
  66% { opacity: .8; transform: translateY(2%) rotate(-.5deg); }
}
@keyframes shimmerSweep {
  0%, 100% { transform: translate(-15%, -15%); opacity: .4; }
  50% { transform: translate(15%, 15%); opacity: .85; }
}
@keyframes orbFloat {
  0%, 100% { opacity: .5;  transform: translate(0, 0) scale(1); }
  25% { opacity: .85; transform: translate(40px, -30px) scale(1.1); }
  50% { opacity: .6;  transform: translate(-30px, 20px) scale(.95); }
  75% { opacity: .9;  transform: translate(20px, 40px) scale(1.05); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: .15; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* --- Kandungan di atas latar --- */
.landing-shell {
  position: relative;
  z-index: 1;
}

.landing-dark .navbar {
  background: rgba(12, 8, 32, .72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.landing-dark .hero-landing {
  background: transparent;
  padding: 96px 0 76px;
}
.landing-dark .landing-section {
  padding-top: 68px;
  padding-bottom: 68px;
}
.landing-dark h1,
.landing-dark h2,
.landing-dark h3,
.landing-dark h4,
.landing-dark h5,
.landing-dark h6 {
  color: #fff;
}
.landing-dark .text-muted {
  color: #a2abc7 !important;
}
.landing-dark code {
  color: #c4b5fd;
  background: rgba(255, 255, 255, .07);
  padding: 2px 6px;
  border-radius: 5px;
}
.landing-dark .text-primary {
  color: #a78bfa !important;
}
.landing-dark .site-footer {
  color: #7c86a3;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* Kad kaca */
.landing-dark .glass {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.landing-dark .glass:hover {
  border-color: rgba(167, 139, 250, .38);
  background: rgba(255, 255, 255, .07);
}
.landing-dark .glass,
.landing-dark .accordion-item {
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.landing-dark .card-product {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.landing-dark .price-tag {
  color: #a78bfa;
}

/* Seksyen CTA - panel kaca supaya menonjol atas latar gelap */
.landing-dark .cta-panel {
  background: linear-gradient(135deg, rgba(79, 70, 229, .38) 0%, rgba(124, 58, 237, .30) 100%);
  border: 1px solid rgba(167, 139, 250, .32);
  border-radius: 22px;
  padding: 52px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Accordion FAQ versi gelap */
.landing-dark .accordion-item {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 10px;
  border-radius: 14px !important;
  overflow: hidden;
}
.landing-dark .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
.landing-dark .accordion-button:not(.collapsed) {
  background: rgba(99, 102, 241, .20);
  color: #fff;
}
.landing-dark .accordion-button::after {
  filter: invert(1) brightness(1.6);
}
.landing-dark .accordion-body {
  color: #a2abc7;
}

/* Reveal semasa skrol.
   Kandungan kelihatan secara lalai. Ia hanya disembunyikan apabila skrip dalam
   <head> menambah kelas .js-reveal, iaitu selepas disahkan yang animasi memang
   boleh dijalankan. Dengan cara ini halaman tidak pernah jadi kosong walaupun
   JavaScript gagal atau dimatikan. */
html.js-reveal .landing-dark .reveal {
  opacity: 0;
}
html.js-reveal .landing-dark .reveal.is-visible {
  animation: revealUp .7s cubic-bezier(.22, .68, .3, 1) forwards;
}

@media (max-width: 767px) {
  .bg-anim .orb {
    filter: blur(45px);
  }
  .bg-anim .orb-4,
  .bg-anim .orb-5,
  .bg-anim .orb-6,
  .bg-anim .bg-shimmer {
    display: none;
  }
  .landing-dark .hero-landing {
    padding: 64px 0 52px;
  }
  .landing-dark .cta-panel {
    padding: 38px 18px;
  }
  /* backdrop-filter atas latar beranimasi terlalu berat untuk peranti mudah
     alih, jadi kad ditukar kepada warna pepejal lut sinar. */
  .landing-dark .glass,
  .landing-dark .card-product,
  .landing-dark .cta-panel,
  .landing-dark .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .landing-dark .glass {
    background: rgba(24, 17, 51, .8);
  }
  .landing-dark .card-product {
    background: rgba(24, 17, 51, .88);
  }
  .landing-dark .navbar {
    background: #0c0820 !important;
  }
}

/* Hormati tetapan pengguna yang mahukan gerakan minimum */
@media (prefers-reduced-motion: reduce) {
  .bg-anim,
  .bg-anim * {
    animation: none !important;
  }
  html.js-reveal .landing-dark .reveal {
    opacity: 1;
    animation: none !important;
  }
  .book-cover::after {
    animation: none !important;
  }
}

/* 8. LANDING PAGE PRODUK ==================================================
   Halaman jualan awam (/{slug}). Ia berkongsi latar animasi .landing-dark
   dengan laman utama, jadi di sini hanya komponen khusus jualan.
   ========================================================================== */
.product-topbar {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.product-brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
}
.product-brand:hover {
  color: #c4b5fd;
}
.product-topbar-note {
  font-size: 12.5px;
  color: #98a1bd;
  white-space: nowrap;
}
.product-topbar-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
}
.product-topbar-link:hover {
  color: #fff;
}

.landing-dark .product-hero {
  padding: 48px 0 20px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  color: #ddd6fe;
  background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(167, 139, 250, .34);
}
.product-lead {
  color: #b9c0d4;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.meta-chip {
  font-size: 12.5px;
  color: #c3cadd;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  padding: 6px 14px;
}
.meta-chip i {
  color: #a78bfa;
  margin-right: 4px;
}

.landing-dark .product-main {
  padding-top: 18px;
}

.product-cover,
.product-video iframe,
.gallery-img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
}
.product-cover {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Kulit buku gantian: paparkan tajuk sebenar supaya lajur kiri tidak tinggal
   kosong bila penjual belum muat naik gambar. */
.book-stage {
  display: flex;
  justify-content: center;
  padding: 28px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, rgba(139, 92, 246, .22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 80%, rgba(34, 211, 238, .1) 0%, transparent 55%),
    rgba(255, 255, 255, .03);
}
.book-cover {
  position: relative;
  width: min(100%, 340px);
  min-height: 420px;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, .55),
    8px 0 18px rgba(0, 0, 0, .25);
  background: linear-gradient(155deg, #3b2a8a 0%, #4f46e5 42%, #7c3aed 100%);
  transform: perspective(900px) rotateY(-8deg);
  transform-origin: left center;
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .12) 48%, transparent 56%);
  animation: shimmerSweep 9s ease-in-out infinite;
  pointer-events: none;
}
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .08));
}
.book-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: 28px 28px 24px 34px;
  color: #fff;
}
.book-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
}
.book-title {
  margin: 28px 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.book-sub {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  flex: 1;
}
.book-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}
.book-foot strong {
  font-size: 1.05rem;
  color: #fff;
}

/* Panel kandungan */
.product-panel {
  padding: 28px;
}
@media (hover: hover) {
  .landing-dark .product-panel:hover,
  .landing-dark .benefit-card:hover,
  .landing-dark .seller-card:hover {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .1);
  }
}
.product-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.product-panel-title i {
  color: #a78bfa;
  margin-right: 6px;
}
.landing-dark .content-body {
  color: #b9c0d4;
}
.landing-dark .content-body a {
  color: #c4b5fd;
}
.landing-dark .content-body strong {
  color: #e8eaf3;
}
.landing-dark .content-body blockquote {
  border-left: 3px solid rgba(167, 139, 250, .5);
  padding-left: 16px;
  margin: 18px 0;
  color: #a2abc7;
}

/* Kad belian */
.buy-wrap {
  position: sticky;
  top: 22px;
}
.buy-card {
  overflow: hidden;
}
.landing-dark .buy-card {
  border-color: rgba(167, 139, 250, .3);
  box-shadow: 0 22px 60px rgba(20, 8, 60, .6);
}
.buy-card:hover {
  transform: none;
}
.buy-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(135deg, rgba(99, 102, 241, .18) 0%, rgba(124, 58, 237, .1) 100%);
  border-radius: 12px 12px 0 0;
}
.buy-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #98a1bd;
}
.buy-head .price-tag {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 2px 0;
}
.buy-note {
  font-size: 12.5px;
  color: #a2abc7;
}
.buy-body {
  padding: 22px 24px 24px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 12px;
  color: #98a1bd;
}
.trust-row i {
  color: #a78bfa;
  margin-right: 4px;
}
.buy-hint {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: #8e97b4;
  line-height: 1.45;
}

/* Kad faedah + penjual */
.benefit-card {
  padding: 24px;
}
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #b9c0d4;
}
.benefit-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
}
.benefit-list i {
  color: #34d399;
  margin-top: 2px;
  flex: none;
}
.seller-card {
  padding: 18px 20px;
  margin-top: 14px;
}
.seller-card .seller-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.seller-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  color: #fff;
  background: var(--brand-grad);
}
.seller-label {
  display: block;
  font-size: 11.5px;
  color: #98a1bd;
}
.seller-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e8eaf3;
}

.landing-dark .site-footer a {
  color: #c4b5fd;
  text-decoration: none;
}

/* Laman toko usahawan (/toko/{slug}) */
.store-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 14px 34px rgba(99, 102, 241, .4);
}
.store-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
}
.store-card:hover {
  color: inherit;
}
.store-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.store-card-cover-fallback {
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, .65);
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, rgba(139, 92, 246, .3) 0%, transparent 60%),
    linear-gradient(155deg, #3b2a8a 0%, #4f46e5 42%, #7c3aed 100%);
}
.store-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.store-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.store-card-title-link {
  color: inherit;
  text-decoration: none;
}
.store-card-title-link:hover {
  color: inherit;
  text-decoration: underline;
}
.store-card-seller {
  font-size: 13px;
  color: #98a1bd;
  margin: 0 0 10px;
}
.store-card-seller a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: none;
}
.store-card-seller a:hover {
  color: #fff;
  text-decoration: underline;
}
.store-card-desc {
  font-size: 13px;
  color: #a2abc7;
  flex: 1;
  margin-bottom: 14px;
}
.store-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.store-card-price {
  font-size: 1.2rem;
  margin: 0;
}

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 8, 32, .94);
  border-top: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.buybar-price span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #98a1bd;
}
.buybar-price strong {
  font-size: 1.25rem;
  color: #fff;
}
.buybar .btn {
  padding-left: 26px;
  padding-right: 26px;
}
.product-page .site-footer {
  padding-bottom: 92px;
}

.notfound-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.notfound-code {
  font-size: clamp(72px, 16vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound-text {
  max-width: 440px;
}

@media (min-width: 992px) {
  .product-page .site-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 991px) {
  .buy-wrap {
    position: static;
  }
  .book-cover {
    transform: none;
    width: min(100%, 300px);
    min-height: 380px;
  }
  .book-face {
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .landing-dark .product-hero {
    padding: 30px 0 14px;
  }
  .product-panel,
  .benefit-card {
    padding: 20px;
  }
  .buy-head,
  .buy-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .book-stage {
    padding: 20px 12px;
  }
  .book-cover::after {
    display: none;
  }
}

/* 9. TEMA CERAH - LANDING PAGE PRODUK & LAMAN TOKO =========================
   product.php & seller.php mengekalkan kelas .landing-dark (supaya semua
   struktur/jarak seksyen 7-8 di atas terus terpakai), tetapi laman jualan ini
   sengaja diberi PALET CERAH sendiri supaya gambar produk & sales copy lebih
   jelas dibaca berbanding latar gelap laman utama. Setiap selector diprefiks
   "body.product-page" (elemen + 2 kelas) supaya spesifisitinya SENTIASA
   menewaskan peraturan ".landing-dark ..." (1-2 kelas) di atas, tanpa perlu
   buang kelas sedia ada dalam HTML product.php/seller.php.
   ========================================================================== */
body.product-page {
  background: #cfd2f0;
  color: #3d3f68;
}
body.product-page .bg-anim {
  background: linear-gradient(160deg, #b9c0f0 0%, #c3b8ef 28%, #d3aee6 54%, #a8c6ec 78%, #b7c3e8 100%);
}
body.product-page .bg-anim .bg-stars {
  display: none;
}
body.product-page .bg-anim .bg-grid {
  background-image:
    linear-gradient(rgba(67, 56, 202, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 56, 202, .09) 1px, transparent 1px);
}
body.product-page .bg-anim .bg-grid-dots {
  background-image: radial-gradient(circle, rgba(91, 33, 182, .22) 1px, transparent 1px);
  opacity: .55;
}
body.product-page .bg-anim .orb-1 { background: radial-gradient(circle, rgba(79, 70, 229, .38) 0%, transparent 70%); }
body.product-page .bg-anim .orb-2 { background: radial-gradient(circle, rgba(192, 38, 211, .32) 0%, transparent 70%); }
body.product-page .bg-anim .orb-3 { background: radial-gradient(circle, rgba(14, 165, 233, .30) 0%, transparent 70%); }
body.product-page .bg-anim .orb-4 { background: radial-gradient(circle, rgba(16, 185, 129, .26) 0%, transparent 70%); }
body.product-page .bg-anim .orb-5 { background: radial-gradient(circle, rgba(219, 39, 119, .26) 0%, transparent 70%); }
body.product-page .bg-anim .orb-6 { background: radial-gradient(circle, rgba(217, 119, 6, .22) 0%, transparent 70%); }

body.product-page .product-topbar {
  background: rgba(255, 255, 255, .68) !important;
  border-bottom: 1px solid rgba(67, 56, 202, .16);
}
body.product-page .product-brand {
  color: #241f5e;
}
body.product-page .product-brand:hover {
  color: var(--brand);
}
body.product-page .product-topbar-note {
  color: #6b6f8a;
}

body.product-page h1,
body.product-page h2,
body.product-page h3,
body.product-page h4,
body.product-page h5,
body.product-page h6 {
  color: #241f5e;
}
body.product-page .text-muted {
  color: #6b6f8a !important;
}
body.product-page code {
  color: #7c3aed;
  background: rgba(124, 58, 237, .08);
}
body.product-page .hero-badge {
  color: #6d28d9;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .28);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .14);
}
body.product-page .product-lead {
  color: #52527a;
}
body.product-page .meta-chip {
  color: #4c4f77;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, .16);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .08);
}
body.product-page .meta-chip i {
  color: var(--brand);
}

body.product-page .glass,
body.product-page .card-product,
body.product-page .accordion-item,
body.product-page .store-card,
body.product-page .buy-card,
body.product-page .benefit-card,
body.product-page .seller-card,
body.product-page .product-panel {
  background: #fff;
  border: 1px solid rgba(99, 102, 241, .12);
  box-shadow: 0 10px 30px rgba(76, 29, 149, .08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.product-page .glass:hover {
  border-color: rgba(124, 58, 237, .3);
  background: #fff;
}
body.product-page .price-tag {
  color: var(--brand);
}
body.product-page .accordion-button {
  background: #fff;
  color: #241f5e;
}
body.product-page .accordion-button:not(.collapsed) {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
body.product-page .accordion-button::after {
  filter: none;
}
body.product-page .accordion-body {
  color: #52527a;
}
body.product-page .content-body {
  color: #40415f;
}
body.product-page .content-body a {
  color: var(--brand);
}
body.product-page .content-body strong {
  color: #241f5e;
}
body.product-page .content-body blockquote {
  border-left: 3px solid rgba(124, 58, 237, .4);
  color: #5c5d80;
}

body.product-page .buy-head {
  background: linear-gradient(135deg, rgba(99, 102, 241, .12) 0%, rgba(217, 70, 239, .08) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, .12);
}
body.product-page .buy-label,
body.product-page .trust-row,
body.product-page .buy-note {
  color: #6b6f8a;
}
body.product-page .buy-hint {
  color: #8385a3;
}
body.product-page .trust-row i,
body.product-page .product-panel-title i {
  color: var(--brand);
}

body.product-page .benefit-list {
  color: #40415f;
}
body.product-page .seller-label {
  color: #8385a3;
}
body.product-page .seller-name {
  color: #241f5e;
}

body.product-page .store-card-desc {
  color: #6b6f8a;
}

body.product-page .site-footer {
  color: #8385a3;
  border-top: 1px solid rgba(99, 102, 241, .12);
}
body.product-page .site-footer a {
  color: var(--brand);
}

body.product-page .buybar {
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid rgba(99, 102, 241, .14);
  box-shadow: 0 -8px 24px rgba(76, 29, 149, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.product-page .buybar-price span {
  color: #8385a3;
}
body.product-page .buybar-price strong {
  color: #241f5e;
}

body.product-page .product-cover,
body.product-page .product-video iframe,
body.product-page .gallery-img {
  border: 1px solid rgba(99, 102, 241, .14);
}
body.product-page .book-stage {
  border: 1px solid rgba(99, 102, 241, .14);
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, rgba(139, 92, 246, .14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 80%, rgba(34, 211, 238, .12) 0%, transparent 55%),
    #fff;
}

/* Medan borang belian (nama/emel/telefon pembeli) atas kad putih. */
body.product-page .form-label {
  color: #4b4d76 !important;
}
body.product-page .form-control {
  background: #f7f7fc !important;
  border: 1px solid rgba(99, 102, 241, .18) !important;
  color: #241f5e !important;
}
body.product-page .form-control:focus {
  background: #fff !important;
  border-color: rgba(124, 58, 237, .5) !important;
  box-shadow: 0 0 0 .2rem rgba(139, 92, 246, .16) !important;
  color: #241f5e !important;
}
body.product-page .form-control::placeholder {
  color: #9a9cba !important;
}
body.product-page .form-text {
  color: #8385a3 !important;
}
body.product-page .alert-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
body.product-page .alert-success {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

@media (hover: hover) {
  body.product-page .product-panel:hover,
  body.product-page .benefit-card:hover,
  body.product-page .seller-card:hover {
    background: #fff;
    border-color: rgba(124, 58, 237, .28);
  }
}

@media (max-width: 767px) {
  body.product-page .glass,
  body.product-page .card-product,
  body.product-page .product-topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff !important;
  }
}

/* Panduan bergambar (contoh: cara dapatkan ToyyibPay Secret Key) */
.guide-step {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}
.guide-step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.guide-step-body {
  min-width: 0;
  flex: 1;
}
.guide-step-body h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.guide-step-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.guide-ol {
  padding-left: 1.2em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.guide-ol li + li {
  margin-top: 4px;
}
.guide-tip {
  background: #eef2ff;
  border-radius: 10px;
  padding: 10px 12px;
  color: #3730a3;
  font-size: 13.5px;
}
.guide-shot {
  position: relative;
  margin: 8px 0 0;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.guide-key-blur {
  position: absolute;
  display: block;
  background: #d7dce3;
  border-radius: 4px;
  pointer-events: none;
}
.guide-key-blur-toyyib {
  left: 48.8%;
  top: 84.6%;
  width: 7.2%;
  height: 7.4%;
}
.guide-key-blur-binaje {
  left: 82.8%;
  top: 59.4%;
  width: 8.2%;
  height: 6.2%;
}
.guide-shot figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--faint);
}
@media (max-width: 575px) {
  .guide-step {
    flex-direction: column;
    gap: 10px;
  }
}
