:root{
  --pintu-green:#1f7a3d;
  --pintu-green-dark:#155c2c;
  --pintu-yellow:#f5b301;
  --pintu-surface:#f8faf9;
  --pintu-border:#e5eae6;
}

body{ background:var(--pintu-surface); font-family:'Segoe UI',system-ui,-apple-system,sans-serif; color:#1a2a1e; }
a{ color:var(--pintu-green); } a:hover{ color:var(--pintu-green-dark); }

/* ====================================================================
   NAVBAR PUBLIK — Modern
   ==================================================================== */
.navbar-pintu{
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid rgba(31, 122, 61, .10);
  padding: 10px 0;
  transition: box-shadow .3s ease, padding .3s ease;
}
.navbar-pintu.shadow-sm{
  box-shadow: 0 4px 20px -8px rgba(15, 61, 36, .15) !important;
}

/* Brand */
.navbar-pintu .navbar-brand{
  color: var(--pintu-green);
  text-decoration: none;
  padding: 0;
  margin-right: 20px;
  transition: transform .3s ease;
}
.navbar-pintu .navbar-brand:hover{ transform: scale(1.02); }

.nb-logo{
  max-height: 48px;
  width: auto;
  transition: transform .3s ease;
}
.navbar-pintu .navbar-brand:hover .nb-logo{
  transform: rotate(-3deg) scale(1.05);
}
.nb-brand-fallback{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pintu-green), #2fa053);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px -6px rgba(31, 122, 61, .5);
}
.nb-brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nb-brand-text strong{
  color: #0f3d24;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.4px;
}
.nb-brand-text small{
  color: #6b7a70;
  font-size: .68rem;
  letter-spacing: .3px;
  margin-top: 2px;
}

/* Menu list */
.nb-menu{
  gap: 4px;
}

/* Nav link */
.nb-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px !important;
  border-radius: 999px;
  color: #4b5a51 !important;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1px;
  position: relative;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}
.nb-link i{
  font-size: 1rem;
  color: #8ba094;
  transition: color .25s ease, transform .25s ease;
}
.nb-link:hover{
  background: rgba(31, 122, 61, .09);
  color: var(--pintu-green) !important;
  transform: translateY(-1px);
}
.nb-link:hover i{
  color: var(--pintu-green);
  transform: scale(1.12);
}

/* Active state */
.nb-link.active{
  background: linear-gradient(135deg, rgba(31, 122, 61, .12), rgba(245, 179, 1, .15));
  color: #0f3d24 !important;
}
.nb-link.active i{
  color: var(--pintu-green);
}
.nb-link.active::after{
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pintu-green), var(--pintu-yellow));
}

/* CTA button (Login / Dashboard) */
.nb-cta-wrap{
  margin-left: 8px;
}
.nb-cta{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f7a3d 0%, #2fa053 100%);
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
  box-shadow:
    0 8px 20px -8px rgba(31, 122, 61, .55),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition:
    transform .3s cubic-bezier(.22, 1, .36, 1),
    box-shadow .3s ease,
    background .3s ease;
}
.nb-cta i{
  font-size: .95rem;
  transition: transform .3s ease;
}
.nb-cta:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f3d24 0%, #1f7a3d 100%);
  color: #fff !important;
  box-shadow:
    0 14px 28px -10px rgba(31, 122, 61, .65),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.nb-cta:hover i{
  transform: translateX(2px);
}
.nb-cta-login{
  background: linear-gradient(135deg, var(--pintu-yellow) 0%, #ffc93c 100%);
  color: #5c3d00 !important;
  box-shadow:
    0 8px 20px -8px rgba(245, 179, 1, .6),
    inset 0 1px 0 rgba(255,255,255,.4);
}
.nb-cta-login:hover{
  background: linear-gradient(135deg, #e6a600 0%, var(--pintu-yellow) 100%);
  color: #4a3100 !important;
  box-shadow:
    0 14px 28px -10px rgba(245, 179, 1, .7),
    inset 0 1px 0 rgba(255,255,255,.5);
}

/* Burger toggler */
.nb-toggler{
  border: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(31, 122, 61, .06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
}
.nb-toggler:focus{ box-shadow: none; }
.nb-toggler span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--pintu-green);
  transition: transform .3s ease, opacity .3s ease;
}
.nb-toggler[aria-expanded="true"] span:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.nb-toggler[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.nb-toggler[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 991.98px){
  .navbar-pintu{ padding: 8px 0; }
  .nb-menu{
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 122, 61, .10);
  }
  .nb-link{
    border-radius: 10px !important;
    padding: 11px 14px !important;
    width: 100%;
  }
  .nb-link.active::after{ display: none; }
  .nb-cta-wrap{
    margin: 8px 0 0;
    width: 100%;
  }
  .nb-cta{
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .nb-logo{ max-height: 42px; }
}

/* Legacy compat */
.btn-pintu{ background:var(--pintu-green); color:#fff; border:0; }
.btn-pintu:hover{ background:var(--pintu-green-dark); color:#fff; }

/* Hero */
/* ====================================================================
   HERO — Gradasi hijau-kuning animated + hover interaktif
   ==================================================================== */
.hero-pintu{
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  color: #f5b301;
  /* Warna dasar hijau tua solid (canvas akan menggambar di atasnya) */
  background:
    radial-gradient(ellipse at top right, rgba(47,160,83,.28), transparent 60%),
    radial-gradient(ellipse at bottom left,  rgba(245,179,1,.15), transparent 55%),
    #0f3d24;
  isolation: isolate;
  /* Shadow bawah → efek timbul */
  box-shadow:
    0 12px 28px -10px rgba(0,0,0,.35),
    0 4px 12px -4px rgba(0,0,0,.20);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 3;
}

/* Canvas animasi network */
#heroCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Overlay gelap radial agar teks lebih kontras */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(15,61,36,.10) 0%,
    rgba(15,61,36,.55) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Konten hero di atas canvas */
.hero-content{
  position: relative;
  z-index: 3;
}


.hero-pintu::before{
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}



/* ---- Konten hero di atas blob ---- */
.hero-content{
  position: relative;
  z-index: 2;
}

/* ---- Badge atas ---- */
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  margin-bottom: 10px;
  animation: badgeIn .7s ease both;
}
@keyframes badgeIn{
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---- Judul ---- */
.hero-title{
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 .3rem;
  text-shadow: 0 3px 20px rgba(0,0,0,.28);
  animation: fadeUp .8s ease both;
}
.hero-subtitle{
  font-size: clamp(.85rem, 1.2vw, 1rem);
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 auto 15px;
  line-height: 1.3;
  animation: fadeUp .9s ease both;
}
@keyframes fadeUp{
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---- Search box interaktif ---- */
.hero-search{
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  padding: 0 8px 0 16px;
  height: 55px;
  box-shadow:
    0 8px 30px rgba(0,0,0,.18),
    0 0 0 0 rgba(245,179,1,0);
  transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
  animation: fadeUp 1s ease both;
  overflow: hidden;
}
.hero-search:hover{
  transform: translateY(-2px) scale(1.01);
  background: #fff;
  box-shadow:
    0 14px 38px rgba(0,0,0,.24),
    0 0 0 4px rgba(245,179,1,.35);
}
.hero-search:focus-within{
  transform: translateY(-2px);
  box-shadow:
    0 14px 38px rgba(0,0,0,.24),
    0 0 0 4px rgba(47,160,83,.45);
}

.hero-search-icon{
  color: #1f7a3d;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform .3s ease, color .3s ease;
}
.hero-search:hover .hero-search-icon{
  transform: scale(1.15) rotate(-6deg);
  color: #f5b301;
}

.hero-search-input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 1rem;
  height: 100%;
  color: #1a2a1e;
}
.hero-search-input::placeholder{
  color: #8ba094;
}

/* Efek kilau meluncur saat hover */
.hero-search-glow{
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(245,179,1,.22) 50%,
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left .7s ease;
}
.hero-search:hover .hero-search-glow{
  left: 120%;
}

/* ---- Meta info (rating + pengunjung) ---- */
.hero-meta{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 13px;
  font-size: .80rem;
  color: rgba(255,255,255,.9);
  animation: fadeUp 1.1s ease both;
}
.hero-meta-item{ display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-item i{ color: #f5b301; }
.hero-meta-item strong{ color: #fff; }
.hero-meta-divider{
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.35);
}



/* ---- Mobile ---- */
@media (max-width: 576px){
  .hero-pintu{ padding: 10px 0; }
  .hero-title{ font-size: 1.4rem; margin-bottom: .25rem; }
  .hero-subtitle{ font-size: .88rem; margin-bottom: 14px; }
  .hero-badge{ font-size: .72rem; padding: 4px 10px; margin-bottom: 8px; }
  .hero-search{ height: 48px; padding-left: 14px; }
  .hero-search-input{ font-size: .92rem; }
  .hero-meta{ font-size: .78rem; margin-top: 10px; }
}

/* ---- Hormati preferensi "reduce motion" ---- */
@media (prefers-reduced-motion: reduce){
  .hero-pintu,
  .hero-title,
  .hero-subtitle,
  .hero-search,
  .hero-badge,
  .hero-meta{
    animation: none !important;
    transition: none !important;
  }
}

/* ====================================================================
   CARD GRID — Modern Hover dengan Aksen Kuning
   ==================================================================== */

.card-pintu{
  position: relative;
  display: block;
  border: 1.5px solid var(--pintu-border);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  isolation: isolate;
  will-change: transform, box-shadow;
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    border-color .35s ease,
    box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}

/* Layer gradasi kuning yang fade-in saat hover */
.card-pintu::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
  rgba(232, 245, 236, .9) 0%,
  rgba(255, 249, 224, .95) 50%,
  rgba(255, 236, 179, .95) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0;
}

/* Garis aksen kuning di sisi kiri */
.card-pintu::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--pintu-yellow) 0%, #ffc93c 100%);
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
  transition: height .5s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}

.card-pintu:hover{
  transform: translateY(-8px) scale(1.015);
  border-color: var(--pintu-yellow);
  box-shadow:
    0 24px 48px -16px rgba(245, 179, 1, .48),
    0 12px 24px -12px rgba(31, 122, 61, .20),
    0 0 0 3px rgba(245, 179, 1, .14);
}

.card-pintu:hover::before{ opacity: 1; }
.card-pintu:hover::after { height: 60%; }

/* Konten di atas layer */
.card-pintu .card-body{
  position: relative;
  z-index: 1;
}

/* ------- ICON WRAP ------- */
.card-pintu .icon-wrap{
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f5ec 0%, #d4ebda 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pintu-green);
  overflow: hidden;
  transition:
    background .45s ease,
    color .35s ease,
    transform .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s ease;
}

.card-pintu .icon-wrap img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.card-pintu .icon-wrap i{
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.card-pintu:hover .icon-wrap{
  background: linear-gradient(135deg, var(--pintu-yellow) 0%, #ffd54f 100%);
  color: #5c3d00;
  transform: rotate(-6deg) scale(1.10);
  box-shadow: 0 10px 22px -8px rgba(245, 179, 1, .65);
}
.card-pintu:hover .icon-wrap i{
  transform: scale(1.15) rotate(6deg);
}
.card-pintu:hover .icon-wrap img{
  transform: scale(1.08);
}

/* ------- BADGE KATEGORI ------- */
.card-pintu .badge-cat{
  display: inline-block;
  transition:
    background-color .35s ease,
    color .35s ease,
    transform .4s cubic-bezier(.22, 1, .36, 1);
}
.card-pintu:hover .badge-cat{
  background: #0f3d24;
  color: #ffd54f;
  transform: translateX(4px);
}

/* ------- JUDUL ------- */
.card-pintu h6{
  transition: color .35s ease, letter-spacing .35s ease;
}
.card-pintu:hover h6{
  color: #0f3d24;
  letter-spacing: .2px;
}

/* ------- DESKRIPSI ------- */
.card-pintu p.small{
  transition: color .35s ease;
}
.card-pintu:hover p.small{
  color: #4b5a51 !important;
}

/* ------- CHEVRON PANAH ------- */
.card-pintu .card-arrow{
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pintu-yellow), #ffc93c);
  color: #5c3d00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transform: translateX(-10px) scale(.85);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease;
  z-index: 2;
  box-shadow: 0 4px 12px -2px rgba(245, 179, 1, .45);
}
.card-pintu:hover .card-arrow{
  opacity: 1;
  transform: translateX(0) scale(1);
}
.card-pintu .card-arrow i{
  transition: transform .3s ease;
}
.card-pintu:hover .card-arrow:hover i,
.card-pintu .card-arrow:hover i{
  transform: translateX(2px);
}

/* ------- KEYBOARD FOCUS (aksesibilitas) ------- */
.card-pintu:focus-visible{
  outline: none;
  border-color: var(--pintu-yellow);
  box-shadow:
    0 24px 48px -16px rgba(245, 179, 1, .48),
    0 0 0 4px rgba(245, 179, 1, .28);
}
.card-pintu:focus-visible::before{ opacity: 1; }
.card-pintu:focus-visible::after { height: 60%; }
.card-pintu:focus-visible .icon-wrap{
  background: linear-gradient(135deg, var(--pintu-yellow), #ffd54f);
  color: #5c3d00;
  transform: rotate(-6deg) scale(1.10);
}
.card-pintu:focus-visible .card-arrow{
  opacity: 1; transform: translateX(0) scale(1);
}

/* ------- HORMATI REDUCE MOTION ------- */
@media (prefers-reduced-motion: reduce){
  .card-pintu,
  .card-pintu::before,
  .card-pintu::after,
  .card-pintu .icon-wrap,
  .card-pintu .icon-wrap i,
  .card-pintu .icon-wrap img,
  .card-pintu .card-arrow,
  .card-pintu .badge-cat,
  .card-pintu h6{
    transition: none !important;
  }
  .card-pintu:hover{
    transform: none;
  }
}

.badge-cat{ background:var(--pintu-green); color:#fff; font-weight:500; }

.rich-content img{ max-width:100%; height:auto; }
.rich-content h1,.rich-content h2,.rich-content h3{ margin-top:1.2em; }

.req-list li{ margin-bottom:.5rem; }

/* Rating */
.rating-stars{
  font-size:1.6rem;
  cursor:pointer;
  user-select:none;
  display:inline-flex;
  gap:4px;
}
.rating-stars i{
  color:#ccc;
  transition:color .15s, transform .15s;
}
/* Bintang yang sudah terisi = KUNING */
.rating-stars i.bi-star-fill{
  color: var(--pintu-yellow);
}
/* Hover sedikit membesar */
.rating-stars i:hover{
  transform: scale(1.15);
}

/* Footer */
.footer-pintu{ background:#fff; border-top:1px solid var(--pintu-border); }

/* ====================================================================
   LOGIN PAGE — Split layout modern
   ==================================================================== */
.login-body{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f1f5f2;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-split{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ---------- SISI KIRI — Branding ---------- */
.login-brand{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      #061a10 0%,
      #0f3d24 30%,
      #1f7a3d 65%,
      #2fa053 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  isolation: isolate;
}
#loginCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.login-brand-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(245, 179, 1, .22), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(47, 160, 83, .35), transparent 55%);
  pointer-events: none;
  z-index: 2;
}
.login-brand-content{
  position: relative;
  z-index: 3;
  max-width: 460px;
  animation: lbFade .9s ease both;
}
@keyframes lbFade{
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lb-logo-wrap{
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.28);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,.4);
}
.lb-logo{ max-height: 70px; max-width: 70px; }
.lb-logo-fallback{
  font-size: 2.8rem;
  color: #ffd54f;
}

.lb-title{
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 3px 14px rgba(0,0,0,.28);
}
.lb-sub{
  margin: 6px 0 4px;
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}
.lb-instansi{
  margin: 0 0 30px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .3px;
}

.lb-features{
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lb-features li{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.88);
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .3s ease, background .3s ease;
}
.lb-features li:hover{
  background: rgba(255,255,255,.14);
  transform: translateX(6px);
}
.lb-features li i{
  font-size: 1.1rem;
  color: #ffd54f;
  flex-shrink: 0;
}

.lb-footer-note{
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ---------- SISI KANAN — Form ---------- */
.login-form-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: linear-gradient(180deg, #f8fbf9 0%, #ecf3ee 100%);
  overflow-y: auto;
}

.login-form-card{
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 34px 28px;
  box-shadow:
    0 24px 60px -24px rgba(15, 61, 36, .28),
    0 10px 24px -12px rgba(0, 0, 0, .08);
  animation: lbFade .9s ease .15s both;
}

/* Warning pengguna umum */
.login-warning{
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  background: #fff8e1;
  border: 1.5px solid #ffe082;
  border-left: 5px solid #f5b301;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.5;
  color: #6b4a00;
}
.login-warning i{
  color: #e69500;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.login-warning strong{
  color: #a56b00;
}

/* Head */
.login-form-head{
  margin-bottom: 22px;
}
.login-form-head h2{
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f3d24;
  margin: 0 0 4px;
  letter-spacing: -.4px;
}
.login-form-head p{
  margin: 0;
  color: #6b7a70;
  font-size: .9rem;
}

/* Error alert */
.login-alert-error{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 10px;
  color: #b3261e;
  font-size: .86rem;
  animation: shakeX .4s ease;
}
.login-alert-error i{ font-size: 1.1rem; flex-shrink: 0; }
@keyframes shakeX{
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Honeypot — sembunyikan dari user */
.login-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Input group */
.lf-group{
  margin-bottom: 18px;
}
.lf-group > label{
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #4b5a51;
  margin-bottom: 6px;
  letter-spacing: .2px;
}

.lf-input{
  position: relative;
  display: flex;
  align-items: center;
  background: #f8faf9;
  border: 1.5px solid #e2e9e4;
  border-radius: 12px;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.lf-input:focus-within{
  background: #fff;
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .14);
}
.lf-input.error{
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .12);
}

.lf-icon{
  padding: 0 4px 0 14px;
  color: #8ba094;
  font-size: 1.1rem;
  transition: color .25s ease;
  flex-shrink: 0;
}
.lf-input:focus-within .lf-icon{
  color: var(--pintu-green);
}

.lf-input input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 14px 13px 8px;
  font-size: .95rem;
  color: #1a2a1e;
  min-width: 0;
}
.lf-input input::placeholder{ color: #a5b4ac; }

.lf-toggle-pwd{
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: #8ba094;
  cursor: pointer;
  font-size: 1rem;
  transition: color .2s;
}
.lf-toggle-pwd:hover{ color: var(--pintu-green); }

/* CAPTCHA */
.lf-captcha{
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.lf-captcha-q{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f3d24 0%, #1f7a3d 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -8px rgba(15, 61, 36, .5);
  user-select: none;
  min-width: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.lf-captcha-q::before{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(255,255,255,.06) 6px,
    rgba(255,255,255,.06) 12px
  );
  pointer-events: none;
}
.lf-captcha-q i{
  color: #ffd54f;
  font-size: 1.05rem;
}
.lf-captcha input{
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: #f8faf9;
  border: 1.5px solid #e2e9e4;
  border-radius: 12px;
  font-size: .95rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.lf-captcha input:focus{
  outline: 0;
  background: #fff;
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .14);
}

.lf-help{
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  color: #8ba094;
  line-height: 1.5;
}
.lf-help i{ color: var(--pintu-green); }

/* Submit */
.lf-submit{
  width: 100%;
  border: 0;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1f7a3d 0%, #2fa053 100%);
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 22px -10px rgba(31, 122, 61, .55);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.lf-submit:hover:not(:disabled){
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f3d24 0%, #1f7a3d 100%);
  box-shadow: 0 16px 30px -12px rgba(31, 122, 61, .6);
}
.lf-submit:active:not(:disabled){
  transform: translateY(0);
}
.lf-submit:disabled{
  cursor: wait;
  opacity: .9;
}
.lf-submit::after{
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .8s ease;
}
.lf-submit:hover::after{ left: 120%; }

.lf-submit-text,
.lf-submit-loading{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lf-spinner{
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin{ to { transform: rotate(360deg); } }

/* Back link */
.lf-back{
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: .84rem;
  color: #6b7a70;
  text-decoration: none;
  transition: color .2s;
}
.lf-back:hover{ color: var(--pintu-green); }

/* Secure note */
.login-secure-note{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2ef;
  font-size: .74rem;
  color: #8ba094;
  letter-spacing: .3px;
}
.login-secure-note i{ color: var(--pintu-green); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px){
  .login-split{
    grid-template-columns: 1fr;
  }
  .login-brand{
    padding: 30px 24px;
    min-height: 240px;
  }
  .lb-logo-wrap{
    width: 72px; height: 72px; margin-bottom: 16px;
    border-radius: 18px;
  }
  .lb-logo{ max-height: 50px; max-width: 50px; }
  .lb-logo-fallback{ font-size: 2rem; }
  .lb-title{ font-size: 1.7rem; }
  .lb-features{ display: none; }
  .lb-footer-note{ margin-top: 14px; padding-top: 14px; }
  .login-form-wrap{ padding: 24px 18px 40px; }
  .login-form-card{ padding: 28px 22px 22px; border-radius: 16px; }
}

@media (max-width: 576px){
  .login-form-head h2{ font-size: 1.4rem; }
  .login-warning{ font-size: .74rem; }
  .lf-captcha-q{ min-width: 100px; padding: 10px 12px; font-size: .92rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .login-brand-content,
  .login-form-card,
  .lf-submit,
  .lb-features li{
    animation: none !important;
    transition: none !important;
  }
  .lf-submit::after{ display: none; }
}

/* ---------- Admin Layout ---------- */
.admin-body{ background:#f1f4f2; }

.sidebar-pintu{
  position:fixed; top:0; left:0; bottom:0; width:250px;
  background:#0f3d24; color:#cfe6d6; overflow-y:auto; z-index:1030;
  transform:translateX(0); transition:transform .25s;
}
.sidebar-pintu .brand{
  padding:1rem 1.25rem; border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:.5rem; font-weight:700; color:#fff;
}
.sidebar-pintu .nav-link{ color:#cfe6d6; padding:.65rem 1.25rem; border-left:3px solid transparent; }
.sidebar-pintu .nav-link:hover{ color:#fff; background:rgba(255,255,255,.05); }
.sidebar-pintu .nav-link.active{ color:#fff; background:rgba(255,255,255,.08); border-left-color:var(--pintu-yellow); }
.sidebar-pintu hr{ border-color:rgba(255,255,255,.08); }

.admin-main{
  margin-left:250px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  transition:margin-left .25s ease;
}
.topbar-pintu{ height:60px; background:#fff; border-bottom:1px solid var(--pintu-border); }
.admin-content{ padding:1.25rem; flex:1; }

/* === Sidebar hidden state (desktop) === */
body.sidebar-hidden .sidebar-pintu{ transform:translateX(-100%); }
body.sidebar-hidden .admin-main{ margin-left:0; }

/* === Mobile: off-canvas === */
@media (max-width: 991.98px){
  .sidebar-pintu{ transform:translateX(-100%); }
  .sidebar-pintu.show{ transform:translateX(0); }
  .admin-main{ margin-left:0; }
}

/* Stat cards */
.stat-card .stat-label{ font-size:.78rem; color:#6b7a70; text-transform:uppercase; letter-spacing:.5px; }
.stat-card .stat-value{ font-size:1.6rem; font-weight:700; color:var(--pintu-green-dark); }
.stat-icon{ width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }

/* ====================================================================
   Floating Contact Button (FAB) + Popup
   ==================================================================== */

/* --- FAB --- */
.pintu-fab-wrap{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
}

.pintu-fab{
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(31, 122, 61, .68);        /* semi-transparan */
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Efek kaca — menyesuaikan warna background di belakangnya */
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.pintu-fab:hover{
  transform: scale(1.08);
  background: rgba(31, 122, 61, .92);
  box-shadow: 0 10px 30px rgba(31,122,61,.45);
}
.pintu-fab:active{ transform: scale(.96); }

/* Efek "ping" berdenyut */
.pintu-fab-ping{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(31,122,61,.55);
  animation: pintuPing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pintuPing{
  0%   { transform: scale(1);   opacity: .85; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* --- Backdrop --- */
.pintu-popup-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1060;
}
.pintu-popup-backdrop.show{
  opacity: 1;
  visibility: visible;
}

/* --- Popup rasio 4:6 (340 x 510px) --- */
.pintu-popup{
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;                          /* 4 : 6 aspect ratio */
  max-width: calc(100vw - 32px);
  max-height: 510px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 1070;
}
.pintu-popup.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.pintu-popup-header{
  background: linear-gradient(135deg, #1f7a3d, #2fa053);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.pintu-popup-header strong{ font-size: 1rem; }

.pintu-popup-close{
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.pintu-popup-close:hover{ background: rgba(255,255,255,.18); }

.pintu-popup-body{
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.pintu-popup-intro{
  font-size: .9rem;
  color: #333;
  margin-bottom: 14px;
  line-height: 1.45;
  font-weight: 500;
}

/* --- Contact Card --- */
.pintu-contact-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pintu-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.pintu-contact-card:hover{
  border-color: var(--pintu-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31,122,61,.15);
  color: inherit;
  text-decoration: none;
}
.pintu-contact-card:last-child{ margin-bottom: 0; }

.pcc-icon{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}
.pcc-wa { background: #25D366; }
.pcc-bot{ background: linear-gradient(135deg, #1f7a3d, #2fa053); }

.pcc-body{ flex: 1; min-width: 0; }
.pcc-title{
  font-weight: 600;
  font-size: .86rem;
  line-height: 1.3;
  color: #1a2a1e;
}
.pcc-note{
  font-size: .74rem;
  color: #6b7a70;
  margin-top: 2px;
}
.pcc-arrow{ color: #b0beb6; font-size: .9rem; }

/* --- Responsive --- */
@media (max-width: 480px){
  .pintu-fab-wrap{ bottom: 16px; right: 16px; }
  .pintu-fab{ width: 54px; height: 54px; font-size: 1.4rem; }
  .pintu-popup{
    bottom: 88px;
    right: 16px;
    width: calc(100vw - 32px);
    max-height: 70vh;
  }
}

/* Catatan biaya di kalkulator */
.cost-note{
  font-size: .72rem;
  font-style: italic;
  color: #e53935;              /* merah menyala */
  line-height: 1.4;
  border-left: 3px solid #e53935;
  padding-left: 8px;
  margin-top: 10px;
}

/* ====================================================================
   Ikon sosial media di footer — versi robust
   ==================================================================== */
.footer-pintu .social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  transition: transform .25s ease,
              background-color .25s ease,
              box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-pintu .social-link i {
  color: inherit;                /* ambil warna dari style inline <a> */
  font-size: 1.05rem;
  line-height: 1;
  transition: color .25s ease;
}

/* Hover state — pakai warna brand via CSS var */
.footer-pintu .social-link:hover {
  transform: translateY(-4px) scale(1.12);
  background-color: var(--brand-color, #1f7a3d) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.footer-pintu .social-link:hover i {
  color: #ffffff !important;
}

/* Aktif ditekan */
.footer-pintu .social-link:active {
  transform: translateY(-1px) scale(1.05);
}
/* tampilan hp kecil jadi susun 4*/
@media (max-width: 576px){
  .footer-pintu .social-link{
    width: 34px;
    height: 34px;
  }
  .footer-pintu .social-link i{
    font-size: .95rem;
  }
}

/* ====================================================================
   Welcome Popup — gambar sambutan
   ==================================================================== */
.pintu-welcome-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.pintu-welcome-backdrop.show{
  opacity: 1;
  visibility: visible;
}

.pintu-welcome{
  position: fixed;
  top: 50%;
  left: 50%;
  /* Ukuran dinamis: max 90% viewport, gambar menyesuaikan */
  max-width: 90vw;
  max-height: 90vh;
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  visibility: hidden;
  z-index: 2001;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
  padding: 6px;
  transition: opacity .35s ease,
              transform .35s cubic-bezier(.34, 1.56, .64, 1),
              visibility .35s ease;
}
.pintu-welcome.show{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pintu-welcome-img{
  display: block;
  /* Ukuran dinamis mengikuti resolusi gambar */
  width: auto;
  height: auto;
  max-width: calc(90vw - 12px);
  max-height: calc(90vh - 12px);
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;   /* non-klik supaya user tidak buka di tab baru */
}

/* Tombol close */
.pintu-welcome-close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s, transform .2s;
}
.pintu-welcome-close:hover{
  background: rgba(220, 53, 69, .9);
  transform: rotate(90deg) scale(1.1);
}

/* Countdown badge */
.pintu-welcome-countdown{
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 122, 61, .85);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  z-index: 3;
  letter-spacing: .3px;
  min-width: 40px;
  text-align: center;
}
.pintu-welcome-countdown span{
  display: inline-block;
  min-width: 12px;
}

/* Mobile */
@media (max-width: 576px){
  .pintu-welcome{
    max-width: 94vw;
    max-height: 88vh;
  }
  .pintu-welcome-img{
    max-width: calc(94vw - 12px);
    max-height: calc(88vh - 12px);
  }
  .pintu-welcome-close{
    width: 30px;
    height: 30px;
  }
}

/* Hormati reduce-motion */
@media (prefers-reduced-motion: reduce){
  .pintu-welcome,
  .pintu-welcome-backdrop{
    transition: none !important;
  }
}

/* ====================================================================
   DETAIL PAGE — Modern & Colorful Cards
   ==================================================================== */

.detail-wrap{ max-width: 1180px; }

/* ---------- Breadcrumb ---------- */
.detail-breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #6b7a70;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--pintu-border);
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.detail-breadcrumb a{
  color: var(--pintu-green);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.detail-breadcrumb a:hover{ color: var(--pintu-green-dark); }
.detail-breadcrumb .bc-sep{ color: #c5cfc9; font-size: .7rem; }
.detail-breadcrumb .bc-cat{ color: #6b7a70; }
.detail-breadcrumb .bc-current{
  color: #1a2a1e;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* ---------- Header Hero Card ---------- */
.detail-hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 26px;

  /* Gradient hijau tua → hijau pekat, semua gelap → kontras tinggi untuk teks putih */
  background: linear-gradient(135deg,
    #0a2e1a 0%,
    #0f3d24 35%,
    #155c2c 65%,
    #1f7a3d 100%);

  box-shadow:
    0 18px 40px -16px rgba(15, 61, 36, .50),
    0 8px 20px -10px rgba(0,0,0,.22);
  isolation: isolate;
}

/* Overlay gelap + aksen kuning tipis di kanan sebagai highlight */
.detail-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 179, 1, .22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(47, 160, 83, .28), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: 0;
}

/* Pastikan konten di atas overlay */
.dh-content{ z-index: 1; position: relative; }
.dh-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgb(31 122 61), transparent 45%), 
	radial-gradient(circle at 85% 80%, rgb(31 122 61), #b51c1c00 50%)
  pointer-events: none;
  z-index: 0;
}
.dh-content{
  position: relative;
  z-index: 1;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.dh-icon{
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.3);
}
.dh-icon img{ width: 100%; height: 100%; object-fit: cover; }

.dh-text{ flex: 1; min-width: 0; }
.dh-badge{
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dh-title{
  color: #ffd54f;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.4px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.dh-sub{
  color: rgba(255,255,255,.9);
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 640px;
}

@media (max-width: 576px){
  .dh-content{ padding: 20px; flex-direction: column; text-align: center; gap: 14px; }
  .dh-icon{ width: 64px; height: 64px; flex: 0 0 64px; font-size: 1.8rem; }
}

/* ---------- Colorful Cards ---------- */
.dc-card{
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--pintu-border);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.dc-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.18);
}

/* Accent bar di kiri */
.dc-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  z-index: 2;
  transition: width .35s ease;
}
.dc-card:hover::before{ width: 6px; }

/* Warna-tema per kelas */
.dc-green::before  { background: linear-gradient(180deg, #1f7a3d, #2fa053); }
.dc-green  .dc-icon-wrap{ background: linear-gradient(135deg, #e8f5ec, #d4ebda); color: #1f7a3d; }
.dc-green  .dc-head{ border-bottom-color: #e8f5ec; }

.dc-yellow::before { background: linear-gradient(180deg, #f5b301, #ffd54f); }
.dc-yellow .dc-icon-wrap{ background: linear-gradient(135deg, #fff5d6, #ffe9a8); color: #a97a00; }
.dc-yellow .dc-head{ border-bottom-color: #fff5d6; }

.dc-blue::before   { background: linear-gradient(180deg, #0d6efd, #4dabf7); }
.dc-blue   .dc-icon-wrap{ background: linear-gradient(135deg, #e7f0ff, #d5e5ff); color: #0d6efd; }
.dc-blue   .dc-head{ border-bottom-color: #e7f0ff; }

.dc-purple::before { background: linear-gradient(180deg, #6f42c1, #9c6ade); }
.dc-purple .dc-icon-wrap{ background: linear-gradient(135deg, #f1ebfb, #e5d9f7); color: #6f42c1; }
.dc-purple .dc-head{ border-bottom-color: #f1ebfb; }

/* Head */
.dc-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 24px;
  border-bottom: 1px solid var(--pintu-border);
  background: #fcfdfd;
}
.dc-icon-wrap{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.dc-card:hover .dc-icon-wrap{
  transform: rotate(-6deg) scale(1.08);
}
.dc-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2a1e;
  flex: 1;
}
.dc-action{
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: #1f7a3d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.dc-action:hover{
  background: #0f3d24;
  color: #fff;
  transform: translateY(-1px);
}

.dc-body{
  padding: 18px 22px 20px 26px;
  line-height: 1.65;
  color: #2a3a30;
}

/* ---------- Persyaratan Modern ---------- */
.req-modern{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.req-modern li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fffdf5;
  border: 1px solid #fdf1c4;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.req-modern li:hover{
  background: #fff9e0;
  transform: translateX(4px);
  box-shadow: 0 6px 16px -8px rgba(245, 179, 1, .5);
}
.req-num{
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5b301, #ffc93c);
  color: #5c3d00;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px -2px rgba(245, 179, 1, .55);
}
.req-text{
  font-size: .93rem;
  color: #2a3a30;
  line-height: 1.5;
  padding-top: 3px;
}

/* ---------- Flow Timeline ---------- */
.flow-timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.flow-timeline li{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0 10px 8px;
}
.flow-timeline li:not(:last-child)::before{
  content: "";
  position: absolute;
  left: 22px;
  top: 40px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, #c8b3e8, #e5d9f7);
  border-radius: 2px;
}
.flow-num{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f42c1, #9c6ade);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(111, 66, 193, .55);
  z-index: 1;
}
.flow-text{
  font-size: .93rem;
  color: #2a3a30;
  line-height: 1.55;
  padding-top: 5px;
  flex: 1;
}

.flow-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6f42c1, #9c6ade);
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px -6px rgba(111, 66, 193, .5);
}
.flow-link:hover{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(111, 66, 193, .65);
}

/* ---------- Calculator Card ---------- */
.calc-card{
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #ffe9a8;
  box-shadow:
    0 20px 46px -20px rgba(245, 179, 1, .4),
    0 8px 20px -12px rgba(0,0,0,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.calc-card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 26px 54px -20px rgba(245, 179, 1, .55),
    0 12px 26px -14px rgba(0,0,0,.15);
}

.calc-head{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f5b301 0%, #ffd54f 100%);
  color: #5c3d00;
}
.calc-icon{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #5c3d00;
  box-shadow: 0 6px 14px -6px rgba(92, 61, 0, .4);
}
.calc-title{
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #4a3100;
  letter-spacing: -.2px;
}
.calc-sub{
  margin: 2px 0 0;
  font-size: .76rem;
  color: rgba(92, 61, 0, .75);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.calc-body{
  padding: 18px 20px 22px;
}

.calc-field{ margin-bottom: 12px; }
.calc-field label{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: #4a5a4f;
  margin-bottom: 6px;
}
.calc-field label i{
  color: #f5b301;
}
.calc-field .form-control{
  border-radius: 10px;
  border: 1.5px solid #e5eae6;
  padding: 10px 14px;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.calc-field .form-control:focus{
  border-color: #f5b301;
  box-shadow: 0 0 0 4px rgba(245, 179, 1, .18);
}

.calc-breakdown{
  margin: 16px 0 12px;
  padding: 12px 0;
  border-top: 1px dashed #e5eae6;
}
.calc-breakdown:empty{ display: none; }
.calc-breakdown > div{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .86rem;
  border-bottom: 1px dashed #eef2ef;
}
.calc-breakdown > div:last-child{ border-bottom: 0; }
.calc-breakdown small{
  color: #8ba094;
  font-size: .74rem;
}

.calc-total{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f3d24 0%, #1f7a3d 100%);
  border-radius: 12px;
  margin-top: 8px;
}
.ct-label{
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ct-value{
  color: #ffd54f;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Catatan biaya */
.cost-note{
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: .74rem;
  font-style: italic;
  color: #b3261e;
  background: #fff5f4;
  border-left: 3px solid #e53935;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 991px){
  .calc-card{ position: static; }
}

@media (max-width: 576px){
  .detail-hero{ border-radius: 14px; }
  .dc-head{ padding: 12px 16px 12px 20px; }
  .dc-body{ padding: 16px 18px 18px 22px; }
  .dc-icon-wrap{ width: 38px; height: 38px; flex: 0 0 38px; font-size: 1.1rem; }
  .dc-title{ font-size: .96rem; }
  .ct-value{ font-size: 1.15rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .dc-card, .dc-card::before, .dc-icon-wrap, .calc-card,
  .req-modern li, .flow-link, .dc-action{
    transition: none !important;
  }
  .dc-card:hover, .calc-card:hover{ transform: none; }
}

/* ====================================================================
   Footer — Link Website Resmi
   ==================================================================== */
.footer-website-link{
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f5ec 0%, #f5faf6 100%);
  border: 1.5px solid #cfe6d6;
  border-radius: 12px;
  text-decoration: none;
  color: #1a2a1e;
  font-size: .82rem;
  line-height: 1.5;
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
  max-width: 100%;
  box-shadow: 0 2px 8px -4px rgba(31, 122, 61, .15);
}

.footer-website-link:hover{
  transform: translateY(-3px);
  background: linear-gradient(135deg, #d4ebda 0%, #e8f5ec 100%);
  border-color: var(--pintu-green);
  color: #1a2a1e;
  text-decoration: none;
  box-shadow:
    0 12px 28px -10px rgba(31, 122, 61, .35),
    0 4px 12px -4px rgba(0, 0, 0, .08);
}

.footer-website-link:focus-visible{
  outline: none;
  border-color: var(--pintu-yellow);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, .3);
}

/* Ikon globe bulat */
.fwl-icon{
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pintu-green), #2fa053);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    transform .5s cubic-bezier(.22, 1, .36, 1),
    background .35s ease;
  box-shadow: 0 4px 10px -3px rgba(31, 122, 61, .45);
}
.footer-website-link:hover .fwl-icon{
  background: linear-gradient(135deg, #0f3d24, var(--pintu-green));
  transform: rotate(-8deg) scale(1.08);
}

/* Teks */
.fwl-text{
  flex: 1;
  min-width: 0;
  color: #4b5a51;
}
.fwl-text b{
  color: #0f3d24;
  font-weight: 700;
}

/* URL — ditekankan */
.fwl-url{
  display: inline-block;
  color: var(--pintu-green);
  font-weight: 600;
  word-break: break-all;
  transition: color .25s ease;
}
.footer-website-link:hover .fwl-url{
  color: #0f3d24;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* Panah eksternal */
.fwl-ext{
  color: #8ba094;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .3s ease, color .3s ease;
}
.footer-website-link:hover .fwl-ext{
  color: var(--pintu-green);
  transform: translate(3px, -3px);
}

/* Mobile */
@media (max-width: 576px){
  .footer-website-link{
    padding: 10px 12px;
    font-size: .78rem;
  }
  .fwl-icon{
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .footer-website-link,
  .fwl-icon,
  .fwl-ext{
    transition: none !important;
  }
  .footer-website-link:hover{ transform: none; }
}

/* ====================================================================
   REQUIREMENT LIST — Drag & Drop + Up/Down
   ==================================================================== */
.req-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fbfdfb;
  border: 1.5px solid #e2e9e4;
  border-radius: 12px;
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .25s ease,
    transform .25s cubic-bezier(.22, 1, .36, 1);
}
.req-item:hover{
  background: #fff;
  border-color: #cfe6d6;
  box-shadow: 0 4px 12px -6px rgba(31, 122, 61, .18);
}
.req-item:focus-within{
  background: #fff;
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .10);
}

/* Drag handle */
.req-handle{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  border-radius: 8px;
  color: #b0beb6;
  cursor: grab;
  user-select: none;
  transition: color .2s, background .2s;
}
.req-handle:hover{
  color: var(--pintu-green);
  background: rgba(31, 122, 61, .08);
}
.req-handle:active{ cursor: grabbing; }
.req-handle i{ font-size: 1.05rem; }

/* Nomor urut */
.req-num{
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a3d, #2fa053);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px -3px rgba(31, 122, 61, .55);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

/* Input */
.req-input{
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 8px 4px !important;
  font-size: .92rem;
  box-shadow: none !important;
}
.req-input:focus{
  outline: 0;
}

/* Actions */
.req-actions{
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.req-btn{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e9e4;
  background: #fff;
  color: #6b7a70;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background .2s,
    border-color .2s,
    color .2s,
    transform .2s;
}
.req-btn:hover:not(:disabled){
  background: #f5faf6;
  border-color: var(--pintu-green);
  color: var(--pintu-green);
  transform: translateY(-1px);
}
.req-btn:active:not(:disabled){
  transform: translateY(0);
}
.req-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
}
.req-btn.btn-del-req:hover:not(:disabled){
  background: #fdecea;
  border-color: #e53935;
  color: #e53935 !important;
}

/* Drag state — visual feedback */
.req-item.req-ghost{
  opacity: .35;
  background: #e8f5ec;
  border-style: dashed;
  border-color: var(--pintu-green);
}
.req-item.req-chosen{
  box-shadow: 0 12px 30px -10px rgba(31, 122, 61, .35);
}
.req-item.req-drag{
  opacity: .95;
  background: #fff;
  border-color: var(--pintu-green);
  box-shadow: 0 18px 40px -12px rgba(31, 122, 61, .45);
  transform: rotate(-1deg) scale(1.02);
}

/* Hint tombol keyboard */
.req-list::after{
  content: "";
  display: block;
}
.req-input + .req-actions::before{
  content: "";
}

/* Hint kecil saat ada >1 item */
.req-list + .req-hint,
.req-hint{
  display: block;
  margin-top: 10px;
  font-size: .72rem;
  color: #8ba094;
  line-height: 1.5;
}
.req-hint kbd{
  background: #f1f4f2;
  border: 1px solid #d5dcd7;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .68rem;
  color: #4b5a51;
  font-family: inherit;
}

/* Mobile — perbesar tombol */
@media (max-width: 576px){
  .req-item{
    flex-wrap: wrap;
    padding: 10px;
  }
  .req-handle{
    order: 1;
  }
  .req-num{
    order: 2;
  }
  .req-input{
    order: 3;
    flex: 1 1 calc(100% - 70px);
  }
  .req-actions{
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-end;
    border-top: 1px dashed #eef2ef;
    padding-top: 6px;
    margin-top: 4px;
  }
  .req-btn{
    width: 36px;
    height: 36px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .req-item,
  .req-num,
  .req-btn,
  .req-handle{
    transition: none !important;
  }
}

/* ====================================================================
   DATA PERKARA PAGE — Gate + Placeholder
   ==================================================================== */
.datap-wrap{
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- GATE ANTI-ROBOT ---------- */
.datap-gate{
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow:
    0 24px 60px -24px rgba(15, 61, 36, .25),
    0 10px 24px -12px rgba(0, 0, 0, .06);
  border: 1.5px solid #e8f0ea;
  text-align: center;
  animation: dgFade .6s ease both;
}
@keyframes dgFade{
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dg-icon{
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pintu-green) 0%, #2fa053 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow:
    0 14px 30px -10px rgba(31, 122, 61, .55),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.dg-title{
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f3d24;
  margin: 0 0 8px;
  letter-spacing: -.4px;
}
.dg-sub{
  color: #6b7a70;
  font-size: .92rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 22px;
}
.dg-sub b{ color: #0f3d24; }

.dg-error{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 10px;
  color: #b3261e;
  font-size: .86rem;
  animation: dgShake .4s ease;
}
@keyframes dgShake{
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.dg-error i{ font-size: 1.1rem; }

.dg-form{ margin-top: 8px; }
.dg-hp{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.dg-row{
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
}
.dg-q{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0f3d24, #1f7a3d);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  box-shadow: 0 8px 20px -10px rgba(15, 61, 36, .6);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}
.dg-q::before{
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0, transparent 6px,
    rgba(255,255,255,.06) 6px, rgba(255,255,255,.06) 12px);
  pointer-events: none;
}
.dg-q i{ color: #ffd54f; font-size: 1.2rem; }

.dg-input{
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid #e2e9e4;
  border-radius: 14px;
  background: #f8faf9;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 4px;
  color: #1a2a1e;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.dg-input:focus{
  outline: 0;
  background: #fff;
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .14);
}
.dg-input::placeholder{
  letter-spacing: normal;
  font-weight: 400;
  color: #a5b4ac;
}

.dg-btn{
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pintu-green) 0%, #2fa053 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 26px -10px rgba(31, 122, 61, .55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.dg-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f3d24 0%, var(--pintu-green) 100%);
  box-shadow: 0 18px 36px -12px rgba(31, 122, 61, .65);
}
.dg-btn:active{ transform: translateY(0); }

.dg-note{
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #eef2ef;
  font-size: .78rem;
  color: #8ba094;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dg-note i{ color: var(--pintu-green); }
.dg-note b{ color: #4b5a51; }

/* ---------- HEADER setelah verifikasi ---------- */
.datap-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eef2ef;
}
.dph-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #e8f5ec;
  color: #1f7a3d;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 10px;
}
.dph-badge i{ font-size: .85rem; }

.dph-title{
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f3d24;
  margin: 0 0 4px;
  letter-spacing: -.5px;
}
.dph-sub{
  margin: 0;
  color: #6b7a70;
  font-size: .9rem;
}

.dph-logout{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #e2e9e4;
  color: #6b7a70;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
}
.dph-logout:hover{
  border-color: #e53935;
  color: #e53935;
  background: #fdecea;
}

/* ---------- PLACEHOLDER (kosong dulu) ---------- */
.datap-placeholder{
  background: linear-gradient(135deg, #fbfdfb 0%, #f1f7f3 100%);
  border: 2px dashed #d4e6da;
  border-radius: 20px;
  padding: 60px 30px;
  text-align: center;
}
.datap-placeholder i{
  font-size: 3.5rem;
  color: #a8c9b3;
  margin-bottom: 16px;
  display: inline-block;
}
.datap-placeholder h3{
  color: #4b5a51;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.datap-placeholder p{
  color: #6b7a70;
  max-width: 480px;
  margin: 0 auto 22px;
  font-size: .92rem;
  line-height: 1.6;
}
.dph-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pintu-green), #2fa053);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 18px -8px rgba(31, 122, 61, .55);
}
.dph-back:hover{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(31, 122, 61, .7);
}

/* ---------- Mobile ---------- */
@media (max-width: 576px){
  .datap-gate{ padding: 28px 20px 24px; border-radius: 16px; }
  .dg-icon{ width: 64px; height: 64px; font-size: 1.6rem; border-radius: 18px; }
  .dg-title{ font-size: 1.3rem; }
  .dg-row{ flex-direction: column; }
  .dg-q{ min-width: 0; padding: 12px 16px; font-size: 1rem; }
  .dg-input{ padding: 12px; }
  .dph-title{ font-size: 1.35rem; }
  .datap-placeholder{ padding: 40px 20px; }
  .datap-placeholder i{ font-size: 2.6rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .datap-gate, .dg-error, .dg-btn, .dph-back{
    animation: none !important;
    transition: none !important;
  }
}

/* ====================================================================
   SYNC DATA — Panel & Progress
   ==================================================================== */
.sync-modes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.sync-card{
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fbfdfb;
  border: 1.5px solid #e2e9e4;
  border-radius: 14px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sync-card:hover{
  transform: translateY(-3px);
  border-color: var(--pintu-green);
  box-shadow: 0 12px 28px -12px rgba(31, 122, 61, .3);
}
.sc-icon{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.sc-body{ flex: 1; min-width: 0; }
.sc-title{
  font-size: .98rem;
  font-weight: 700;
  color: #0f3d24;
  margin: 0 0 6px;
}
.sc-desc{
  font-size: .8rem;
  color: #6b7a70;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Mini stat */
.mini-stat{
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  background: #f8faf9;
  border: 1px solid #e8eeea;
  border-radius: 10px;
}
.ms-label{
  font-size: .68rem;
  color: #8ba094;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ms-value{
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f3d24;
}

/* Console log */
.sync-console{
  background: #0f1720;
  color: #cbd5e0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: .78rem;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
}
.log-line{ padding: 1px 0; }
.log-line .log-time{ color: #718096; margin-right: 6px; }
.log-line.log-info{ color: #93c5fd; }
.log-line.log-success{ color: #86efac; }
.log-line.log-warn{ color: #fcd34d; }
.log-line.log-error{ color: #fca5a5; }

/* Stat icon (reuse) */
.stat-icon{
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ====================================================================
   DATA PERKARA — Dashboard
   ==================================================================== */
.datap-wrap-wide{ max-width: 1400px; }

/* Filter */
.datap-filter .form-label{ margin-bottom: 4px; }

/* Stat cards */
.dstat-card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--pintu-border);
  box-shadow: 0 10px 26px -14px rgba(15, 61, 36, .18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dstat-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -16px rgba(15, 61, 36, .28);
}
.dstat-icon{
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.dstat-body{ flex: 1; min-width: 0; }
.dstat-label{
  font-size: .74rem; color: #6b7a70;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.dstat-value{
  font-size: 1.85rem; font-weight: 800;
  color: #0f3d24; letter-spacing: -.6px; line-height: 1.1;
}
.dstat-blue   .dstat-icon{ background: linear-gradient(135deg, #0d6efd, #4dabf7); }
.dstat-green  .dstat-icon{ background: linear-gradient(135deg, #1f7a3d, #2fa053); }
.dstat-yellow .dstat-icon{ background: linear-gradient(135deg, #f5b301, #ffc93c); }

/* Chart cards */
.chart-card .card-header{ font-size: .95rem; }

/* Badge klasifikasi */
.badge-kat{
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-gugatan    { background: #e8f5ec; color: #1f7a3d; }
.badge-permohonan { background: #fff5d6; color: #a97a00; }
.badge-lainnya    { background: #eef2f5; color: #6b7a70; }
.badge-jenis      { background: linear-gradient(135deg, #e8f5ec, #d4ebda); color: #0f3d24; font-weight: 600; }
/* Warna otomatis berdasarkan hash dari nama jenis (opsional) */
.badge-jenis:hover{ filter: brightness(.95); }

/* Tabel dashboard */
.datap-table thead th{
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #4b5a51;
  border-bottom: 2px solid #e8f0ea;
}
.datap-table tbody td{ font-size: .88rem; }
.datap-table tbody tr:hover{ background: #fbfdfb; }
.datap-table tfoot td{ font-size: .9rem; }

/* ====================================================================
   SYNC OVERLAY — Loading full-screen dengan circular progress
   ==================================================================== */
.sync-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
}
.sync-overlay.show{ opacity: 1; }

.so-backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 122, 61, .35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(245, 179, 1, .28), transparent 55%),
    linear-gradient(135deg, #0a2e1a 0%, #0f3d24 50%, #1a5c33 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: soBackdropShift 12s ease infinite;
  background-size: 200% 200%;
}
@keyframes soBackdropShift{
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Card utama */
.so-card{
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, .55),
    0 12px 30px -14px rgba(0, 0, 0, .3);
  transform: translateY(14px) scale(.96);
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}
.sync-overlay.show .so-card{
  transform: translateY(0) scale(1);
}
.so-card-error{
  border: 2px solid #f5c6cb;
}

/* ============ Circular progress ring ============ */
.so-ring-wrap{
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
}
.so-ring{
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.so-ring-track{
  fill: none;
  stroke: #eef2ef;
  stroke-width: 9;
}
.so-ring-fill{
  fill: none;
  stroke: url(#soGradient);
  stroke: #1f7a3d;                /* fallback */
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.22, 1, .36, 1);
  filter: drop-shadow(0 4px 10px rgba(31, 122, 61, .35));
}
/* Gradient stroke trick pakai SVG defs akan fallback ke solid green
   -- dan itu tetap bagus, konsisten dengan tema PINTU */

.so-ring-center{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.so-percent{
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f3d24;
  line-height: 1;
  letter-spacing: -1.5px;
}
.so-percent span{
  font-size: 1.1rem;
  font-weight: 700;
  color: #6b7a70;
  margin-left: 2px;
}
.so-percent-label{
  font-size: .68rem;
  color: #8ba094;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

/* ============ Judul & subtitle ============ */
.so-title{
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f3d24;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.so-title i{
  color: var(--pintu-green);
  animation: soBounce 1.6s ease-in-out infinite;
}
@keyframes soBounce{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.so-subtitle{
  font-size: .84rem;
  color: #6b7a70;
  line-height: 1.55;
  margin: 0 0 20px;
}

/* ============ Progress bar ============ */
.so-bar{
  position: relative;
  height: 8px;
  background: #eef2ef;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}
.so-bar-fill{
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f7a3d, #2fa053, #a8d64c, #f5b301);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
  animation: soBarShine 2s linear infinite;
  box-shadow: 0 0 10px rgba(245, 179, 1, .5);
}
@keyframes soBarShine{
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============ Stats mini ============ */
.so-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.so-stat{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8faf9;
  border: 1px solid #eef2ef;
  border-radius: 12px;
  text-align: left;
}
.ss-icon{
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ss-label{
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #8ba094;
  font-weight: 600;
  margin-bottom: 1px;
}
.ss-value{
  font-size: .82rem;
  font-weight: 800;
  color: #0f3d24;
  letter-spacing: -.3px;
}

/* ============ Fase ============ */
.so-phase{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #e8f5ec;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: .78rem;
  color: #1f7a3d;
  font-weight: 600;
}
.so-phase-dot{
  width: 8px;
  height: 8px;
  background: #1f7a3d;
  border-radius: 50%;
  position: relative;
  animation: soPulse 1.4s ease-in-out infinite;
}
.so-phase-dot::after{
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(31, 122, 61, .45);
  animation: soPing 1.4s ease-out infinite;
}
@keyframes soPulse{
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.85); opacity: .7; }
}
@keyframes soPing{
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.so-phase-text{
  transition: opacity .2s ease;
}
.so-phase-error{
  background: #fdecea;
  color: #b3261e;
}
.so-phase-error .so-phase-dot{
  background: #e53935;
}
.so-phase-error .so-phase-dot::after{
  border-color: rgba(229, 57, 53, .45);
}

/* ============ Tips ============ */
.so-tip{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff8e1 0%, #fffbe9 100%);
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: .74rem;
  color: #8a6d1e;
  line-height: 1.5;
  text-align: left;
}
.so-tip i{
  color: #f5b301;
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.so-tip span{
  transition: opacity .2s ease;
}

/* ============ Mobile ============ */
@media (max-width: 576px){
  .sync-overlay{ padding: 14px; }
  .so-card{ padding: 30px 22px 22px; border-radius: 20px; }
  .so-ring-wrap{ width: 120px; height: 120px; margin-bottom: 18px; }
  .so-percent{ font-size: 2rem; }
  .so-percent span{ font-size: .9rem; }
  .so-title{ font-size: 1.05rem; }
  .so-subtitle{ font-size: .78rem; }
  .so-stats{ grid-template-columns: 1fr; gap: 8px; }
  .so-stat{ padding: 8px 10px; }
  .ss-icon{ width: 30px; height: 30px; font-size: .9rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .so-backdrop,
  .so-title i,
  .so-bar-fill,
  .so-phase-dot,
  .so-phase-dot::after{
    animation: none !important;
  }
  .sync-overlay,
  .so-card,
  .so-ring-fill,
  .so-bar-fill{
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 768px){
  .dstat-value{ font-size: 1.45rem; }
  .dstat-icon{ width: 46px; height: 46px; font-size: 1.25rem; }
  .datap-table tbody td{ font-size: .8rem; padding: 6px 8px; }
  .sync-banner{ padding: 12px 14px; }
}

/* Pagination tabel utama */
.pagination .page-link{
  border: 1px solid #e2e9e4;
  color: #4b5a51;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px !important;
  margin: 0 2px;
  transition: all .2s;
}
.pagination .page-link:hover{
  background: #f5faf6;
  border-color: var(--pintu-green);
  color: var(--pintu-green);
}
.pagination .page-item.active .page-link{
  background: linear-gradient(135deg, var(--pintu-green), #2fa053);
  border-color: var(--pintu-green);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(31, 122, 61, .5);
}
.pagination .page-item.disabled .page-link{
  background: #f8faf9;
  color: #b0beb6;
  border-color: #eef2ef;
}

/* Filter bar di atas tabel utama */
.datap-filter-bar{
  background: linear-gradient(135deg, #f8fbf9 0%, #f1f7f3 100%);
  border-top: 1px solid #e8f0ea;
  border-bottom: 2px solid #e8f0ea;
  padding: 14px 18px;
  position: relative;
}
.datap-filter-bar::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--pintu-green), var(--pintu-yellow));
}
.datap-filter-bar .form-label{
  color: #4b5a51;
  font-size: .78rem;
}
.datap-filter-bar .form-select-sm{
  border-radius: 8px;
  border: 1.5px solid #e2e9e4;
  padding: 6px 10px;
  font-size: .86rem;
  transition: border-color .2s, box-shadow .2s;
}
.datap-filter-bar .form-select-sm:focus{
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 3px rgba(31, 122, 61, .12);
}
.datap-filter-bar .btn-sm{
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .84rem;
  font-weight: 600;
}
.datap-filter-bar .badge{
  font-size: .74rem;
  padding: 5px 10px;
}

/* Divider antara filter bar & tabel */
.datap-filter-bar + .card-body{
  border-top: 1px solid #f1f4f2;
}

/* Responsive */
@media (max-width: 768px){
  .datap-filter-bar{ padding: 12px 14px; }
  .datap-filter-bar .col-md-4,
  .datap-filter-bar .col-md-3,
  .datap-filter-bar .col-md-5{
    flex: 1 1 100%;
  }
  .datap-filter-bar .ms-auto{ margin-left: 0 !important; }
}

/* ====================================================================
   RICH TEXT EDITOR — TinyMCE Wrapper
   ==================================================================== */
.rte-wrapper{
  position: relative;
  border-radius: 12px;
}
.rte-wrapper .form-control{
  border: 1.5px solid #e2e9e4;
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.rte-wrapper .form-control:focus{
  border-color: var(--pintu-green);
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .14);
}

/* TinyMCE iframe container */
.rte-wrapper .tox-tinymce{
  border: 1.5px solid #e2e9e4 !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.rte-wrapper .tox-tinymce:focus-within{
  border-color: var(--pintu-green) !important;
  box-shadow: 0 0 0 4px rgba(31, 122, 61, .14);
}

/* Toolbar — warna tema PINTU */
.rte-wrapper .tox .tox-editor-header{
  background: linear-gradient(180deg, #f8fbf9 0%, #eef4f0 100%) !important;
  border-bottom: 1px solid #e2e9e4 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 4px 6px !important;
}
.rte-wrapper .tox .tox-toolbar,
.rte-wrapper .tox .tox-toolbar__overflow,
.rte-wrapper .tox .tox-toolbar__primary{
  background: transparent !important;
  padding: 4px 2px !important;
}
.rte-wrapper .tox .tox-tbtn{
  border-radius: 6px !important;
  color: #4b5a51 !important;
  transition: background .2s, color .2s;
}
.rte-wrapper .tox .tox-tbtn:hover{
  background: rgba(31, 122, 61, .12) !important;
  color: var(--pintu-green) !important;
}
.rte-wrapper .tox .tox-tbtn--enabled,
.rte-wrapper .tox .tox-tbtn--enabled:hover{
  background: linear-gradient(135deg, var(--pintu-green), #2fa053) !important;
  color: #fff !important;
}
.rte-wrapper .tox .tox-tbtn svg{
  fill: currentColor !important;
}
.rte-wrapper .tox .tox-tbtn--select{
  border: 1px solid #e2e9e4 !important;
  background: #fff !important;
}
.rte-wrapper .tox .tox-tbtn--select:hover{
  border-color: var(--pintu-green) !important;
}

/* Menubar hidden by default */
.rte-wrapper .tox .tox-menubar{
  background: transparent !important;
}

/* Statusbar */
.rte-wrapper .tox .tox-statusbar{
  background: #f8faf9 !important;
  border-top: 1px solid #eef2ef !important;
  color: #8ba094 !important;
  border-radius: 0 0 12px 12px !important;
  font-size: .72rem !important;
}

/* Popup dialog (link, image, dll.) */
.tox .tox-dialog{
  border-radius: 14px !important;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.35) !important;
}
.tox .tox-dialog__header{
  background: linear-gradient(135deg, var(--pintu-green), #2fa053) !important;
  color: #fff !important;
  border-radius: 14px 14px 0 0 !important;
}
.tox .tox-dialog__title{
  color: #fff !important;
  font-weight: 700 !important;
}
.tox .tox-button--primary{
  background: linear-gradient(135deg, var(--pintu-green), #2fa053) !important;
  border-color: var(--pintu-green) !important;
}
.tox .tox-button--primary:hover{
  background: linear-gradient(135deg, #0f3d24, var(--pintu-green)) !important;
}

/* Fallback kalau TinyMCE gagal load */
textarea#descriptionEditor:not(.rte-hidden){
  border-radius: 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: .88rem;
  min-height: 300px;
  padding: 14px 16px;
}

/* Mobile */
@media (max-width: 576px){
  .rte-wrapper .tox .tox-toolbar__primary{
    flex-wrap: wrap !important;
  }
}

/* ====================================================================
   Collapsible Card — Deskripsi
   ==================================================================== */
.dc-collapse-head{
  cursor: pointer;
  user-select: none;
  transition: background .25s ease;
  position: relative;
  padding-right: 14px;
}
.dc-collapse-head:hover{
  background: #f8fbf9;
}
.dc-collapse-head:focus-visible{
  outline: none;
  box-shadow: inset 0 0 0 2px var(--pintu-yellow);
}

/* ====================================================================
   HINT "Klik untuk membuka" — Attractive Pill Badge
   ==================================================================== */
.dc-collapse-hint{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 10px;
  padding: 7px 14px 7px 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #5c3d00;
  background: linear-gradient(135deg, #fff5d6 0%, #ffd54f 50%, #f5b301 100%)
	border: 1.5px solid #1f7a3d;
  border-radius: 999px;
  white-space: nowrap;

  /* Shadow berwarna → kesan "hidup" */
  box-shadow:
    0 4px 12px -4px rgba(245, 179, 1, .55),
    0 0 0 0 rgba(245, 179, 1, .6);

  /* Animasi menarik perhatian */
  animation: dchAttention 4s ease-in-out infinite;

  transition:
    opacity .3s ease,
    transform .3s cubic-bezier(.22, 1, .36, 1),
    visibility .3s ease;
  cursor: pointer;
}

/* Animasi denyut glow + sedikit naik-turun */
@keyframes dchAttention{
  0%, 100% {
    box-shadow:
      0 4px 12px -4px rgba(245, 179, 1, .55),
      0 0 0 0 rgba(245, 179, 1, .55);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 8px 18px -6px rgba(245, 179, 1, .75),
      0 0 0 6px rgba(245, 179, 1, 0);
    transform: translateY(-2px);
  }
}

/* Hover hint → makin besar & glowing */
.dc-collapse-head:hover .dc-collapse-hint{
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 10px 22px -6px rgba(245, 179, 1, .85),
    0 0 0 8px rgba(245, 179, 1, .08);
}

/* Sparkle bintang di kiri */
.dch-sparkle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: #e69500;
  animation: dchSpin 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes dchSpin{
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(-15deg) scale(1.15); }
  75%      { transform: rotate(15deg) scale(1.15); }
}

/* Chevron kecil di kanan hint — bounce ke bawah */
.dch-chevron{
  font-size: .85rem;
  font-weight: 900;
  animation: dchBounce 1.4s ease-in-out infinite;
}
@keyframes dchBounce{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Saat card terbuka → hint memudar, tapi tidak hilang total supaya tidak "hilang"
   (muncul lagi nanti saat ditutup) */
.dc-collapse-head[aria-expanded="true"] .dc-collapse-hint{
  opacity: 0;
  visibility: hidden;
  transform: scale(.85);
}

/* Efek "shimmer" meluncur di hint */
.dc-collapse-hint::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, .6) 45%,
    transparent 90%);
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: dchShine 2.8s ease-in-out infinite;
  pointer-events: none;
  overflow: hidden;
}
@keyframes dchShine{
  0%   { background-position: -100% 0; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; }
}

/* Mobile */
@media (max-width: 576px){
  .dc-collapse-hint{
    font-size: .68rem;
    padding: 6px 10px;
  }
  .dch-sparkle{ font-size: .72rem; }
  .dch-chevron{ font-size: .75rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .dc-collapse-hint,
  .dch-sparkle,
  .dch-chevron,
  .dc-collapse-hint::after{
    animation: none !important;
  }
}

/* Chevron toggle icon */
.dc-toggle-icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f7f3;
  color: var(--pintu-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex-shrink: 0;
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    background .3s ease,
    color .3s ease;
}
.dc-collapse-head:hover .dc-toggle-icon{
  background: #e0efe5;
  transform: scale(1.08);
}
.dc-collapse-head[aria-expanded="true"] .dc-toggle-icon{
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--pintu-green), #2fa053);
  color: #fff;
}
.dc-collapse-head[aria-expanded="true"]:hover .dc-toggle-icon{
  transform: rotate(180deg) scale(1.08);
}

/* Body saat collapsed → smooth animasi */
.dc-collapse .collapse:not(.show){
  display: none;
}
.dc-collapse .collapsing{
  transition: height .35s cubic-bezier(.22, 1, .36, 1);
}

/* Body styling tetap rapi setelah dibuka */
.dc-collapse .dc-body{
  padding-top: 20px;
  animation: dcFadeIn .35s ease;
}
@keyframes dcFadeIn{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 576px){
  .dc-collapse-hint{ display: none; }
  .dc-toggle-icon{ width: 28px; height: 28px; font-size: .75rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .dc-collapse-head,
  .dc-toggle-icon,
  .dc-collapse .collapsing,
  .dc-collapse .dc-body{
    transition: none !important;
    animation: none !important;
  }
}

/* ====================================================================
   SYNC LOCK — Sembunyikan dashboard selama sync
   ==================================================================== */
.sync-locked{
  display: none !important;
}

/* Overlay wajib tampil penuh saat ada */
.sync-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: auto;
}
.sync-overlay.show{ opacity: 1; }

/* Info total estimasi */
.so-estimate{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  background: #e7f0ff;
  border: 1px solid #c8ddff;
  border-radius: 10px;
  font-size: .76rem;
  color: #1e4d8b;
}
.so-estimate i{ color: #0d6efd; font-size: .9rem; }
.so-estimate b{ color: #0a3a75; }

/* Tombol escape */
.so-error-actions{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.so-error-actions .btn{
  font-size: .8rem;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.so-error-actions .btn:hover{
  background: #fff3cd;
  color: #664d03;
}

/* Ketika error — highlight border card */
.so-card.so-card-error{
  border: 2px solid #f5c6cb;
  animation: soShake .5s ease;
}
@keyframes soShake{
  0%, 100% { transform: translateY(0) scale(1); }
  25%      { transform: translateY(0) scale(1) rotate(-1deg); }
  75%      { transform: translateY(0) scale(1) rotate(1deg); }
}

/* Mobile */
@media (max-width: 576px){
  .sync-overlay{ padding: 14px; }
  .so-estimate{ font-size: .7rem; padding: 6px 10px; }
}