/* ==========================================================================
   DYSHORT — PREMIUM DESIGN SYSTEM
   Lapisan tampilan global: berjalan di atas theme.css & style.css,
   dikonsumsi oleh SEMUA halaman untuk memastikan tampilan konsisten,
   premium, dan responsive di seluruh produk.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FOUNDATION
   -------------------------------------------------------------------------- */
*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body{
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg, canvas{ max-width: 100%; display: block; }

::selection{
  background: var(--primary, #00ff99);
  color: var(--primary-text, #000);
}

/* Scrollbar premium */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{
  background: var(--border-2, #2d2d2d);
  border-radius: 10px;
  border: 2px solid var(--bg, #050505);
}
::-webkit-scrollbar-thumb:hover{ background: var(--primary, #00ff99); }

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

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--primary, #00ff99);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   1. TYPOGRAPHY SCALE (fluid)
   -------------------------------------------------------------------------- */
.p-h1, .p-hero-title{
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.p-h2{
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.p-h3{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.p-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary, #00ff99);
}
.p-lead{
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}
.p-gradient-text{
  background: linear-gradient(100deg, var(--text, #fff) 20%, var(--primary, #00ff99) 65%, var(--accent, #3fa9ff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   2. AMBIENT / HERO BACKGROUND
   -------------------------------------------------------------------------- */
.p-mesh{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, var(--primary-glow, rgba(0,255,153,.12)), transparent 42%),
    radial-gradient(circle at 88% 18%, var(--accent-glow, rgba(63,169,255,.12)), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.02), transparent 50%);
}
.p-noise{
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.light-theme .p-noise{ opacity: .02; }

.p-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
  animation: pDrift 14s ease-in-out infinite alternate;
}
@keyframes pDrift{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(24px,-18px) scale(1.08); }
}

/* --------------------------------------------------------------------------
   3. STANDARD SITE NAVIGATION (public pages)
   -------------------------------------------------------------------------- */
.siteNav{
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.siteNav.is-scrolled{
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
/* Efek yang sama untuk .nav lama (home/dashboard/admin/dsb) agar seragam */
.nav.is-scrolled{ box-shadow: var(--shadow-sm); }
.siteNav .logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}
.siteNav .logo b{
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
}
.siteNavLinks{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.siteNavLinks a{
  color: var(--text-muted) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.siteNavLinks a::after{
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--dur) var(--ease);
  border-radius: 2px;
}
.siteNavLinks a:hover{ color: var(--text) !important; }
.siteNavLinks a:hover::after,
.siteNavLinks a.is-active::after{ width: 100%; }
.siteNavLinks a.is-active{ color: var(--text) !important; }

.siteNavRight{ display: flex; align-items: center; gap: 10px; }

.p-iconBtn{
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-nested) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  cursor: pointer;
  font-size: 16px;
  transition: transform .15s var(--ease), border-color var(--dur), color var(--dur);
}
.p-iconBtn:hover{ border-color: var(--primary) !important; color: var(--primary) !important; }
.p-iconBtn:active{ transform: scale(.92); }

.siteNavToggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-nested);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.siteNavToggle span{
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.siteNavToggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.siteNavToggle.is-open span:nth-child(2){ opacity: 0; }
.siteNavToggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.siteDrawer{
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(320px, 84vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  padding: 90px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}
.siteDrawer.is-open{ transform: translateX(0); }
.siteDrawer a{
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}
.siteDrawer a.is-active,
.siteDrawer a:hover{
  background: var(--surface-nested);
  border-color: var(--border);
  color: var(--primary) !important;
}
.siteDrawer .p-btn{ margin-top: 14px; }
.siteDrawerBackdrop{
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.siteDrawerBackdrop.is-open{ opacity: 1; pointer-events: auto; }

@media (max-width: 860px){
  .siteNavLinks{ display: none; }
  .siteNavToggle{ display: inline-flex; }
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.p-btn{
  --_h: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--_h);
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .16s var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur), background var(--dur), opacity var(--dur);
}
.p-btn:active{ transform: scale(.96); }
.p-btn-sm{ --_h: 38px; padding: 0 16px; font-size: 13px; }
.p-btn-lg{ --_h: 54px; padding: 0 30px; font-size: 15px; border-radius: var(--radius-md); }
.p-btn-block{ width: 100%; }

.p-btn-primary{
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, var(--accent) 22%));
  color: var(--primary-text) !important;
  -webkit-text-fill-color: var(--primary-text) !important;
  box-shadow: 0 10px 24px -8px var(--primary-glow);
}
.p-btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px -8px var(--primary-glow); }

.p-btn-secondary{
  background: var(--surface-nested) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.p-btn-secondary:hover{ border-color: var(--primary) !important; color: var(--primary) !important; transform: translateY(-2px); }

.p-btn-outline{
  background: transparent !important;
  border-color: var(--border-2) !important;
  color: var(--text) !important;
}
.p-btn-outline:hover{ border-color: var(--primary) !important; color: var(--primary) !important; }

.p-btn-ghost{
  background: transparent !important;
  color: var(--text-muted) !important;
  border-color: transparent !important;
}
.p-btn-ghost:hover{ color: var(--text) !important; background: var(--surface-nested) !important; }

.p-btn-danger{ background: var(--danger) !important; color: #fff !important; }
.p-btn-danger:hover{ opacity: .9; }

/* Ripple sheen on primary buttons */
.p-btn-primary::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  z-index: 1;
}
.p-btn-primary:hover::after{ transform: translateX(120%); }

/* --------------------------------------------------------------------------
   5. SURFACES / CARDS
   -------------------------------------------------------------------------- */
.p-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.p-card-hover:hover{
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.p-glass{
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-soft);
}

.p-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--primary-glow);
  color: var(--primary) !important;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.p-badge-neutral{
  background: var(--surface-nested);
  color: var(--text-muted) !important;
  border-color: var(--border);
}

/* Stat card */
.p-stat{
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.p-stat:hover{ transform: translateY(-3px); border-color: var(--border-2); }
.p-stat .p-stat-num{
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}
.p-stat .p-stat-label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   6. LINK / URL CHIP (signature element — dipakai berulang sbg identitas)
   -------------------------------------------------------------------------- */
.p-linkchip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-nested);
  border: 1px dashed var(--border-2);
  color: var(--primary) !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-linkchip::before{ content: "🔗"; font-size: 12px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   7. SECTION / LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.p-section{ padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.p-wrap{ width: 100%; max-width: 1160px; margin: 0 auto; }
.p-wrap-narrow{ width: 100%; max-width: 760px; margin: 0 auto; }
.p-center{ text-align: center; }

.p-grid{ display: grid; gap: 22px; }
.p-grid-2{ grid-template-columns: repeat(2, 1fr); }
.p-grid-3{ grid-template-columns: repeat(3, 1fr); }
.p-grid-4{ grid-template-columns: repeat(4, 1fr); }
.p-grid-auto{ grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

@media (max-width: 980px){
  .p-grid-4{ grid-template-columns: repeat(2, 1fr); }
  .p-grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .p-grid-2, .p-grid-3, .p-grid-4{ grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }
[data-reveal="fade"]{ transform: none; }
[data-reveal="left"]{ transform: translateX(-26px); }
[data-reveal="left"].in-view{ transform: translateX(0); }
[data-reveal="right"]{ transform: translateX(26px); }
[data-reveal="right"].in-view{ transform: translateX(0); }
[data-reveal-delay="1"]{ transition-delay: .08s; }
[data-reveal-delay="2"]{ transition-delay: .16s; }
[data-reveal-delay="3"]{ transition-delay: .24s; }
[data-reveal-delay="4"]{ transition-delay: .32s; }

/* --------------------------------------------------------------------------
   9. PAGE LOADER BAR
   -------------------------------------------------------------------------- */
#pLoadBar{
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 99999;
  box-shadow: 0 0 12px var(--primary);
  transition: width .4s var(--ease), opacity .3s ease;
}

/* --------------------------------------------------------------------------
   10. BACK TO TOP
   -------------------------------------------------------------------------- */
#pBackToTop{
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease, color .2s ease;
}
#pBackToTop.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
#pBackToTop:hover{ border-color: var(--primary); color: var(--primary); }

/* --------------------------------------------------------------------------
   10b. FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
#pWaBtn{
  position: fixed;
  left: 22px; bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.55);
  z-index: 900;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: pWaPulse 2.6s ease-in-out infinite;
}
#pWaBtn:hover{ transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px -6px rgba(37,211,102,.65); }
@keyframes pWaPulse{
  0%, 100%{ box-shadow: 0 10px 26px -6px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.35); }
  50%{ box-shadow: 0 10px 26px -6px rgba(37,211,102,.55), 0 0 0 10px rgba(37,211,102,0); }
}
#pWaBtn .p-waTip{
  position: absolute;
  left: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
#pWaBtn:hover .p-waTip{ opacity: 1; transform: translateX(0); }
@media (max-width: 640px){
  #pWaBtn{ width: 48px; height: 48px; font-size: 22px; left: 16px; bottom: 16px; }
  #pWaBtn .p-waTip{ display: none; }
  #pBackToTop{ right: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   10c. NOTIFICATION BELL
   -------------------------------------------------------------------------- */
.p-bellWrap{ position: relative; }
.p-bellBtn{
  position: relative;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-nested);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.p-bellBtn:hover{ border-color: var(--primary); color: var(--primary); }
.p-bellDot{
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
  display: none;
}
.p-bellDot.show{ display: block; }
.p-bellPanel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 88vw);
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.p-bellPanel.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 640px){
  .p-bellPanel{
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: 70vh;
  }
}
.p-bellPanel-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); font-weight:700; font-size:13px; }
.p-bellItem{ padding:12px 16px; border-bottom:1px solid var(--border-soft); font-size:12.5px; line-height:1.6; }
.p-bellItem:last-child{ border-bottom:none; }
.p-bellItem b{ display:block; font-size:13px; margin-bottom:2px; color: var(--text); }
.p-bellItem span{ color: var(--text-muted); }
.p-bellItem time{ display:block; margin-top:4px; font-size:11px; color: var(--text-muted); }
.p-bellEmpty{ padding: 30px 16px; text-align:center; color: var(--text-muted); font-size:13px; }

/* --------------------------------------------------------------------------
   11. CONNECTIVITY BANNER
   -------------------------------------------------------------------------- */
#pOfflineBanner{
  position: fixed; left: 0; right: 0; top: 0;
  z-index: 99998;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  background: var(--danger);
  color: #fff;
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
}
#pOfflineBanner.is-visible{ transform: translateY(0); }

/* --------------------------------------------------------------------------
   12. SKELETON LOADERS
   -------------------------------------------------------------------------- */
.p-skeleton{
  position: relative;
  overflow: hidden;
  background: var(--surface-nested);
  border-radius: var(--radius-sm);
  isolation: isolate;
}
.p-skeleton::after{
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
  animation: pShimmer 1.4s infinite;
}
@keyframes pShimmer{ to{ transform: translateX(100%); } }

/* --------------------------------------------------------------------------
   13. TOAST (compatível dengan #toast bawaan app.js)
   -------------------------------------------------------------------------- */
#toast{
  position: fixed;
  bottom: 26px; right: 26px;
  min-width: 220px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 10px;
}
#toast.show{ display: flex; animation: pToastIn .35s var(--ease); }
#toast::before{ content: "✓"; color: var(--primary); font-weight: 800; }
#toast.error::before{ content: "!"; color: var(--danger); }
@keyframes pToastIn{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform:translateY(0);} }
@media (max-width: 520px){
  #toast{ left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE TABLES (admin / dashboard) — kartu di mobile
   -------------------------------------------------------------------------- */
@media (max-width: 720px){
  .p-rtable table, .p-rtable thead, .p-rtable tbody, .p-rtable th, .p-rtable td, .p-rtable tr{
    display: block;
  }
  .p-rtable thead{ display: none; }
  .p-rtable tr{
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    background: var(--surface);
  }
  .p-rtable td{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px;
    border: none !important;
    text-align: right;
  }
  .p-rtable td::before{
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   15. QR RESULT BOX (fitur baru shortener)
   -------------------------------------------------------------------------- */
.p-qrWrap{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-nested);
  border: 1px solid var(--border);
}
.p-qrWrap img{
  width: 84px; height: 84px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}
.p-qrWrap .p-qrActions{ display: flex; flex-direction: column; gap: 8px; }

/* --------------------------------------------------------------------------
   15b. ACCORDION (FAQ dsb.)
   -------------------------------------------------------------------------- */
.p-accordion{ display: flex; flex-direction: column; gap: 12px; }
.p-accordion-item{
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.p-accordion-item.is-open{ border-color: var(--border-2); }
.p-accordion-q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.p-accordion-q .p-plus{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-nested);
  color: var(--primary);
  font-size: 16px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.p-accordion-item.is-open .p-plus{ transform: rotate(45deg); background: var(--primary-glow); }
.p-accordion-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.p-accordion-a-inner{
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   16. FOOTER (public pages)
   -------------------------------------------------------------------------- */
.siteFooter{
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  padding: 56px clamp(16px,4vw,40px) 28px;
  background: color-mix(in srgb, var(--surface) 35%, transparent);
}
.siteFooter .p-wrap{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.siteFooter h4{
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text) !important;
  margin-bottom: 14px;
}
.siteFooter a{
  display: block;
  color: var(--text-muted) !important;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color .2s ease, transform .2s ease;
}
.siteFooter a:hover{ color: var(--primary) !important; transform: translateX(3px); }
.siteFooter .p-foot-brand{ font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.siteFooter .p-foot-desc{ font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.siteFooter .p-foot-bottom{
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}
.siteFooter .p-social{ display: flex; gap: 10px; }
.siteFooter .p-social a{
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-nested);
  border: 1px solid var(--border);
  padding: 0;
}
.siteFooter .p-social a:hover{ border-color: var(--primary); transform: translateY(-2px); }

@media (max-width: 860px){
  .siteFooter .p-wrap{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .siteFooter .p-wrap{ grid-template-columns: 1fr; gap: 26px; }
  .siteFooter .p-foot-bottom{ flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   17. GLOBAL RESPONSIVE SAFETY NET
   -------------------------------------------------------------------------- */
html, body{ max-width: 100%; overflow-x: hidden; }
table{ max-width: 100%; }

@media (max-width: 480px){
  .p-section{ padding: 40px 14px; }
  .p-btn-lg{ --_h: 50px; font-size: 14px; }
}
