:root {
  --dq-sky-50: #f0f9ff;
  --dq-sky-100: #e0f2fe;
  --dq-sky-400: #38bdf8;
  --dq-sky-500: #0ea5e9;
  --dq-sky-600: #0284c7;
  --dq-sky-700: #0369a1;
  --dq-ink: #0f172a;
  --dq-muted: #64748b;
  --dq-line: #e2e8f0;
  --dq-radius: 1.25rem;
  --dq-btn-radius: .95rem;
  --dq-shadow: 0 20px 50px -20px rgba(14, 165, 233, 0.35);
}

html {
  /* Smooth scroll dikontrol DQSmooth — native smooth bikin loncat saat SPA */
  scroll-behavior: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  /* Cadangan metrik font agar swap web-font tidak menggeser layout */
  font-size-adjust: 0.52;
  /* Tanpa gutter cadangan — padding kiri/kanan tetap simetris dengan chrome */
  scrollbar-gutter: auto;
  overflow-y: auto;
  overflow-x: clip;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--dq-ink);
  background: #fff;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  line-height: 1.55;
  overflow-x: clip;
  min-height: 100svh;
}

/* Hilangkan blok biru tap/focus pada tautan (khusus logo & navigasi) */
a, button, summary, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus { outline: none; }
a:focus-visible {
  outline: 2px solid rgba(14, 165, 233, .45);
  outline-offset: 3px;
  border-radius: .35rem;
}
a.lp-logo,
a.lp-footer__brand,
a.auth-brand,
.lp-mobile__brand,
a.lp-logo *,
a.lp-footer__brand *,
a.auth-brand * {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  background-color: transparent !important;
  background-image: none;
  box-shadow: none !important;
  outline: none !important;
  -webkit-user-select: none;
  user-select: none;
}
a.lp-logo:hover,
a.lp-logo:active,
a.lp-logo:focus,
a.lp-logo:focus-visible,
a.lp-logo.active,
a.lp-logo.is-active,
a.lp-footer__brand:hover,
a.lp-footer__brand:active,
a.lp-footer__brand:focus,
a.lp-footer__brand:focus-visible,
a.lp-footer__brand.active,
a.auth-brand:hover,
a.auth-brand:active,
a.auth-brand:focus,
a.auth-brand:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  opacity: 1 !important;
  color: inherit;
  -webkit-tap-highlight-color: transparent !important;
}
a.lp-logo::selection,
a.lp-logo *::selection,
a.lp-footer__brand::selection,
a.lp-footer__brand *::selection,
a.auth-brand::selection,
a.auth-brand *::selection {
  background: transparent;
  color: inherit;
}
.lp-logo img,
.lp-footer__brand img,
.auth-brand img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Animator — stabil: default terlihat; reveal hanya opacity (tanpa geser posisi) */
.dq-animate,
.dq-animate-left,
.dq-animate-right,
.dq-animate-scale {
  opacity: 1;
  transform: none !important;
  transition: opacity .35s ease;
  will-change: auto;
}
html.dq-reveal-ready .dq-animate:not(.in),
html.dq-reveal-ready .dq-animate-left:not(.in),
html.dq-reveal-ready .dq-animate-right:not(.in),
html.dq-reveal-ready .dq-animate-scale:not(.in) {
  opacity: 0.01; /* hampir tak terlihat tanpa mengubah geometri layout */
  transform: none !important;
}
.dq-animate.in,
.dq-animate-left.in,
.dq-animate-right.in,
.dq-animate-scale.in {
  opacity: 1;
  transform: none !important;
}

/* SPA page swap: tanpa animasi masuk */
.dq-page-enter { animation: none !important; }
@keyframes dqPageIn {
  from { opacity: 1; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dq-animate,
  .dq-animate-left,
  .dq-animate-right,
  .dq-animate-scale,
  html.dq-reveal-ready .dq-animate:not(.in),
  html.dq-reveal-ready .dq-animate-left:not(.in),
  html.dq-reveal-ready .dq-animate-right:not(.in),
  html.dq-reveal-ready .dq-animate-scale:not(.in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .dq-page-enter { animation: none !important; }
}

/* Progress tipis saat klik tautan SPA — tidak memblokir interaksi */
.dq-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  background: transparent;
}
.dq-nav-progress.is-active { opacity: 1; }
.dq-nav-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0284c7 55%, #0369a1);
  box-shadow: 0 0 12px rgba(14, 165, 233, .45);
}
.dq-nav-progress.is-active > span {
  animation: dqNavProg 1.05s cubic-bezier(.22, 1, .36, 1) forwards;
}
.dq-nav-progress.is-done > span {
  animation: none;
  width: 100%;
  opacity: 0;
  transition: opacity .22s ease .05s, width .15s ease;
}
@keyframes dqNavProg {
  0% { width: 0; }
  40% { width: 55%; }
  80% { width: 82%; }
  100% { width: 92%; }
}
html.is-navigating { cursor: progress; }

/* Loader full-screen: hanya aksi berat (bukan klik tautan) */
.dq-loader {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(240,249,255,.55);
  backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
  pointer-events: none; /* jangan blokir klik di belakang */
}
.dq-loader.show {
  display: flex;
  pointer-events: auto; /* aktifkan block hanya saat memang ditampilkan untuk aksi berat */
}
.dq-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--dq-sky-100);
  border-top-color: var(--dq-sky-500);
  animation: dqSpin .65s linear infinite;
}
@keyframes dqSpin { to { transform: rotate(360deg); } }

/* Toaster → assets/css/toast.css */

/* Mobile app shell */
.dq-app-shell {
  min-height: 100svh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 28%, #ffffff 100%);
  display: flex;
  flex-direction: column;
}
/* User portal content sizing → user-app.css */
.dq-glass {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(186,230,253,.7);
}
.dq-card-soft {
  background: #fff;
  border: 1px solid var(--dq-line);
  border-radius: var(--dq-radius);
  box-shadow: 0 10px 30px -18px rgba(15,23,42,.18);
}
.dq-balance {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  border-radius: 1.5rem;
  box-shadow: var(--dq-shadow);
}
.dq-icon-tile {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  display: grid; place-items: center;
  background: var(--dq-sky-50);
  color: var(--dq-sky-600);
  border: 1px solid var(--dq-sky-100);
  transition: transform .2s ease, background .2s ease;
}
.dq-icon-tile:hover { transform: translateY(-2px); background: #fff; }

.dq-bottom-nav {
  /* Di luar .dq-shell-scroll — tidak overlap scrollbar konten */
  position: relative;
  bottom: auto;
  z-index: 40;
  flex: 0 0 auto;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(186,230,253,.65);
  box-shadow: 0 -12px 30px -24px rgba(3,105,161,.4);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dq-bottom-nav a {
  position: relative;
  border-radius: .9rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.dq-bottom-nav a:active { transform: scale(.96); }
.dq-bottom-nav a.active {
  color: var(--dq-sky-700);
  background: linear-gradient(180deg, #e0f2fe, rgba(240,249,255,.4));
  font-weight: 800;
}
.dq-bottom-nav a.active svg {
  stroke-width: 2.35;
  filter: drop-shadow(0 4px 8px rgba(14,165,233,.35));
}

/* Landing hero atmosphere */
.dq-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(56,189,248,.35), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(14,165,233,.25), transparent 55%),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 70%);
}
.dq-hero::after {
  content: '';
  position: absolute; inset: auto -20% -40% -20%; height: 55%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Form controls & buttons → see forms.css (global Dompet QU form system) */

/* Camera QR overlay */
#qris-video { width: 100%; border-radius: 1rem; background: #0f172a; max-height: 280px; object-fit: cover; }

/* Selaras dengan Tailwind md (768px) */
@media (max-width: 767.98px) {
  .dq-desktop-only { display: none !important; }
}
@media (min-width: 768px) {
  .dq-mobile-only { display: none !important; }
}

/* ---------- Admin sidebar drawer (mobile) ---------- */
.dq-admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 31, 51, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.dq-admin-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .dq-admin-aside {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(84vw, 288px);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 20px 0 50px -28px rgba(0,0,0,.55);
  }
  .dq-admin-aside.is-open { transform: translateX(0); }
  body.dq-admin-menu-open { overflow: hidden; }
}
@media (min-width: 768px) {
  .dq-admin-backdrop { display: none !important; }
  .dq-admin-aside { transform: none !important; }
}

