
      .ti { opacity: 0; transition: opacity .15s ease; }
      .ti-ready .ti, .no-js .ti { opacity: 1; }
    


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
table,
iframe {
  max-width: 100%
}

:root {
  /* ============================================================
     DESIGN TOKEN — REDESIGN "Modern Marketplace"
     ============================================================
     ⚠️ NAMA variabel LAMA (--navy, --blue, --gold, dst) SENGAJA
     dipertahankan — dipakai di 100+ tempat di file ini. Yang
     diganti HANYA nilai warnanya, supaya seluruh tampilan situs
     otomatis ikut ter-update TANPA perlu menyentuh baris CSS lain
     satu-satu (risiko rendah, dampak menyeluruh).

     Token BARU (--primary, --secondary, --accent, dst) ditambahkan
     untuk dipakai bertahap di komponen-komponen berikutnya (Fase 2+).
     ============================================================ */

  /* --- Warna brand: hijau ala Tokopedia (#42B549) jadi warna dominan --- */
  --navy: #2E7D32;        /* hijau pertengahan-gelap (titik gelap gradient/header) */
  --navy-deep: #1B5E20;   /* hijau paling gelap (kontras teks putih) */
  --blue: #42B549;        /* HIJAU TOKOPEDIA — dipakai 60+ tempat sbg warna CTA utama */
  --blue-light: #66BB6A;  /* hijau muda (gradient/highlight) */
  --gold: #f97316;        /* oranye premium (badge/rating/highlight) */
  --green: #42B549;
  --green-dark: #2E7D32;
  --ink: #1a1d21;
  --muted: #6b7280;
  --bg: #eef8ef;          /* soft white sedikit hijau, senada palet Tokopedia */
  --card: #fff;
  --radius: 16px;

  /* --- Token semantik baru (dipakai bertahap di Fase berikutnya) --- */
  --primary: #42B549;
  --primary-dark: #1B5E20;
  --primary-light: #E8F5E9;
  --secondary: #f97316;
  --secondary-dark: #c2410c;
  --secondary-light: #ffedd5;
  --accent: #1a6fa8;      /* biru — sudah dipakai inline di banyak tempat (Kurir/WA), disamakan */
  --success: #42B549;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: #ffffff;
  --border: #C8E6C9;      /* hijau lembut senada palet Tokopedia */

  /* --- Tipografi & spacing (fondasi Fase 2+, aman ditambah sekarang) --- */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
  /* Shadow bernuansa hijau Tokopedia (rgba dari #42B549) — bukan abu-abu
     netral, supaya kartu/tombol terasa menyatu dengan tema. */
  --shadow-sm: 0 2px 8px rgba(66,181,73,.08);
  --shadow-md: 0 4px 14px rgba(66,181,73,.12);
  --shadow-lg: 0 8px 26px rgba(66,181,73,.16);
}

/* ── SYNC STATE INDICATOR ──────────────────────────────────*/
#syncStateIndicator {
  font-size: 10px;
  cursor: default;
  user-select: none;
  transition: opacity .3s;
  display: inline-block;
}

#syncStateIndicator[title]:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  top: calc(100% + 4px);
  right: 0;
  z-index: 999;
  pointer-events: none;
}

/* ── OFFLINE BANNER ────────────────────────────────────────*/
#offlineBanner {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: #374151;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

#offlineBanner.show {
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}

button:active {
  transform: scale(.96);
}

img,
svg {
  display: block
}

::-webkit-scrollbar {
  display: none
}

.hide-scroll {
  scrollbar-width: none
}

@keyframes admspin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

button.spin .ti-refresh {
  display: inline-block;
  animation: admspin .7s linear infinite
}

/* APP */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: 128px /* ✅ FIX: bottom-nav sekarang 2 baris (10 tombol), dulu 72px cukup utk 1 baris */
}

@media(min-width:481px) {
  .app {
    box-shadow: 0 0 40px rgba(0, 0, 0, .08)
  }
}

/* ── LUPA PASSWORD MODAL ───────────────────────────────────────*/
.fp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem
}

.fp-overlay.show {
  display: flex
}

.fp-box {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2)
}

.fp-icon {
  font-size: 36px;
  color: var(--blue);
  display: block;
  margin-bottom: .5rem
}

.fp-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem
}

.fp-box .fp-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5
}

.fp-step {
  display: none
}

.fp-step.active {
  display: block
}

.fp-err {
  color: #dc2626;
  font-size: 11.5px;
  margin-bottom: .6rem;
  display: none;
  background: #fef2f2;
  padding: 6px 10px;
  border-radius: 8px
}

.fp-success {
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  display: none;
  margin-bottom: .6rem;
  background: #f0fdf4;
  padding: 6px 10px;
  border-radius: 8px
}

.fp-btn-row {
  display: flex;
  gap: 8px;
  margin-top: .8rem
}

.fp-btn-row button {
  flex: 1;
  font-size: 13px;
  padding: 10px;
  justify-content: center
}

/* ── Kata Sandi Admin Baru (setting panel) ─────────────────── */
.pass-field-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.pass-field-input {
  position: relative;
  flex: 1 1 160px;
  min-width: 0
}

.pass-field-input input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 38px
}

.pass-eye-btn {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0
}

.pass-eye-btn:hover {
  color: #6b7280
}

.pass-save-btn {
  flex: none;
  justify-content: center
}

@media(max-width:380px) {
  .pass-field-wrap {
    flex-direction: column
  }

  .pass-save-btn {
    width: 100%
  }
}

/* HEADER */
.mp-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top)
}

.mp-header.mp-header-fixed {
  position: fixed !important;
  top: 0 !important;
  margin: 0
}

.mp-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .75rem .55rem
}

.mp-live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  border: none;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3px;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  transition: background .2s
}

.mp-live-badge .mp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0
}

.mp-live-badge.off {
  background: rgba(239, 68, 68, .85);
  border: 1.5px solid rgba(255,255,255,.35);
}

.mp-live-badge.off .mp-live-dot {
  opacity: .85
}

.mp-live-badge.on {
  background: #16a34a;
  border: 1.5px solid rgba(255,255,255,.5);
}

.mp-live-badge.on .mp-live-dot {
  animation: mpLiveBlink 1.1s infinite
}

@keyframes mpLiveBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .25
  }
}

.mp-loc-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  background: rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer
}

.mp-flash-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(249, 217, 74, .18);
  border: 1.5px solid rgba(249, 217, 74, .5);
  border-radius: 14px;
  padding: 6px 10px;
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  width: 100%
}

.mp-flash-info i {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px
}

.mp-flash-ticker {
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  transition: opacity .3s;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0)
  }

  40% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-60%)
  }
}

/* CS & CARA PESAN BUTTONS */
.mp-cs-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit
}

.mp-cs-btn:active {
  background: rgba(255, 255, 255, .3)
}

.mp-cara-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 217, 74, .25);
  border: 1.5px solid rgba(249, 217, 74, .5);
  color: #fff;
  font-size: 14px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit
}

.mp-cara-btn:active {
  background: rgba(249, 217, 74, .4)
}

/* FOOTER QUICK ACTIONS — Cara Pesan / CS / Refresh (pill, ikon + label) */
.footer-quick-actions {
  display: flex;
  gap: 8px;
  margin: 2px 0 16px
}

.fqa-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #ffd9cc;
  border-radius: 12px;
  padding: 11px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(200, 50, 20, .07);
  transition: background .15s, transform .1s
}

.fqa-btn i {
  font-size: 16px;
  flex-shrink: 0
}

.fqa-btn:active {
  background: #fff3ee;
  transform: scale(.97)
}

.fqa-cara i {
  color: #2563eb
}

.fqa-cs i {
  color: #16a34a
}

.fqa-refresh i {
  color: var(--blue)
}

.fqa-btn.spin i {
  animation: admspin .7s linear infinite
}

/* INFO MODAL (flash / cara pesan / cs) */
.info-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .55);
  z-index: 998;
  align-items: flex-end;
  justify-content: center
}

.info-modal-overlay.show {
  display: flex
}

.info-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp .22s ease
}

.info-modal-hdr {
  background: var(--blue);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 0;
  z-index: 5
}

.info-modal-hdr h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700
}

.info-modal-close {
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1
}

.info-modal-body {
  padding: 1rem
}

/* ✅ Khusus modal DETAIL ARTIKEL berita — indent kiri-kanan dikurangi
   supaya teks artikel tidak terasa terlalu menjorok dari tepi layar.
   Dibuat scoped (#newsDetailModal ...) supaya TIDAK ikut mengubah
   modal lain yang juga memakai class .info-modal-body yang sama. */
#newsDetailModal .info-modal-body { padding: 1rem .65rem; }

/* FLASH PROMO LIST in modal */
.flash-promo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8f0;
  border: 1.5px solid #ffd5aa;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px
}

.flash-promo-item i {
  color: #f59e0b;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px
}

.flash-promo-item p {
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
  flex: 1
}

.flash-promo-item:last-child {
  margin-bottom: 0
}

/* CARA PESAN STEPS */
.cara-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #f0f2f7
}

.cara-step:last-child {
  border-bottom: none
}

.cara-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px
}

.cara-step-txt {
  font-size: 12.5px;
  color: #333;
  line-height: 1.5
}

/* CS CONTACT */
.cs-card {
  background: linear-gradient(120deg, #fff1ee, #fff8f5);
  border: 1.5px solid #ffd5cc;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 10px
}

.cs-ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px
}

.cs-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px
}

.cs-sub {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px
}

.cs-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.cs-wa-btn:active {
  background: #1da851
}

.mp-search-row {
  display: flex;
  gap: 8px;
  padding: 0 .75rem .7rem
}

.mp-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s ease;
}

.mp-search:focus-within {
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(34,197,94,.25);
}

.mp-search-go {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 34px;
  margin-left: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0
}

.mp-search-go svg {
  width: 19px;
  height: 19px
}

.mp-search-go:active {
  background: #f0f2f7
}

.mp-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 8px;
  font-size: 13px;
  color: #222;
  background: transparent
}

.mp-search-mic {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0
}

.mp-search-mic.is-ready {
  display: flex
}

.mp-search-mic svg {
  width: 19px;
  height: 19px
}

.mp-search-mic:active {
  background: #f0f2f7
}

.mp-search-mic.listening svg {
  animation: mpMicPulse 1s ease-in-out infinite
}

@keyframes mpMicPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .55;
    transform: scale(.9)
  }
}

.mp-nav-scroll {
  overflow-x: auto;
  padding: 0 .75rem .65rem
}

.mp-nav {
  display: flex;
  gap: 6px;
  width: max-content
}

.mp-nav button {
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 20px;
  transition: all .15s
}

.mp-nav button.active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold)
}

/* CONTENT */
.mp-content {
  padding: .85rem .75rem 0
}

.mp-banner {
  background: var(--primary-dark);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden
}

.mp-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%
}

.mp-banner h2 {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3
}

.mp-banner p {
  color: rgba(255, 255, 255, .78);
  font-size: 11px
}

.mp-banner-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  flex-shrink: 0
}

/* IDENTITAS TOKO — digabung satu tampilan dengan judul & deskripsi banner promo */
.mp-banner-identity {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  padding: 3px 8px;
  margin-bottom: 6px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%
}

.mp-banner-identity .sub {
  font-size: 9px;
  color: #fbbf24;
  letter-spacing: .3px;
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-left: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mp-banner-identity .sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: rgba(251, 191, 36, .5)
}

/* PRODUCT SLIDESHOW in banner */
.banner-slideshow {
  position: relative;
  width: 110px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25)
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: rgba(255, 255, 255, .13)
}

.banner-slide.active {
  opacity: 1
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0
}

.banner-slide-emoji {
  position: relative;
  z-index: 1;
  font-size: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3))
}

.banner-prod-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  padding: 4px 6px;
  z-index: 2
}

.banner-prod-label {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: flyOverName .6s ease forwards;
  opacity: 0
}

/* ===== PAGE SLIDESHOW (foto, terpisah dari banner) ===== */
.pg-slideshow {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12)
}

.pg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease
}

.pg-slide.active {
  opacity: 1
}

.pg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pg-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 18px 12px 8px
}

.pg-slide-dots {
  position: absolute;
  bottom: 6px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2
}

.pg-slide-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5)
}

.pg-slide-dots span.active {
  background: #fff
}

/* ===== PAGE NEWS / BERITA ===== */
.pg-news-wrap {
  margin-bottom: 1.1rem
}

.pg-news-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  border: 1px solid #f0f1f4;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg-news-card:active {
  transform: scale(.985);
}
@media (hover:hover) {
  .pg-news-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    border-color: #e8eaf0;
  }
}

.pg-news-card img {
  width: 68px;
  height: 68px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee
}

.pg-news-noimg {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(120deg, var(--blue-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px
}

.pg-news-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 3px
}

.pg-news-excerpt {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.pg-news-date {
  font-size: 9.5px;
  color: #aaa;
  margin-top: 4px
}

.pg-news-more {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding: 8px;
  cursor: pointer
}

.pg-news-headline-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  cursor: pointer;
}
.pg-news-headline-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  opacity: .92;
}
.pg-news-headline-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.15) 70%, transparent);
}
.pg-news-headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange, #f97316);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.pg-news-headline-card .pg-news-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}
.pg-news-headline-card .pg-news-excerpt {
  color: rgba(255,255,255,.78);
  -webkit-line-clamp: 2;
}
.pg-news-headline-card .pg-news-date {
  color: rgba(255,255,255,.55);
}

.pg-news-detail-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  max-height: 180px;
  object-fit: cover
}

.pg-news-detail-body {
  font-size: 12.5px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line
}

/* =====================================================
   HALAMAN BERITA — Redesain gaya portal berita nasional
   (mirip detik.com / kumparan / inilah.com), mobile-first,
   card-based, kategori berwarna, artikel dgn "Baca Juga".
   Semua class baru berprefiks "brt-" agar tidak mengubah
   tampilan widget berita di beranda (pg-news-*) atau modul lain.
   ===================================================== */
#beritaApp {
  background:#f4f5f7; min-height:100vh;
  --brt-red:#d6001c; --brt-red-soft:rgba(214,0,28,.09);
  --brt-ink:#14151c; --brt-sub:#767b86; --brt-line:#ecedf1;
}

/* ---------- MASTHEAD ---------- */
#beritaApp .brt-masthead {
  background:#fff; position:sticky; top:0; z-index:40;
  border-bottom:1px solid var(--brt-line); box-shadow:0 1px 14px rgba(20,21,28,.05);
}
#beritaApp .brt-topbar {
  display:flex; align-items:center; gap:10px;
  padding:calc(env(safe-area-inset-top) + .75rem) .85rem .6rem;
}
#beritaApp .brt-back {
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--brt-line); background:#f8f9fb; color:var(--brt-ink);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; cursor:pointer;
}
#beritaApp .brt-back:active { background:#eceef1; }
#beritaApp .brt-brand { flex:1; min-width:0; line-height:1.15; }
#beritaApp .brt-brand-name {
  font-size:20px; font-weight:900; font-style:italic;
  color:var(--brt-red); letter-spacing:-.4px; display:block;
}
#beritaApp .brt-brand-name b { color:var(--brt-ink); font-weight:900; }
#beritaApp .brt-brand-sub {
  font-size:9.5px; font-weight:700; color:#9297a1;
  text-transform:uppercase; letter-spacing:.6px;
}
#beritaApp .brt-live {
  display:flex; align-items:center; gap:5px; font-size:9.5px; font-weight:800;
  color:var(--brt-red); background:var(--brt-red-soft); border:1px solid #f8c9c5;
  padding:5px 10px 5px 8px; border-radius:20px; flex-shrink:0; white-space:nowrap;
}
#beritaApp .brt-live-dot { width:6px; height:6px; border-radius:50%; background:var(--brt-red); animation:brtPulse 1.4s infinite; }
@keyframes brtPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.3)} }

/* Ticker "Terkini" — signature detik-style scrolling strip, kumparan-soft edges */
#beritaApp .brt-ticker {
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(90deg,#1a1c24,#14151c);
  padding:7px 0 7px .85rem; overflow:hidden;
}
#beritaApp .brt-ticker-label {
  flex-shrink:0; display:flex; align-items:center; gap:4px;
  background:var(--brt-red); color:#fff; font-size:10px; font-weight:800;
  letter-spacing:.3px; text-transform:uppercase; padding:4px 9px; border-radius:20px;
}
#beritaApp .brt-ticker-track { flex:1; min-width:0; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,#000 92%,transparent); mask-image:linear-gradient(90deg,#000 92%,transparent); }
#beritaApp .brt-ticker-inner {
  display:flex; gap:20px; white-space:nowrap; width:max-content;
  animation:brtTickerScroll 22s linear infinite;
  color:#e8e9ee; font-size:11.5px; font-weight:600;
}
#beritaApp .brt-ticker-inner:hover { animation-play-state:paused; }
#beritaApp .brt-ticker-item { cursor:pointer; opacity:.92; }
#beritaApp .brt-ticker-item:hover { opacity:1; text-decoration:underline; }
@keyframes brtTickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Kategori pills */
#beritaApp .brt-kat-tabs { scrollbar-width:none; -ms-overflow-style:none; }
#beritaApp .brt-kat-tabs::-webkit-scrollbar { display:none; }
.brt-kat-pill {
  background:#fff; border:1.3px solid var(--brt-line); color:#4a4e57;
  font-size:11.5px; font-weight:700; padding:6px 14px; border-radius:var(--radius-xl);
  white-space:nowrap; flex-shrink:0; cursor:pointer; transition:all .15s; font-family:inherit;
}
.brt-kat-pill:not(.active):hover {
  border-color:var(--brt-red); color:var(--brt-red); background:var(--brt-red-soft);
}
.brt-kat-pill.active {
  background:var(--brt-red); border-color:var(--brt-red); color:#fff;
  box-shadow:0 4px 12px rgba(214,0,28,.32);
}

/* Sort tabs (Terbaru / Terpopuler) — gaya underline tab */
#beritaApp .brt-sort-tabs { display:flex; gap:4px; padding:0 .85rem; border-top:1px solid var(--brt-line); }
.brt-sort-btn {
  flex:1; background:none; border:none; font-family:inherit; font-size:12px; font-weight:700;
  color:var(--brt-sub); padding:10px 0 9px; cursor:pointer; border-bottom:2.5px solid transparent;
  display:flex; align-items:center; justify-content:center; gap:5px; transition:color .15s;
}
.brt-sort-btn.active { color:var(--brt-red); border-bottom-color:var(--brt-red); }

/* ---------- BODY ---------- */
#beritaApp .brt-body { padding:1rem .65rem 2rem; max-width:480px; margin:0 auto; }
.brt-section-label {
  display:flex; align-items:center; gap:7px; font-size:12px; font-weight:800; color:var(--brt-ink);
  text-transform:uppercase; letter-spacing:.5px; margin:6px 0 10px;
}
.brt-section-label::before { content:''; width:4px; height:14px; border-radius:2px; background:var(--brt-red); flex-shrink:0; }

/* Headline / berita utama — full-bleed hero, kumparan-airy radius + detik punchy type */
.brt-headline {
  position:relative; border-radius:var(--radius-xl); overflow:hidden; background:#111;
  cursor:pointer; margin-bottom:1.3rem; box-shadow:0 10px 28px rgba(20,21,28,.18);
  transition:transform .18s;
}
.brt-headline:active { transform:scale(.985); }
.brt-headline img { width:100%; height:210px; object-fit:cover; object-position:center; display:block; opacity:.95; }
.brt-headline-noimg {
  width:100%; height:210px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#3a3a3a,#111); color:rgba(255,255,255,.4); font-size:40px;
}
.brt-headline-overlay {
  position:absolute; left:0; right:0; bottom:0; padding:18px 16px 15px;
  background:linear-gradient(to top, rgba(10,10,14,.94), rgba(10,10,14,.3) 78%, transparent);
}
.brt-tag {
  display:inline-flex; align-items:center; gap:4px; font-size:9.5px; font-weight:800;
  letter-spacing:.4px; text-transform:uppercase; color:#fff; padding:3px 10px;
  border-radius:5px; margin-bottom:9px;
}
.brt-headline-title {
  color:#fff; font-size:17.5px; font-weight:900; line-height:1.28; margin-bottom:7px; letter-spacing:-.2px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.brt-headline-meta { color:rgba(255,255,255,.7); font-size:10.5px; font-weight:500; display:flex; align-items:center; gap:6px; }

/* Baris berita (list) — dipakai di halaman Berita & modal "Semua Berita" */
.brt-row {
  display:flex; gap:12px; background:#fff; border-radius:var(--radius-lg); padding:10px; margin-bottom:10px;
  border:1px solid var(--brt-line); cursor:pointer; transition:transform .15s, box-shadow .15s;
}
.brt-row:active { transform:scale(.985); }
@media (hover:hover) { .brt-row:hover { box-shadow:0 10px 24px rgba(20,21,28,.08); border-color:#e2e4e9; transform:translateY(-1px); } }
.brt-row-rank {
  flex-shrink:0; width:24px; font-size:24px; font-weight:900; font-style:italic;
  color:#e2e4e9; line-height:1; text-align:center; align-self:center;
}
.brt-row-rank.top3 { color:var(--brt-red); }
.brt-row img { width:80px; height:80px; border-radius:var(--radius-md); object-fit:cover; object-position:center; flex-shrink:0; background:#eee; }
.brt-row-noimg {
  width:80px; height:80px; border-radius:var(--radius-md); flex-shrink:0;
  background:linear-gradient(135deg,#dcdfe6,#c3c7d1); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px;
}
.brt-row-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.brt-row-kat {
  display:inline-flex; align-self:flex-start; font-size:9px; font-weight:800; text-transform:uppercase;
  letter-spacing:.3px; margin-bottom:5px; padding:2.5px 8px; border-radius:6px;
}
.brt-row-title {
  font-size:13px; font-weight:700; color:var(--brt-ink); line-height:1.34; margin-bottom:3px; letter-spacing:-.1px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.brt-row-excerpt {
  font-size:11px; color:var(--brt-sub); line-height:1.4; display:-webkit-box; -webkit-line-clamp:1;
  -webkit-box-orient:vertical; overflow:hidden; margin-bottom:4px;
}
.brt-row-meta { font-size:10px; color:#a7abb5; margin-top:auto; display:flex; align-items:center; gap:5px; }

.brt-empty { text-align:center; color:#aaa; font-size:12px; padding:2.5rem 0; display:flex; flex-direction:column; align-items:center; gap:10px; }
.brt-empty i { font-size:30px; color:#b9bcc4; display:flex; align-items:center; justify-content:center; width:64px; height:64px; background:#f0f1f4; border-radius:50%; }

/* ---------- Modal: header putih bersih utk "Semua Berita" & detail artikel ---------- */
#newsDetailModal .info-modal-hdr, #newsAllModal .info-modal-hdr { background:#fff; border-bottom:1px solid var(--brt-line); }
#newsDetailModal .info-modal-hdr h3, #newsAllModal .info-modal-hdr h3 { color:var(--brt-ink); }
#newsDetailModal .info-modal-close, #newsAllModal .info-modal-close { background:#f3f4f6; color:var(--brt-ink); }

/* Artikel detail — full-bleed hero, judul besar, meta, share icon, related */
.brt-article-hero {
  margin:-1rem -.65rem .9rem; width:calc(100% + 1.3rem); max-height:230px; object-fit:cover; object-position:center; display:block;
}
.brt-article-tag {
  display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:800; text-transform:uppercase;
  letter-spacing:.4px; color:#fff; padding:4px 11px; border-radius:6px; margin-bottom:11px;
}
.brt-article-title { font-size:19px; font-weight:900; color:var(--brt-ink); line-height:1.3; letter-spacing:-.2px; margin-bottom:11px; }
.brt-article-meta {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:11px; color:var(--brt-sub); font-weight:500;
  padding-bottom:13px; margin-bottom:15px; border-bottom:1px solid var(--brt-line);
}
.brt-article-body { font-size:13.5px; color:#292b33; line-height:1.5; white-space:pre-line; text-indent:0; margin-bottom:18px; }

/* Video embed (YouTube) — menggantikan posisi hero image kalau berita ada video */
.brt-video-embed {
  position:relative; width:calc(100% + 1.3rem); margin:-1rem -.65rem .9rem;
  padding-top:56.25%; /* rasio 16:9 */ background:#000; overflow:hidden;
}
.brt-video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Badge ▶ di pojok thumbnail list — ciri artikel yang ada videonya */
.brt-play-badge {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:26px; height:26px; border-radius:50%; background:rgba(0,0,0,.55);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px;
  backdrop-filter:blur(2px);
}
.brt-play-badge-lg { width:52px; height:52px; font-size:20px; background:rgba(0,0,0,.5); border:2px solid rgba(255,255,255,.85); }

/* Tombol "Sumber / Baca Selengkapnya" — link keluar (opsional) */
.brt-source-link {
  display:flex; align-items:center; justify-content:center; gap:6px;
  background:#f3f4f6; color:var(--brt-ink); text-decoration:none;
  font-size:12px; font-weight:700; padding:10px 14px; border-radius:var(--radius-md);
  margin:-8px 0 18px; transition:background .15s ease;
}
.brt-source-link:hover { background:#e9eaee; }

.brt-share-row { display:flex; gap:8px; padding:12px 0 4px; border-top:1px solid var(--brt-line); margin-bottom:6px; }
.brt-share-btn {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
  background:none; border:none; font-family:inherit; cursor:pointer; padding:4px 0;
}
.brt-share-circle { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; box-shadow:0 3px 8px rgba(20,21,28,.18); transition:transform .15s ease; }
.brt-share-btn:active .brt-share-circle { transform:scale(.9); }
.brt-share-btn span { font-size:9.5px; font-weight:700; color:#666; }

.brt-related-label {
  font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color:var(--brt-ink);
  margin:4px 0 10px; padding-top:15px; border-top:6px solid #f3f4f6;
}
.brt-related-row { display:flex; gap:11px; padding:9px 6px; margin:0 -6px; border-radius:var(--radius-sm); cursor:pointer; border-bottom:1px solid #f3f4f6; transition:background .15s ease; }
.brt-related-row:last-child { border-bottom:none; }
.brt-related-row:hover { background:#f8f9fb; }
.brt-related-row img { width:60px; height:60px; border-radius:var(--radius-md); object-fit:cover; object-position:center; flex-shrink:0; background:#eee; }
.brt-related-noimg {
  width:60px; height:60px; border-radius:var(--radius-md); flex-shrink:0; background:linear-gradient(135deg,#dcdfe6,#c3c7d1);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px;
}
.brt-related-title {
  font-size:12.5px; font-weight:700; color:#222; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.brt-related-meta { font-size:9.5px; color:#aaa; margin-top:3px; }


/* ===== PAGE WIDGET ===== */
.pg-widget-box {
  border-radius: 12px;
  margin-bottom: 1.1rem;
  overflow: hidden
}

.pg-widget-box .pg-widget-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px
}

/* ===== PAPAN INFO SOSIAL ===== */
.info-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: .9rem .9rem 0;
  padding-top: calc(env(safe-area-inset-top) + .9rem);
  position: sticky;
  top: 0;
  z-index: 40
}

.info-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px
}

.info-back-btn {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  height: 30px;
  padding: 0 12px 0 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap
}

.info-back-btn i {
  font-size: 15px
}

.info-back-btn:active {
  background: rgba(255, 255, 255, .28)
}

.info-header h1 {
  color: #fff;
  font-size: 15px;
  font-weight: 700
}

/* Scrollable kat tabs in header */
#infoKatTabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: .65rem
}

#infoKatTabs::-webkit-scrollbar {
  display: none
}

.info-kat-btn {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 20px;
  transition: all .15s;
  flex-shrink: 0
}

.info-kat-btn.active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold)
}

.info-body {
  padding: .9rem .8rem 2rem;
  max-width: 480px;
  margin: 0 auto
}

/* Info sosial card */
.iso-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(180, 40, 20, .07);
  border: 1px solid #f0e8e5;
  position: relative;
  overflow: hidden
}

.iso-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue)
}

/* Kartu Loker — aksen biru (beda dari kartu info lain yg hijau), supaya
   gampang dibedakan sekilas sebagai lowongan kerja */
.iso-card.iso-loker::before {
  background: var(--accent)
}

.iso-kat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid #bbf7d0
}

.iso-card.iso-loker .iso-kat-badge {
  background: #dbeafe;
  color: var(--accent);
  border-color: #bfdbfe
}

.iso-loker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: #667;
  margin-bottom: 8px
}

.iso-loker-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.iso-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.3
}

.iso-body {
  font-size: 12px;
  color: #555;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 8px
}

.iso-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.iso-wa-btn:active {
  background: #1da851
}

.iso-date {
  font-size: 10px;
  color: #bbb;
  margin-top: 6px
}

.info-empty {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.info-empty i {
  font-size: 30px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%
}

/* Admin iso filter chips */
.iso-adm-filter-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1.5px solid #dde2ee;
  background: #f4f6fb;
  color: #555;
  cursor: pointer
}

.iso-adm-filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

/* Admin iso list card */
.iso-adm-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid #f0e8e5;
  position: relative
}

.iso-adm-card-kat {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--blue);
  background: #fff1ee;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 5px
}

.iso-adm-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px
}

.iso-adm-card-body {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px
}

.iso-adm-card-actions {
  display: flex;
  gap: 6px
}

.iso-adm-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit
}

@keyframes flyOverName {
  0% {
    transform: translateY(8px);
    opacity: 0
  }

  30% {
    opacity: 1
  }

  100% {
    transform: translateY(0);
    opacity: 1
  }
}

.mp-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.1rem
}

.mp-cat {
  background: var(--card);
  border-radius: 14px;
  padding: .8rem .3rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  box-shadow: 0 2px 6px rgba(200, 50, 20, .06)
}

.mp-cat.active {
  border-color: var(--gold);
  background: #fffaf0
}

.mp-cat-icon {
  font-size: 24px;
  margin-bottom: 4px
}

.mp-cat-label {
  font-size: 10.5px;
  color: var(--blue);
  font-weight: 700
}

.mp-section-title {
  color: var(--navy-deep);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.mp-section-title i {
  color: var(--blue)
}

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem
}

/* SELLER CARDS (grid) */
.seller-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all .2s ease;
  box-shadow: var(--shadow-sm)
}

.seller-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md)
}

.seller-card:active {
  transform: scale(.97)
}

.sc-img {
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: relative;
  overflow: hidden
}

.sc-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #fbbf24;
  color: #78350f;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px
}

.sc-badge.tutup {
  background: #dfe3ea;
  color: #777
}

.sc-kat {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(27, 94, 32, .82);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px
}

.sc-terlaris {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .4);
  animation: scTerlarisPop .35s ease
}

@keyframes scTerlarisPop {
  0% {
    transform: scale(.7);
    opacity: 0
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

.sc-open {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff
}

.sc-body {
  padding: 9px 10px 10px
}

.sc-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.sc-desc {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px
}

.sc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 8px
}

.sc-rating {
  color: #f59e0b;
  font-size: 10.5px;
  font-weight: 700
}

.sc-btn {
  display: flex;
  gap: 6px
}

.btn-pesan {
  flex: 1;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 2rem 1rem;
  color: #7a8499
}

.empty-state i {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-wrap: wrap; /* ✅ FIX: 10 tombol jadi 2 baris (5+5), bukan dipepetkan 1 baris */
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(16,24,40,.06);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom)
}

.bn-item {
  flex: 0 0 20%; /* ✅ 5 tombol per baris (100%/5) */
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 5px;
  border: none;
  background: none;
  cursor: pointer;
  color: #9aa3b2;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  transition: color .2s ease;
}

/* Baris ke-2 dapat garis pemisah tipis dari baris pertama */
.bn-item:nth-child(n+6) {
  border-top: 1px solid #f0f2f7
}

.bn-item i {
  font-size: 18px;
  transition: transform .2s ease;
}

.bn-item.active {
  color: var(--blue)
}

.bn-item.active i {
  transform: translateY(-1px) scale(1.08);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .6);
  z-index: 999;
  align-items: flex-end;
  justify-content: center;
  padding: 0
}

.modal-overlay.show {
  display: flex
}

.modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp .22s ease
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: .4
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.modal-header {
  background: var(--blue);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  border-radius: 18px 18px 0 0;
  z-index: 5
}

.modal-header h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  margin-right: 8px
}

.modal-close {
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0
}

.modal-body {
  padding: 0
}

/* SELLER DETAIL PAGE (GoFood style) */
.seller-hero {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #ffe8e3, #ffd5cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  flex-shrink: 0;
  overflow: hidden
}

.seller-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0
}

.seller-hero-info {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f7
}

.seller-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px
}

.seller-hero-ava {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffe8e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  flex-shrink: 0
}

.seller-hero-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink)
}

.seller-hero-meta {
  font-size: 11.5px;
  color: #666;
  margin-top: 2px
}

.seller-share-btn {
  margin-left: auto;
  background: #fff1ee;
  border: none;
  color: var(--blue);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px
}

/* Product search & filter in modal */
.prod-search-box {
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #f0f2f7;
  display: flex;
  gap: 8px;
  align-items: center;
  position: sticky;
  top: 52px;
  z-index: 4
}

.prod-search-inp {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f3f4f7;
  border-radius: 8px;
  overflow: hidden
}

.prod-search-inp i {
  padding-left: 10px;
  color: #9aa3b2;
  font-size: 14px
}

.prod-search-inp input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 8px;
  font-size: 12.5px;
  background: transparent
}

.prod-subkat-scroll {
  overflow-x: auto;
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #f0f2f7;
  position: sticky;
  top: 100px;
  z-index: 3
}

.prod-subkat-btn {
  white-space: nowrap;
  padding: 5px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  color: #555;
  flex-shrink: 0
}

.prod-subkat-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff
}

/* Product list vertical (GoFood style) */
.prod-section-label {
  padding: 10px 14px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #f8f9fc
}

.prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f7;
  background: #fff;
  transition: background .1s
}

.prod-item:active {
  background: #f8f9fc
}

.prod-item.out-of-stock {
  opacity: .5;
  pointer-events: none
}

.prod-item-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden
}

.prod-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.prod-item-info {
  flex: 1;
  min-width: 0
}

.prod-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3
}

.prod-item-desc {
  font-size: 11px;
  color: #888;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.prod-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue)
}

.prod-item-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 4px
}

.prod-item-badge.habis {
  background: #fee2e2;
  color: #dc2626
}

.prod-item-badge.new {
  background: #dcfce7;
  color: #166534
}

.prod-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0
}

.prod-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.prod-qty-btn:active {
  background: var(--blue);
  color: #fff
}

.prod-qty-val {
  width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink)
}

.prod-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.prod-list-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #9aa3b2;
  font-size: 13px
}

/* Float cart bar */
.float-cart-bar {
  position: sticky;
  bottom: 0;
  background: var(--blue);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}

.fcb-info {
  flex: 1;
  min-width: 0
}

.fcb-qty {
  font-size: 11px;
  color: rgba(255, 255, 255, .8);
  font-weight: 600
}

.fcb-total {
  font-size: 15px;
  font-weight: 800;
  color: #fff
}

.fcb-next {
  background: #fff;
  color: var(--blue);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

/* ORDER PAGE 2 */
.order-page {
  display: none;
  padding: 14px
}

.order-page.active {
  display: block
}

.btn-back-page {
  background: #f1f3f7;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem
}

.summary-box {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: .8rem;
  border: 1px solid #bbf7d0
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px
}

.summary-row.total {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-deep);
  border-top: 1px dashed #bbf7d0;
  padding-top: 7px;
  margin-top: 4px
}

.form-group {
  margin-bottom: .8rem
}

.form-label {
  font-size: 11.5px;
  color: #555;
  margin-bottom: 4px;
  display: block;
  font-weight: 600
}

.form-input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}

.field-row {
  display: flex;
  gap: 8px
}

.field-row .form-group {
  flex: 1
}

.pay-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.pay-opt {
  padding: 6px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  transition: all .15s ease;
}

.pay-opt.sel {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark)
}

.btn-order {
  width: 100%;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.btn-order:active {
  background: var(--navy-deep)
}

.help-txt {
  font-size: 10.5px;
  color: #9aa3b2;
  margin-top: 3px
}

/* Jam */
.jam-row {
  display: flex;
  gap: 8px;
  align-items: center
}

.jam-row .form-input {
  flex: 1
}

.jam-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  margin-left: 6px
}

.jam-badge.open-now {
  background: #dcfce7;
  color: #16a34a
}

.jam-badge.closed-now {
  background: #fee2e2;
  color: #dc2626
}

/* Image upload */
.img-upload-area {
  border: 2px dashed #ffd5cc;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background: #fff8f6;
  transition: all .15s;
  position: relative;
  overflow: hidden
}

.img-upload-area:hover {
  border-color: var(--blue);
  background: #eef2ff
}

.img-upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%
}

.img-upload-area .iu-icon {
  font-size: 24px;
  color: #9aa3b2;
  margin-bottom: 4px
}

.img-upload-area .iu-label {
  font-size: 11px;
  color: #9aa3b2;
  font-weight: 600
}

.img-upload-area .iu-hint {
  font-size: 10px;
  color: #b0b8cc;
  margin-top: 2px
}

.img-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
  display: none
}

.img-preview.show {
  display: block
}

.img-remove-btn {
  display: none;
  margin-top: 6px;
  background: #fef2f2;
  color: #dc2626;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 100%
}

.img-remove-btn.show {
  display: block
}

.menu-row-img-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  position: relative;
  overflow: hidden
}

.menu-row-img-placeholder input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%
}

.sc-img img.seller-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0
}

/* SHARE LINK BOX */
.share-box {
  background: #fff1ee;
  border: 1.5px solid #ffd5cc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px
}

.share-box-label {
  font-size: 10.5px;
  color: #888;
  font-weight: 700;
  margin-bottom: 6px
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 6px
}

.share-link-text {
  flex: 1;
  font-size: 11px;
  color: #444;
  background: #fff;
  border: 1px solid #dde1ea;
  border-radius: 6px;
  padding: 6px 8px;
  word-break: break-all;
  min-height: 32px
}

.share-btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap
}

.share-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px
}

.share-btn-wa {
  background: #25d366;
  color: #fff
}

.share-btn-copy {
  background: #fff1ee;
  color: var(--blue);
  border: 1.5px solid #ffd5cc
}

/* ADMIN */
#adminApp {
  display: none;
  background: #f3f5fa;
  min-height: 100vh;
  min-height: 100dvh
}

.adm-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary))
}

.adm-login-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  width: 100%;
  max-width: 340px;
  text-align: center
}

.adm-login-box i {
  font-size: 34px;
  color: var(--blue)
}

.adm-login-box h2 {
  font-size: 17px;
  margin: .6rem 0 .2rem;
  color: var(--ink)
}

.adm-login-box p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.2rem
}

.adm-login-box input {
  margin-bottom: .7rem
}

.adm-login-box .btn-order {
  background: var(--blue)
}

.adm-err {
  color: #dc2626;
  font-size: 11.5px;
  margin-bottom: .5rem;
  display: none
}

.adm-header {
  background: var(--navy-deep);
  color: #fff;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.adm-header h1 {
  font-size: 14.5px;
  font-weight: 700
}

.adm-header .sub {
  font-size: 10px;
  color: #f4a48e;
  font-weight: 500
}

.adm-exit {
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .2s ease;
}

.adm-exit:hover {
  background: rgba(255, 255, 255, .22);
}

.adm-tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 48px;
  z-index: 29;
  gap: 3px;
  padding: 6px 8px;
}

.adm-tab {
  flex-shrink: 0;
  padding: 8px 13px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8a93a6;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .2s ease, color .2s ease;
}

.adm-tab:hover {
  background: var(--primary-light);
}

.adm-tab.active {
  color: #fff;
  background: var(--primary-dark);
}

.pg-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 10px;
  padding: 4px
}

.pg-subtab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8a93a6;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer
}

.pg-subtab.active {
  background: var(--blue);
  color: #fff
}

.pg-subpane {
  display: none
}

.pg-subpane.active {
  display: block
}

.adm-body {
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto
}

.adm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem
}

.adm-stat {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}

.adm-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.adm-stat .num {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-deep)
}

.adm-stat .lbl {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px
}

.adm-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: .9rem
}

.adm-toolbar .form-input {
  flex: 1
}

.btn-add {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  height: 40px;
  box-shadow: var(--shadow-sm);
}

.adm-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .85rem;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}

.adm-card:hover {
  box-shadow: var(--shadow-md);
}

.adm-card-top {
  display: flex;
  gap: 10px;
  align-items: center
}

.adm-ava {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  overflow: hidden
}

.adm-card-info {
  flex: 1;
  min-width: 0
}

.adm-card-info .nm {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink)
}

.adm-card-info .mt {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px
}

.adm-toggle {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 20px;
  background: #d6dbe5;
  cursor: pointer;
  flex-shrink: 0;
  border: none
}

.adm-toggle.on {
  background: var(--primary-dark)
}

.adm-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: left .15s
}

.adm-toggle.on::after {
  left: 19px
}

.adm-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid #f0f2f7;
  padding-top: 10px
}

.adm-btn-sm {
  border: none;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  font-family: inherit;
  line-height: 1
}

.adm-btn-edit {
  background: #eef2ff;
  color: var(--blue)
}

.adm-btn-del {
  background: #fef2f2;
  color: #dc2626
}

.adm-btn-menu {
  background: #fff7e6;
  color: #b45309
}

.adm-btn-share {
  background: #f0fdf4;
  color: #166534
}

.drag-handle {
  cursor: grab;
  color: #c0c8d8;
  font-size: 18px;
  padding: 0 6px 0 0;
  flex-shrink: 0;
  touch-action: none
}

.drag-handle:active {
  cursor: grabbing
}

.adm-card.dragging {
  opacity: .5;
  border: 2px dashed var(--blue)
}

.adm-card.drag-over {
  border: 2px solid var(--blue);
  background: #fff1ee
}

.menu-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8f9fc;
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 7px;
  flex-wrap: wrap
}

.menu-row input,
.menu-row textarea {
  border: 1px solid #dde1ea;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit
}

.menu-row .mname {
  flex: 1;
  min-width: 120px
}

.menu-row .mprice {
  width: 90px
}

.menu-row .mdesc {
  width: 100%;
  margin-top: 4px;
  resize: none;
  min-height: 32px;
  font-size: 11.5px;
  color: #555;
  line-height: 1.4
}

.menu-row .mdel {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  padding-top: 4px
}

.menu-row .drag-handle {
  font-size: 14px;
  padding: 0 4px 0 0;
  padding-top: 4px
}

.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .55);
  z-index: 998;
  align-items: flex-end;
  justify-content: center
}

.sheet-overlay.show {
  display: flex
}

.sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .2s ease
}

.sheet-header {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 5
}

.sheet-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink)
}

.sheet-body {
  padding: 1.1rem
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #1f2937;
  color: #fff;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 1100;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  white-space: nowrap
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SETTINGS PANE HELPERS ===== */
.set-section {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: .85rem;
  box-shadow: 0 1px 6px rgba(180, 40, 20, .05);
  border: 1px solid #f0ece9
}

.set-note {
  font-size: 11.5px;
  border-radius: 8px;
  padding: 8px 11px;
  margin-bottom: 10px;
  line-height: 1.55
}

.set-note-yellow {
  background: #fff7e6;
  color: #92400e;
  border-left: 3px solid #f59e0b
}

.set-note-green {
  background: #f0fdf4;
  color: #14532d;
  border-left: 3px solid #4ade80
}

.set-divider {
  height: 1px;
  background: #f0ece9;
  margin: .2rem 0 .85rem
}

/* SELLER PANEL */
#sellerApp {
  display: none;
  background: #f0faf4;
  min-height: 100vh;
  min-height: 100dvh
}

.slr-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #14532d, #16a34a)
}

.slr-login-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  width: 100%;
  max-width: 340px;
  text-align: center
}

.slr-login-box i {
  font-size: 34px;
  color: #16a34a
}

.slr-login-box h2 {
  font-size: 17px;
  margin: .6rem 0 .2rem;
  color: var(--ink)
}

.slr-login-box p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.2rem
}

.slr-login-box input {
  margin-bottom: .7rem
}

.slr-header {
  background: linear-gradient(135deg, #14532d, #16a34a);
  color: #fff;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30
}

.slr-header h1 {
  font-size: 14.5px;
  font-weight: 700
}

.slr-header .sub {
  font-size: 10px;
  color: #bbf7d0;
  font-weight: 500
}

.slr-exit {
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px
}

.slr-tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #d1fae5;
  position: sticky;
  top: 48px;
  z-index: 29
}

.slr-tab {
  flex-shrink: 0;
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8a93a6;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px
}

.slr-tab.active {
  color: #16a34a;
  border-color: #16a34a
}

.slr-body {
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto
}

.slr-stat {
  background: #fff;
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .12);
  text-align: center
}

.slr-stat .num {
  font-size: 21px;
  font-weight: 800;
  color: #14532d
}

.slr-stat .lbl {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px
}

.slr-pane {
  display: none
}

.slr-pane.active {
  display: block
}

.btn-green {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-family: inherit
}

.btn-green:active {
  background: #14532d
}

/* SELLER PRODUCT MANAGER (rich) */
.slr-prod-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .10);
  border: 1px solid #d1fae5
}

.slr-prod-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden
}

.slr-prod-body {
  flex: 1;
  min-width: 0
}

.slr-prod-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px
}

.slr-prod-price {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700
}

.slr-prod-kat {
  font-size: 10px;
  color: #888;
  margin-bottom: 4px
}

.slr-stock-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px
}

.slr-stock-badge.ada {
  background: #dcfce7;
  color: #166534
}

.slr-stock-badge.habis {
  background: #fee2e2;
  color: #dc2626
}

.slr-prod-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #f0f2f7;
  background: #fafbfc
}

.slr-prod-act-btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px
}

.slr-prod-act-edit {
  background: #eef2ff;
  color: var(--blue)
}

.slr-prod-act-del {
  background: #fef2f2;
  color: #dc2626
}

.slr-prod-act-stock {
  background: #fff7e6;
  color: #b45309
}

.slr-prod-act-share {
  background: #f0fdf4;
  color: #166534
}

/* ORDER CARDS */
.slr-order-card {
  background: #fff;
  border-radius: 13px;
  padding: .85rem;
  margin-bottom: 9px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .10);
  border-left: 4px solid #16a34a
}

.order-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 6px
}

.order-badge.baru {
  background: #fef3c7;
  color: #92400e
}

.order-badge.proses {
  background: #dbeafe;
  color: #1e40af
}

.order-badge.selesai {
  background: #dcfce7;
  color: #166534
}

.order-badge.batal {
  background: #fee2e2;
  color: #991b1b
}

.status-btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap
}

.status-btn {
  flex: 1;
  min-width: 70px;
  border: none;
  border-radius: 7px;
  padding: 7px 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px
}

.status-btn.proses {
  background: #dbeafe;
  color: #1e40af
}

.status-btn.selesai {
  background: #dcfce7;
  color: #166534
}

.status-btn.batal {
  background: #fee2e2;
  color: #991b1b
}

/* KURIR PANEL — CHAT */
#kurirApp {
  display: none;
  background: #f0f7fc;
  min-height: 100vh;
  min-height: 100dvh
}

.kur-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #0f4c75, #1a6fa8)
}

.kur-login-box {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  width: 100%;
  max-width: 340px;
  text-align: center
}

.kur-login-box i {
  font-size: 34px;
  color: #7c3aed
}

.kur-login-box h2 {
  font-size: 17px;
  margin: .6rem 0 .2rem;
  color: var(--ink)
}

.kur-login-box p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.2rem
}

.kur-login-box input {
  margin-bottom: .7rem
}

.kur-header {
  background: #0a3a5c;
  color: #fff;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30
}

.kur-header h1 {
  font-size: 14.5px;
  font-weight: 700
}

.kur-header .sub {
  font-size: 10px;
  color: #7ec8e3;
  font-weight: 500
}

.kur-exit {
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px
}

.kur-tabs {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #e6e9f2;
  position: sticky;
  top: 48px;
  z-index: 29
}

.kur-tab {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #8a93a6;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px
}

.kur-tab.active {
  color: #1a6fa8;
  border-color: #1a6fa8
}

.kur-body {
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto
}

.kur-tab-pane {
  display: none
}

.kur-tab-pane.active {
  display: block
}

/* CHAT UI */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  height: calc(100dvh - 100px);
  max-width: 480px
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f0f7fc
}

.chat-bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word
}

.chat-bubble.mine {
  background: #1a6fa8;
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px
}

.chat-bubble.theirs {
  background: #fff;
  color: var(--ink);
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08)
}

.chat-bubble.system {
  background: #e0e7ff;
  color: #3730a3;
  align-self: center;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600
}

.chat-meta {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .7);
  margin-top: 3px;
  text-align: right
}

.chat-meta.theirs-meta {
  color: #aaa;
  text-align: left;
  padding-left: 2px
}

.chat-sender {
  font-size: 10px;
  font-weight: 700;
  color: #1a6fa8;
  margin-bottom: 2px
}

.chat-input-bar {
  background: #fff;
  border-top: 1px solid #e6e9f2;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  position: sticky;
  bottom: 0
}

.chat-inp {
  flex: 1;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: #f8f9fc
}

.chat-inp:focus {
  border-color: #1a6fa8;
  background: #fff
}

.chat-send-btn {
  background: #1a6fa8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.chat-send-btn:active {
  background: #0f4c75
}

.chat-order-attach {
  background: #e0f0fa;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-left: 3px solid #1a6fa8
}

.chat-order-attach .coa-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0a3a5c;
  margin-bottom: 2px
}

.chat-order-attach .coa-detail {
  font-size: 10.5px;
  color: #555
}

.unread-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px
}

/* Kurir standby status lamp */
@keyframes blinkGreen {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7)
  }

  50% {
    opacity: .7;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .0)
  }
}

@keyframes blinkGreenPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6)
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, .0)
  }
}

.kur-status-lamp {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: background .3s
}

.kur-status-lamp.standby {
  background: #22c55e;
  animation: blinkGreen 1.2s ease-in-out infinite
}

.kur-status-lamp.offline {
  background: #d1d5db;
  box-shadow: none;
  animation: none
}

.kur-status-bar {
  background: #fff;
  border-radius: 13px;
  padding: .85rem;
  margin-bottom: .9rem;
  box-shadow: 0 2px 8px rgba(26, 111, 168, .10);
  display: flex;
  align-items: center;
  gap: 12px
}

.kur-status-info {
  flex: 1
}

.kur-status-info .lbl {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  margin-bottom: 3px
}

.kur-status-info .val {
  font-size: 14px;
  font-weight: 800
}

.kur-status-info .val.standby {
  color: #16a34a
}

.kur-status-info .val.offline {
  color: #9ca3af
}

.kur-toggle-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  font-family: inherit
}

.kur-toggle-btn.to-standby {
  background: #dcfce7;
  color: #166534
}

.kur-toggle-btn.to-offline {
  background: #fee2e2;
  color: #991b1b
}

/* Admin kurir status badge */
.adm-kur-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0
}

.adm-kur-lamp.standby {
  background: #22c55e;
  animation: blinkGreen 1.2s ease-in-out infinite
}

.adm-kur-lamp.offline {
  background: #d1d5db;
  animation: none
}

.adm-kur-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px
}

.adm-kur-status-badge.standby {
  background: #dcfce7;
  color: #166534
}

.adm-kur-status-badge.offline {
  background: #f3f4f6;
  color: #6b7280
}

/* Kurir stat */
.kur-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem
}

.kur-stat {
  background: #fff;
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(124, 58, 237, .07)
}

.kur-stat .num {
  font-size: 20px;
  font-weight: 800;
  color: #4c1d95
}

.kur-stat .lbl {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  margin-top: 1px
}

.kur-notif {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .9rem;
  margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
  position: relative;
  transition: box-shadow .2s ease;
}

.kur-notif:hover {
  box-shadow: var(--shadow-md);
}

.kur-notif.new {
  border-left-color: var(--warning);
  animation: pulseOrder 1s ease 3
}

@keyframes pulseOrder {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, .1)
  }

  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .2)
  }
}

.kur-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #e0f0fa;
  color: #0a3a5c;
  margin-bottom: 6px
}

.kur-notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px
}

.kur-notif-detail {
  font-size: 11.5px;
  color: #555;
  line-height: 1.5
}

.kur-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fff
}

.kur-action-btn {
  background: #1a6fa8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px
}

.kur-done-btn {
  background: #dcfce7;
  color: #166534;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px
}

.kur-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af
}

.kur-empty i {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
}

.notif-pulse {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #f59e0b;
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  animation: slideInRight .3s ease;
  display: none
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

.notif-pulse.show {
  display: block
}

/* ADMIN EXTRA — order card styles di bawah (bagian ADMIN ORDER CARD) */
.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #f8f9fc;
  border-radius: 9px;
  margin-bottom: 7px;
  gap: 8px;
  flex-wrap: wrap
}

.cred-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  min-width: 100px
}

.cred-pass-inp {
  width: 100px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: monospace
}

.cred-save-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer
}

.adm-kurir-key {
  font-size: 11px;
  font-family: monospace;
  background: #f0f2f7;
  padding: 3px 8px;
  border-radius: 6px;
  color: #444;
  margin-left: 6px
}

/* PWA INSTALL BANNER */
#pwa-banner {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(234, 88, 12, .22), 0 2px 8px rgba(0, 0, 0, .08);
  border: none;
  z-index: 800;
  overflow: hidden
}

@keyframes slideUpBanner {
  from {
    transform: translateX(-50%) translateY(24px);
    opacity: 0
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1
  }
}

#pwa-banner.show {
  display: block;
  animation: slideUpBanner .32s ease
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%
}

.pwa-banner-icon-wrap {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  width: 72px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 12px 6px
}

.pwa-banner-icon-domain {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.2;
  opacity: .9
}

.pwa-banner-icon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  margin: 2px 0
}

.pwa-banner-icon-com {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 14px
}

.pwa-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px
}

.pwa-banner-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4
}

.pwa-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  padding: 12px 12px 12px 0
}

.pwa-btn-install {
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit
}

.pwa-btn-install:active {
  background: #c2410c
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: #9aa3b2;
  font-size: 10.5px;
  cursor: pointer;
  text-align: center;
  padding: 2px;
  font-family: inherit
}

/* iOS install guide modal */
.ios-guide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .6);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center
}

.ios-guide-overlay.show {
  display: flex
}

.ios-guide-box {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 1.3rem 1.2rem 1.6rem;
  animation: slideUp .25s ease
}

.ios-guide-box h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  text-align: center
}

.ios-guide-box .ios-sub {
  font-size: 11.5px;
  color: #888;
  text-align: center;
  margin-bottom: 1.1rem
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f7
}

.ios-step:last-of-type {
  border-bottom: none
}

.ios-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.ios-step-icon {
  font-size: 20px;
  flex-shrink: 0
}

.ios-step-txt {
  font-size: 12.5px;
  color: #333;
  line-height: 1.4;
  flex: 1
}

.ios-step-txt b {
  color: var(--navy-deep)
}

.ios-guide-close {
  width: 100%;
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

/* ===== HALAMAN EDUKASI ===== */
:root {
  --edu-primary: #1a56db;
  --edu-dark: #1239a8;
  --edu-light: #eff6ff;
  --edu-green: #059669;
  --edu-yellow: #d97706;
  --edu-red: #dc2626;
  --edu-teal: #0d9488;
  --edu-pink: #db2777;
  --edu-indigo: #4f46e5;
  --edu-amber: #b45309;
  --edu-lime: #65a30d;
  --edu-cyan: #0891b2;
  --edu-violet: #7c3aed;
  --edu-rose: #e11d48;
  --edu-slate: #475569;
}

.edu-header {
  background: linear-gradient(135deg, var(--edu-dark) 0%, var(--edu-primary) 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top)
}

.edu-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .75rem .55rem
}

.edu-logo {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15
}

.edu-logo .sub {
  font-size: 9px;
  color: #93c5fd;
  letter-spacing: .6px;
  font-weight: 600;
  display: block
}

.edu-kat-scroll {
  overflow-x: auto;
  padding: 0 .75rem .65rem;
  scrollbar-width: none
}

.edu-kat-scroll::-webkit-scrollbar {
  display: none
}

.edu-kat-nav {
  display: flex;
  gap: 6px;
  width: max-content
}

.edu-kat-btn {
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 20px;
  transition: all .15s;
  font-family: inherit
}

.edu-kat-btn.active {
  color: var(--edu-dark);
  background: #fbbf24;
  border-color: #fbbf24
}

.edu-body {
  padding: .85rem .75rem;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 2rem
}

/* Hero Banner Edukasi */
.edu-banner {
  background: linear-gradient(120deg, var(--edu-dark), var(--edu-primary));
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden
}

.edu-banner::after {
  content: '🎓';
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 80px;
  opacity: .12;
  transform: rotate(-15deg)
}

.edu-banner h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3
}

.edu-banner p {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.5
}

.edu-banner-stats {
  display: flex;
  gap: 10px;
  margin-top: 10px
}

.edu-stat-pill {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700
}

/* Quick Kategori Grid */
.edu-quickkat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.1rem
}

.edu-quickkat-item {
  background: #fff;
  border-radius: 14px;
  padding: .75rem .3rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  box-shadow: 0 2px 6px rgba(26, 86, 219, .07)
}

.edu-quickkat-item.active {
  border-color: #fbbf24;
  background: #fffbeb
}

.edu-quickkat-icon {
  font-size: 22px;
  margin-bottom: 4px
}

.edu-quickkat-label {
  font-size: 10px;
  color: var(--edu-primary);
  font-weight: 700;
  line-height: 1.2
}

.edu-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 6px rgba(26, 86, 219, .07)
}

.edu-search-box i {
  padding-left: 12px;
  color: #9aa3b2;
  font-size: 14px
}

.edu-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 10px;
  font-size: 12.5px;
  background: transparent;
  font-family: inherit
}

.edu-fav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #fde68a;
  color: #b45309;
  font-weight: 700;
  font-size: 11.5px;
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 1.1rem;
  cursor: pointer;
  font-family: inherit
}

.edu-fav-toggle.active {
  background: #fbbf24;
  color: #fff;
  border-color: #fbbf24
}

.edu-card {
  position: relative
}

.edu-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 19px;
  color: #d1d5db;
  padding: 2px;
  line-height: 1;
  z-index: 2
}

.edu-bookmark-btn.on {
  color: #fbbf24
}

.edu-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #000
}

.edu-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.edu-quiz-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--edu-indigo), var(--edu-pink));
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  font-family: inherit
}

.edu-quiz-best {
  font-size: 10px;
  color: #888;
  text-align: center;
  margin-top: 5px
}

.quiz-q-block {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px
}

.quiz-q-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  line-height: 1.4
}

.quiz-opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #444;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px
}

.quiz-opt-label:hover {
  background: #eef1f8
}

.quiz-opt-label input {
  accent-color: var(--edu-primary)
}

.quiz-result-score {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin: 6px 0
}

.quiz-result-pass {
  color: var(--edu-green)
}

.quiz-result-fail {
  color: var(--edu-red)
}

.edu-builder-q {
  background: #fff;
  border: 1.5px solid #e0e4ef;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px
}

.edu-builder-opt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px
}

.edu-builder-opt-row input[type=radio] {
  accent-color: var(--edu-primary);
  flex-shrink: 0
}

.cert-card {
  background: #fff;
  border: 8px double #c9a23a;
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at top, #fffdf5, #fff)
}

.cert-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #92400e;
  font-size: 19px;
  margin-bottom: 2px;
  letter-spacing: .5px
}

.cert-card .cert-sub {
  font-size: 10.5px;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px
}

.cert-card .cert-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
  margin: 10px 0;
  border-bottom: 2px solid #fde68a;
  display: inline-block;
  padding: 0 10px 6px
}

.cert-card .cert-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px
}

.cert-card .cert-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--edu-green);
  margin-bottom: 14px
}

.cert-card .cert-date {
  font-size: 10.5px;
  color: #999;
  margin-top: 10px
}

@media print {
  body * {
    visibility: hidden
  }

  #certPrintArea,
  #certPrintArea * {
    visibility: visible
  }

  #certPrintArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px
  }
}

/* Kartu Konten Edukasi */
.edu-section-title {
  color: var(--edu-dark);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.edu-section-title i {
  color: var(--edu-primary)
}

.edu-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(26, 86, 219, .07);
  border: 1px solid #e8f0fe;
  position: relative;
  overflow: hidden;
  cursor: pointer
}

.edu-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px
}

.edu-card.kat-belajar::before {
  background: var(--edu-primary)
}

.edu-card.kat-skill::before {
  background: var(--edu-green)
}

.edu-card.kat-latihan::before {
  background: var(--edu-yellow)
}

.edu-card.kat-sertif::before {
  background: var(--edu-red)
}

.edu-card.kat-tips::before {
  background: var(--edu-teal)
}

.edu-card.kat-quiz::before {
  background: var(--edu-pink)
}

.edu-card.kat-iq::before {
  background: var(--edu-indigo)
}

.edu-card.kat-keuangan::before {
  background: var(--edu-amber)
}

.edu-card.kat-tani::before {
  background: var(--edu-lime)
}

.edu-card.kat-kesehatan::before {
  background: var(--edu-rose)
}

.edu-card.kat-digital::before {
  background: var(--edu-cyan)
}

.edu-card.kat-hukum::before {
  background: var(--edu-slate)
}

.edu-card.kat-parenting::before {
  background: var(--edu-violet)
}

.edu-card.kat-lainnya::before {
  background: #7c3aed
}

.edu-kat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px
}

.edu-kat-badge.kat-belajar {
  background: #eff6ff;
  color: var(--edu-primary);
  border: 1px solid #bfdbfe
}

.edu-kat-badge.kat-skill {
  background: #ecfdf5;
  color: var(--edu-green);
  border: 1px solid #a7f3d0
}

.edu-kat-badge.kat-latihan {
  background: #fffbeb;
  color: var(--edu-yellow);
  border: 1px solid #fde68a
}

.edu-kat-badge.kat-sertif {
  background: #fef2f2;
  color: var(--edu-red);
  border: 1px solid #fecaca
}

.edu-kat-badge.kat-tips {
  background: #f0fdfa;
  color: var(--edu-teal);
  border: 1px solid #99f6e4
}

.edu-kat-badge.kat-quiz {
  background: #fdf2f8;
  color: var(--edu-pink);
  border: 1px solid #fbcfe8
}

.edu-kat-badge.kat-iq {
  background: #eef2ff;
  color: var(--edu-indigo);
  border: 1px solid #c7d2fe
}

.edu-kat-badge.kat-keuangan {
  background: #fffbeb;
  color: var(--edu-amber);
  border: 1px solid #fde68a
}

.edu-kat-badge.kat-tani {
  background: #f7fee7;
  color: var(--edu-lime);
  border: 1px solid #d9f99d
}

.edu-kat-badge.kat-kesehatan {
  background: #fff1f2;
  color: var(--edu-rose);
  border: 1px solid #fecdd3
}

.edu-kat-badge.kat-digital {
  background: #ecfeff;
  color: var(--edu-cyan);
  border: 1px solid #a5f3fc
}

.edu-kat-badge.kat-hukum {
  background: #f1f5f9;
  color: var(--edu-slate);
  border: 1px solid #cbd5e1
}

.edu-kat-badge.kat-parenting {
  background: #f5f3ff;
  color: var(--edu-violet);
  border: 1px solid #ddd6fe
}

.edu-kat-badge.kat-lainnya {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe
}

.edu-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.3
}

.edu-card-body {
  font-size: 12px;
  color: #555;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 8px
}

.edu-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px
}

.edu-card-date {
  font-size: 10px;
  color: #aaa
}

.edu-card-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.edu-card-wa-btn:active {
  background: #1da851
}

.edu-empty {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.edu-empty i {
  font-size: 42px;
  color: #dbeafe
}

.edu-empty p {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600
}

.edu-empty small {
  color: #bbb;
  font-size: 11px
}

/* Daftar Konten Edukasi — tampilan ringkas (judul saja), per kategori */
.edu-kat-group {
  margin-bottom: 14px
}

.edu-kat-group-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--edu-dark);
  margin-bottom: 6px;
  padding-left: 2px
}

.edu-kat-group-hdr .cnt {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 1px 8px
}

.edu-list-item {
  background: #fff;
  border-radius: 12px;
  padding: .7rem .85rem;
  margin-bottom: 7px;
  box-shadow: 0 1px 6px rgba(26, 86, 219, .06);
  border: 1px solid #eef2f9;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px
}

.edu-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px
}

.edu-list-item.kat-belajar::before {
  background: var(--edu-primary)
}

.edu-list-item.kat-skill::before {
  background: var(--edu-green)
}

.edu-list-item.kat-latihan::before {
  background: var(--edu-yellow)
}

.edu-list-item.kat-sertif::before {
  background: var(--edu-red)
}

.edu-list-item.kat-tips::before {
  background: var(--edu-teal)
}

.edu-list-item.kat-quiz::before {
  background: var(--edu-pink)
}

.edu-list-item.kat-iq::before {
  background: var(--edu-indigo)
}

.edu-list-item.kat-keuangan::before {
  background: var(--edu-amber)
}

.edu-list-item.kat-tani::before {
  background: var(--edu-lime)
}

.edu-list-item.kat-kesehatan::before {
  background: var(--edu-rose)
}

.edu-list-item.kat-digital::before {
  background: var(--edu-cyan)
}

.edu-list-item.kat-hukum::before {
  background: var(--edu-slate)
}

.edu-list-item.kat-parenting::before {
  background: var(--edu-violet)
}

.edu-list-item.kat-lainnya::before {
  background: #7c3aed
}

.edu-list-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #eff6ff;
  color: var(--edu-primary)
}

/* ============================================================
   HALAMAN PEMERINTAH — pakai ULANG komponen .edu-* (model yang
   sama persis dengan Pusat Edukasi: header, kat-nav, banner hero,
   search, quickkat grid, list terkelompok, modal detail) supaya
   konsisten & gampang dirawat — TIDAK menduplikasi ratusan baris
   CSS. Karena hampir semua warna .edu-* memakai CSS variable
   (--edu-primary/--edu-dark), cukup override variabel itu di
   dalam scope #govApp untuk mengubah semuanya jadi tema MERAH.
   Sisanya (shadow & bg biru yang hardcoded, bukan via variable)
   di-override manual satu-satu di bawah ini.
   ============================================================ */
#govApp {
  --edu-primary: #b91c1c;   /* merah utama — dipakai header/banner/quickkat-label/kat-belajar */
  --edu-dark: #7f1d1d;      /* merah tua — sisi gelap gradient header/banner, section-title */
  --edu-light: #fef2f2;
}
#govApp .edu-banner::after { content: '🏛️'; }               /* ganti ikon watermark banner (asalnya 🎓) */
#govApp .edu-logo .sub { color: #fecaca; }                    /* subtitle header: biru muda → merah muda */
#govApp .edu-search-box,
#govApp .edu-quickkat-item,
#govApp .edu-list-item,
#govApp .edu-card { box-shadow: 0 2px 6px rgba(185, 28, 28, .10); }  /* shadow biru → merah */
#govApp .edu-list-icon,
#govApp .edu-kat-badge.kat-belajar { background: #fef2f2; }   /* bg ikon/badge biru muda → merah muda */
#govApp .edu-kat-badge.kat-lainnya { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
#govApp .edu-list-item.kat-lainnya::before,
#govApp .edu-card.kat-lainnya::before { background: #b91c1c; }
#govApp .edu-empty i,
#govApp .edu-section-title i { color: var(--edu-primary); }

.edu-list-main {
  flex: 1;
  min-width: 0
}

.edu-list-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.edu-list-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px
}

.edu-list-tag {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8
}

.edu-list-quiz-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--edu-pink);
  background: #fdf2f8;
  border-radius: 8px;
  padding: 1px 6px
}

.edu-list-star {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: #d1d5db;
  padding: 4px
}

.edu-list-star.on {
  color: #fbbf24
}

.edu-list-chevron {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 15px
}

/* Modal Detail Konten Edukasi */
.edu-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 9px
}

.edu-detail-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px
}

.edu-detail-body {
  font-size: 12.5px;
  color: #444;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 10px
}

.edu-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e9f2
}

.edu-detail-star-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #e5e9f2;
  color: #555;
  font-weight: 700;
  font-size: 11.5px;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit
}

.edu-detail-star-btn.on {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #b45309
}

/* Admin: tab Edukasi */
.edu-adm-filter-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1.5px solid #dde2ee;
  background: #f4f6fb;
  color: #555;
  cursor: pointer;
  font-family: inherit
}

.edu-adm-filter-btn.active {
  background: var(--edu-primary);
  color: #fff;
  border-color: var(--edu-primary)
}

.edu-adm-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid #e8f0fe;
  position: relative
}

.edu-adm-card-kat {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 5px
}

.edu-adm-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px
}

.edu-adm-card-body {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px
}

.edu-adm-card-actions {
  display: flex;
  gap: 6px
}

/* ====== FOOTER DESA ====== */
.footer-desa {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--navy-deep) 60%, var(--primary) 100%);
  padding: 1.4rem .75rem 1.2rem;
  margin-top: .5rem;
  border-radius: 20px 20px 0 0;
  color: #fff
}

.footer-banner-slot {
  margin-bottom: 1rem
}

/* ============================================================
   WIDGET JADWAL SHOLAT — tema hijau Tokopedia (#42B549)
   ============================================================
   CSS ini sebelumnya TIDAK ADA sama sekali (markup .jds-* di
   index.html tidak berpasangan dengan style-nya) — itu sebabnya
   widget tampil polos/berantakan. Logic highlight jam aktif ada
   di js/jadwal-sholat.js (toggle class .active pada .jds-cell).
   ============================================================ */
.jds-wrap {
  margin: .8rem 0
}

.jds-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.jds-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none
}

.jds-glow.one {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, .12);
  top: -50px;
  right: -30px
}

.jds-glow.two {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, .08);
  bottom: -40px;
  left: -20px
}

.jds-pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .07;
  pointer-events: none
}

.jds-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px
}

.jds-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0
}

.jds-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.jds-brand-text {
  min-width: 0
}

.jds-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.jds-subtitle {
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.jds-date-pill {
  position: relative;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0
}

.jds-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px
}

.jds-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  transition: all .25s ease
}

.jds-ic {
  font-size: 15px;
  line-height: 1;
  margin-bottom: 1px
}

.jds-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75)
}

.jds-time {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff
}

/* Jam sholat yang sedang berlangsung — kuning, senada perubahan warna terakhir */
.jds-cell.active {
  background: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, .4)
}

.jds-cell.active .jds-label,
.jds-cell.active .jds-time {
  color: #78350f
}

.jds-bottom-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, .65);
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 8px
}

.footer-banner-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: 5px
}

.footer-banner-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3)
}

.footer-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35)
}

.footer-video-wrap video,
.footer-video-wrap iframe {
  width: 100%;
  display: block;
  border-radius: 12px;
  max-height: 200px;
  object-fit: cover
}

.footer-upload-placeholder {
  border: 2px dashed rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 1.5rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
  background: rgba(255, 255, 255, .06)
}

.footer-upload-placeholder:hover {
  background: rgba(255, 255, 255, .12)
}

.footer-upload-placeholder i {
  font-size: 28px;
  color: rgba(255, 255, 255, .6);
  display: block;
  margin-bottom: 6px
}

.footer-upload-placeholder span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600
}

.footer-upload-placeholder small {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
  margin-top: 3px
}

.footer-info-box {
  background: rgba(255, 255, 255, .09);
  border-radius: 12px;
  padding: .85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, .12)
}

.footer-info-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px
}

.footer-info-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.6
}

.footer-info-edit {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  background: rgba(249, 217, 74, .12);
  padding: 3px 9px;
  border-radius: 10px;
  border: none
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 1rem 0
}

.footer-sosmed-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 5px
}

.footer-sosmed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem
}

.footer-sosmed-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all .15s;
  border: none;
  cursor: pointer;
  width: 100%
}

.footer-sosmed-btn:active {
  opacity: .75;
  transform: scale(.97)
}

.footer-sosmed-btn .fsb-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0
}

.footer-sosmed-btn .fsb-info {
  text-align: left;
  min-width: 0
}

.footer-sosmed-btn .fsb-label {
  display: block;
  font-size: 10px;
  opacity: .75;
  font-weight: 600
}

.footer-sosmed-btn .fsb-name {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.fsb-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff
}

.fsb-ig .fsb-icon {
  background: rgba(255, 255, 255, .2)
}

.fsb-yt {
  background: #ff0000;
  color: #fff
}

.fsb-yt .fsb-icon {
  background: rgba(255, 255, 255, .2)
}

.fsb-tt {
  background: #010101;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15)
}

.fsb-tt .fsb-icon {
  background: rgba(255, 255, 255, .1)
}

.fsb-fb {
  background: #1877f2;
  color: #fff
}

.fsb-fb .fsb-icon {
  background: rgba(255, 255, 255, .2)
}

.footer-copyright {
  font-size: 10px;
  color: rgba(255, 255, 255, .38);
  text-align: center;
  padding-top: .5rem
}

/* FOOTER EDIT MODAL */
.footer-edit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .6);
  z-index: 999;
  align-items: flex-end;
  justify-content: center
}

.footer-edit-overlay.show {
  display: flex
}

.footer-edit-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .22s ease
}

.footer-edit-hdr {
  background: var(--blue);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 0;
  z-index: 5
}

.footer-edit-hdr h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700
}

.footer-edit-body {
  padding: 1rem
}

.footer-edit-section {
  margin-bottom: 1.2rem
}

.footer-edit-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: 5px
}

.footer-sosmed-inp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .6rem
}

.footer-sosmed-inp-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0
}

/* ====== FOOTER VISIBILITY ROWS ====== */
.footer-vis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f7;
  cursor: pointer;
  gap: 10px;
  transition: background .1s
}

.footer-vis-row:active {
  background: #f8f9fc
}

/* ====== NOTIF BADGE ORDER BARU ====== */
.order-notif-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px 10px 14px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
  align-items: center;
  gap: 9px;
  max-width: 480px;
  width: 100%;
  animation: dropDown .3s ease;
}

.order-notif-banner.show {
  display: flex
}

@keyframes dropDown {
  from {
    transform: translateX(-50%) translateY(-60px)
  }

  to {
    transform: translateX(-50%) translateY(0)
  }
}

.order-notif-banner .notif-close-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, .25);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.order-notif-banner .notif-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: blink 1s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}

.panel-new-order-badge {
  display: none;
  position: fixed;
  bottom: 88px;
  right: 14px;
  border-radius: 50px;
  padding: 10px 15px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 500;
  align-items: center;
  gap: 7px;
  animation: bounceIn .4s ease;
}

.panel-new-order-badge.show {
  display: flex
}

/* Badge Seller — biru, stroke putih */
#sellerNewOrderBadge {
  background: var(--blue);
  color: #fff;
  border: 2.5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 16px rgba(238, 77, 45, .45);
}

/* Badge Admin — merah, tanpa stroke */
#adminNewOrderBadge {
  background: #c03a1f;
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(192, 58, 31, .45);
}

/* SELLER: status label hijau */
.slr-status-ok {
  color: #16a34a;
  font-weight: 700
}

/* ADMIN ORDER CARD — perbaikan tampilan */
.adm-order-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: .9rem;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
  transition: box-shadow .2s ease;
}

.adm-order-card:hover {
  box-shadow: var(--shadow-md);
}

.adm-order-card.status-baru {
  border-left-color: var(--warning)
}

.adm-order-card.status-proses {
  border-left-color: var(--accent)
}

.adm-order-card.status-selesai {
  border-left-color: var(--success)
}

.adm-order-card.status-batal {
  border-left-color: var(--danger)
}

/* KURIR — Order Zoom Modal */
.kur-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 40, .65);
  z-index: 1050;
  align-items: flex-end;
  justify-content: center
}

.kur-zoom-overlay.show {
  display: flex;
  animation: fadeInBg .2s ease
}

@keyframes fadeInBg {
  from {
    background: rgba(5, 15, 40, 0)
  }

  to {
    background: rgba(5, 15, 40, .65)
  }
}

.kur-zoom-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp .22s ease;
  position: relative
}

.kur-zoom-hdr {
  background: linear-gradient(135deg, #0a3a5c, #1a6fa8);
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 5
}

.kur-zoom-hdr h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px
}

.kur-zoom-close {
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center
}

.kur-zoom-body {
  padding: 1rem
}

.kur-zoom-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: .8rem
}

.kur-zoom-status.baru {
  background: #fef3c7;
  color: #92400e
}

.kur-zoom-status.proses {
  background: #dbeafe;
  color: #1e40af
}

.kur-zoom-status.selesai {
  background: #dcfce7;
  color: #166534
}

.kur-zoom-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #e8edf4
}

.kur-zoom-row:last-of-type {
  border-bottom: none
}

.kur-zoom-icon {
  font-size: 15px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 1px
}

.kur-zoom-label {
  font-size: 10.5px;
  color: #888;
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0
}

.kur-zoom-val {
  font-size: 12.5px;
  color: #222;
  font-weight: 600;
  flex: 1;
  line-height: 1.4
}

.kur-zoom-items {
  background: #f0f7fc;
  border-radius: 10px;
  padding: .7rem .9rem;
  margin: .6rem 0;
  font-size: 12px;
  color: #333;
  line-height: 1.7;
  white-space: pre-wrap
}

.kur-zoom-total {
  background: linear-gradient(120deg, #0a3a5c, #1a6fa8);
  color: #fff;
  border-radius: 10px;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .7rem
}

.kur-zoom-total .lbl {
  font-size: 11.5px;
  opacity: .85
}

.kur-zoom-total .val {
  font-size: 17px;
  font-weight: 800
}

.kur-zoom-actions {
  display: flex;
  gap: 8px;
  padding: .9rem 1rem;
  border-top: 1px solid #eef0f5;
  position: sticky;
  bottom: 0;
  background: #fff
}

.kur-zoom-act-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit
}

.kur-zoom-act-ambil {
  background: #dbeafe;
  color: #1e40af
}

.kur-zoom-act-chat {
  background: #e0f0fa;
  color: #0a3a5c
}

.kur-zoom-act-selesai {
  background: #16a34a;
  color: #fff
}

/* ADMIN KURIR — status badge lebih jelas */
.adm-kur-card {
  background: #fff;
  border-radius: 13px;
  padding: .85rem;
  margin-bottom: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06)
}

.adm-kur-standby-row {
  background: linear-gradient(120deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px
}

.adm-kur-offline-row {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px
}

/* QUICK SELECT SLOT — 3 kolom grid, ikon di samping teks, box diperkecil agar header tetap ringkas saat freeze */
.qs-slot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: .4rem .75rem .5rem;
  background: var(--primary-dark)
}

.qs-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: .4rem .25rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, opacity .12s;
  min-width: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qs-btn:active {
  transform: scale(.95);
  opacity: .85
}

.qs-makan {
  background: rgba(255, 112, 67, .25);
  border: 1.5px solid rgba(255, 112, 67, .6)
}

.qs-belanja {
  background: rgba(38, 166, 154, .25);
  border: 1.5px solid rgba(38, 166, 154, .6)
}

.qs-jasa {
  background: rgba(130, 119, 220, .25);
  border: 1.5px solid rgba(130, 119, 220, .6)
}

.qs-btn.qs-active {
  background: #fbbf24;
  border-color: #fbbf24
}

.qs-btn.qs-active .qs-label,
.qs-btn.qs-active .qs-sub {
  color: #78350f
}

.qs-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0
}

.qs-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.05
}

.qs-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}

.qs-sub {
  font-size: 8px;
  color: rgba(255, 255, 255, .7);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}

/* CARA PESAN STRIP */
.cp-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, #fffbeb, #fff8e1);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 10px 13px;
  margin-bottom: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(251, 191, 36, .15)
}

.cp-strip:active {
  background: #fff3cd
}

.cp-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0
}

.cp-strip-icon {
  font-size: 26px;
  flex-shrink: 0
}

.cp-strip-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #92400e;
  line-height: 1.2
}

.cp-strip-sub {
  font-size: 10.5px;
  color: #b45309;
  margin-top: 1px;
  line-height: 1.3
}

@keyframes bounceIn {
  0% {
    transform: scale(.5);
    opacity: 0
  }

  70% {
    transform: scale(1.1)
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

/* ====== HALAMAN JASA DESA ====== */
:root {
  --jasa-primary: #7c3aed;
  --jasa-dark: #5b21b6;
  --jasa-light: #f5f3ff;
  --jasa-pasti: #0891b2;
  --jasa-kesepakatan: #d97706;
}

#jasaApp {
  display: none;
  background: #f5f3ff;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 128px /* ✅ FIX: menyesuaikan bottom-nav 2 baris */
}

.jasa-header {
  background: linear-gradient(135deg, var(--jasa-dark) 0%, var(--jasa-primary) 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top)
}

.jasa-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .75rem .55rem
}

.jasa-logo {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15
}

.jasa-logo .sub {
  font-size: 9px;
  color: #c4b5fd;
  letter-spacing: .6px;
  font-weight: 600;
  display: block
}

.jasa-tabs-row {
  display: flex;
  gap: 0;
  padding: 0 .75rem .65rem
}

.jasa-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s
}

.jasa-tab-btn:first-child {
  border-radius: 10px 0 0 10px
}

.jasa-tab-btn:last-child {
  border-radius: 0 10px 10px 0
}

.jasa-tab-btn.active {
  background: #fff;
  color: var(--jasa-dark);
  border-color: #fff
}

.jasa-back-btn {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  height: 30px;
  padding: 0 12px 0 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap
}

.jasa-back-btn i {
  font-size: 15px
}

.jasa-back-btn:active {
  background: rgba(255, 255, 255, .28)
}

.jasa-body {
  padding: .85rem .75rem;
  max-width: 480px;
  margin: 0 auto
}

/* Jasa Banner */
.jasa-banner {
  background: linear-gradient(120deg, var(--jasa-dark), var(--jasa-primary));
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden
}

.jasa-banner::after {
  content: '🔧';
  position: absolute;
  right: -8px;
  top: -8px;
  font-size: 72px;
  opacity: .12;
  transform: rotate(20deg)
}

.jasa-banner h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3
}

.jasa-banner p {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.5
}

.jasa-banner-pills {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap
}

.jasa-pill {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 4px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700
}

/* Tipe badges */
.jasa-tipe-pasti {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0e7490;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #a5f3fc
}

.jasa-tipe-kesepakatan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #fde68a
}

/* Kartu Jasa Harga Pasti */
.jasa-grid-pasti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem
}

.jasa-card-pasti {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e9edf6;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .07);
  transition: transform .15s
}

.jasa-card-pasti:active {
  transform: scale(.97)
}

.jcp-img {
  height: 80px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative
}

.jcp-body {
  padding: 9px 10px 10px
}

.jcp-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3
}

.jcp-desc {
  font-size: 10.5px;
  color: #888;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.jcp-area {
  font-size: 10px;
  color: #9aa3b2;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px
}

.jcp-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px
}

.jcp-rating {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 700
}

.jcp-btn {
  width: 100%;
  background: var(--jasa-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit
}

.jcp-btn:active {
  background: var(--jasa-dark)
}

/* Kartu Jasa Harga Kesepakatan */
.jasa-list-nego {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem
}

.jasa-card-nego {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 8px rgba(217, 119, 6, .08);
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.jcn-ava {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0
}

.jcn-info {
  flex: 1;
  min-width: 0
}

.jcn-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px
}

.jcn-desc {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.5
}

.jcn-area {
  font-size: 10.5px;
  color: #92400e;
  background: #fff7ed;
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  border: 1px solid #fed7aa
}

.jcn-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px
}

.jcn-rating {
  font-size: 10.5px;
  color: #f59e0b;
  font-weight: 700
}

.jcn-status-open {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 3px
}

.jcn-status-closed {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 3px
}

.jcn-footer {
  display: flex;
  gap: 7px
}

.jcn-btn-wa {
  flex: 1;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit
}

.jcn-btn-wa:active {
  background: #1da851
}

.jcn-btn-detail {
  background: #f5f3ff;
  color: var(--jasa-primary);
  border: 1.5px solid #ddd6fe;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit
}

/* Section title */
.jasa-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jasa-dark);
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 6px
}

/* Empty state */
.jasa-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af
}

.jasa-empty i {
  font-size: 42px;
  display: block;
  margin: 0 auto 10px;
  color: #ddd6fe
}

/* ====== HALAMAN TANI ====== */
:root {
  --tani-primary: #16a34a;
  --tani-dark: #14532d;
  --tani-light: #f0fdf4;
  --tani-mid: #22c55e;
  --tani-gold: #ca8a04;
  --tani-brown: #78350f;
  --tani-soil: #92400e;
  --tani-sky: #0891b2;
}

#taniApp {
  display: none;
  background: #f0fdf4;
  min-height: 100vh;
  min-height: 100dvh
}

.tani-header {
  background: linear-gradient(135deg, var(--tani-dark) 0%, var(--tani-primary) 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top)
}

.tani-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .75rem .55rem
}

.tani-logo {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15
}

.tani-logo .sub {
  font-size: 9px;
  color: #86efac;
  letter-spacing: .6px;
  font-weight: 600;
  display: block
}

.tani-kat-scroll {
  overflow-x: auto;
  padding: 0 .75rem .65rem;
  scrollbar-width: none
}

.tani-kat-scroll::-webkit-scrollbar {
  display: none
}

.tani-kat-nav {
  display: flex;
  gap: 6px;
  width: max-content
}

.tani-kat-btn {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .9);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 20px;
  transition: all .15s;
  font-family: inherit
}

.tani-kat-btn.active {
  color: var(--tani-dark);
  background: #fbbf24;
  border-color: #fbbf24
}

.tani-body {
  padding: .85rem .75rem;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 2rem
}

/* Banner Tani */
.tani-banner {
  background: linear-gradient(120deg, var(--tani-dark), var(--tani-primary));
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden
}

.tani-banner::after {
  content: '🌾';
  position: absolute;
  right: -8px;
  top: -10px;
  font-size: 80px;
  opacity: .15;
  transform: rotate(-10deg)
}

.tani-banner h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3
}

.tani-banner p {
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  line-height: 1.5
}

.tani-banner-stats {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap
}

.tani-stat-pill {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700
}

/* Cuaca / Info Cepat */
.tani-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem
}

.tani-quick-card {
  background: #fff;
  border-radius: 14px;
  padding: .85rem;
  box-shadow: 0 2px 8px rgba(22, 163, 74, .08);
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 10px
}

.tani-quick-icon {
  font-size: 26px;
  flex-shrink: 0
}

.tani-quick-label {
  font-size: 10.5px;
  color: #888;
  font-weight: 600;
  margin-bottom: 2px
}

.tani-quick-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--tani-dark)
}

/* Section title Tani */
.tani-section-title {
  color: var(--tani-dark);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.tani-section-title i {
  color: var(--tani-primary)
}

/* Kartu Konten Tani */
.tani-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(22, 163, 74, .07);
  border: 1px solid #d1fae5;
  position: relative;
  overflow: hidden;
  cursor: pointer
}

.tani-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tani-primary)
}

.tani-card.kat-tanam::before {
  background: #16a34a
}

.tani-card.kat-hama::before {
  background: #dc2626
}

.tani-card.kat-pupuk::before {
  background: #ca8a04
}

.tani-card.kat-panen::before {
  background: #7c3aed
}

.tani-card.kat-ternak::before {
  background: #0891b2
}

.tani-card.kat-pasar::before {
  background: #f59e0b
}

.tani-card.kat-alat::before {
  background: #78350f
}

.tani-card.kat-cuaca::before {
  background: #0e7490
}

.tani-card.kat-bantuan::before {
  background: #1d4ed8
}

.tani-card.kat-lainnya::before {
  background: #6b7280
}

.tani-kat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px
}

.tani-kat-badge.kat-tanam {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac
}

.tani-kat-badge.kat-hama {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5
}

.tani-kat-badge.kat-pupuk {
  background: #fef9c3;
  color: #92400e;
  border: 1px solid #fde68a
}

.tani-kat-badge.kat-panen {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #d8b4fe
}

.tani-kat-badge.kat-ternak {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #a5f3fc
}

.tani-kat-badge.kat-pasar {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74
}

.tani-kat-badge.kat-alat {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d
}

.tani-kat-badge.kat-cuaca {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #67e8f9
}

.tani-kat-badge.kat-bantuan {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe
}

.tani-kat-badge.kat-lainnya {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1
}

.tani-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.3
}

.tani-card-body {
  font-size: 12px;
  color: #555;
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: 8px
}

.tani-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px
}

.tani-card-date {
  font-size: 10px;
  color: #aaa
}

.tani-card-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.tani-card-wa-btn:active {
  background: #1da851
}

.tani-empty {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.tani-empty i {
  font-size: 42px;
  color: #bbf7d0
}

.tani-empty p {
  color: #4ade80;
  font-size: 13px;
  font-weight: 600
}

.tani-empty small {
  color: #bbb;
  font-size: 11px
}

/* Harga Komoditas */
.tani-harga-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, .07);
  border: 1px solid #d1fae5
}

.tani-harga-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #d1fae5
}

.tani-harga-row:last-child {
  border-bottom: none
}

.tani-harga-nama {
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px
}

.tani-harga-harga {
  font-size: 13px;
  font-weight: 800;
  color: var(--tani-dark)
}

.tani-harga-trend {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px
}

.tani-harga-trend.naik {
  background: #dcfce7;
  color: #15803d
}

.tani-harga-trend.turun {
  background: #fee2e2;
  color: #dc2626
}

.tani-harga-trend.stabil {
  background: #f1f5f9;
  color: #64748b
}

/* Kebutuhan Tani (Produk) */
.tani-produk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem
}

.tani-produk-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #d1fae5;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .07)
}

.tani-produk-card:active {
  transform: scale(.97)
}

.tani-produk-img {
  height: 70px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative
}

.tani-produk-body {
  padding: 8px 9px 10px
}

.tani-produk-name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.tani-produk-harga {
  font-size: 11.5px;
  color: var(--tani-primary);
  font-weight: 800
}

.tani-produk-toko {
  font-size: 9.5px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Admin Tani */
.tani-adm-filter-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1.5px solid #d1fae5;
  background: #f0fdf4;
  color: #555;
  cursor: pointer;
  font-family: inherit
}

.tani-adm-filter-btn.active {
  background: var(--tani-primary);
  color: #fff;
  border-color: var(--tani-primary)
}

.tani-adm-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid #d1fae5;
  position: relative
}

.tani-adm-card-kat {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 5px;
  background: #dcfce7;
  color: #15803d
}

.tani-adm-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px
}

.tani-adm-card-body {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px
}

.tani-adm-card-actions {
  display: flex;
  gap: 6px
}

/* Search Tani */
.tani-search-wrap {
  padding: .5rem .75rem .55rem
}

.tani-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(22, 163, 74, .07)
}

.tani-search-box-hdr {
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .25);
  box-shadow: none;
  margin-bottom: 0;
  border-radius: 10px
}

.tani-search-box-hdr i {
  color: rgba(255, 255, 255, .75) !important
}

.tani-search-box-hdr input {
  color: #fff !important;
  font-weight: 600
}

.tani-search-box-hdr input::placeholder {
  color: rgba(255, 255, 255, .65) !important
}

.tani-search-box i {
  padding-left: 12px;
  color: #9aa3b2;
  font-size: 14px
}

.tani-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 8px;
  font-size: 12.5px;
  background: transparent;
  font-family: inherit
}

.tani-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .8);
  padding: 0 10px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0
}

.tani-search-clear:active {
  color: #fff
}

/* Info Cuaca strip */
.tani-cuaca-strip {
  background: linear-gradient(120deg, #0891b2, #0e7490);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff
}

.tani-cuaca-icon {
  font-size: 30px;
  flex-shrink: 0
}

.tani-cuaca-label {
  font-size: 10.5px;
  opacity: .85;
  font-weight: 600
}

.tani-cuaca-val {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2
}

/* ── WIDGET SOSIAL GENERIK (Info Pengumuman & Portal Tani) ──── */
.soc-actionbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #eee
}

.soc-act-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #888;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 3px 0
}

.soc-act-btn i {
  font-size: 17px;
  line-height: 1;
  transition: transform .18s
}

.soc-act-btn.liked {
  color: #e0245e
}

.soc-act-btn.liked i {
  color: #e0245e
}

.soc-act-btn:active i {
  transform: scale(1.25)
}

/* Bottom-sheet komentar (terang) */
.soc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9998
}

.soc-overlay.show {
  display: block
}

.soc-comment-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  max-height: 82vh
}

.soc-comment-sheet.show {
  display: flex
}

.soc-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem .6rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0
}

.soc-comment-head-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink)
}

.soc-comment-head-close {
  background: #f4f6fb;
  border: none;
  color: #888;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px
}

.soc-comment-body {
  overflow-y: auto;
  padding: .8rem 1rem;
  flex: 1
}

.soc-comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: flex-start
}

.soc-comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800
}

.soc-comment-bubble {
  flex: 1;
  min-width: 0;
  background: #f7f7f9;
  border-radius: 12px;
  padding: 7px 10px
}

.soc-comment-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue)
}

.soc-comment-text {
  font-size: 12.5px;
  color: #333;
  line-height: 1.45;
  word-wrap: break-word;
  margin-top: 1px
}

.soc-comment-time {
  font-size: 9.5px;
  color: #aaa;
  margin-top: 3px
}

.soc-comment-empty {
  text-align: center;
  color: #bbb;
  font-size: 12px;
  padding: 1.5rem 0
}

.soc-comment-formrow {
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding: .6rem .85rem calc(.6rem + env(safe-area-inset-bottom));
  flex-shrink: 0
}

.soc-comment-formrow input {
  flex: 1;
  background: #f4f6fb;
  border: 1.5px solid #eee;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none
}

.soc-comment-formrow input:focus {
  border-color: var(--blue)
}

.soc-comment-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

/* Share sheet (terang) */
.soc-share-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 9999;
  padding: .9rem .9rem calc(.9rem + env(safe-area-inset-bottom));
  display: none
}

.soc-share-sheet.show {
  display: block
}

.soc-share-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .8rem
}

.soc-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: .6rem
}

.soc-share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #f7f7f9;
  border: none;
  border-radius: 14px;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit
}

.soc-share-opt i {
  font-size: 18px
}

.soc-share-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: #d8dade
}

.soc-share-opt span {
  font-size: 9.5px;
  font-weight: 700;
  color: #666
}

.soc-share-close {
  width: 100%;
  background: #f4f6fb;
  border: none;
  border-radius: 12px;
  padding: 10px;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

/* ── HALAMAN GALLERY (Gen-Z / Milenial redesign) ─────────────── */
#galleryApp {
  display: none;
  background: #0b0b14;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 128px /* ✅ FIX: menyesuaikan bottom-nav 2 baris */
}

.gal-header {
  background: linear-gradient(135deg, #1a1230 0%, #1a1a2e 55%, #0e1a33 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35)
}

.gal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .75rem .55rem
}

.gal-logo {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex: 1;
  line-height: 1.15
}

.gal-logo .sub {
  font-size: 9px;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .6px;
  font-weight: 700;
  display: block
}

.gal-fav-btn {
  background: rgba(244, 114, 182, .18);
  border: 1.5px solid rgba(244, 114, 182, .4);
  color: #f9a8d4
}

.gal-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 .75rem .65rem;
  scrollbar-width: none
}

.gal-filter-row::-webkit-scrollbar {
  display: none
}

.gal-filter-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .15s
}

.gal-filter-btn.active {
  background: linear-gradient(120deg, #7c3aed, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .4)
}

.gal-body {
  padding: .75rem
}

/* GRID foto/video — kartu ala feed sosial */
.gal-grid {
  columns: 2;
  gap: 10px;
  margin-bottom: 1rem
}

@media(min-width:360px) {
  .gal-grid {
    columns: 2
  }
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #171723;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s
}

.gal-item:active {
  transform: scale(.97)
}

.gal-item-media {
  position: relative;
  overflow: hidden
}

.gal-item img {
  width: 100%;
  display: block;
  border-radius: 0;
  transition: transform .35s
}

.gal-item-video {
  position: relative
}

.gal-item-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block
}

.gal-item-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .3)
}

.gal-item-play i {
  font-size: 34px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5))
}

.gal-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  padding: 20px 9px 7px;
  pointer-events: none
}

.gal-item-caption {
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6)
}

.gal-item-type {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px
}

.gal-item-type.foto {
  background: rgba(124, 58, 237, .8)
}

.gal-item-type.video {
  background: rgba(220, 38, 38, .8)
}

.gal-item-type.live {
  background: rgba(22, 163, 74, .8)
}

.gal-item-save {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  z-index: 2
}

.gal-item-save.active {
  color: #facc15
}

/* Bar aksi sosial di bawah kartu (like/komentar/share) */
.gal-actionbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px 8px;
  background: #171723
}

.gal-act-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .65);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 0
}

.gal-act-btn i {
  font-size: 16px;
  line-height: 1
}

.gal-act-btn.liked {
  color: #fb7185
}

.gal-act-btn.liked i {
  color: #fb7185
}

.gal-act-btn:active i {
  transform: scale(1.25)
}

.gal-act-btn i {
  transition: transform .18s
}

/* Heart burst saat double-tap */
.gal-heart-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3
}

.gal-heart-burst i {
  font-size: 62px;
  color: #fff;
  opacity: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
  animation: heartPop .75s ease forwards
}

@keyframes heartPop {
  0% {
    opacity: 0;
    transform: scale(.3)
  }

  25% {
    opacity: 1;
    transform: scale(1.15)
  }

  40% {
    transform: scale(1)
  }

  80% {
    opacity: 1
  }

  100% {
    opacity: 0;
    transform: scale(1.05)
  }
}

/* LIVE badge animasi */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s infinite
}

/* LIVE strip */
.gal-live-strip {
  background: linear-gradient(120deg, #16a34a, #15803d);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer
}

.gal-live-strip-icon {
  font-size: 22px;
  flex-shrink: 0
}

.gal-live-strip-txt {
  flex: 1;
  min-width: 0
}

.gal-live-strip-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .5px;
  text-transform: uppercase
}

.gal-live-strip-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.gal-live-strip-arrow {
  color: rgba(255, 255, 255, .6);
  font-size: 16px
}

/* Lightbox */
.gal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .97);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto
}

.gal-lightbox.show {
  display: flex
}

.gal-lightbox-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 14px;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5
}

.gal-lightbox-inner {
  width: 100%;
  max-width: 480px;
  padding: calc(env(safe-area-inset-top) + 56px) 0 1.5rem;
  margin: 0 auto
}

.gal-lightbox-media {
  position: relative;
  padding: 0 12px
}

.gal-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  margin: 0 auto
}

.gal-lightbox-caption {
  color: rgba(255, 255, 255, .85);
  font-size: 12.5px;
  padding: .8rem 1rem .4rem;
  line-height: 1.5
}

.gal-lightbox-video {
  width: 100%;
  max-width: 480px;
  border-radius: 10px
}

/* Bar aksi besar di lightbox */
.gal-lb-actionbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: .6rem 1rem .3rem
}

.gal-lb-act {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.gal-lb-act i {
  font-size: 21px;
  transition: transform .18s
}

.gal-lb-act.liked {
  color: #fb7185
}

.gal-lb-act.liked i {
  color: #fb7185
}

.gal-lb-act.saved {
  color: #facc15
}

.gal-lb-act.saved i {
  color: #facc15
}

.gal-lb-act:active i {
  transform: scale(1.25)
}

/* Embed iframe (YouTube/FB) */
.gal-embed-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  position: relative
}

/* Varian vertikal 9:16 — utk YouTube Shorts / Live yang portrait */
.gal-embed-wrap.vertical {
  aspect-ratio: 9/16;
  max-width: 320px;
  max-height: 70vh;
  margin: 0 auto
}

.gal-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none
}

/* Tampilan saat masuk fullscreen native browser (auto-rotate landscape) —
   isi layar penuh, tanpa sudut membulat/margin */
.gal-embed-wrap:fullscreen,
.gal-embed-wrap:-webkit-full-screen {
  border-radius: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh
}
.gal-embed-wrap:fullscreen iframe,
.gal-embed-wrap:-webkit-full-screen iframe {
  width: 100vw;
  height: 100vh
}

.gal-embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0d0d0d;
  z-index: 2;
  transition: opacity .25s
}

.gal-embed-loading.hide {
  opacity: 0;
  pointer-events: none
}

.gal-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: admspin .8s linear infinite
}

.gal-embed-loading-text {
  color: #d1d5db;
  font-size: 11.5px;
  font-weight: 600
}

/* Komentar */
.gal-comments {
  padding: .4rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: .4rem
}

.gal-comments-title {
  color: rgba(255, 255, 255, .55);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: .6rem 0 .5rem
}

.gal-comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: flex-start
}

.gal-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800
}

.gal-comment-body {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 7px 10px
}

.gal-comment-name {
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 1px
}

.gal-comment-text {
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  line-height: 1.4;
  word-wrap: break-word
}

.gal-comment-time {
  color: rgba(255, 255, 255, .35);
  font-size: 9.5px;
  margin-top: 3px
}

.gal-comment-empty {
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
  text-align: center;
  padding: 1rem 0
}

.gal-comment-formrow {
  display: flex;
  gap: 7px;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: #0b0b14;
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.gal-comment-formrow input {
  flex: 1;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  padding: 9px 14px;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  outline: none
}

.gal-comment-formrow input::placeholder {
  color: rgba(255, 255, 255, .4)
}

.gal-comment-formrow input:focus {
  border-color: #a78bfa
}

.gal-comment-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

/* Share sheet */
.gal-share-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #171723;
  border-radius: 18px 18px 0 0;
  z-index: 10000;
  padding: .9rem .9rem calc(.9rem + env(safe-area-inset-bottom));
  display: none;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, .5)
}

.gal-share-sheet.show {
  display: block
}

.gal-share-sheet-title {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  margin-bottom: .8rem
}

.gal-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: .6rem
}

.gal-share-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .06);
  border: none;
  border-radius: 14px;
  padding: 12px 4px;
  cursor: pointer;
  color: #fff;
  font-family: inherit
}

.gal-share-opt i {
  font-size: 18px
}

.gal-share-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 255, 255, .12)
}

.gal-share-opt span {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .75)
}

.gal-share-close {
  width: 100%;
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 12px;
  padding: 10px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.gal-share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999
}

.gal-share-overlay.show {
  display: block
}

/* Kosong */
.gal-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, .35)
}

.gal-empty i {
  font-size: 48px;
  margin-bottom: .7rem;
  display: block
}

.gal-empty p {
  font-size: 13px
}

/* Seksi title */
.gal-sec-title {
  color: rgba(255, 255, 255, .6);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px
}

/* Admin Gallery */
.gal-adm-card {
  background: #1e2030;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid rgba(255, 255, 255, .08);
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.gal-adm-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2a2a40
}

.gal-adm-thumb-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #2a2a40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, .4)
}

.gal-adm-info {
  flex: 1;
  min-width: 0
}

.gal-adm-info .nm {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.gal-adm-info .mt {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .4);
  margin-top: 2px
}

.gal-adm-acts {
  display: flex;
  gap: 5px;
  flex-shrink: 0
}

.gal-adm-act {
  background: rgba(255, 255, 255, .08);
  border: none;
  color: rgba(255, 255, 255, .6);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px
}

.gal-adm-act.del {
  background: rgba(220, 38, 38, .15);
  color: #f87171
}

/* Upload area dark */
.gal-upload-area {
  border: 2px dashed rgba(124, 58, 237, .4);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: rgba(124, 58, 237, .06);
  transition: all .15s;
  position: relative;
  overflow: hidden
}

.gal-upload-area:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, .12)
}

.gal-upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%
}

.gal-tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s
}

.gal-tab-btn.active {
  background: #7c3aed;
  color: #fff
}

.gal-tab-row {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1rem
}

/* ── MENU TAMBAHAN — grid ikon kategori (di bawah sticky Mau Makan/Belanja/Jasa) ── */
.vm-menu-wrap {
  background: var(--card);
  padding: 1rem .75rem .65rem;
  border-bottom: 8px solid #fbeee9
}

.vm-menu-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.vm-menu-title i {
  color: var(--blue);
  font-size: 16px
}

.vm-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 6px
}

.vm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 0;
  -webkit-tap-highlight-color: transparent
}

.vm-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
  transition: transform .12s;
  position: relative;
  overflow: hidden
}

.vm-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.vm-item:active .vm-icon {
  transform: scale(.9)
}

.vm-label {
  font-size: 11.3px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  max-width: 78px
}

.vm-icon i {
  font-size: 27px;
  line-height: 1;
  color: #fff
}

.vm-ic-1 {
  background: #ef4444
}

.vm-ic-2 {
  background: #f59e0b
}

.vm-ic-3 {
  background: #fb923c
}

.vm-ic-4 {
  background: #3b82f6
}

.vm-ic-5 {
  background: #e11d48
}

.vm-ic-6 {
  background: #0ea5e9
}

.vm-ic-7 {
  background: #22c55e
}

.vm-ic-8 {
  background: #ec4899
}

.vm-ic-9 {
  background: #6366f1
}

.vm-ic-10 {
  background: #dc2626
}

.vm-ic-11 {
  background: #8b5cf6
}

.vm-ic-more {
  background: #7c3aed
}

/* ── Galeri pemilih ikon Tabler (Admin: 12 Grid Menu, dll) ── */
.vm-icon-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 2px
}

.vm-icon-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 9px 4px;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .12s, border-color .12s
}

.vm-icon-gallery-item:active {
  transform: scale(.92)
}

.vm-icon-gallery-item.active {
  background: #eef2ff;
  border-color: var(--blue)
}

.vm-icon-gallery-item i {
  font-size: 21px;
  color: var(--ink)
}

.vm-icon-gallery-item span {
  font-size: 8.6px;
  color: #888;
  text-align: center;
  line-height: 1.15;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

/* ── Modal "Lainnya" — daftar menu tambahan gaya list modern ── */
.lm-list {
  display: flex;
  flex-direction: column;
  gap: 9px
}

.lm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #f8f9fc;
  border-radius: 14px;
  border: 1px solid #eef0f6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .12s;
  font-family: inherit;
  text-align: left;
  width: 100%
}

.lm-row:active {
  transform: scale(.97);
  background: #f0f1f8
}

.lm-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  flex-shrink: 0
}

.lm-row-text {
  flex: 1;
  min-width: 0
}

.lm-row-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink)
}

.lm-row-sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px
}

.lm-row-arrow {
  color: #c7cad6;
  font-size: 17px;
  flex-shrink: 0
}

.lm-ic-1 {
  background: linear-gradient(135deg, #0ea5e9, #0284c7)
}

.lm-ic-2 {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed)
}

.lm-ic-3 {
  background: linear-gradient(135deg, #22c55e, #16a34a)
}

.lm-ic-4 {
  background: linear-gradient(135deg, #f97316, #ea580c)
}

.lm-ic-5 {
  background: linear-gradient(135deg, #ec4899, #db2777)
}

.lm-ic-6 {
  background: linear-gradient(135deg, #64748b, #475569)
}



.jds-wrap {
  padding: 0 .75rem .7rem
}

.jds-banner {
  width: 100%;
  background: linear-gradient(135deg, #FF7A00 0%, #FF5500 100%);
  border-radius: 14px;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255, 85, 0, .25);
  box-sizing: border-box;
}

.jds-banner * {
  box-sizing: border-box
}

.jds-pattern-bg {
  position: absolute;
  inset: 0;
  opacity: .15;
  pointer-events: none
}

.jds-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  pointer-events: none
}

.jds-glow.one {
  width: 120px;
  height: 120px;
  top: -50px;
  right: -30px
}

.jds-glow.two {
  width: 70px;
  height: 70px;
  bottom: -30px;
  left: 40%
}

.jds-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.jds-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.jds-brand-icon {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0
}

.jds-brand-text {
  min-width: 0
}

.jds-brand-text .jds-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.jds-brand-text .jds-subtitle {
  font-size: 10px;
  color: #ffe3cc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.jds-date-pill {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0
}

.jds-strip {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden
}

.jds-cell {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px dashed #ffd9b8;
  position: relative
}

.jds-cell:last-child {
  border-right: none
}

.jds-cell.active {
  background: #FFF1E5
}

.jds-cell .jds-label {
  font-size: 10px;
  color: #b35a00;
  font-weight: 600;
  margin-bottom: 2px
}

.jds-cell.active .jds-label {
  color: #FF5500
}

.jds-cell .jds-time {
  font-size: 14px;
  font-weight: 700;
  color: #3a1d00
}

.jds-cell.active .jds-time {
  color: #FF5500
}

.jds-cell .jds-ic {
  font-size: 13px;
  margin-bottom: 1px
}

.jds-bottom-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9.5px;
  color: #ffe3cc;
  flex-wrap: wrap;
  gap: 4px
}

@media(max-width:420px) {
  .jds-banner {
    padding: 10px 12px
  }

  .jds-brand-text .jds-title {
    font-size: 12px
  }

  .jds-brand-text .jds-subtitle {
    font-size: 9px
  }

  .jds-cell .jds-time {
    font-size: 12px
  }

  .jds-cell .jds-label {
    font-size: 9px
  }

  .jds-date-pill {
    font-size: 9px;
    padding: 3px 7px
  }
}



@keyframes csWaPulse {
  0% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .55)
  }

  70% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25), 0 0 0 10px rgba(37, 211, 102, 0)
  }

  100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, 0)
  }
}

#csWaFloatBtn:active {
  transform: scale(.92)
}
