/* ============================================================
   JARS PEDIA — Design System
   Ultra-premium SaaS, tema ungu, responsif penuh, dark mode
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Warna brand */
  --color-primary: #6D28D9;
  --color-primary-dark: #4C1D95;
  --color-primary-light: #8B5CF6;
  --color-primary-soft: #F3EFFC;
  --color-primary-soft-2: #EDE6FB;

  /* Aksen kedua: emas — dipakai buat rating, harga unggulan, dan elemen signature homepage,
     supaya ungu tidak jadi satu-satunya warna di setiap elemen (kesan "template AI"). */
  --color-gold: #C9971F;
  --color-gold-dark: #96711A;
  --color-gold-soft: #FBF3E0;


  /* Netral */
  --color-bg: #FAFAFC;
  --color-surface: #FFFFFF;
  --color-surface-2: #F6F5FA;
  --color-border: #ECE9F5;
  --color-text: #211C2E;
  --color-text-muted: #6B6580;
  --color-text-faint: #9B96AD;

  /* Status */
  --color-success: #16A34A;
  --color-success-soft: #E9F9EF;
  --color-warning: #D97706;
  --color-warning-soft: #FDF4E3;
  --color-error: #DC2626;
  --color-error-soft: #FDECEC;
  --color-info: #2563EB;
  --color-info-soft: #EAF1FE;

  /* Tipografi */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(30, 20, 60, 0.04), 0 1px 1px rgba(30,20,60,.03);
  --shadow-md: 0 8px 24px -8px rgba(76, 29, 149, 0.15);
  --shadow-lg: 0 20px 48px -12px rgba(76, 29, 149, 0.22);
  --transition: 180ms cubic-bezier(.4,0,.2,1);
}

/* ==== Hero — dirancang ulang: bukan gradient+ikon-melayang generik, tapi panel statistik
   solid ala dashboard nyata (jumlah pesanan, layanan aktif, uptime) supaya kesan "produk
   yang benar-benar berjalan", bukan mockup SaaS template. */
.hero-v2 {
  position: relative;
  background: var(--color-primary-dark);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.06) 0, transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(201,151,31,.16) 0, transparent 46%),
    linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 62%, #4C1D95 100%);
  padding: 52px 0 110px;
  overflow: hidden;
  border-bottom: none;
}
.hero-v2-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-v2-inner { max-width: 560px; }
.hero-v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--color-gold-soft); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 18px; letter-spacing: .02em; white-space: nowrap;
}
.hero-v2-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); flex-shrink: 0; }
.hero-v2 h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; max-width: 540px; letter-spacing: -.01em; }
.hero-v2 h1 em { font-style: normal; color: var(--color-gold-soft); }
.hero-v2 p.lead { color: rgba(255,255,255,0.78); font-size: 15px; max-width: 460px; margin: 14px 0 26px; line-height: 1.65; }
.hero-v2-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero-v2-actions .btn-primary { background: #fff; color: var(--color-primary-dark); box-shadow: 0 14px 32px -10px rgba(0,0,0,.35); font-weight: 700; }
.hero-v2-actions .btn-primary:hover { background: var(--color-gold-soft); }
.hero-v2-actions .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.hero-v2-actions .btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-btn-sm { padding: 10px 20px; font-size: 13.5px; }

.hero-v2-stats { position: relative; z-index: 2; display: flex; flex-wrap: nowrap; gap: 0; }
.hero-v2-stats .stat { border-left: 1px solid rgba(255,255,255,.2); padding: 0 18px; flex: 1; min-width: 0; }
.hero-v2-stats .stat:first-child { padding-left: 0; border-left: none; }
.hero-v2-stats .stat .value { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: #fff; line-height: 1; white-space: nowrap; }
.hero-v2-stats .stat .label { font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Panel kanan: kartu "status sistem" solid (bukan dekorasi ikon melayang) — meniru tampilan
   dashboard admin sungguhan supaya terasa seperti produk teknis yang nyata, dipakai
   di setiap hari, bukan ilustrasi hero generik. */
.hero-panel {
  position: relative; z-index: 2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.35);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-panel-head .title { color: #fff; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.hero-panel-head .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; position: relative; flex-shrink: 0; }
.hero-panel-head .live-dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(52,211,153,.5);
  animation: pulse-ring 1.8s cubic-bezier(.4,0,.6,1) infinite;
}
.hero-panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 4px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-panel-row:first-of-type { border-top: none; }
.hero-panel-row .plat { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13.5px; font-weight: 600; min-width: 0; }
.hero-panel-row .plat .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.hero-panel-row .status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(52,211,153,.18); color: #6EE7B7; white-space: nowrap; flex-shrink: 0; }
.hero-panel-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 6px; }

/* Ombak transisi ke background putih di bawah hero */


@media (max-width: 860px) {
  .hero-v2 { padding: 24px 0 48px; }
  .hero-v2-grid { grid-template-columns: 1fr; }
  .hero-v2 h1 { font-size: 26px; }
  .hero-v2 p.lead { font-size: 14px; margin: 12px 0 18px; }
  .hero-v2-eyebrow { font-size: 11.5px; padding: 5px 12px; margin-bottom: 12px; }
  .hero-v2-actions { margin-bottom: 20px; }
  .hero-panel { padding: 18px; }
}
@media (max-width: 640px) {
  .hero-v2-stats .stat { padding: 0 10px; }
  .hero-v2-stats .stat .value { font-size: 17px; }
  .hero-v2-stats .stat .label { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .hero-v2-eyebrow { font-size: 10.5px; padding: 5px 10px; gap: 6px; }
}

/* ==== Catalog page (mobile-friendly, mirip referensi) ==== */
.catalog-card { max-width: 960px; margin: 0 auto; }
.catalog-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.catalog-card-head h2 { font-size: 18px; }
.catalog-card-body { padding: 20px 22px; }
.catalog-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.catalog-toolbar .input { width: 100%; background: var(--color-surface-2); border-color: transparent; }
.catalog-toolbar .input:focus { background: var(--color-surface); border-color: var(--color-primary-light); }
.catalog-search-row { display: flex; gap: 10px; }
.catalog-search-row .input { flex: 1; min-width: 0; }
.catalog-search-row button { flex-shrink: 0; width: 48px; padding: 0; display: flex; align-items: center; justify-content: center; }
.catalog-group-header {
  background: var(--color-primary-soft); color: var(--color-primary); font-weight: 700; font-size: 13px;
  padding: 12px 22px; margin: 26px -22px 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.catalog-group-header:first-child { margin-top: 0; }
.catalog-table-wrap { border: 1px solid var(--color-border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; margin-bottom: 4px; margin-left: -22px; margin-right: -22px; width: calc(100% + 44px); }
table.catalog-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--color-surface); }
table.catalog-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--color-text-faint); padding: 10px 16px; background: var(--color-surface-2); }
table.catalog-table td { padding: 12px 16px; border-top: 1px solid var(--color-border); }
table.catalog-table tr { cursor: pointer; }
table.catalog-table tr:hover td { background: var(--color-primary-soft); }
.catalog-price { font-weight: 700; color: var(--color-primary); white-space: nowrap; }
@media (max-width: 640px) {
  table.catalog-table th:nth-child(1), table.catalog-table td:nth-child(1) { display: none; }
  .col-desktop-only { display: none; }
  .catalog-card-body { padding: 16px; }
  .catalog-group-header { margin-left: -16px; margin-right: -16px; padding: 12px 16px; }
  .catalog-table-wrap { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
}

/* ==== Status filter (scroll horizontal, 1 baris, mirip pill referensi) ==== */
.status-filter-scroll {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px; max-width: 100%;
}
.status-filter-scroll::-webkit-scrollbar { display: none; }
.status-filter-scroll .btn { flex-shrink: 0; border-radius: var(--radius-full); }
.status-filter-scroll .btn-ghost { background: var(--color-surface-2); }
@media (max-width: 640px) {
  .status-filter-scroll { width: 100%; }
}

/* ==== Dokumentasi API: cegah tabel meluber keluar layar di HP ==== */
.doc-tab-panel .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.doc-tab-panel table.data-table { min-width: 100%; table-layout: fixed; }
.doc-tab-panel table.data-table td, .doc-tab-panel table.data-table th {
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.doc-tab-panel table.data-table td.mono { word-break: break-all; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .doc-tab-panel table.data-table { font-size: 12px; }
  .doc-tab-panel table.data-table td, .doc-tab-panel table.data-table th { padding: 9px 10px; }
  .doc-tab-panel table.data-table th:first-child, .doc-tab-panel table.data-table td:first-child { width: 78px; }
}

/* ==== Tiket Support: layout responsif ==== */
.ticket-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
@media (max-width: 780px) {
  .ticket-layout { grid-template-columns: 1fr; }
  /* Di HP, kartu detail kosong ("Pilih atau buat tiket") disembunyikan supaya tidak makan tempat -
     hanya ditampilkan penuh kalau user benar-benar sudah memilih/membuat tiket */
  .ticket-detail-card.is-empty { display: none; }
}

/* ==== Proteksi gambar & logo (anti unduh/copy) ==== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* cegah menu "Simpan Gambar" muncul saat tekan lama di iOS Safari */
  -khtml-user-drag: none;
  -webkit-user-drag: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--color-text); }
p { margin: 0; color: var(--color-text-muted); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==== Buttons ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  text-align: center; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary-light); }
.btn-outline:hover { background: var(--color-primary-soft); }
.btn-ghost { background: var(--color-surface-2); color: var(--color-text); }
.btn-ghost:hover { background: var(--color-border); }
.btn-danger { background: var(--color-error); color: #fff; }
.nominal-btn.selected {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: #fff !important; border-color: transparent;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ==== Card ==== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

/* ==== Form ==== */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--color-text); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  font-family: var(--font-body); font-size: 14px; color: var(--color-text);
  transition: border-color var(--transition);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--color-primary-light);
}
.input-help { font-size: 12px; color: var(--color-text-faint); margin-top: 6px; }

/* ==== Input ber-ikon & pill-style (dipakai halaman Daftar/Masuk) ==== */
.field-icon { position: relative; }
.field-icon .field-icon-svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-faint); pointer-events: none; display: flex;
}
.field-icon .input-pill { padding-left: 44px; padding-top: 13px; padding-bottom: 13px; border-radius: var(--radius-full); }
.field-icon .toggle-password {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 0; cursor: pointer; color: var(--color-text-faint); display: flex;
}
.field-icon .input-pill[type="password"], .field-icon .input-pill.has-toggle { padding-right: 44px; }

/* ==== OTP input (kotak besar & jelas) ==== */
.otp-input {
  width: 100%; padding: 16px; border-radius: var(--radius-md);
  border: 2px solid var(--color-primary-light); background: var(--color-primary-soft);
  font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: 12px; text-align: center;
  color: var(--color-primary-dark);
}
.otp-input:focus { outline: none; border-color: var(--color-primary); }

/* ==== Tombol Masuk/Daftar dengan Google ==== */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--color-text); border: 1.5px solid var(--color-border);
  font-weight: 700; font-size: 14px;
}
.btn-google:hover { background: var(--color-surface-2); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--color-text-faint); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* ==== Badge / status pulse (elemen signature) ==== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.badge-dot.pulse::before {
  content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: inherit; animation: pulse-ring 1.6s cubic-bezier(0.4,0,0.6,1) infinite;
}
.badge-dot { position: relative; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}
.badge-pending { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-pending .badge-dot { background: var(--color-warning); }
.badge-processing { background: var(--color-info-soft); color: var(--color-info); }
.badge-processing .badge-dot { background: var(--color-info); }
.badge-success { background: var(--color-success-soft); color: var(--color-success); }
.badge-success .badge-dot { background: var(--color-success); }
.badge-error { background: var(--color-error-soft); color: var(--color-error); }
.badge-error .badge-dot { background: var(--color-error); }
.badge-partial { background: var(--color-primary-soft); color: var(--color-primary); }
.badge-partial .badge-dot { background: var(--color-primary); }
.badge-info { background: var(--color-info-soft); color: var(--color-info); }
.badge-info .badge-dot { background: var(--color-info); }

/* ==== Topbar (public) ==== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.brand img { height: 44px; width: auto; }
.brand-dot { color: var(--color-primary); }
/* Nav teks tampil di desktop (menu hamburger tetap dipakai di HP) — sebelumnya nav-links
   selalu display:none tanpa media query, jadi menu teks tidak pernah muncul sama sekali
   di desktop dan situs terlihat "kurang navigasi" dibanding kompetitor. */
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--color-text-muted); }
.nav-links a:hover { color: var(--color-primary); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-desktop-auth { display: none; align-items: center; gap: 10px; }
@media (min-width: 861px) {
  .nav-links { display: flex; }
  .topbar-desktop-auth { display: flex; }
  .topbar-menu-wrap { display: none; }
}

/* ==== Menu hamburger (pengganti tombol Masuk/Daftar terpisah) ==== */
.topbar-menu-wrap { position: relative; }
.topbar-menu-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--color-border);
  background: transparent; color: var(--color-text); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hamburger-lines { display: flex; flex-direction: column; gap: 4px; width: 17px; flex-shrink: 0; }
.hamburger-lines span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 1px; }
.topbar-menu-dropdown {
  position: absolute; top: 50px; right: 0; width: 220px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); padding: 14px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.topbar-menu-dropdown.open { display: flex; }
.topbar-menu-dropdown a:not(.btn) { padding: 10px 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--color-text); }
.topbar-menu-dropdown a:not(.btn):hover { background: var(--color-surface-2); }
.topbar-menu-divider { height: 1px; background: var(--color-border); margin: 8px 0 10px; }
.topbar-menu-dropdown .btn { margin-top: 4px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border); cursor: pointer; color: var(--color-text);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--color-border); }
.mobile-menu-btn { display: none; }

/* ==== Search bar ==== */
.search-wrap { position: relative; max-width: 620px; }
.search-input {
  width: 100%; padding: 17px 20px 17px 50px; border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  font-size: 15px; box-shadow: var(--shadow-md);
}
.search-input:focus { outline: none; border-color: var(--color-primary-light); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--color-text-faint); }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 30; display: none;
}
.search-suggest.active { display: block; }
.search-suggest-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-size: 14px; cursor: pointer; }
.search-suggest-item:hover { background: var(--color-primary-soft); }

/* ==== Grid / Sections ==== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-tag { font-size: 13px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: block; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }

/* ==== Filter Kategori Label (platform pill) — halaman Buat Pesanan ==== */
.platform-label-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; max-width: 640px; }
@media (min-width: 861px) {
  .platform-label-row { grid-template-columns: repeat(4, 1fr); max-width: none; }
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px;
  background: var(--color-surface-2); border: 1.5px solid transparent; color: var(--color-text-muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.platform-pill i { font-size: 15px; flex-shrink: 0; }
.platform-pill:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.platform-pill.active { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; }
.label-toast {
  display: flex; align-items: flex-start; gap: 10px; background: var(--color-primary-soft); color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 16px;
  max-width: 640px; font-size: 13px;
}
.label-toast strong { display: block; margin-bottom: 2px; }
.label-toast button { margin-left: auto; background: none; border: none; color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ==== Service Card ==== */
.svc-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 22px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary-light); }
.svc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 16px;
}
.svc-card h4 { font-size: 15px; margin-bottom: 6px; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.svc-price { font-family: var(--font-display); font-weight: 800; color: var(--color-primary); font-size: 15px; }
.svc-tag { font-size: 11px; color: var(--color-text-faint); background: var(--color-surface-2); padding: 3px 9px; border-radius: var(--radius-full); }

/* ==== Homepage: grid platform dengan warna asli tiap brand (bukan kotak ungu seragam) ==== */
.platform-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition);
}
.platform-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.platform-tile .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.platform-tile h4 { font-size: 14.5px; margin-bottom: 2px; }
.platform-tile p { font-size: 12.5px; color: var(--color-text-faint); }

/* ==== Homepage: Layanan Unggulan sebagai daftar harga (bukan grid kartu lagi) ==== */
.price-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--color-border);
}
.price-list-row:last-child { border-bottom: none; }
.price-list-row .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--color-text-faint); width: 28px; flex-shrink: 0; }
.price-list-row .info h4 { font-size: 14.5px; margin-bottom: 3px; }
.price-list-row .info .cat { font-size: 12px; color: var(--color-text-faint); }
.price-list-row .price { font-family: var(--font-display); font-weight: 800; color: var(--color-gold-dark); font-size: 17px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .price-list-row { align-items: flex-start; }
  .price-list-row .info .svc-tag:nth-child(n+3) { display: none; }
}

/* ==== Homepage: "Kenapa Jars Pedia" sebagai daftar bernomor besar (bukan icon-in-circle) ==== */
.reason-row { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--color-border); }
.reason-row:first-child { border-top: none; }
.reason-row .num { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--color-primary-soft); -webkit-text-stroke: 1.5px var(--color-primary-light); flex-shrink: 0; width: 56px; line-height: 1; }
.reason-row h4 { font-size: 16px; margin-bottom: 6px; }
.reason-row p { font-size: 13.5px; color: var(--color-text-muted); max-width: 480px; }

/* ==== Homepage: FAQ accordion sungguhan ==== */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; background: none; border: none; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--color-text);
}
.faq-q .chevron { flex-shrink: 0; transition: transform var(--transition); color: var(--color-primary); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 4px 20px; font-size: 14px; color: var(--color-text-muted); line-height: 1.65; }
.faq-card { padding: 4px 20px; }
.faq-card .faq-item { border: none; }

/* ==== Homepage: carousel testimoni (digeser via tombol panah / swipe) ==== */
.testi-wrap { position: relative; max-width: 620px; margin: 0 auto; }
.testi-track { overflow: hidden; }
.testi-slides { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.testi-slide { flex: 0 0 100%; padding: 4px; }
.testi-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: var(--shadow-sm); }
.testi-quote { font-size: 15px; color: var(--color-text); line-height: 1.7; margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: 14px; text-align: left; }
.testi-role { font-size: 12.5px; color: var(--color-text-faint); text-align: left; }
.testi-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); display: flex; align-items: center;
  justify-content: center; color: var(--color-primary); cursor: pointer; z-index: 2;
}
.testi-arrow.prev { left: -8px; }
.testi-arrow.next { right: -8px; }
@media (max-width: 700px) {
  .testi-arrow.prev { left: -4px; }
  .testi-arrow.next { right: -4px; }
  .testi-card { padding: 24px 20px; }
}
.testi-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.testi-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-border); cursor: pointer; }
.testi-dots span.active { background: var(--color-primary); }

/* ==== Dashboard Shell ==== */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 264px; flex-shrink: 0; background: var(--color-surface); border-right: 1px solid var(--color-border);
  position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto; padding: 24px 16px;
  display: flex; flex-direction: column;
}
.dash-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 26px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.dash-nav-group { margin-bottom: 22px; }
.dash-nav-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--color-text-faint); letter-spacing: .07em; padding: 0 12px; margin-bottom: 8px; }
.dash-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 3px; transition: background var(--transition), color var(--transition);
}
.dash-nav-link:hover { background: var(--color-surface-2); color: var(--color-text); }
.dash-nav-link.active { background: var(--color-primary-soft); color: var(--color-primary); }
.dash-nav-group-toggle { width: 100%; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; }
.dash-nav-chevron { margin-left: auto; flex-shrink: 0; transition: transform var(--transition); }
.dash-nav-group-toggle.open .dash-nav-chevron { transform: rotate(180deg); }
.dash-nav-subgroup { max-height: 0; overflow: hidden; padding-left: 14px; transition: max-height var(--transition); }
.dash-nav-subgroup.open { max-height: 320px; }
.dash-nav-subgroup .dash-nav-link { font-size: 13.5px; }
.dash-nav-sublink { padding-left: 18px; }
.dash-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; flex-shrink: 0; }
.dash-nav-sublink.active .dash-nav-dot { opacity: 1; }

/* ==== Sidebar dashboard versi ungu premium (dipakai user/* & admin/*) ==== */
.dash-sidebar-purple {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-right: none;
  box-shadow: 4px 0 28px -6px rgba(76,29,149,.4);
}
.dash-sidebar-purple .dash-sidebar-brand { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--color-primary-soft); border: 1px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
}
.brand-wordmark { font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.dash-sidebar-purple .brand-dot { color: #E9D5FF; }
.dash-sidebar-purple .dash-nav-title { color: rgba(255,255,255,.55); }
.dash-sidebar-purple .dash-nav-link { color: rgba(255,255,255,.82); }
.dash-sidebar-purple .dash-nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.dash-sidebar-purple .dash-nav-link.active { background: #fff; color: var(--color-primary-dark); box-shadow: 0 6px 16px -6px rgba(0,0,0,.3); }
/* Kartu profil & sub-menu di sidebar ungu — versi gelap supaya tidak jadi kotak putih
   yang menempel aneh di atas background ungu (sebelumnya sidebar-profile-wrap/card
   hardcode putih, cocok untuk sidebar putih lama tapi pecah begitu sidebar jadi ungu). */
.dash-sidebar-purple .sidebar-profile-wrap { background: var(--color-primary-dark); border-top-color: rgba(255,255,255,.14); }
.dash-sidebar-purple .sidebar-profile-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.dash-sidebar-purple .sidebar-profile-card:hover { background: rgba(255,255,255,.14); }
.dash-sidebar-purple .sidebar-profile-name { color: #fff; }
.dash-sidebar-purple .sidebar-profile-email { color: rgba(255,255,255,.6); }
.dash-sidebar-purple .sidebar-profile-chevron { color: rgba(255,255,255,.7); }
.dash-sidebar-purple .sidebar-profile-avatar { background: rgba(255,255,255,.18); color: #fff; }
.dash-sidebar-purple .sidebar-profile-dropdown { background: #fff; }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(10px); z-index: 20;
}
.dash-content { padding: 32px; max-width: 1200px; }

/* ==== Profile menu dropdown (topbar dashboard) ==== */
.profile-menu-wrap { position: relative; }
.profile-menu-btn {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 1.5px solid var(--color-border); color: var(--color-primary);
  font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.profile-menu-btn:hover { background: var(--color-primary-soft); border-color: var(--color-primary-light); }
.profile-menu-dropdown {
  position: absolute; top: 48px; right: 0; width: 260px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); padding: 16px; display: none; z-index: 60;
}
.profile-menu-dropdown.open { display: block; }
.profile-menu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-menu-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--color-primary-soft); color: var(--color-primary); font-size: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-menu-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu-email { font-size: 12px; color: var(--color-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu-balance { font-size: 13px; background: var(--color-surface-2); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.profile-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.profile-menu-item:hover { background: var(--color-surface-2); }
.profile-menu-item-danger { color: var(--color-error); }

/* ==== Profile Card di bawah Sidebar (dropdown muncul ke ATAS, beda dari profile-menu topbar) ==== */
.sidebar-profile-wrap {
  margin-top: auto; position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--color-surface); padding: 12px 0 0; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
  border-top: 1px solid var(--color-border); z-index: 5;
}
.sidebar-profile-card {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; text-align: left;
}
.sidebar-profile-card:hover { background: var(--color-surface-2); }
.sidebar-profile-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--color-primary-soft); color: var(--color-primary); font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-profile-info { min-width: 0; flex: 1; }
.sidebar-profile-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-email { font-size: 11.5px; color: var(--color-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-chevron { flex-shrink: 0; color: var(--color-text-faint); transition: transform var(--transition); }
.sidebar-profile-card.open .sidebar-profile-chevron { transform: rotate(180deg); }
.sidebar-profile-dropdown {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 20;
}
.sidebar-profile-dropdown.open { display: block; }
.sidebar-profile-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--color-text); }
.sidebar-profile-item:hover { background: var(--color-surface-2); }
.sidebar-profile-item-danger { color: var(--color-error); }

/* ==== Page-wrap utility: form/konten linear (Deposit, Tiket, dll) ====
   Mobile: lebar SAMA seperti sebelumnya (tidak diubah).
   Desktop (>860px): di-TENGAHKAN + sedikit dilebarkan, supaya tidak nempel kiri
   dengan area kosong besar di kanan, tapi tetap nyaman dibaca (tidak di-stretch
   jadi kotak raksasa). */
.page-wrap-480 { max-width: 480px; }
.page-wrap-520 { max-width: 520px; }
.page-wrap-560 { max-width: 560px; }
.page-wrap-640 { max-width: 640px; }
@media (min-width: 861px) {
  .page-wrap-480 { max-width: 560px; margin-left: auto; margin-right: auto; }
  .page-wrap-520 { max-width: 600px; margin-left: auto; margin-right: auto; }
  .page-wrap-560 { max-width: 640px; margin-left: auto; margin-right: auto; }
  .page-wrap-640 { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ==== Grid Form + List: dipakai halaman admin dgn pola "form tambah data" + "tabel daftar data"
   di bawahnya (Testimoni, Promo Banner, Layanan Manual, Referral, dll).
   Mobile: tetap stack vertikal seperti sebelumnya (form dulu, tabel di bawah).
   Desktop: form di kolom kiri (lebar tetap nyaman), tabel di kanan (mengisi sisa ruang). ==== */
.grid-form-list { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 861px) {
  .grid-form-list { flex-direction: row; align-items: flex-start; }
  .grid-form-list > *:first-child { flex: 0 0 360px; }
  .grid-form-list > *:last-child { flex: 1 1 auto; min-width: 0; }
}

/* ==== Halaman Buat Pesanan: form kiri + Ringkasan Pesanan kanan (KHUSUS DESKTOP) ====
   Mobile (<=860px): #orderSummaryDesktop SELALU display:none (dipaksa lewat !important,
   terlepas dari status JS) supaya tampilan HP 100% identik seperti sebelumnya — cuma 1 kolom,
   form saja, harga+tombol tetap muncul inline di dalam form seperti semula. */
.order-layout { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) {
  #orderSummaryDesktop { display: none !important; }
}
@media (min-width: 861px) {
  .order-layout { flex-direction: row; align-items: flex-start; }
  #orderFormCard { flex: 1 1 auto; min-width: 0; }
  #orderSummaryDesktop { flex: 0 0 320px; position: sticky; top: 20px; }
}

/* ==== Stat Card ==== */
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; }

/* ==== Filter periode ala Google Search Console (Admin Statistik Pengunjung) ==== */
.period-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 14px 18px 0; border-bottom: 1px solid var(--color-border); }
.period-tab {
  flex-shrink: 0; padding: 10px 16px; border: none; background: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.period-tab:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.period-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.period-label { font-size: 13px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 8px; }
.period-value { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: var(--color-text); line-height: 1; }
.stat-card .label { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.stat-card .value { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-top: 8px; }
.stat-card .delta { font-size: 12px; font-weight: 700; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.stat-card .delta.up { color: var(--color-success); }
.stat-card .delta.down { color: var(--color-error); }

/* ==== Table ==== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--color-surface); }
table.data-table th {
  text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-text-faint); padding: 14px 18px; background: var(--color-surface-2); white-space: nowrap;
}
table.data-table td { padding: 15px 18px; border-top: 1px solid var(--color-border); white-space: nowrap; }
table.data-table tr:hover td { background: var(--color-surface-2); }

/* ==== Empty state ==== */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state .icon-wrap {
  width: 72px; height: 72px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { max-width: 320px; margin: 0 auto 20px; font-size: 14px; }

/* ==== Skeleton loading ==== */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-border) 37%, var(--color-surface-2) 63%);
  background-size: 400% 100%; animation: skeleton-wave 1.4s ease infinite; border-radius: var(--radius-sm);
}
@keyframes skeleton-wave { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ==== Toast ==== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md); padding: 14px 18px; font-size: 14px; font-weight: 600; min-width: 260px;
  display: flex; align-items: center; gap: 10px; animation: toast-in .25s ease;
}
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-error); }

/* ==== Modal ==== */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,15,35,.55); backdrop-filter: blur(3px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--color-surface); border-radius: var(--radius-lg); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); padding: 24px; box-sizing: border-box; max-height: calc(100vh - 32px); overflow-y: auto; }

/* ==== Footer ==== */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 56px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 13px; margin-bottom: 16px; color: var(--color-text); }
.footer a { display: block; font-size: 14px; color: var(--color-text-muted); margin-bottom: 10px; }
.footer a:hover { color: var(--color-primary); }
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--color-border);
}
.footer-trust-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--color-text-muted);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 8px 14px;
}
.footer-trust-item i { color: var(--color-primary); font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; font-size: 13px; color: var(--color-text-faint); flex-wrap: wrap; gap: 12px; }

/* ==== WhatsApp Floating Bubble ==== */
.wa-float-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; box-shadow: 0 8px 24px -6px rgba(18,140,126,.5);
  cursor: pointer; transition: transform var(--transition);
}
.wa-float-btn:hover { transform: scale(1.06); }
.wa-chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 81;
  width: 320px; max-width: calc(100vw - 32px); background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; flex-direction: column;
}
.wa-chat-panel.open { display: flex; }
.wa-chat-header {
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
  padding: 16px 44px 16px 18px; display: flex; align-items: center; gap: 12px; position: relative;
}
.wa-chat-avatar-wrap { position: relative; flex-shrink: 0; }
.wa-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.wa-chat-online-dot {
  position: absolute; bottom: -1px; right: -1px; width: 13px; height: 13px; border-radius: 50%;
  background: #34D399; border: 2px solid #fff;
}
.wa-name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.wa-verified-badge { color: #3B82F6; font-size: 13px; }
.wa-chat-footer { text-align: center; font-size: 11px; color: var(--color-text-faint); padding: 6px 0 10px; background: #fff; }
.wa-chat-header .wa-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 5px; }
.wa-chat-header .wa-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #A7F3D0; }
.wa-chat-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .85; }
.wa-chat-body { padding: 16px; background: #ECE5DD; }
.wa-chat-bubble { background: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wa-chat-input-row { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--color-border); }
.wa-chat-input-row input { flex: 1; min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 10px 16px; font-size: 13.5px; outline: none; font-family: var(--font-body); }
.wa-chat-input-row input:focus { border-color: #25D366; }
.wa-chat-send { width: 40px; height: 40px; border-radius: 50%; background: #25D366; border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 15px; }
@media (max-width: 640px) {
  .wa-float-btn { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 24px; }
  .wa-chat-panel { bottom: 84px; right: 14px; }
}

/* ==== Responsive ==== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* Sidebar admin mobile — scroll + tidak kepotong */
  .dash-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 264px;
    height: 100vh;
    height: 100dvh;
    z-index: 60;
    transition: left .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 6px 0 32px -4px rgba(76,29,149,.35);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 48px;
    -webkit-overflow-scrolling: touch;
  }
  .dash-sidebar.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  /* Overlay gelap saat sidebar terbuka */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 59;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.active { display: block; }



}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; text-align: left; }
  .hero-stats { gap: 24px; }
  .dash-content { padding: 18px; }
  .dash-topbar { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  table.data-table th, table.data-table td { padding: 11px 12px; }
}
@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Bottom nav mobile (dashboard) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
  padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px); justify-content: space-around;
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--color-text-faint); padding: 4px 8px; }
.bottom-nav a.active { color: var(--color-primary); }
@media (max-width: 640px) {
  .bottom-nav { display: flex; }
  .dash-content { padding-bottom: 90px; }
}




/* ============================================================
   JARS PEDIA — Ambient Motion Layer
   Gelombang bergerak + floating + partikel + glow — selalu aktif
   ============================================================ */

html { scroll-behavior: smooth; }

/* ─── WAVE ANIMATION ─────────────────────────────────────── */
@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes waveMoveRev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes floatYSlow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes livePulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(.65); opacity: .45; }
}
@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 20px) scale(.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-35px, 25px) scale(1.05); }
  66%  { transform: translate(25px, -20px) scale(.92); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(20px, 30px); }
  100% { transform: translate(0, 0); }
}
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: .7; }
  50%  { transform: translateY(-20px) translateX(8px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: .7; }
}
@keyframes shimmerSweep {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(109,40,217,.3); }
  50%       { box-shadow: 0 0 0 12px rgba(109,40,217,0); }
}
@keyframes countUp {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ─── HERO BASE ────────────────────────────────────────────── */
.hero-v2 {
  position: relative;
  /* overflow:hidden dipindah ke .hero-wave agar konten hero tidak terpotong */
}

/* Animated gradient background mesh */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(109,40,217,.22) 0%,
    rgba(76,29,149,.18)  30%,
    rgba(201,151,31,.12) 55%,
    rgba(109,40,217,.20) 80%,
    rgba(45,13,110,.25)  100%
  );
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  pointer-events: none;
  z-index: 1;
}
.hero-v2 .container { position: relative; z-index: 4; }
.hero-v2-inner { position: relative; z-index: 4; }
.hero-v2-inner h1, .hero-v2-inner p, .hero-v2-inner .hero-v2-eyebrow { position: relative; z-index: 5; }

/* ─── ORB / BLOB AMBIENT ───────────────────────────────────── */
.hero-v2 .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 2;
}
.hero-v2 .orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(109,40,217,.35) 0%, transparent 70%);
  top: -80px; left: -60px;
  animation: orbDrift1 12s ease-in-out infinite;
}
.hero-v2 .orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,151,31,.25) 0%, transparent 70%);
  top: 20%; right: -40px;
  animation: orbDrift2 16s ease-in-out infinite;
}
.hero-v2 .orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(76,29,149,.30) 0%, transparent 70%);
  bottom: 80px; left: 30%;
  animation: orbDrift3 10s ease-in-out infinite;
}

/* ─── FLOATING PARTICLES ────────────────────────────────────── */
.hero-v2 .particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}
.hero-v2 .p1 { width:6px;  height:6px;  background:rgba(255,255,255,.5);  top:15%; left:12%; animation: particleDrift 4s ease-in-out infinite; }
.hero-v2 .p2 { width:4px;  height:4px;  background:rgba(201,151,31,.8);   top:30%; left:25%; animation: particleDrift 5.5s ease-in-out infinite .8s; }
.hero-v2 .p3 { width:5px;  height:5px;  background:rgba(255,255,255,.35); top:60%; left:5%;  animation: particleDrift 3.8s ease-in-out infinite 1.5s; }
.hero-v2 .p4 { width:3px;  height:3px;  background:rgba(109,40,217,.9);   top:20%; right:20%;animation: particleDrift 6s ease-in-out infinite .3s; }
.hero-v2 .p5 { width:5px;  height:5px;  background:rgba(255,255,255,.4);  top:50%; right:8%; animation: particleDrift 4.5s ease-in-out infinite 2s; }
.hero-v2 .p6 { width:4px;  height:4px;  background:rgba(201,151,31,.6);   top:75%; right:30%;animation: particleDrift 5s ease-in-out infinite 1s; }

/* ─── EYEBROW BADGE GLOW (safe — tidak override background) ── */



/* ===== Blog Article Hero — Full Width Fix ===== */
/* Pastikan hero artikel blog selalu full width tanpa kiri-kanan terpotong */
.article-hero-full {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    overflow: hidden;
}

/* ===== Blog Index Hero — Full Width Fix ===== */
.blog-hero-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 72px 0 !important;
    text-align: center;
}



/* ===== Blog Article Hero — Full Bleed Fix ===== */
.blog-article-hero {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  overflow: hidden;
}



/* ===== MEDANPEDIA ASYMMETRIC FLUID HERO WAVE ===== */
.hero-wave-medanpedia {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 95px;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-wave-medanpedia svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 860px) {
  .hero-wave-medanpedia {
    height: 55px;
  }
}

@media (max-width: 860px) {
  .hero-wave-animated {
    height: 45px;
    min-height: 40px;
  }
}


/* ===== ANIMATED MEDANPEDIA PARALLAX WAVE (FASTER & SMOOTH) ===== */
.hero-wave-medanpedia-anim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 75px;
  min-height: 50px;
  max-height: 100px;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-wave-medanpedia-anim .medan-waves {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.medan-parallax > use {
  animation: medan-move-forever 10s cubic-bezier(.55,.5,.45,.5) infinite;
}
.medan-parallax > use:nth-child(1) {
  animation-delay: -1s;
  animation-duration: 3.5s;
}
.medan-parallax > use:nth-child(2) {
  animation-delay: -1.5s;
  animation-duration: 5s;
}
.medan-parallax > use:nth-child(3) {
  animation-delay: -2s;
  animation-duration: 6.5s;
}
.medan-parallax > use:nth-child(4) {
  animation-delay: -2.5s;
  animation-duration: 9s;
}

@keyframes medan-move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% { 
    transform: translate3d(85px, 0, 0);
  }
}

@media (max-width: 860px) {
  .hero-wave-medanpedia-anim {
    height: 50px;
    min-height: 45px;
  }
}
