/* ============================================================
   XZYYO PEDIA 3.0 - PREMIUM DESIGN SYSTEM
   Modern · Murah di mata · Animasi smooth · 3D hero · Responsif
   ============================================================ */

/* ============================================================
   ALASAN ANIMASI LOOP (R-19)
   Dosis sekarang: 20 deklarasi `infinite`, 15 keping. Tiap keping punya
   satu tugas yang bisa disebut. Animasi hiasan tanpa tugas sudah dibuang:
   p-shimmer (kilau menyapu pita CTA), p-cloud-drift (dua awan bergerak),
   p-twinkle (tiga bintang berkedip). prefers-reduced-motion mematikan
   semuanya, jadi daftar ini hanya berlaku untuk yang memang mau bergerak.
   ------------------------------------------------------------
   alasan p-float-card = mockup kartu hero melayang supaya terasa panel hidup
   alasan p-float = ikon saldo mengambang di kartu saldo dashboard
   alasan p-eye-blink = menarik perhatian ke tombol intip password
   alasan p-pupil-glance = pupil melirik kolom password saat tombol intip disentuh
   alasan p-greeting-bob = kartu greeting bergoyang halus saat dashboard dibuka
   alasan p-greeting-sweep = kilau menyapu teks greeting sekali di awal
   alasan p-greeting-drift = glow latar greeting bergeser pelan
   alasan p-sun-rise = matahari terbit pada banner pagi
   alasan p-sun-pulse = inti matahari berdenyut pada banner siang
   alasan p-sun-set = matahari terbenam pada banner sore
   alasan p-moon-float = bulan melayang pada banner malam
   alasan p-dot-blink = titik status server berkedip sebagai penanda hidup
   alasan p-spin = spinner pengiriman form, satu-satunya umpan balik proses
   alasan p-expiry-pulse = badge masa aktif berdebar saat tersisa <= 1 hari
   alasan p-adm-pulse = nilai negatif di buku besar admin berdenyut sebagai peringatan
   ============================================================ */

:root {
  /* ---- Warna modern premium ---- */
  --p-bg: #f4f7fc;
  --p-bg-soft: #eaf0fb;
  --p-surface: #ffffff;
  --p-ink: #0a1a2f;
  --p-text-2: #445a75;
  --p-text-3: #5a6f84;

  /* Gradien premium (XZYYO blue) */
  --p-gradient: linear-gradient(135deg, #5497f2 0%, #1e54cb 50%, #1a47a8 100%);
  --p-gradient-soft: linear-gradient(135deg, #e8effe 0%, #dbe6fd 50%, #d0e0fb 100%);
  --p-gradient-text: linear-gradient(120deg, #1e54cb 0%, #5497f2 55%, #68a2f3 100%);

  /* Glow */
  --p-glow-cyan: 0 0 24px rgba(30, 84, 203, 0.35);
  --p-glow-purple: 0 0 24px rgba(26, 71, 168, 0.35);

  /* Radius */
  --p-r-md: 14px;
  --p-r-lg: 20px;
  --p-r-xl: 28px;

  /* Shadows */
  --p-shadow-card: 0 1px 2px rgba(10, 26, 47, 0.04), 0 12px 32px -14px rgba(10, 26, 47, 0.16);
  --p-shadow-hover: 0 2px 6px rgba(10, 26, 47, 0.05), 0 24px 48px -16px rgba(10, 26, 47, 0.24);
  --p-shadow-glass: 0 8px 32px rgba(10, 26, 47, 0.18);

  /* Animasi */
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   KEYFRAMES - animasi smooth
   ============================================================ */
@keyframes p-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes p-float-slow {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -22px; rotate: 2deg; }
}
@keyframes p-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes p-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes p-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes p-glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes p-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes p-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes p-tilt-float {
  0%, 100% { transform: rotateX(6deg) rotateY(-7deg) rotateZ(1deg) translateZ(0); }
  50% { transform: rotateX(9deg) rotateY(-4deg) rotateZ(-1deg) translateZ(16px); }
}
@keyframes p-dash {
  from { stroke-dashoffset: 620; }
  to { stroke-dashoffset: 0; }
}
@keyframes p-bar-grow {
  from { transform: scaleY(0.05); }
  to { transform: scaleY(1); }
}
@keyframes p-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes p-aurora {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(-40px) translateY(24px) rotate(8deg); }
}
@keyframes p-float-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px -10px; }
}
@keyframes p-ping-soft {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}
@keyframes p-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SCROLL REVEAL - dipicu main.js (IntersectionObserver)
   Default visible (no-JS fallback). Hanya hide saat html.js aktif.
   ============================================================ */
.reveal,
.reveal-item {
  opacity: 1;
  will-change: opacity, transform;
}
html.js .reveal,
html.js .reveal-item {
  opacity: 0;
}
html.js .reveal-init-y { transform: translateY(28px); }
/* 20px dan bukan 28px: gutter halaman hanya 24px, jadi offset 28px bikin
   scrollWidth > viewport (+4px) selama elemen belum .reveal-in (temuan 4).
   Jangan dikembalikan ke 28px tanpa menaikkan gutter-nya juga. */
html.js .reveal-init-x { transform: translateX(20px); }
/* Tapi di settings gutter kanan cuma 16px di lebar 320px: offset 20px bikin
   scrollWidth 325 > 320 (R-03, audit visual 2026-10-03) → kartu ini pakai
   14px; pola temuan-4: offset disesuaikan gutter terkecil, jangan di-clip. */
html.js .settings-side.reveal-init-x { transform: translateX(14px); }
html.js .reveal-init-xr { transform: translateX(-28px); }
html.js .reveal-init-scale { transform: scale(0.94); }
html.js .reveal-in,
html.js .reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--p-ease), transform 0.7s var(--p-ease);
}
/* Spesifisitas sama dg override .settings-side di atas (0,3,1), ditulis sesudahnya:
   tanpa baris ini translateX(14px) permanen setelah reveal - tepi kartu Ringkasan
   melewati grid di desktop (14px) dan kiri tidak sejajar kartu lain di mobile. */
html.js .settings-side.reveal-in { transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}

/* ============================================================
   HERO 3D - visual sensasional di halaman beranda
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(30, 84, 203, 0.16), transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #eef4fd 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  align-items: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
  gap: clamp(32px, 5vw, 64px);
}

/* --- Teks hero --- */
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--p-ink);
}
.hero h1 .text-accent {
  background: var(--p-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--p-text-2);
  max-width: 540px;
  line-height: 1.7;
}
.hero [data-hero-anim] {
  opacity: 0;
  animation: p-fade-up 0.85s var(--p-ease) forwards;
}
.hero [data-hero-anim="1"] { animation-delay: 0.1s; }
.hero [data-hero-anim="2"] { animation-delay: 0.25s; }
.hero [data-hero-anim="3"] { animation-delay: 0.4s; }
.hero [data-hero-anim="4"] { animation-delay: 0.55s; }

/* --- Hero preview - mockup panel (konsisten dgn halaman Server Saya) --- */
.hero-3d-stage {
  position: relative;
  min-width: 0;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  min-height: clamp(360px, 44vw, 470px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-3d-stage::before {
  content: '';
  position: absolute;
  width: min(430px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 84, 203, 0.13), transparent 66%);
  pointer-events: none;
}
.hero-preview {
  position: relative;
  width: min(420px, 100%);
  transform-style: preserve-3d;
  transform: rotateX(calc(5deg + var(--my, 0deg) * -0.7)) rotateY(calc(-9deg + var(--mx, 0deg) * 0.8));
  transition: transform 0.4s var(--p-ease);
}

/* Kartu utama - meniru layout kartu server di dashboard */
.hp-card {
  position: relative;
  z-index: 2;
  transform: translateZ(40px);
  background: var(--p-surface, #fff);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: var(--p-r-xl, 24px);
  overflow: hidden;
  box-shadow: 0 32px 64px -28px rgba(10, 26, 47, 0.35), 0 2px 6px rgba(10, 26, 47, 0.05);
  animation: p-float-card 9s ease-in-out infinite;
}
.hp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f6f9fd;
  border-bottom: 1px solid #eaf0f8;
}
.hp-dots { display: flex; gap: 5px; flex-shrink: 0; }
.hp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d9e2ef; }
.hp-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--p-text-3);
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 7px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hp-head { display: flex; align-items: center; gap: 11px; }
.hp-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--p-gradient-soft);
  color: #1e54cb;
  border: 1px solid rgba(30, 84, 203, 0.14);
}
.hp-title { flex: 1; min-width: 0; }
.hp-title b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-title small {
  display: block;
  font-size: 0.72rem;
  color: var(--p-text-3);
  margin-top: 2px;
}
.hp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.hp-metric {
  background: #f6f9fd;
  border: 1px solid #ecf1f9;
  border-radius: 12px;
  padding: 9px 10px;
}
.hp-metric span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-text-3);
}
.hp-metric b {
  display: block;
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--p-ink);
  margin-top: 2px;
}
.hp-track {
  height: 4px;
  border-radius: 999px;
  background: #e5ecf7;
  margin-top: 7px;
  overflow: hidden;
}
.hp-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--p-gradient);
}
.hp-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hp-btn {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 15px;
  white-space: nowrap;
}
.hp-btn-primary {
  color: #fff;
  background-image: var(--p-gradient);
  box-shadow: 0 6px 16px -6px rgba(30, 84, 203, 0.5);
}
.hp-btn-ghost {
  color: var(--p-text-2);
  background: #f4f7fc;
  border: 1px solid #e3eaf5;
}
.hp-plan { margin-left: auto; font-size: 0.68rem; color: var(--p-text-3); }

/* Kartu melayang - notifikasi pembuatan server */
.hp-toast {
  position: absolute;
  z-index: 3;
  top: -30px;
  right: -22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: 15px;
  box-shadow: 0 18px 40px -16px rgba(10, 26, 47, 0.3);
  transform: translateZ(95px);
  animation: p-float-card 7.5s ease-in-out infinite;
  animation-delay: -2.5s;
  white-space: nowrap;
}
.hp-ok {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ok-soft, #ECFDF5);
  color: var(--ok, #059669);
  border: 1px solid var(--ok-border, #A7F3D0);
}
.hp-toast b { display: block; font-size: 0.76rem; color: var(--p-ink); }
.hp-toast small { display: block; font-size: 0.67rem; color: var(--p-text-3); margin-top: 1px; }

/* Badge uptime */
.hp-badge {
  position: absolute;
  z-index: 3;
  bottom: -26px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 36px -16px rgba(10, 26, 47, 0.28);
  transform: translateZ(75px);
  animation: p-float-card 8.5s ease-in-out infinite;
  animation-delay: -5s;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--p-ink);
  white-space: nowrap;
}
.hp-badge svg { color: #1e54cb; flex-shrink: 0; }

/* Responsif hero preview */
@media (max-width: 940px) {
  .hero-3d-stage { min-height: clamp(330px, 56vw, 430px); }
  .hero-preview { width: min(400px, 100%); }
  .hp-toast { right: -8px; }
  .hp-badge { left: -8px; }
}
@media (max-width: 560px) {
  .hero-3d-stage { min-height: 355px; }
  .hero-preview { transform: rotateX(4deg) rotateY(0deg); }
  .hp-body { padding: 15px; }
  .hp-metrics { gap: 7px; }
  .hp-plan { display: none; }
}
@media (max-width: 400px) {
  .hp-badge { display: none; }
  .hp-toast { top: -24px; right: -4px; padding: 9px 12px; }
  .hp-metric b { font-size: 0.88rem; }
}

/* ============================================================
   BUTTON PREMIUM
   ============================================================ */
.btn-primary.btn-lg, .btn.btn-lg, .hero-actions .btn {
  border-radius: 14px;
}
.hero-actions .btn-primary {
  background-image: var(--p-gradient);
  background-size: 140% 140%;
  box-shadow: 0 10px 26px -10px rgba(99, 102, 241, 0.55);
  transition: transform 0.25s var(--p-ease-spring), box-shadow 0.3s var(--p-ease), background-position 0.4s ease;
}
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 34px -10px rgba(99, 102, 241, 0.65);
}
.hero-actions .btn-primary:active { transform: translateY(0) scale(0.98); }
.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 26, 47, 0.12);
  transition: transform 0.25s var(--p-ease-spring), border-color 0.25s, box-shadow 0.3s;
}
.hero-actions .btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 24px -12px rgba(10, 26, 47, 0.25);
}
.hero-note { opacity: 0.8; }

/* Tombol umum - micro-interaction */
.btn {
  transition: transform 0.22s var(--p-ease-spring), box-shadow 0.3s var(--p-ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }

/* ============================================================
   KARTU / BENTO PREMIUM
   ============================================================ */
.section { scroll-margin-top: 90px; }

.card.feature-card, .card.price-card {
  position: relative;
  border-radius: var(--p-r-lg);
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--p-shadow-card);
  background: var(--p-surface);
  transition: transform 0.35s var(--p-ease), box-shadow 0.35s var(--p-ease), border-color 0.3s;
  overflow: hidden;
}
.card.feature-card::after, .card.price-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(240,246,255,0.55));
  opacity: 0; 
  transition: opacity 0.35s var(--p-ease);
  pointer-events: none;
}
.card.feature-card:hover, .card.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--p-shadow-hover);
  border-color: rgba(99, 102, 241, 0.28);
}
.card.feature-card:hover::after, .card.price-card:hover::after { opacity: 1; }
.card.feature-card > *, .card.price-card > * { position: relative; z-index: 1; }

.feature-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f2fe, #e0e7ff);
  color: #4f46e5;
  transition: transform 0.4s var(--p-ease-spring), box-shadow 0.3s;
}
.feature-icon svg { width: 26px; height: 26px; }
.card.feature-card:hover .feature-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  box-shadow: var(--p-glow-cyan);
}

/* Kartu harga featured */
.card.featured {
  background: linear-gradient(160deg, #0c1830 0%, #16213f 60%, #1e1b4b 100%) !important;
  color: #e9eef7;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 48px -18px rgba(30, 27, 75, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-10px);
}
.card.featured:hover { transform: translateY(-16px); box-shadow: 0 28px 60px -18px rgba(30, 27, 75, 0.7); }
.card.featured .price-name, .card.featured .price-value { color: #fff; }
.card.featured .price-desc { color: #9db2d0; }
.card.featured .price-list li { color: #c6d4ea; }
.card.featured .price-list .check { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16,185,129,0.35); }
.card.featured::after { background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent 60%); }

.price-value { font-family: var(--font-sans); letter-spacing: -0.02em; }
/* Harga: ukuran asal 2.5rem (40px) mustahil muat - "Rp 400.000/bulan" pecah
   jadi "Rp"/angka dan luber melewati tepi kartu di kotak 162-192px (audit
   visual 2026-10-03). 26px menahan nilai terpanjang (~153px) di kotak
   terkecil, "/bulan" jadi baris kecil sendiri biar konsisten antar kartu;
   di 1-kolom (<=560px) kotak lebih lebar boleh 32px. */
.price-value { font-size: 1.625rem; line-height: 1.2; }
.price-value small { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: normal; margin-top: 2px; }
@media (max-width: 560px) {
  .price-value { font-size: 2rem; }
}

/* ============================================================
   STATS / CTA / FAQ
   ============================================================ */
.stats {
  border-block: 1px solid rgba(10, 26, 47, 0.06);
  background: linear-gradient(180deg, #f4f7fc, #eef4fd);
}
.stat-value { font-family: 'Space Grotesk', var(--font-sans); letter-spacing: -0.02em; }

.cta-band {
  position: relative;
  border-radius: var(--p-r-xl);
  background-image: var(--p-gradient);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(79, 70, 229, 0.55);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(300px 200px at 20% 0%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(400px 250px at 85% 100%, rgba(255,255,255,0.16), transparent 60%);
  pointer-events: none;
}
.cta-band h2, .cta-band p { position: relative; z-index: 1; }

/* FAQ */
.faq-item {
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: 14px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--p-ease);
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--p-shadow-hover); }
.faq-item summary { border-radius: 14px; transition: background 0.3s; }
.faq-item[open] summary { border-radius: 14px 14px 0 0; background: rgba(238, 242, 255, 0.5); }
.faq-item .faq-icon { transition: transform 0.35s var(--p-ease-spring), background 0.3s, color 0.3s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: #1e54cb; color: #fff; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  /* Alasan backdrop-filter (R-10): satu dari dua peran kaca yang diizinkan
     (peran kedua = .dash-header). Konten menembus di bawah header sticky. */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(10, 26, 47, 0.06);
  transition: box-shadow 0.35s var(--p-ease);
}
.site-header.scrolled { box-shadow: 0 8px 30px -14px rgba(10, 26, 47, 0.16); }
.nav-link { position: relative; transition: color 0.25s; }
.nav-link::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--p-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--p-ease);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ============================================================
   DASHBOARD - kartu & saldo premium
   ============================================================ */
.saldo-hero {
  position: relative;
  border-radius: var(--p-r-xl);
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(500px 260px at 10% 130%, rgba(30, 84, 203, 0.25), transparent 60%),
    linear-gradient(135deg, #0c1830 0%, #16213f 55%, #1e1b4b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(30, 27, 75, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}
.saldo-hero * { position: relative; z-index: 1; }
.saldo-hero-amount {
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #7dd3fc, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.saldo-hero .btn-primary {
  background-image: var(--p-gradient);
  box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.7);
}
.saldo-hero .btn-outline {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}
.saldo-hero .btn-outline:hover { background: rgba(255,255,255,0.16); color: #fff; }
.saldo-hero-right svg {
  width: 120px; height: 120px;
  color: rgba(255, 255, 255, 0.35);
  animation: p-float 6s ease-in-out infinite;
}

/* Kartu dash umum */
.card {
  border-radius: var(--p-r-lg);
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--p-shadow-card);
  transition: transform 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease);
}
.card:hover { box-shadow: var(--p-shadow-hover); }

/* Summary riwayat */
.tx-summary-item {
  border-radius: var(--p-r-md);
  border: 1px solid rgba(10, 26, 47, 0.07);
  background: var(--p-surface);
  box-shadow: var(--p-shadow-card);
  transition: transform 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease);
}
.tx-summary-item:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-hover); }

/* ============================================================
   AUTH (LOGIN / REGISTER) - animasi ambient
   ============================================================ */
.page-auth {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(30, 84, 203, 0.18), transparent 55%),
    linear-gradient(180deg, #f6f9fe 0%, #eef4fd 100%);
}
.auth-inner { position: relative; z-index: 1; }
.auth-card {
  border-radius: var(--p-r-xl);
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--p-shadow-glass);
  background: #ffffff;
  animation: p-scale-in 0.6s var(--p-ease) both;
}
.auth-logo { animation: p-fade-up 0.6s var(--p-ease) both; }

/* Input focus glow */
.form-group input, .form-group select, .form-group textarea {
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #1e54cb;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  outline: none;
}

/* ============================================================
   AUTH - toggle password (icon mata unik) & lupa password
   ============================================================ */
.pw-wrap { position: relative; }
html.js .pw-wrap input { padding-right: 56px; }
html:not(.js) .pw-toggle { display: none; }

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--p-ease-spring), box-shadow 0.3s var(--p-ease);
}
.pw-toggle:hover {
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.4);
  background: #fff;
  box-shadow: 0 4px 14px -6px rgba(99, 102, 241, 0.55);
}
.pw-toggle:active { transform: translateY(-50%) scale(0.9); }
.pw-toggle:focus-visible {
  outline: none;
  border-color: #1e54cb;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.pw-wrap.pw-visible .pw-toggle {
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(30, 84, 203, 0.14));
}

/* Dua ikon ditumpuk - crossfade + putaran halus (morph mata) */
.pw-ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.3s var(--p-ease), transform 0.4s var(--p-ease-spring);
}
.pw-ic svg { width: 20px; height: 20px; display: block; }
.pw-ic-eye { opacity: 1; transform: rotate(0) scale(1); }
.pw-ic-eye-off { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.pw-wrap.pw-visible .pw-ic-eye { opacity: 0; transform: rotate(90deg) scale(0.5); }
.pw-wrap.pw-visible .pw-ic-eye-off { opacity: 1; transform: rotate(0) scale(1); }

/* Kedip alami + pupil melirik - sentuhan unik (berhenti saat reduced-motion) */
.pw-ic-eye svg { transform-origin: center; animation: p-eye-blink 5s ease-in-out infinite; }
.pw-ic-eye svg circle { transform-box: fill-box; transform-origin: center; animation: p-pupil-glance 6s ease-in-out infinite; }
@keyframes p-eye-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
}
@keyframes p-pupil-glance {
  0%, 35%, 100% { transform: translateX(0); }
  48%, 62% { transform: translateX(2.4px); }
  76% { transform: translateX(-2px); }
}

/* Ripple pulse tiap kali toggle diklik (klas .pw-pulse ditambah main.js) */
.pw-toggle::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.65);
  opacity: 0;
  pointer-events: none;
}
.pw-toggle.pw-pulse::after { animation: p-pw-ripple 0.55s var(--p-ease); }
@keyframes p-pw-ripple {
  0% { opacity: 0.9; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* Baris "Ingat saya" + "Lupa password?" (kartu auth sempit, ruang vertikal mahal) */
.auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -10px;
  margin-bottom: clamp(20px, 5vw, 28px);
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-right: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.auth-remember:hover { color: var(--ink); }
.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
/* Cincin keyboard utk centang remember: rule global `input:focus` mematikan
   outline dan penggantinya box-shadow terlalu terang utk widget kecil ini,
   jadi ring digambar ulang di sini (R-32, spesifikasinya di atas input:focus). */
.auth-remember input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.auth-forgot {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e54cb;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.auth-forgot:hover { color: #0369a1; text-decoration: underline; }

/* Catatan mode demo (kode verifikasi) */
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s-15) var(--s-2);
  margin-bottom: var(--s-3);
  border: 1px dashed rgba(99, 102, 241, 0.45);
  border-radius: var(--p-r-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(30, 84, 203, 0.07));
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
}
.auth-note svg { flex-shrink: 0; margin-top: 2px; color: #1e54cb; }
.auth-note-code {
  display: inline-block;
  padding: 1px 10px;
  /* kurangi padding kanan sebesar letter-spacing terakhir agar center presisi */
  padding-right: calc(10px - 0.3em);
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #4f46e5;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3em;
}

/* Input kode verifikasi (OTP) */
.input-otp {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  /* tambah padding-left = ls agar optically center (kompensasi ls di akhir teks) */
  padding-left: calc(var(--s-2) + 0.4em);
  color: #4f46e5;
}
.input-otp::placeholder {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ============================================================
   RIWAYAT - tabel & kartu mobile premium
   ============================================================ */
.tx-table { border-radius: var(--p-r-lg); overflow: hidden; }
.tx-table thead th {
  background: #f4f7fc;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.tx-table tbody tr { transition: background-color 0.25s, transform 0.25s; }
.tx-table tbody tr:hover { background: rgba(238, 242, 255, 0.5); }

@media (max-width: 720px) {
  .tx-list-card {
    border-radius: var(--p-r-lg);
    border: 1px solid rgba(10, 26, 47, 0.07);
    box-shadow: var(--p-shadow-card);
    background: var(--p-surface);
    transition: transform 0.25s var(--p-ease), box-shadow 0.25s;
  }
  .tx-list-card:active { transform: scale(0.985); }
}

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-avatar {
  background-image: var(--p-gradient);
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6);
}
.info-row {
  border-radius: 12px;
  transition: background 0.25s;
}
.info-row:hover { background: rgba(238, 242, 255, 0.5); }

/* ============================================================
   UTILITAS & MISC
   ============================================================ */
/* body.page-in dihapus 2026-10-12 (lihat catatan di main.js): fade body
   memicu layout kedua + promosi layer seluruh dokumen, biang TBT mobile. */
.page-dashboard { animation: p-fade-in 0.35s var(--p-ease) both; }
.page-auth { animation: p-fade-in 0.35s var(--p-ease) both; }

/* ============================================================
   TIME GREETING - banner ucapan waktu di dashboard utama
   Background suasana: pagi/siang/sore/malam (hanya di header)
   ============================================================ */
.dash-time-greeting {
  position: relative;
  overflow: hidden;
  border-radius: var(--p-r-xl, 24px);
  margin-bottom: var(--s-4, 20px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 50px -28px rgba(15, 35, 70, 0.55);
  transition: background 0.9s var(--p-ease), color 0.6s var(--p-ease),
              transform 0.55s var(--p-ease), box-shadow 0.55s var(--p-ease);
  /* Animasi bob halus (pakai properti translate, bukan transform - tidak bentrok reveal) */
  animation: p-greeting-bob 6.8s ease-in-out infinite alternate;
}
.dash-time-greeting:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 36px 72px -32px rgba(12, 30, 68, 0.8);
}
/* Spesifisitas di atas html.js .reveal-in supaya hover lift & transisi background tetap jalan */
html.js .dash-time-greeting.reveal-in,
html.js .dash-time-greeting {
  transition: opacity 0.7s var(--p-ease), transform 0.55s var(--p-ease),
              background 0.9s var(--p-ease), color 0.6s var(--p-ease),
              box-shadow 0.55s var(--p-ease);
}
html.js .dash-time-greeting.reveal-in:hover,
html.js .dash-time-greeting:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 36px 72px -32px rgba(12, 30, 68, 0.8);
}

/* Shimmer sweep cahaya */
.dash-time-greeting::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.48) 48%, transparent 66%);
  background-size: 240% 100%;
  background-position: 240% 0;
  animation: p-greeting-sweep 6.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Glow melayang (layer cahaya radial bergerak) */
.dash-time-greeting::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse 42% 38% at 32% 50%, rgba(255,255,255,0.20), transparent 58%);
  animation: p-greeting-drift 13s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* PAGI (05:00–10:59) - warm sunrise, soft orange-pink */
.dash-time-greeting[data-time="pagi"] {
  background:
    radial-gradient(600px 220px at 88% -20%, rgba(255, 224, 150, 0.85), transparent 65%),
    radial-gradient(420px 200px at 8% 115%, rgba(96, 165, 250, 0.5), transparent 60%),
    linear-gradient(125deg, #2a5fa8 0%, #4d8fd6 38%, #7fb8e8 62%, #ffd5a3 100%);
  color: #f2f7ff;
}
.dash-time-greeting[data-time="pagi"] .text-muted { color: rgba(238, 244, 255, 0.88); }
.dash-time-greeting[data-time="pagi"] .eyebrow {
  color: #5b3a12; background: rgba(255, 244, 214, 0.55); border-color: rgba(255, 214, 150, 0.6);
}
.dash-time-greeting[data-time="pagi"] .decor-sun {
  background: radial-gradient(circle, #fff3c4 0%, #ffd166 45%, rgba(255, 209, 102, 0) 72%);
  width: 190px; height: 190px; right: -40px; top: -70px;
  animation: p-sun-rise 14s var(--p-ease) infinite alternate;
}

/* SIANG (11:00–14:59) - bright clear blue sky */
.dash-time-greeting[data-time="siang"] {
  background:
    radial-gradient(560px 240px at 84% -18%, rgba(186, 230, 253, 0.9), transparent 62%),
    radial-gradient(700px 300px at 30% 118%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(180deg, #5497f2 0%, #60a5fa 45%, #3b82f6 100%);
  color: #ffffff;
}
.dash-time-greeting[data-time="siang"] .text-muted { color: rgba(240, 248, 255, 0.9); }
.dash-time-greeting[data-time="siang"] .eyebrow {
  color: #0c4a6e; background: rgba(224, 242, 254, 0.6); border-color: rgba(125, 211, 252, 0.65);
}
.dash-time-greeting[data-time="siang"] .decor-sun {
  background: radial-gradient(circle, #ffffff 0%, #bae6fd 38%, rgba(186, 230, 253, 0) 70%);
  width: 230px; height: 230px; right: -52px; top: -92px;
  animation: p-sun-pulse 11s var(--p-ease) infinite alternate;
}

/* SORE (15:00–18:59) - golden hour, deep orange */
.dash-time-greeting[data-time="sore"] {
  background:
    radial-gradient(620px 260px at 90% 8%, rgba(254, 215, 170, 0.92), transparent 62%),
    radial-gradient(480px 240px at 4% 108%, rgba(124, 58, 237, 0.38), transparent 58%),
    linear-gradient(115deg, #7c2d12 0%, #c2410c 30%, #f97316 58%, #fdba74 100%);
  color: #fff7ed;
}
.dash-time-greeting[data-time="sore"] .text-muted { color: rgba(255, 243, 224, 0.9); }
.dash-time-greeting[data-time="sore"] .eyebrow {
  color: #7c2d12; background: rgba(255, 237, 213, 0.55); border-color: rgba(253, 186, 116, 0.6);
}
.dash-time-greeting[data-time="sore"] .decor-sun {
  background: radial-gradient(circle, #ffedd5 0%, #fb923c 42%, rgba(251, 146, 60, 0) 72%);
  width: 210px; height: 210px; right: -46px; top: -58px;
  animation: p-sun-set 16s var(--p-ease) infinite alternate;
}

/* MALAM (19:00–04:59) - deep night, stars + moon */
.dash-time-greeting[data-time="malam"] {
  background:
    radial-gradient(520px 240px at 82% -14%, rgba(99, 102, 241, 0.55), transparent 62%),
    radial-gradient(560px 260px at 10% 112%, rgba(14, 116, 144, 0.42), transparent 60%),
    linear-gradient(160deg, #0b1026 0%, #131a3f 42%, #1e1b4b 72%, #312e81 100%);
  color: #eef2ff;
  border-color: rgba(129, 140, 248, 0.28);
}
.dash-time-greeting[data-time="malam"] .text-muted { color: rgba(199, 210, 254, 0.85); }
.dash-time-greeting[data-time="malam"] .eyebrow {
  color: #c7d2fe; background: rgba(99, 102, 241, 0.16); border-color: rgba(129, 140, 248, 0.4);
}
.dash-time-greeting[data-time="malam"] .decor-sun { display: none; }
.dash-time-greeting[data-time="malam"] .decor-cloud,
.dash-time-greeting[data-time="malam"] .decor-cloud-2 { display: none; }
.dash-time-greeting[data-time="malam"] .decor-moon { display: block; }
.dash-time-greeting[data-time="malam"] .decor-star,
.dash-time-greeting[data-time="malam"] .decor-star-2,
.dash-time-greeting[data-time="malam"] .decor-star-3 { display: block; }

.dash-time-greeting-inner { position: relative; z-index: 2; max-width: 640px; }
.dash-time-greeting h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 10px 0 8px;
  text-shadow: 0 2px 18px rgba(10, 20, 50, 0.28);
}
.dash-time-greeting .time-username {
  background-image: linear-gradient(100deg, rgba(255,255,255,0.98), rgba(255,255,255,0.72));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-time-greeting .time-greeting-sub { margin: 0; font-size: clamp(0.92rem, 1.5vw, 1.04rem); }

/* Kata ucapan (Selamat Pagi/Siang/...) - animasi pop saat muncul */
.time-greeting-word {
  display: inline-block;
  animation: p-greeting-pop 0.75s var(--p-ease-spring) both;
  animation-delay: 0.3s;
}

/* ---- Dekorasi atmosferik ---- */
.dash-time-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.decor-sun {
  position: absolute; border-radius: 50%;
  filter: blur(2px);
}
.decor-moon {
  display: none; position: absolute; right: 56px; top: 38px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #f8fafc 0%, #e2e8f0 52%, #cbd5e1 100%);
  box-shadow: 0 0 46px 12px rgba(226, 232, 240, 0.28), inset -12px -10px 0 0 rgba(100, 116, 139, 0.22);
  animation: p-moon-float 18s var(--p-ease) infinite alternate;
}
.decor-cloud {
  position: absolute; left: -30px; bottom: -26px;
  width: 210px; height: 66px; border-radius: 999px;
  background: radial-gradient(circle at 28% 62%, rgba(255,255,255,0.85) 0 34%, rgba(255,255,255,0) 36%),
              radial-gradient(circle at 62% 48%, rgba(255,255,255,0.7) 0 30%, rgba(255,255,255,0) 32%),
              radial-gradient(circle at 86% 66%, rgba(255,255,255,0.55) 0 24%, rgba(255,255,255,0) 26%);
  filter: blur(1px);
}
.decor-cloud-2 {
  position: absolute; right: 12%; top: -18px;
  width: 150px; height: 48px; border-radius: 999px;
  background: radial-gradient(circle at 30% 60%, rgba(255,255,255,0.6) 0 32%, rgba(255,255,255,0) 34%),
              radial-gradient(circle at 70% 52%, rgba(255,255,255,0.45) 0 26%, rgba(255,255,255,0) 28%);
  filter: blur(1.5px);
}
.decor-star, .decor-star-2, .decor-star-3 {
  display: none; position: absolute; width: 4px; height: 4px;
  border-radius: 50%; background: #e0e7ff;
  box-shadow: 0 0 8px 2px rgba(224, 231, 255, 0.85);
}
.decor-star { left: 16%; top: 24%; }
.decor-star-2 { left: 44%; top: 16%; width: 3px; height: 3px; }
.decor-star-3 { left: 68%; top: 30%; width: 5px; height: 5px; }

@keyframes p-sun-pulse { from { transform: scale(1); opacity: 0.92; } to { transform: scale(1.07); opacity: 1; } }
@keyframes p-sun-rise { from { transform: translate(0, 14px); opacity: 0.9; } to { transform: translate(0, -8px); opacity: 1; } }
@keyframes p-sun-set { from { transform: translate(0, -10px); opacity: 1; } to { transform: translate(0, 16px); opacity: 0.85; } }
@keyframes p-moon-float { from { transform: translate(0, 0); } to { transform: translate(-8px, 10px); } }
@keyframes p-greeting-bob { from { translate: 0 0; } to { translate: 0 -9px; } }
@keyframes p-greeting-sweep { from { background-position: -240% 0; opacity: 0; } 18% { opacity: 1; } 28% { opacity: 0; } to { background-position: 240% 0; opacity: 0; } }
@keyframes p-greeting-drift { from { translate: -6% -4%; } to { translate: 10% 8%; } }
@keyframes p-greeting-pop { from { opacity: 0; transform: translateY(14px) scale(0.88); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 640px) {
  .dash-time-greeting { min-height: 160px; padding: 24px 20px; border-radius: var(--p-r-lg, 18px); }
  .dash-time-greeting h2 { font-size: 1.45rem; }
  .decor-sun { width: 140px !important; height: 140px !important; right: -56px !important; top: -56px !important; }
  .decor-moon { width: 56px; height: 56px; right: 26px; top: 22px; }
  .decor-cloud { width: 150px; height: 48px; }
  .decor-cloud-2 { display: none; }
}

.text-gradient {
  background: var(--p-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #1e54cb;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
}
/* Eyebrow tidak punya dot lagi (R-09): titik hanya boleh menandai status
   nyata, sedangkan eyebrow itu label halaman (Pembayaran, Ringkasan Hari
   Ini, dan seterusnya), bukan status. Empat varian warna dot per waktu
   (pagi/siang/sore/malam) ikut dibuang, bukan ditinggal jadi aturan mati.
   Penanda status yang sah tetap ada di .status-dot pada .status-pill. */

/* Alert masuk dengan animasi */
.alert {
  animation: p-fade-up 0.45s var(--p-ease) both;
  border-radius: 12px;
}

/* Scrollbar halus (non-fungsional, hanya gaya) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#94a3b8, #64748b);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #475569; background-clip: padding-box; }

/* Logo glow kecil */
.logo svg rect { transition: filter 0.3s; }
.logo:hover svg rect { filter: brightness(1.15); }

/* Fokus aksesibilitas */
:focus-visible {
  outline: 2px solid #1e54cb;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Server Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pill .status-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.status-pill.status-online { background: rgba(34, 197, 94, 0.18); color: #166534; }
.status-pill.status-maintenance { background: rgba(234, 88, 12, 0.18); color: #9a3412; }
.status-pill.status-offline { background: rgba(107, 114, 128, 0.18); color: #4b5563; }

/* Status realtime (polling /servers/status): installing + warna titik */
.status-pill.status-installing { background: rgba(59, 130, 246, 0.16); color: #1d4ed8; }
.status-pill.status-failed { background: rgba(239, 68, 68, 0.16); color: #b91c1c; }
.status-pill.status-online .status-dot { background: #166534; animation: p-dot-blink 2.2s ease-in-out infinite; }
.status-pill.status-maintenance .status-dot { background: #9a3412; animation: p-dot-blink 1s ease-in-out infinite; }
.status-pill.status-installing .status-dot { background: #1d4ed8; animation: p-dot-blink 1s ease-in-out infinite; }
.status-pill.status-failed .status-dot { background: #b91c1c; animation: p-dot-blink 1s ease-in-out infinite; }
.status-pill.status-offline .status-dot { background: #4b5563; }
.status-pill.pill-tick { animation: p-pill-tick 0.45s ease; }
@keyframes p-dot-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.7); } }
@keyframes p-pill-tick { 0% { transform: scale(0.85); opacity: 0.4; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .status-pill .status-dot, .status-pill.pill-tick { animation: none !important; }
}

/* ============================================================
   BUY SERVER - WIZARD 4 LANGKAH
   ============================================================ */

/* --- Tombol: disabled + loading state --- */
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: p-spin 0.7s linear infinite;
}

/* --- Stepper progres --- */
.wiz-stepper {
  list-style: none;
  margin: 0 0 20px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--p-r-lg, 20px);
  box-shadow: var(--p-shadow-card);
  counter-reset: wiz;
  scroll-margin-top: 96px;
}
.wiz-step {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: var(--p-r-md, 14px);
}
/* Penghubung antar langkah (garis dari label ke dot berikutnya) */
.wiz-step::after {
  content: '';
  flex: 1;
  min-width: 12px;
  height: 2px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: background 0.3s var(--p-ease, ease);
}
.wiz-step:last-child::after { display: none; }
.wiz-step.is-done::after { background: #10b981; }
.wiz-step.is-clickable { cursor: pointer; }
.wiz-step.is-clickable:hover .wiz-dot { border-color: #1e54cb; color: #1e54cb; }
.wiz-dot {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  color: var(--p-text-3, #5a6f84);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.3s var(--p-ease, ease);
}
.wiz-check { width: 15px; height: 15px; display: none; }
.wiz-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wiz-text strong { font-size: 0.83rem; color: var(--p-text-3, #5a6f84); font-weight: 700; transition: color 0.25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-text small { font-size: 0.7rem; color: var(--p-text-3, #5a6f84); opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wiz-step.is-active .wiz-dot {
  border-color: transparent;
  background: var(--p-gradient, linear-gradient(135deg, #5497f2, #1e54cb));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.65);
  transform: scale(1.08);
}
.wiz-step.is-active .wiz-text strong { color: var(--p-ink, #0a1a2f); }
.wiz-step.is-active .wiz-text small { opacity: 1; color: #1e54cb; }

.wiz-step.is-done .wiz-dot {
  border-color: transparent;
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px -5px rgba(16, 185, 129, 0.7);
}
.wiz-step.is-done .wiz-num { display: none; }
.wiz-step.is-done .wiz-check { display: block; }
.wiz-step.is-done .wiz-text strong { color: var(--p-ink, #0a1a2f); }

/* --- Chips pilihan live --- */
.wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
  min-height: 0;
}
.wiz-chips:empty { display: none; }
.wiz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--p-text-2, #445a75);
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  animation: p-fade-up 0.4s var(--p-ease, ease) both;
}
@keyframes p-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Kartu wizard (setiap langkah) --- */
html.js .wizard-step { display: none; }
html.js .wizard-step.active { display: block; animation: wiz-step-in 0.45s var(--p-ease, ease) both; }
@keyframes wiz-step-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.buy-server-wizard {
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--p-r-xl, 28px);
  box-shadow: var(--p-shadow-card);
  padding: clamp(20px, 4vw, 36px);
}
/* Elemen [hidden] di dalam wizard harus benar-benar hilang: .btn (tombol
   Bayar) men-set display inline-flex yg mengalahkan gaya bawaan [hidden]. */
.buy-server-wizard [hidden] { display: none !important; }
.step-head { margin-bottom: 22px; }
.step-head h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -0.02em; margin-top: 12px; color: var(--p-ink, #0a1a2f); }
.step-head .text-muted { margin-top: 6px; font-size: 0.9rem; }
.step-indicator { display: inline-flex; align-items: center; gap: 9px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #1e54cb; }
.step-indicator .step-num {
  background: var(--p-gradient, linear-gradient(135deg, #5497f2, #1e54cb));
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.wiz-empty { padding: 24px; text-align: center; grid-column: 1 / -1; }

/* --- Grid kartu nest (jenis server) --- */
.nest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.nest-card {
  min-width: 0;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--p-r-lg, 20px);
  padding: 16px;
  transition: border-color 0.25s var(--p-ease, ease), box-shadow 0.25s var(--p-ease, ease), transform 0.25s var(--p-ease, ease);
}
.nest-card:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: var(--p-shadow-hover); transform: translateY(-2px); }
.nest-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nest-ic {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--p-gradient-soft, linear-gradient(135deg, #e0f2fe, #ede9fe));
  border-radius: 12px;
  flex-shrink: 0;
}
.nest-name { font-weight: 800; font-size: 0.97rem; color: var(--p-ink, #0a1a2f); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nest-count {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e54cb;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.nest-card-body { display: grid; gap: 8px; }
.egg-list { display: grid; gap: 8px; min-width: 0; }

/* Opsi egg (radio card) */
.egg-option {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.7);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--p-ease, ease), box-shadow 0.2s;
}
.egg-option:hover { border-color: rgba(99, 102, 241, 0.5); background: #fff; transform: translateX(3px); }
.egg-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.egg-option-content { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.egg-option-content strong { font-size: 0.875rem; font-weight: 700; color: var(--p-ink, #0a1a2f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.egg-option-content small { font-size: 0.73rem; color: var(--p-text-3, #5a6f84); }
.egg-tick {
  flex-shrink: 0;
  width: 21px; height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s var(--p-ease, ease);
}
.egg-tick svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.4); transition: all 0.2s var(--p-ease-spring, ease); color: #fff; }
.egg-option.is-selected,
.egg-option:has(input:checked),
.region-option:has(input:checked) {
  border-color: #1e54cb;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 4px 14px -8px rgba(99, 102, 241, 0.7);
}
.egg-option.is-selected .egg-tick,
.egg-option:has(input:checked) .egg-tick,
.region-option:has(input:checked) .egg-tick {
  background: linear-gradient(135deg, #5497f2, #1e54cb);
  border-color: transparent;
}
.egg-option.is-selected .egg-tick svg,
.egg-option:has(input:checked) .egg-tick svg,
.region-option:has(input:checked) .egg-tick svg { opacity: 1; transform: scale(1); }

/* --- Panel versi (muncul setelah egg dipilih) --- */
.version-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.75), rgba(237, 233, 254, 0.75));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--p-r-lg, 20px);
}
.version-selector[hidden] { display: none; }
.version-selector.is-open { animation: wiz-step-in 0.4s var(--p-ease, ease) both; }
.version-ic {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: #fff;
  border-radius: 13px;
  box-shadow: var(--p-shadow-card);
  flex-shrink: 0;
}
.version-field { flex: 1; min-width: 0; }
.version-field .form-label { margin-bottom: 6px; font-size: 0.78rem; }
.version-field .form-select { background: #fff; }
.version-note { font-size: 0.76rem; flex-shrink: 0; max-width: 200px; text-align: right; }

/* --- Region --- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}
.region-option {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--p-r-lg, 20px);
  cursor: pointer;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.18s var(--p-ease, ease);
}
.region-option:hover { border-color: rgba(99, 102, 241, 0.5); transform: translateY(-2px); box-shadow: var(--p-shadow-card); }
.region-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.region-flag {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: var(--p-gradient-soft, linear-gradient(135deg, #e0f2fe, #ede9fe));
  border-radius: 14px;
  flex-shrink: 0;
}
.region-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.region-copy strong { font-size: 1rem; font-weight: 800; color: var(--p-ink, #0a1a2f); }
.region-copy small { font-size: 0.75rem; color: var(--p-text-3, #5a6f84); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Stok per lokasi (step 2). Spesifikasinya harus di atas `.region-copy small`. */
.region-copy .region-stock { font-size: 0.72rem; font-weight: 700; color: #1e54cb; }
.region-copy .region-stock.is-free { color: var(--p-text-3, #5a6f84); font-weight: 600; }
.region-copy .region-stock.is-full { color: #b91c1c; }
.region-option:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.region-option:has(input:disabled):hover { transform: none; box-shadow: none; border-color: rgba(148, 163, 184, 0.3); }

/* --- Plan cards --- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 16px;
}
.plan-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 18px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--p-r-lg, 20px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.25s var(--p-ease, ease), transform 0.2s var(--p-ease, ease);
}
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--p-gradient, linear-gradient(135deg, #5497f2, #1e54cb));
  opacity: 0;
  transition: opacity 0.25s;
}
.plan-card:hover { border-color: rgba(99, 102, 241, 0.45); transform: translateY(-4px); box-shadow: var(--p-shadow-hover); }
.plan-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-card:has(input:checked) {
  border-color: #1e54cb;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16), var(--p-shadow-card);
}
.plan-card:has(input:checked)::before { opacity: 1; }
.plan-badge {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--p-gradient, linear-gradient(135deg, #5497f2, #1e54cb));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.6);
}
.plan-check {
  flex-shrink: 0;
  width: 21px; height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s var(--p-ease, ease);
}
.plan-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(0.4); transition: all 0.2s var(--p-ease-spring, ease); }
.plan-card:has(input:checked) .plan-check {
  background: linear-gradient(135deg, #5497f2, #1e54cb);
  border-color: transparent;
}
.plan-card:has(input:checked) .plan-check svg { opacity: 1; transform: scale(1); }
.plan-tier { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #1e54cb; margin-top: 4px; min-width: 0; }
.plan-card:has(.plan-badge) .plan-tier { padding-right: 78px; overflow: hidden; }
.plan-price { display: flex; flex-direction: column; gap: 1px; }
.plan-price strong {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--p-gradient-text, linear-gradient(120deg, #0284c7, #1e54cb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-price small { font-size: 0.72rem; color: var(--p-text-3, #5a6f84); }
.plan-specs { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(148, 163, 184, 0.4); display: grid; gap: 7px; }
.plan-specs li { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.plan-specs span { color: var(--p-text-3, #5a6f84); }
.plan-specs b { color: var(--p-ink, #0a1a2f); font-weight: 700; }

/* --- Step nav (tombol) --- */
.step-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.step-nav .step-next { margin-left: auto; }
.step-hint { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--p-text-3, #5a6f84); font-weight: 500; transition: color 0.25s; }
.step-hint a { font-weight: 700; }
.step-hint.is-ok { color: #059669; font-weight: 700; }
.step-hint.is-warn { color: #dc2626; font-weight: 700; }
.wizard-step[data-step="1"] .step-back { visibility: hidden; }

/* Tanpa JS: kontrol wizard disembunyikan (wizard butuh JS - lihat <noscript>) */
html:not(.js) .wiz-stepper,
html:not(.js) .wiz-chips,
html:not(.js) .step-nav { display: none; }
html:not(.js) .receipt { display: none; }
html:not(.js) .wiz-two-col { grid-template-columns: 1fr; }

/* --- Step 4: dua kolom (form + struk) --- */
.wiz-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 24px;
  align-items: start;
}
.wiz-cred-form .form-group { margin-bottom: 18px; }
.field-note { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--p-text-3, #5a6f84); line-height: 1.5; }
.field-opt { font-size: 0.72rem; font-weight: 600; color: var(--p-text-3, #5a6f84); text-transform: uppercase; letter-spacing: 0.05em; }
.required { color: #b91c1c; }
.form-input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.form-input.is-valid { border-color: #10b981; }
.cred-pw { position: relative; }
.cred-pw .form-input { padding-right: 52px; }

/* --- Struk ringkasan --- */
.receipt {
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--p-r-lg, 20px);
  padding: 20px;
  box-shadow: var(--p-shadow-card);
  position: sticky;
  top: 90px;
}
.receipt h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1e54cb;
  margin-bottom: 14px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.86rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}
.receipt-row span { color: var(--p-text-3, #5a6f84); flex-shrink: 0; }
.receipt-row strong {
  color: var(--p-ink, #0a1a2f);
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt-row strong.is-short { color: #dc2626; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px solid var(--p-ink, #0a1a2f);
}
.receipt-total span { font-size: 0.85rem; font-weight: 700; color: var(--p-ink, #0a1a2f); }
.receipt-total strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--p-gradient-text, linear-gradient(120deg, #0284c7, #1e54cb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Kartu konfirmasi centang --- */
.confirm-card {
  margin-top: 16px;
  padding: 15px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(30, 84, 203, 0.07));
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: 14px;
}
.confirm-card .checkbox-wrapper { margin-bottom: 0; display: flex; align-items: flex-start; gap: 11px; padding-left: 0; }
.confirm-card .checkbox-text { padding-left: 0; font-size: 0.84rem; line-height: 1.55; color: var(--p-text-2, #445a75); }
.confirm-card .checkbox-text strong { color: var(--p-ink, #0a1a2f); }

.checkbox-wrapper { position: relative; cursor: pointer; }
.checkbox-wrapper input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  color: transparent;
  transition: all 0.2s var(--p-ease, ease);
  user-select: none;
}
.checkbox-wrapper:hover .checkmark { border-color: #1e54cb; }
.checkbox-wrapper input:checked ~ .checkmark {
  background: linear-gradient(135deg, #10b981, #5497f2);
  border-color: transparent;
  color: #fff;
}
.checkbox-wrapper input:focus-visible ~ .checkmark { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }

/* --- Peringatan saldo kurang --- */
.balance-warn {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #b91c1c;
  animation: wiz-step-in 0.3s var(--p-ease, ease) both;
}
.balance-warn.is-show { display: flex; }

/* --- Modal sukses + kredensial --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: p-fade-in 0.25s ease both;
}
.modal {
  background: #fff;
  border-radius: var(--p-r-xl, 24px);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--p-shadow-glass);
  border: 1.5px solid rgba(148, 163, 184, .35);
  animation: modal-pop 0.45s var(--p-ease-spring, ease) both;
}
@keyframes modal-pop { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.modal-title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.success-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10b981, #5497f2);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.8);
}
.success-icon svg { width: 22px; height: 22px; }
.confirm-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5497f2, #1e54cb);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(30,84,203,.35);
}
.confirm-icon svg { width: 22px; height: 22px; }
.modal-header h2 { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--p-ink, #0a1a2f); }
.modal-sub { font-size: 0.8rem; color: var(--p-text-3, #5a6f84); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close {
  background: rgba(148, 163, 184, 0.12);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--p-text-2, #445a75);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; transform: rotate(90deg); }
.modal-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-note {
  font-size: 0.8rem;
  color: var(--p-text-3, #5a6f84);
  background: rgba(250, 204, 21, 0.1);
  border: 1px dashed rgba(202, 138, 4, 0.45);
  border-radius: 12px;
  padding: 11px 14px;
  line-height: 1.5;
}

.cred-list { display: grid; gap: 13px; }
.cred-row { display: grid; gap: 6px; }
.cred-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-text-3, #5a6f84);
}
.cred-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: #f6f8fc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.cred-field:focus-within { border-color: #1e54cb; }
.cred-field code, .cred-link {
  flex: 1;
  min-width: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-ink, #0a1a2f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cred-link { color: #0369a1; text-decoration: none; }
.cred-link:hover { text-decoration: underline; }
.btn-copy {
  flex-shrink: 0;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e54cb;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s var(--p-ease, ease);
}
.btn-copy:hover { background: #1e54cb; color: #fff; border-color: transparent; }
.btn-copy.is-done { background: #10b981; color: #fff; border-color: transparent; }

/* ============================================================
   FIX popup kredensial (showSuccessModal) - intrinsic min-content
   (teks nowrap di grid/flex tanpa min-width:0) menolak menyusut →
   isi tumpah keluar modal (field 696px, tombol Salin & × hilang,
   footer tumpah ke kiri di layar sempit).
   ============================================================ */
.modal-title-wrap > div { min-width: 0; }            /* sub nowrap boleh ellipsis, judul wrap */
.cred-row { grid-template-columns: minmax(0, 1fr); } /* track kolom ikut lebar modal, bukan teks */
.cred-field { min-width: 0; overflow: hidden; }      /* automatic min size = 0 → ikut menyusut */
.modal-footer {
  flex-wrap: wrap;
  /* Footer CTA selalu terlihat: saat konten lebih tinggi dari layar,
     footer menempel (sticky) di dasar modal - tak perlu scroll dalam. */
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 1;
}
.modal-footer .btn {
  flex: 1 1 auto;
  min-width: 132px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 420px) {
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; min-width: 0; }
}

/* --- Alert dinamis (error top) --- */
.alert-error-top { margin-top: 4px; margin-bottom: 18px; }

/* --- Captcha (Cloudflare Turnstile) ---
   Wadah widget di form auth + top-up: tengah, tinggi minimum supaya layout
   tidak melompat saat widget selesai dirender (Turnstile ~65px). */
.captcha-field {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
  min-height: 65px;
}
@media (max-width: 420px) {
  .captcha-field { min-height: 63px; margin: 4px 0 12px; }
}

/* --- Status ketersediaan username panel (input[data-panel-username-check]) ---
   Ditulis main.js; tersembunyi selama kosong (`:not(:empty)`). Warna lolos
   kontras min 4.5:1 di kartu putih (#15803d 4.7:1, #b91c1c 5.9:1,
   #a16207 4.9:1). */
.panel-user-status {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  display: none;
}
.panel-user-status:not(:empty) { display: block; }
.panel-user-status.is-free { color: #15803d; }
.panel-user-status.is-taken { color: #b91c1c; }
.panel-user-status.is-warn { color: #a16207; }
.panel-user-status.is-plain,
.panel-user-status.is-checking { color: #475569; }

/* ============================================================
   IKON SVG (pengganti emoji) - konsisten di semua halaman
   ============================================================ */
/* Nav dashboard: beri jarak ikon–teks (SVG butuh gap, emoji dulu andalkan bearing) */
.dash-link { display: inline-flex; align-items: center; gap: 7px; }
.dash-link-icon { display: inline-flex; align-items: center; line-height: 0; }
.dash-link-icon svg { display: block; }

/* Ikon dalam bingkai kartu wizard */
.nest-ic { color: #5497f2; }
.nest-ic svg, .version-ic svg, .region-flag svg { display: block; }
.region-flag { color: #1e54cb; }
.version-ic { color: #5497f2; }

/* Ikon di chips pilihan live */
.wiz-chip svg { flex-shrink: 0; color: #1e54cb; }

/* Ikon peringatan saldo + catatan modal */
.balance-warn span { display: inline-flex; align-items: center; gap: 8px; }
.balance-warn span svg { flex-shrink: 0; }
.modal-note { display: flex; align-items: flex-start; gap: 8px; }
.modal-note svg { flex-shrink: 0; margin-top: 3px; color: #b45309; }

/* ============================================================
   HALAMAN SERVER SAYA (servers.ejs) - kartu konsisten
   ============================================================ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}
.srv-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--p-r-lg, 20px);
  padding: 20px;
  box-shadow: var(--p-shadow-card);
  transition: border-color 0.25s var(--p-ease, ease), box-shadow 0.25s var(--p-ease, ease), transform 0.25s var(--p-ease, ease);
}
.srv-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--p-shadow-hover);
  transform: translateY(-3px);
}

.srv-top { display: flex; align-items: flex-start; gap: 12px; }
.srv-ic {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--p-gradient-soft, linear-gradient(135deg, #e0f2fe, #ede9fe));
  border-radius: 14px;
  color: #5497f2;
  flex-shrink: 0;
}
.srv-ic svg { display: block; }
.srv-id { flex: 1; min-width: 0; }
.srv-name {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--p-ink, #0a1a2f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.srv-tag {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--p-text-2, #445a75);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-tag-alt { color: #1e54cb; background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.25); }

.srv-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
}
.srv-specs > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srv-specs span {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p-text-3, #5a6f84);
}
.srv-specs b {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--p-ink, #0a1a2f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-creds { gap: 11px; }
.srv-creds .cred-field input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  /* Tanpa `outline: none`: rule ini spesifikasinya lebih tinggi daripada
     :focus-visible global, jadi menyetelnya = mematikan ring fokus keyboard.
     Border pembungkus sudah berubah lewat .cred-field:focus-within, tetapi
     ring input sendiri tetap dibutuhkan (R-32). */
  background: transparent;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-ink, #0a1a2f);
}
/* Ring fokus eksplisit untuk input kredensial. `input:focus` di style.css
   mematikan outline dengan spesifikasitas lebih tinggi daripada
   :focus-visible global, jadi rule sendiri diperlukan (R-32). Ring bawaan
   berwarna #e8effe nyaris tak terlihat di atas kartu putih. */
.srv-creds .cred-field input:focus-visible {
  outline: 2px solid #1e54cb;
  outline-offset: 3px;
  border-radius: 6px;
}

.srv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.srv-created { font-size: 0.73rem; font-weight: 600; color: var(--p-text-3, #5a6f84); }
.srv-foot .btn { flex-shrink: 0; }

/* Tombol Buka Panel (.srv-open) - cegah klik-panjang (iOS callout) dan
   seleksi/salin teks link; blokir context menu via JS di servers.ejs. */
.srv-open {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 560px) {
  .srv-card { padding: 16px; gap: 13px; border-radius: 16px; }
  .srv-top { gap: 10px; }
  .srv-ic { width: 40px; height: 40px; border-radius: 12px; }
  .srv-specs { padding: 12px 13px; gap: 10px; }
  .srv-foot { padding-top: 12px; }
  .srv-created { display: none; }
  .srv-foot .btn { width: 100%; }
}

/* ============================================================
   RESPONSIVE GLOBAL - semua halaman
   ============================================================ */
@media (max-width: 1024px) {
  .card.featured { transform: translateY(0); }
  .card.featured:hover { transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .hero-grid { padding-top: clamp(40px, 9vw, 60px); }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .section-head h2 { font-size: 1.5rem; }
  .cta-band { padding: 40px 24px !important; }
  .saldo-hero { border-radius: var(--p-r-lg); }
  .card, .auth-card, .tx-summary-item, .tx-list-card { border-radius: var(--p-r-md); }
  .plan-grid { grid-template-columns: 1fr; }

  /* Wizard beli server - mobile */
  .buy-server-wizard { padding: 18px 16px; border-radius: var(--p-r-lg); }
  .wiz-stepper { padding: 14px 12px; gap: 2px; scroll-margin-top: 84px; }
  .wiz-step { gap: 6px; padding: 4px 2px; }
  .wiz-dot { width: 28px; height: 28px; font-size: 0.75rem; }
  .wiz-text strong { font-size: 0.7rem; }
  .wiz-text small { display: none; }
  .step-nav { flex-wrap: wrap; gap: 10px; }
  .step-hint { order: 3; flex-basis: 100%; text-align: center; }
  .step-nav .btn { flex: 1; }
  .step-nav .step-next { margin-left: 0; }
  .version-selector { flex-wrap: wrap; }
  .version-note { max-width: none; text-align: left; }
  .receipt { position: static; }
  .plan-card:has(.plan-badge) .plan-tier { padding-right: 74px; }
}
@media (max-width: 480px) {
  /* Stepper: hanya dot + garis (label terpotong di layar sempit) */
  .wiz-text { display: none; }
  .wiz-step { gap: 8px; }
  .wiz-step::after { min-width: 8px; }
}
@media (max-width: 900px) {
  .wiz-two-col { grid-template-columns: 1fr; }
  .receipt { position: static; }
}

/* ============ Lonceng notifikasi (navbar dashboard) ============ */
.bell-wrap { position: relative; display: flex; align-items: center; }
.dash-bell {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--p-line, #dbe8f4);
  background: var(--p-card, #fff);
  color: var(--p-ink, #0a1a2f);
  cursor: pointer;
  transition: transform .2s var(--p-ease-spring, ease), box-shadow .2s, background .2s, color .2s;
}
.dash-bell:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(2, 132, 199, .45); }
.dash-bell.active { background: #eef6ff; border-color: #bfdbfe; color: #2563eb; }
.bell-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #b91c1c; color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 1;
  border: 2px solid var(--p-card, #fff);
}
.bell-badge[hidden] { display: none; }
.bell-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(370px, calc(100vw - 28px));
  background: var(--p-card, #fff);
  border: 1px solid var(--p-line, #dbe8f4);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10, 26, 47, .16);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .18s var(--p-ease-spring, ease), visibility .18s;
  z-index: 70;
  overflow: hidden;
}
.bell-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #eef4fa; }
.bell-head strong { font-size: .85rem; color: var(--p-ink, #0a1a2f); }
.bell-hint { font-size: .68rem; color: #b91c1c; font-weight: 700; }
.bell-list { max-height: 340px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bell-item { padding: 10px 12px; border-radius: 12px; background: #f7fafd; border: 1px solid #eef4fa; }
.bell-item.unread { background: #eff6ff; border-color: #dbeafe; box-shadow: inset 3px 0 0 #3b82f6; }
.bell-item strong { display: block; font-size: .82rem; color: var(--p-ink, #0a1a2f); line-height: 1.4; }
.bell-item p { margin: 3px 0 0; font-size: .74rem; color: #5b7189; line-height: 1.5; }
.bell-item small { display: block; margin-top: 5px; font-size: .66rem; color: #5b7189; }
.bell-empty { text-align: center; padding: 26px 12px; font-size: .8rem; color: #5b7189; }
/* State error polling (R-27): muncul hanya saat fetch gagal, hilang sendiri
   di polling berikutnya. Warna sama dengan .alert-error yang sudah lulus AA. */
.poll-error {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 10px 14px;
  border: 1px solid #fecaca; border-radius: 14px;
  background: #fef2f2; color: #b91c1c;
  font-size: .8rem; font-weight: 600; line-height: 1.45;
}
.poll-error[hidden] { display: none; }
.poll-error svg { flex-shrink: 0; }
.bell-error {
  margin: 0; padding: 22px 12px;
  border: 1px solid #fecaca; border-radius: 12px;
  background: #fef2f2; color: #b91c1c;
  text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.5;
}

/* ============ Masa aktif server (badge hitung mundur expiry) ============ */
.srv-expiry {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .76rem;
}
.srv-expiry svg { flex-shrink: 0; }
.srv-expiry-label { opacity: .75; }
.srv-expiry-left { font-weight: 800; }
.srv-expiry-date { margin-left: auto; opacity: .85; font-size: .72rem; }
.srv-expiry.ok { background: #f0fdf4; border-color: #dcfce7; color: #15803d; }
.srv-expiry.warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.srv-expiry.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; animation: p-expiry-pulse 1.6s ease-in-out infinite; }
@keyframes p-expiry-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .16); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .08); }
}

/* ============ Aksi kartu server (Perpanjang + Buka Panel) ============ */
.srv-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.btn-renew { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.btn-renew:hover { background: #dbeafe; transform: translateY(-1px); }
.btn-renew:disabled { opacity: .6; cursor: wait; transform: none; }
.renew-warn { color: #b91c1c; font-weight: 600; }
.renew-warn a { color: #2563eb; font-weight: 800; }

@media (max-width: 560px) {
  .bell-panel { position: fixed; top: 66px; right: 12px; left: 12px; width: auto; }
  .srv-actions { width: 100%; margin-left: 0; }
  .srv-actions .btn { flex: 1; justify-content: center; }
  .srv-expiry-date { margin-left: 0; width: 100%; }
}
/* Di rentang laptop sempit (961–1100px) nama user + bell membuat navbar
   melebihi lebar layar (+22px @1024) - sembunyikan nama (avatar tetap). */
@media (max-width: 1100px) {
  .dash-actions .dash-user-name { display: none; }
}

/* ============================================================
   HALAMAN TOP UP (top-up.ejs) - lapisan premium, konsisten dgn
   halaman Server/Beli Server: kartu putih radius 20, chip pilihan,
   input bergaya sama, ikon SVG stroke (tanpa kotak warna-warni).
   ============================================================ */
.tu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tu-side { display: grid; gap: 18px; }

.tu-card {
  background: var(--p-card, #fff);
  border: 1px solid var(--p-line, #e4edf6);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px -22px rgba(10, 26, 47, 0.25);
}
.tu-card-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef4fa;
}
.tu-card-head h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--p-ink, #0a1a2f);
}
.tu-card-head .text-muted { margin-top: 4px; font-size: 0.83rem; }

.tu-form { display: flex; flex-direction: column; gap: 16px; }
.tu-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tu-label { font-size: 0.8rem; font-weight: 700; color: var(--p-ink, #0a1a2f); }
.tu-opt { font-weight: 500; color: var(--p-text-3, #5a6f84); }
.tu-hint { font-size: 0.72rem; color: var(--p-text-3, #5a6f84); }

/* Chip nominal cepat (state selected = aksen sky, satu warna tema) */
.tu-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-chip {
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid #dbe6f1;
  background: #f8fbfe;
  color: var(--p-text-2, #445a75);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.tu-chip:hover { border-color: #7dd3fc; color: #0369a1; transform: translateY(-1px); }
.tu-chip.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

/* Input (nominal / select / textarea) - gaya sama dgn form wizard */
.tu-input-wrap { position: relative; display: flex; align-items: center; }
.tu-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--p-text-3, #5a6f84);
  pointer-events: none;
}
.tu-input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--p-ink, #0a1a2f);
  background: #f8fbfe;
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.tu-input-wrap .tu-input { padding-left: 40px; }
.tu-input::placeholder { color: var(--text-3); }
.tu-input:focus {
  outline: none;
  border-color: #5497f2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.tu-input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.tu-input[type='number']::-webkit-outer-spin-button,
.tu-input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tu-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.tu-textarea { resize: vertical; min-height: 74px; line-height: 1.55; }

/* Catatan proses di bawah tombol */
.tu-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.77rem;
  color: var(--p-text-3, #5a6f84);
  line-height: 1.5;
}
.tu-note svg { flex-shrink: 0; margin-top: 2px; color: #0284c7; }

/* Kartu saldo */
.tu-balance-amount {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--p-ink, #0a1a2f);
  font-variant-numeric: tabular-nums;
}
.tu-balance-sub { margin-top: 8px; font-size: 0.82rem; line-height: 1.55; }
.tu-limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.tu-limit {
  background: #f6fafd;
  border: 1px solid #e8f1f9;
  border-radius: 13px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tu-limit span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--p-text-3, #5a6f84);
}
.tu-limit b { font-size: 0.9rem; color: var(--p-ink, #0a1a2f); }

/* Langkah "Cara Top Up" */
.tu-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tu-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.tu-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 800;
}
.tu-steps b { display: block; font-size: 0.86rem; color: var(--p-ink, #0a1a2f); }
.tu-steps p { margin: 2px 0 0; font-size: 0.76rem; color: var(--p-text-3, #5a6f84); line-height: 1.5; }

/* Section metode pembayaran (ikon SVG satu warna - tanpa kotak multi-warna) */
.tu-methods-wrap { margin-top: 30px; }
.tu-section-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--p-ink, #0a1a2f);
  margin-bottom: 14px;
}
.tu-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.tu-method {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--p-card, #fff);
  border: 1px solid var(--p-line, #e4edf6);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
  transition: transform 0.2s var(--p-ease, ease), box-shadow 0.2s, border-color 0.2s;
}
.tu-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(10, 26, 47, 0.3);
  border-color: #bae6fd;
}
.tu-method-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 12px;
}
.tu-method b { display: block; font-size: 0.9rem; color: var(--p-ink, #0a1a2f); }
.tu-method p { margin: 4px 0 0; font-size: 0.77rem; color: var(--p-text-3, #5a6f84); line-height: 1.5; }

/* Responsif halaman top up */
@media (max-width: 960px) {
  .tu-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tu-card { padding: 18px; border-radius: 16px; }
  .tu-limit-grid { grid-template-columns: 1fr; }
}

/* Catatan "Menampilkan X dari Y" di bawah ringkasan dashboard */
.dash-more {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.dash-more b { color: var(--text-1, #0a1a2f); font-weight: 700; }
.dash-more a { font-weight: 600; }
.dash-more a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   CARA KERJA - 3 langkah (menggantikan banner 3D lama)
   ============================================================ */
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3, 24px);
}
.how-card {
  position: relative;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: var(--p-r-lg, 20px);
  padding: 28px;
  box-shadow: var(--p-shadow-card);
  transition: transform 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease), border-color 0.3s;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow-hover);
  border-color: rgba(30, 84, 203, 0.28);
}
.how-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--p-gradient-soft);
  border: 1px solid rgba(30, 84, 203, 0.14);
  color: #1e54cb;
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.how-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--p-ink);
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.how-card p {
  font-size: 0.9rem;
  color: var(--p-text-2);
  line-height: 1.65;
}
.how-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--p-text-3);
}
.how-tag b { color: #1e54cb; font-weight: 800; }
.how-card:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  top: 38px;
  right: -20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-surface, #fff);
  border: 1px solid var(--border, #E1E9F2);
  border-radius: 50%;
  color: var(--p-text-3);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .how-card:not(:last-child)::after { display: none; }
}

/* ============================================================
   KATALOG GAME + UTIL BERANDA
   ============================================================ */
.section-head .eyebrow { margin-bottom: 14px; }

.game-section { scroll-margin-top: 90px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3, 16px);
}
.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--p-surface, #fff);
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: var(--p-r-lg, 18px);
  box-shadow: var(--p-shadow-card);
  transition: transform 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease), border-color 0.3s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow-hover);
  border-color: rgba(30, 84, 203, 0.28);
}
/* Tiga keluarga hue ikon game (R-29). Kategori kartu ditulis di
   views/index.ejs sebagai data-kat, warnanya hanya di sini supaya satu
   sumber. Daftar kartunya di DESIGN.md, bagian Palet. Mengubah warna tanpa
   mengubah kategori dianggap merusak sistem ini. */
.game-card[data-kat="survival"] { --gc: #3f9142; }
.game-card[data-kat="aksi"]     { --gc: #b45309; }
.game-card[data-kat="suara"]    { --gc: #1e54cb; }
.game-ic {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #eef3fd;
  background: color-mix(in srgb, var(--gc, #1e54cb) 13%, #ffffff);
  color: var(--gc, #1e54cb);
  border: 1px solid rgba(30, 84, 203, 0.1);
  border-color: color-mix(in srgb, var(--gc, #1e54cb) 26%, #ffffff);
  transition: transform 0.35s var(--p-ease-spring);
}
.game-card:hover .game-ic { transform: scale(1.06) rotate(-4deg); }
.game-meta { min-width: 0; }
.game-meta b {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--p-ink);
  letter-spacing: -0.01em;
}
.game-meta small {
  display: block;
  font-size: 0.78rem;
  color: var(--p-text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 940px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Region list (kartu bento lebar) - label kiri, nilai kanan */
.region-list .region-item { justify-content: space-between; }
.region-list .region-item b { color: var(--p-ink); font-weight: 700; }

/* Checklist lingkaran di kartu harga */
.price-list .check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 84, 203, 0.1);
  border: 1px solid rgba(30, 84, 203, 0.22);
  color: #1e54cb;
}
.price-list .check svg { width: 11px; height: 11px; }
.card.featured .price-list .check {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* FAQ wrapper - lebar nyaman untuk bacaan */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item summary { font-size: 1rem; }

/* CTA band - aksi di tengah */
.cta-band .cta-copy { position: relative; z-index: 1; }
.cta-band .cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: var(--s-4, 32px);
}
.cta-band .cta-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.cta-band .cta-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   PRICING GRID - 4 kolom untuk paket server
   ============================================================ */
.pricing-grid-4 > * { flex-basis: calc((100% - 3 * var(--s-3)) / 4); }
@media (max-width: 1100px) {
  .pricing-grid-4 > * { flex-basis: calc((100% - var(--s-3)) / 2); }
}
@media (max-width: 560px) {
  .pricing-grid-4 > *, .pricing-grid > * { flex-basis: 100%; max-width: 480px; }
  .pricing-grid { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   ADMIN (/admin/*) - toolbar, form panel, tabel, chip, quick nav
   ============================================================ */
.adm-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.adm-toolbar {
  display: flex; align-items: center; gap: var(--s-3);
  flex-wrap: wrap; margin-bottom: var(--s-4);
}
/* Kotak cari berhenti di 480px: melar penuh di 1440px bikin kolom cari jadi
   satu garis panjang dan "{jumlah} user" terdorong ke tepi kanan. */
.adm-toolbar .search-box { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 0; max-width: 480px; }
.adm-toolbar .search-box input { flex: 1; min-width: 0; }
.adm-count { font-size: 0.8125rem; color: var(--text-3); font-weight: 600; white-space: nowrap; }

/* Panel form (edit / tambah) */
.adm-form-card { margin-bottom: var(--s-4); }
.adm-form-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4);
}
.adm-form-head h2 { font-size: 1rem; margin: 0; min-width: 0; }
.adm-form-close {
  width: 32px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border);
  color: var(--text-3); text-decoration: none; font-weight: 700;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.adm-form-close:hover { background: var(--bg-soft); color: var(--ink); }
/* Kolom form: min 400px (bukan 200px) - auto-fit dulu memuntah 6 kolom sempit
   di 1440px, placeholder mask kredensial ("Kosong = tetap tersimpan (...)") kepotong.
   min(100%, 400px) jaga 1 kolom penuh di mobile tanpa overflow. */
.adm-form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--s-3) var(--s-4); align-items: end;
}
.adm-form-grid .form-group { margin-bottom: 0; }
.adm-form-full { grid-column: 1 / -1; }
.adm-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adm-form-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--text-3); margin: 0; }
.adm-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.adm-check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.875rem; color: var(--text-2); font-weight: 600; cursor: pointer;
}
.adm-check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* <details> = tombol tambah tanpa JS */
.adm-details { margin-bottom: var(--s-4); }
.adm-details > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.adm-details > summary::-webkit-details-marker { display: none; }
.adm-details[open] > summary { margin-bottom: var(--s-3); }

/* Tabel admin */
.adm-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.adm-table th {
  padding: 12px 18px; background: var(--bg-soft); color: var(--text-3);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.adm-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; color: var(--ink); vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr.adm-row:hover td { background: var(--bg-soft); }
.adm-sub { display: block; font-size: 0.75rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.adm-err { color: #b91c1c; }
.adm-empty { text-align: center; color: var(--text-3); padding: var(--s-6) var(--s-3) !important; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.adm-inline-form { display: inline-block; margin: 0; }
.adm-td-desc { color: var(--text-2); max-width: 240px; }
/* Kolom angka kanan jangan pernah wrap di tengah nilai: digit proporsional bikin
   ambang wrap beda antar baris - "4 GB" sempat pecah jadi "4"/"GB" (kolom 68px)
   dan "+Rp 1.000.000" jadi "+Rp"/"1.000.000" (kolom 132px). Aksi tetap boleh
   wrap karena .adm-actions pakai flex-wrap (audit visual 2026-10-03). */
.adm-table td.align-right,
.adm-table th.align-right { white-space: nowrap; }
/* Angka sejajar kolom demi kolom (harga/RAM/Disk/CPU). */
.adm-table td.align-right { font-variant-numeric: tabular-nums; }
/* Kasus sama di tabel riwayat/dashboard: nominal "+Rp 1.000.000" wajib 1 baris. */
.tx-cell-amount { white-space: nowrap; }
/* Kolom tanggal (Bergabung/Transaksi terbaru): angka tanggal wajib 1 baris,
   pecah "29 Sep / 2026" dua baris bikin kolom kelihatan berantakan. */
.adm-td-date { white-space: nowrap; }
/* Tabel di layar medium: padding dirapatkan supaya 5-7 kolom muat tanpa
   geser scrollbar, dan tombol aksi dikompaksi (tap target 44px diperuntukkan
   sentuh; di 769px ke atas mayoritas mouse) supaya Edit/Nonaktifkan/Hapus
   tidak patah jadi 2 baris yang membuat tinggi baris tidak seragam. */
@media (min-width: 769px) {
  .adm-table th, .adm-table td { padding-left: 14px; padding-right: 14px; }
  .adm-table .btn-sm { padding: 6px 12px; font-size: 0.8125rem; min-height: 40px; }
}
/* Desktop lebar: kolom aksi cukup ruang, satu baris penuh. */
@media (min-width: 1200px) {
  .adm-actions { flex-wrap: nowrap; }
}

/* Chip role/status paket */
.adm-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap; margin: 1px 4px 1px 0;
}
.adm-chip.admin { background: #E8EFFC; color: var(--accent-deep); border: 1px solid #C9DBFA; }
.adm-chip.user { background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }
.adm-chip.on { background: #D1FAE5; color: #047857; border: 1px solid #A7F3D0; }
.adm-chip.off { background: var(--bg-soft); color: var(--text-3); border: 1px solid var(--border); }
.adm-chip.feat { background: linear-gradient(135deg, #5497f2, #1e54cb); color: #fff; border: 1px solid transparent; }

/* Riwayat login (/settings): tabel pola .adm-table + data-label, jadi dapat
   konversi kartu mobile tanpa CSS responsif tambahan. */
.lh-when { display: flex; flex-direction: column; }
.lh-date { font-weight: 700; color: var(--ink); white-space: nowrap; }
.lh-time { font-size: 0.75rem; font-weight: 500; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.lh-ip { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }
/* inline-flex supaya tombol Keluar di baris bisa sebaris dg badge (baris tetap
   setinggi tombol saja, bukan dua baris penuh). */
.lh-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; vertical-align: middle; }
/* Penanda baris sesi aktif (satu-satunya chip non-status di tabel ini). */
.lh-current { background: #E8EFFC; color: var(--accent-deep); border: 1px solid #C9DBFA; }
/* Keluarkan sesi perangkat lain per baris (dipakai form POST /settings/login-history/logout). */
.lh-kill { display: inline-block; margin-left: 6px; vertical-align: middle; }

/* Sisa masa aktif */
.adm-days {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; white-space: nowrap;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border);
}
.adm-days.warn { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.adm-days.danger { background: #FEF2F2; color: #B91C1C; border-color: #FCA5A5; animation: p-adm-pulse 1.6s ease-in-out infinite; }
@keyframes p-adm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}

/* Dua panel ringkasan */
/* Grid dua panel ringkasan: kiri lebih lebar (tabel 5 kolom), kanan ringkas.
   Anak grid perlu min-width:0 supaya tabel bisa mengecil tanpa memaksa panel
   meluap (dulu itu yang memotong badge Status di tablet/desktop sempit). */
.adm-cols {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: var(--s-3); margin-top: var(--s-4); align-items: start;
}
.adm-cols > * { min-width: 0; }
/* Kepala panel: linknya nowrap ("Pengaturan pembayaran →"), jadi baris wajib
   boleh wrap - tanpa ini judul + link melebar 42px di 320px dan kepotong
   overflow:hidden panel. */
.adm-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px var(--s-3); padding: 8px 20px; border-bottom: 1px solid var(--border);
}
.adm-panel-head h2 { font-size: 0.95rem; margin: 0; min-width: 0; }
.adm-panel-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.adm-panel-link:hover { text-decoration: underline; }

/* Akses cepat */
.adm-quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-3); margin-top: var(--s-4);
}
.adm-quick {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; text-decoration: none; color: inherit;
}
.adm-quick:hover { transform: translateY(-2px); border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.adm-quick-ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.adm-quick-copy { display: flex; flex-direction: column; min-width: 0; }
.adm-quick-copy strong { font-size: 0.9375rem; }
.adm-quick-copy small { color: var(--text-3); font-size: 0.75rem; }
.adm-quick-count { margin-left: auto; font-size: 1.125rem; font-weight: 800; color: var(--accent); }

/* ============================================================
   ADMIN OVERVIEW - KPI realtime, grafik 14 hari, status live
   (/admin: SSR penuh, lalu polling /admin/stats tiap 10 detik)
   ============================================================ */
/* Kepala halaman: pill realtime + waktu + aksi */
.adm-head-side {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: var(--s-2);
}
.adm-live { display: inline-flex; align-items: center; gap: 9px; }
.adm-live-time { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }
.adm-live-time b { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }

/* KPI: kartu putih lepas (bukan strip abu di dalam wadah) + footer
   berisi tren 7 hari / sparkline / catatan hidup. 6 kartu -> 6/3/2 kolom. */
.adm-kpi.tx-summary {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3);
}
.adm-kpi .tx-summary-item {
  background: var(--surface);
  min-width: 0;
  padding: 14px 16px;
  gap: 6px;
}
/* Label selalu setinggi 2 baris: label panjang ("Pemasukan Server",
   "Menunggu Konfirmasi") wrap, nilai semua kartu tetap sejajar. */
.adm-kpi .tx-summary-label { min-height: 2.8em; line-height: 1.4; }
.adm-kpi .tx-summary-value {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* Foot 1 baris: sparkline 56px + catatan/trik chip muat di kartu 164px
   (132px konten) tanpa wrap - wrap bikin kartu tingginya tak seragam. */
.adm-kpi-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 6px; min-height: 22px; margin-top: 2px;
}
.adm-kpi-note {
  font-size: 0.72rem; color: var(--text-3);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-kpi-link {
  display: inline-flex; align-items: center; min-height: 22px;
  padding: 11px 0; margin: -11px 0; /* tap target 44px tanpa mengubah tinggi kartu */
  font-size: 0.72rem; font-weight: 700; color: var(--accent); text-decoration: none;
}
.adm-kpi-link:hover { text-decoration: underline; }
.adm-kpi-trend {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; white-space: nowrap;
}
.adm-kpi-trend.up { background: var(--ok-soft); color: var(--ok); }
.adm-kpi-trend.down { background: var(--warn-soft); color: var(--warn); }
.adm-kpi-trend.flat { background: var(--bg-soft); color: var(--text-3); }
.adm-spark { width: 56px; height: 22px; flex-shrink: 0; overflow: visible; }
.adm-spark-users polyline, .adm-spark-topup polyline { stroke: var(--accent); }
.adm-spark-server polyline { stroke: var(--navy); }
/* Kilau halus SEKALI saat nilai berubah (bukan loop - alasan R-19:
   penanda visual "angka ini baru diperbarui"). */
@keyframes p-kpi-tick {
  from { background-color: var(--accent-soft); }
  to { background-color: var(--surface); }
}
.kpi-tick { animation: p-kpi-tick 0.6s var(--p-ease); }

/* Grid 2 panel: grafik aktivitas + status server live */
.adm-grid2 {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--s-3); margin-top: var(--s-4); align-items: start;
}
.adm-grid2 > * { min-width: 0; }

/* Grafik 14 hari (batang bertumpuk: server di atas, top up di bawah) */
.adm-chart-body { padding: 16px 20px 18px; }
.adm-chart-sum { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 16px; }
.adm-chart-sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-chart-sum span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-3);
}
.adm-chart-sum b {
  font-size: 1rem; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.adm-sw { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.adm-sw-topup { background: linear-gradient(180deg, #5497f2 0%, #1e54cb 100%); }
.adm-sw-server { background: var(--navy); }
.adm-bars {
  display: flex; align-items: flex-end;
  gap: clamp(3px, 0.8vw, 10px); height: 170px;
}
.adm-bar {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-soft); border-radius: 6px 6px 3px 3px;
  overflow: hidden; transition: background-color 0.15s var(--ease);
}
.adm-bar:hover { background: #E3EBF6; }
.adm-bar-seg { width: 100%; transition: height 0.6s var(--p-ease); }
.adm-bar-topup { background: linear-gradient(180deg, #5497f2 0%, #1e54cb 100%); }
.adm-bar-server { background: var(--navy); }
.adm-bars-x { display: flex; gap: clamp(3px, 0.8vw, 10px); margin-top: 7px; }
.adm-bars-x span {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 0.65rem; color: var(--text-3); font-variant-numeric: tabular-nums;
}

/* Status server live: angka besar + bar distribusi + daftar */
.adm-status-body { display: grid; gap: 14px; padding: 16px 20px 18px; }
.adm-status-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.adm-status-big {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.adm-status-top span { font-size: 0.85rem; color: var(--text-2); }
.adm-status-track {
  display: flex; height: 10px; border-radius: 999px;
  overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border);
}
.stg-seg { display: block; height: 100%; transition: width 0.6s var(--p-ease); }
.stg-running { background: #16a34a; }
.stg-prep { background: #1d4ed8; }
.stg-failed { background: #dc2626; }
.stg-offline { background: #cbd5e1; }
.stg-other { background: #94a3b8; }
.adm-status-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.adm-status-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.8125rem; color: var(--text-2);
}
.stg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.adm-status-row span { min-width: 0; }
.adm-status-row b {
  margin-left: auto; color: var(--ink); font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Jarak antar blok overview (kepala -> KPI sudah diatur dash-page-head) */
.adm-block { margin-top: var(--s-4); }

@media (max-width: 1100px) {
  .adm-grid2 { grid-template-columns: minmax(0, 1fr); }
  .adm-kpi.tx-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .adm-kpi.tx-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
  .adm-kpi .tx-summary-item { padding: 12px; gap: 4px; }
  .adm-kpi .tx-summary-value { font-size: 1.0625rem; }
  .adm-kpi-foot .adm-spark { display: none; }
  .adm-head-side { justify-content: flex-start; width: 100%; }
}
@media (max-width: 480px) {
  .adm-chart-body { padding: 14px 14px 16px; }
  .adm-status-body { padding: 14px 14px 16px; }
  .adm-bars { height: 140px; }
  /* Label tanggal ganjil disembunyikan (visibility: slot tetap ada,
     jadi angka tanggal sejajar dengan batangnya). */
  .adm-bars-x span:nth-child(even) { visibility: hidden; }
}

/* ============================================================
   ADMIN STATS STRIP (/admin/users, /admin/products, /admin/servers) - ringkas
   cepat 4 angka nyata dari seluruh data (bukan hasil pencarian/
   filter). Fokus halaman = tabel, jadi ringkasnya sengaja tipis
   (strip putih + kartu abu ala tx-summary), bukan kartu KPI
   lepas seperti overview - supaya hierarki halaman jelas.
   ============================================================ */
.adm-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: var(--s-4);
}
/* Label setinggi 2 baris: di 320px label panjang ("Saldo Beredar",
   "Termahal") wrap jadi 2 baris, nilai semua kartu tetap sejajar
   (pola sama dgn KPI overview). */
.adm-stats .tx-summary-label { min-height: 2.8em; line-height: 1.4; }
.adm-stats .tx-summary-value {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.adm-snote { font-size: 0.72rem; color: var(--text-3); line-height: 1.35; }

/* Toolbar: jumlah kontekstual + tautan hapus pencarian bila ?q= aktif */
.adm-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-filter-clear {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 2px;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.adm-filter-clear:hover { text-decoration: underline; }

/* Baris "Tambah User": summary details memanjang penuh - aksi utama
   halaman tetap terlihat tanpa JS, dan bentuknya meniru satu baris
   penambahan tabel sehingga selaras dgn blok form penuh di bawahnya. */
.adm-details > summary.btn { width: 100%; min-height: 48px; }

/* Avatar inisial di kolom User (inisial = penanda huruf pertama username) */
.adm-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-ava {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.875rem; font-weight: 800;
}
.adm-user-copy { display: flex; flex-direction: column; min-width: 0; }
.adm-user-copy b { font-weight: 700; overflow-wrap: anywhere; }
.adm-user-copy .adm-sub { margin-top: 1px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Filter transaksi */
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1 1 auto; min-width: 0; }
.adm-filters input[type="search"] {
  flex: 1 1 200px; min-width: 0; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font: inherit; font-size: 0.875rem; color: var(--ink);
}
.adm-filters select {
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font: inherit; font-size: 0.8125rem; color: var(--ink);
}
.adm-filters input:focus, .adm-filters select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Tombol bahaya */
.btn-danger { color: #DC2626; border-color: rgba(220, 38, 38, 0.35); }
.btn-danger:hover { background: #DC2626; border-color: #DC2626; color: #fff; }

/* Panel tabel ikut 2 kolom sampai 1200px; di bawah itu satu kolom penuh. */
@media (max-width: 1200px) {
  .adm-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile: tabel admin -> kartu. Sel jadi grid 2 kolom (label | nilai) supaya
   nilai bertumpuk rapat di satu sisi. Versi flex sebelumnya meletakkan
   username, email, dan label dalam satu baris tanpa batas wrap, jadi email
   panjang memaksa tabel 438px di viewport 320px dan terpotong (data hilang). */
@media (max-width: 768px) {
  .table-wrapper { overflow: visible; }
  .adm-table, .adm-table tbody { display: block; width: 100%; }
  .adm-table thead { display: none; }
  .adm-table tr.adm-row {
    display: block; border: 1px solid var(--border); border-radius: 14px;
    padding: 10px 14px; margin-bottom: 10px; background: var(--surface);
  }
  .adm-table tbody tr.adm-row:last-child { margin-bottom: 0; }
  .adm-table td {
    display: grid;
    grid-template-columns: minmax(56px, max-content) minmax(0, 1fr);
    gap: 2px 14px; align-items: start;
    border: none; padding: 6px 0;
    text-align: left !important;
  }
  .adm-table td::before {
    content: attr(data-label); grid-column: 1; grid-row: 1; align-self: start;
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-3);
  }
  /* Isi sel (chip, angka, tombol, nama+email) jadi kolom nilai: boleh menyusut,
     teks panjang Putus di mana saja supaya tidak pernah meluber keluar kartu. */
  .adm-table td > * { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
  /* Chip/badge ikut grid default stretch jadi bar selebar kartu; seret ke kiri
     supaya mengikuti lebar teksnya. */
  .adm-table td > .adm-chip,
  .adm-table td > .tx-badge,
  .adm-table td > .adm-days,
  .adm-table td > .status-pill { justify-self: start; }
  .adm-table td.adm-empty { display: block; padding: var(--s-6) var(--s-3) !important; }
  .adm-table td.adm-empty::before { display: none; }
  .adm-table tr.adm-row:hover td { background: transparent; }
  .adm-actions { justify-content: flex-start; }
  .adm-td-desc { max-width: none; }
}

/* Grid harga dinamis (1-2 paket aktif): kartu menempati satu kolom penuh, seragam */
.pricing-grid.few > * { flex-basis: 100%; max-width: 520px; }
.pricing-grid.few { max-width: 520px; margin: 0 auto; }

/* ============================================================
   ROLE-SWITCH - dropdown role Admin ⇄ User (khusus admin)
   Gaya mengikuti contoh select (Production/Sandbox): tombol putih
   radius 12 dgn ikon role + label + chevron (rotasi 180 saat buka);
   menu kartu putih radius 16, opsi aktif dgn latar highlight.
   Nav-pills berganti penuh per mode (admin → 5 link admin).
   .hdr = di dash-header (sembunyi ≤900px, mobile pakai .dd);
   .dd  = di nav-dropdown (versi mobile).
   ============================================================ */
.dash-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.role-switch { position: relative; flex-shrink: 0; }
.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px -14px rgba(13, 43, 77, 0.5);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.role-switch-btn:hover {
  border-color: rgba(30, 84, 203, 0.4);
  box-shadow: 0 12px 24px -16px rgba(30, 84, 203, 0.55);
}
.role-switch.rs-open .role-switch-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 84, 203, 0.14);
}
.rs-btn-ic { display: inline-flex; color: var(--accent); }
.rs-chev { color: var(--text-2); transition: transform 0.2s var(--ease); }
.role-switch.rs-open .rs-chev { transform: rotate(180deg); }
.role-switch-label { white-space: nowrap; }
.role-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(225, 233, 242, 0.95);
  border-radius: 16px;
  box-shadow: 0 26px 50px -22px rgba(13, 43, 77, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.role-switch.rs-open .role-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.role-switch-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.role-switch-item svg { flex-shrink: 0; }
.role-switch-item:hover { background: #f2f6fb; color: var(--accent-deep); }
.role-switch-item.active {
  background: #edf2fa;
  color: var(--ink);
  font-weight: 700;
}
.role-switch-item.active svg { color: var(--accent); }

/* Variant dalam nav-dropdown (mobile): tombol lebar penuh, chevron kanan */
.nav-dropdown-switch { padding: 2px 4px 6px; }
.role-switch--dd .role-switch-btn { width: 100%; height: 44px; padding: 0 14px; }
.role-switch--dd .role-switch-btn .rs-chev { margin-left: auto; }
.role-switch--dd .role-switch-menu { right: auto; left: 4px; }

/* Tanpa JS: tombol disembunyikan, kedua opsi tampil sebagai link biasa */
html:not(.js) .role-switch-btn { display: none; }
html:not(.js) .role-switch-menu {
  position: static;
  display: flex;
  gap: 6px;
  min-width: 0;
  margin-left: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
html:not(.js) .role-switch-item { padding: 6px 10px; background: #fff; border: 1px solid var(--border); }
html:not(.js) .role-switch--dd .role-switch-menu { margin-left: 0; flex-direction: column; }

@media (max-width: 1199px) {
  .role-switch--hdr .role-switch-label { display: none; }
  .role-switch--hdr .role-switch-btn { padding: 0 10px; gap: 6px; }
}
@media (max-width: 900px) {
  .dash-nav-center { display: none; }
}
/* Tablet/layar sedang: pill dirapatkan agar nav mode admin/user + role-switch
   muat tanpa pill ter-wrap (logo min165, kanan min130 mengikuti konten). */
@media (max-width: 1100px) {
  .dash-link { padding: 9px 11px; }
}
/* Nama user di header disembunyikan di SEMUA lebar: kolom kanan hanya cukup
   utk lonceng + avatar bila nav penuh (5 pill) + role-switch berlabel.
   Identitas tampil via avatar + menu akun + "Masuk sebagai" di nav-dropdown. */
.dash-user-name { display: none; }

/* ============================================================
   AUTH SPLIT - login / register / lupa password versi terbaru
   ≥901px: 2 kolom - panel brand kiri (gradasi biru + poin fitur
   jujur + CTA /#harga) & kartu form kanan (~460px, lebih ramping
   dari layout lama 1080px). ≤900px: kembali kartu terpusat
   (panel brand disembunyikan, logo atas tampil seperti biasa).
   ============================================================ */
.auth-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vw, 72px);
  background: linear-gradient(155deg, #5497f2 0%, #1e54cb 58%, #16387f 100%);
  color: #fff;
}
/* glow melayang */
.auth-brand::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}
/* Lockup atas: logo + kicker jadi satu baris yang sengaja sejajar
   (dulu keduanya elemen inline saling mengalir, baselinenya kebetulan). */
.auth-brand-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 4.5vh, 48px);
}
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #fff;
}
.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 13px;
}
.auth-brand-title {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.auth-brand-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 46ch;
}
.auth-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.auth-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.auth-point svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #cfe3ff;
}
/* Kartu bukti produk: mockup mini gaya hero landing (nama mono +
   pill running) supaya panel brand ikut memperlihatkan produknya,
   bukan cuma menjelaskan. Tanpa angka klaim baru. disembunyikan di
   layar pendek (<715px tinggi) supaya kolom brand tidak pernah scroll. */
.auth-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.08);
  border-radius: 20px;
  padding: 13px 16px;
  margin: 0 0 22px;
  box-shadow: 0 22px 44px -26px rgba(10, 26, 47, 0.55);
  color: var(--p-ink);
}
.auth-proof-ic { flex-shrink: 0; }
.auth-proof-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.auth-proof-title b {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.auth-proof-title small {
  color: var(--p-text-3);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-proof .status-pill { flex-shrink: 0; }
@media (max-height: 744px) {
  .auth-proof { display: none; }
}
/* Entrance sekali jalan (MOTION 2, tanpa loop): kolom brand naik lalu
   kartu form menyusul - arah baca dari janji kiri ke aksi kanan.
   Blok prefers-reduced-motion di atas mematikan keduanya. */
@keyframes p-auth-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes p-auth-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.auth-brand-inner { animation: p-auth-rise 0.5s var(--p-ease) both; }
.auth-proof { animation: p-auth-pop 0.45s var(--p-ease) 0.28s both; }
.auth-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 11px 18px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.auth-brand-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.55);
}
.auth-brand-cta svg { transition: transform 0.2s var(--ease); }
.auth-brand-cta:hover svg { transform: translateX(3px); }

/* Kolom kanan: kartu form lebih ramping (460px vs 1080px) */
.auth-panel { min-width: 0; display: flex; }
.auth-split .auth-wrap { width: 100%; }
.auth-split .auth-inner { max-width: 460px; }

/* Polish kartu form (fokus halaman): radius xl sesuai token, padding
   lebih lega, dan shadow berlapis biru-bertint - alasan elevasi:
   satu-satunya bidang terangkat di halaman ini (R-12). */
.auth-card {
  border-radius: var(--p-r-xl);
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow:
    0 26px 52px -30px rgba(10, 26, 47, 0.3),
    0 8px 20px -14px rgba(30, 84, 203, 0.22);
  animation: p-auth-rise 0.5s var(--p-ease) 0.1s both;
}
.auth-card h1 {
  font-size: clamp(1.5rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-sub { margin-bottom: 24px; }
.auth-card input {
  border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
              background 0.15s var(--ease);
}
.auth-card .alert { border-radius: var(--r-md); }

/* Layar desktop pendek (tinggi <= 860px): kompaksi vertikal supaya
   login muat di jendela 768px tanpa scroll dan register tidak scroll
   lebih banyak dari sebelumnya (padding wrap, kartu, dan antar field
   dirapatkan; lebar/tampilan biasa di >=861px tidak tersentuh). */
@media (min-width: 901px) and (max-height: 860px) {
  .auth-split .auth-wrap { padding: 16px var(--s-3); }
  .auth-card { padding: 24px; }
  .auth-card .form-group { margin-bottom: 16px; }
  .auth-sub { margin-bottom: 18px; }
}

@media (min-width: 901px) {
  .auth-split .auth-logo { display: none; } /* logo sudah di panel brand */
}
@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: auto; }
}

/* Tombol "Lanjutkan/Daftar dengan Google" (partials/google-btn.ejs):
   pemisah "atau" bergaris + tombol outline dgn logo G 4 warna. Transisi
   hover pinjam .btn-outline (style.css) - tanpa animasi/keyframe baru. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.btn-google {
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-google .btn-google-ic { flex: none; display: block; }

/* ============================================================
   HALAMAN BAYAR TOP UP (top-up-pay.ejs) - QRIS custom di situs ini
   (tanpa redirect ke checkout Tripay).
   ============================================================ */
.pay-qr-box {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  background: #f7fbfe;
  border: 1px dashed #cfe2f2;
  border-radius: 16px;
}
.pay-qr {
  width: 232px;
  height: 232px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e8f1f9;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 26px -18px rgba(10, 26, 47, 0.4);
}
.pay-qr-wait {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--p-text-3, #5a6f84);
}
.pay-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.pay-ref code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  background: #eef4fa;
  color: var(--p-ink, #0a1a2f);
  padding: 4px 9px;
  border-radius: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-bill { display: grid; gap: 8px; margin-top: 16px; }
.pay-bill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--p-text-2, #3d5670);
}
.pay-bill-row b { color: var(--p-ink, #0a1a2f); }
.pay-bill-total {
  border-top: 1px dashed #d9e6f2;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.97rem;
}
.pay-expire b { font-variant-numeric: tabular-nums; color: #0369a1; }
.pay-status { display: grid; gap: 12px; justify-items: start; }
.pay-status .btn { justify-self: start; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-howto-title {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.85rem;
  color: var(--p-ink, #0a1a2f);
}
.pay-howto-title:first-child { margin-top: 0; }
.pay-howto-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--p-text-2, #3d5670);
}
@media (max-width: 480px) {
  .pay-qr { width: 200px; height: 200px; }
}

/* ============================================================
   PANEL PEMBAYARAN DI RINGKASAN ADMIN + TOGGLE CHANNEL
   (/admin dan /admin/settings)
   ============================================================ */
.adm-pay-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.adm-pay-mode {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p-text-2, #3d5670);
  cursor: pointer;
}
.adm-pay-mode input { accent-color: #1e54cb; width: 17px; height: 17px; }
.adm-pay-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pay-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #dbe6f1;
  border-radius: 11px;
  background: #f8fbfe;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--p-text-2, #3d5670);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.adm-pay-opt:hover { border-color: #a9c9e6; }
.adm-pay-opt small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--p-text-3, #5a6f84);
}
.adm-pay-opt input { accent-color: #0284c7; width: 16px; height: 16px; }
.adm-pay-opt:has(input:checked) {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

/* Tombol "Bayar sekarang" di baris riwayat (top up pending) */
.tx-cell-status .tx-pay-btn {
  display: inline-flex;
  margin-top: 7px;
  font-size: 0.74rem;
  padding: 5px 10px;
}

/* Baris tombol aksi (Bayar sekarang + Batalkan) sebaris */
.tx-row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.tx-row-actions .tx-pay-btn { margin-top: 0; }

/* ============================================================
   DOKUMEN PUBLIK (tentang, blog, karier, privasi, syarat, SLA)
   Kolom baca tunggal untuk halaman panjang. Halaman ini dibuka
   untuk dibaca, jadi tanpa reveal atau animasi masuk: teks
   langsung utuh. Satu-satunya transisi = hover kartu artikel.
   Warna memakai token style.css, tanpa warna baru.
   ============================================================ */
.doc { max-width: 780px; margin: 0 auto; }
.doc.doc-wide { max-width: 960px; }

/* Kepala halaman: label kategori + judul + lead, rata kiri */
.doc-head { margin-bottom: 34px; }
.doc-title {
  margin: 8px 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.doc-lead {
  margin: 0;
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
}
.doc-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.doc-meta [aria-hidden] { color: var(--border-strong); }
.doc-head .eyebrow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.doc-head .eyebrow a:hover { color: var(--accent); }

/* Badan teks panjang */
.doc-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}
.doc-section + .doc-section { margin-top: 36px; }
.doc-body .doc-section > :first-child { margin-top: 0; }
.doc-body h2 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.doc-body h3 {
  margin: 22px 0 6px;
  font-size: 1rem;
  color: var(--ink);
}
.doc-body p { margin: 0 0 14px; }
.doc-body ul,
.doc-body ol { margin: 0 0 16px; padding-left: 22px; }
/* style.css mereset `ul` jadi list-style:none - kembalikan marker di sini */
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--accent); }
/* Tombol (.btn) dikecualikan: selector ini hanya untuk tautan teks */
.doc-body a:not(.btn) {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}
.doc-body a:not(.btn):hover { color: var(--accent-deep); }
.doc-body strong { color: var(--ink); }
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Catatan penekanan di dalam teks */
.doc-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* Daftar istilah (halaman Tentang Kami) */
.doc-terms { margin: 0; }
.doc-terms dt {
  margin-top: 18px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
}
.doc-terms dt:first-of-type { margin-top: 0; }
.doc-terms dd { margin: 4px 0 0; line-height: 1.7; }

/* Grid kartu (halaman Karier) */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.doc-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.doc-card h3 { margin: 0 0 6px; font-size: 0.98rem; color: var(--ink); }
.doc-card p { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--text-2); }

/* Aksi, tautan silang, penutup artikel */
.doc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc-related {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  font-size: 0.88rem;
}
.doc-related span,
.doc-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.doc-related span { color: var(--text-3); }
.doc-related a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.doc-related a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* Tabel SLA: gulir horizontal di layar sempit supaya tidak overflow */
.doc-scroll { overflow-x: auto; margin-bottom: 16px; }
.doc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.doc-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.doc-table td {
  padding: 12px;
  line-height: 1.6;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { color: var(--ink); font-weight: 600; }

/* Kartu artikel blog: seluruh kartu jadi satu tautan besar */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.blog-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 26px rgba(10, 26, 47, 0.08);
}
.blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.blog-card-meta { font-size: 0.78rem; font-weight: 600; color: var(--text-3); }
.blog-card h2 { margin: 0; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
.blog-card p { margin: 0; flex: 1; font-size: 0.9rem; line-height: 1.65; color: var(--text-2); }
.blog-card-more { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.blog-card:hover .blog-card-more { color: var(--accent-deep); }

@media (max-width: 480px) {
  .doc-title { font-size: 1.5rem; }
  .doc-lead { font-size: 0.98rem; }
  .doc-body { font-size: 0.97rem; }
  .blog-card { padding: 18px; }
}

/* Kanal kontak (halaman Hubungi Kami): kartu + ikon + tombol tautan */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.doc-body .contact-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--ink);
}
.contact-handle {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-3);
  word-break: break-word;
}
.contact-btn { width: 100%; }

/* ============ BROADCAST (pengumuman admin -> lonceng + popup + dashboard) ============ */

/* Panel permanen di paling bawah dashboard user */
.bc-section .bc-list { display: grid; gap: 14px; }
.bc-total { font-size: 0.75rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.03em; }
.bc-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 20px 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bc-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #5497f2, var(--accent));
}
.bc-card.is-read { opacity: 0.78; }
.bc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-3);
}
.bc-meta time { font-variant-numeric: tabular-nums; }
.bc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bc-seen {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  border: 1px solid var(--ok-border);
  color: var(--ok);
  font-size: 0.6875rem;
  font-weight: 700;
}
.bc-title { margin: 0; font-size: 0.9675rem; font-weight: 800; color: var(--ink); }
.bc-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bc-link { justify-self: start; }

/* Popup pengumuman (modal statis di dashboard) */
.bc-overlay[hidden] { display: none !important; }
.bc-modal { max-width: 460px; }
.bc-modal [hidden] { display: none !important; }
.bc-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 0;
}
.bc-modal-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5497f2, var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(30, 84, 203, 0.55);
}
.bc-modal .modal-title {
  margin: 16px 24px 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.bc-modal-body {
  margin: 10px 24px 0;
  max-height: 42vh;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bc-modal-link { margin: 12px 24px 0; justify-self: start; }
.bc-modal-foot { margin-top: 16px; }

/* Halaman /admin/broadcasts: komposer + pratinjau + riwayat */
.adm-bc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  margin-bottom: var(--s-4);
}
.adm-bc-side { display: grid; gap: var(--s-3); }
.bc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.bc-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.bc-pv {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
  background: var(--bg-soft);
  border: 1.5px dashed var(--accent-border);
  border-radius: var(--r-md);
}
.bc-pv h3 { margin: 0; font-size: 0.9375rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.bc-pv p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bc-steps {
  margin: 0;
  padding-left: 18px;
  list-style: decimal;
  display: grid;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
}
.bc-steps b { color: var(--ink); }
.adm-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .adm-bc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bc-card { padding: 16px 16px 16px 20px; }
  .adm-row-actions { flex-direction: column; align-items: stretch; }
}


/* Pencarian di wizard beli server (jenis server + versi). Tab kategori
   sengaja dihapus: pindah lini produk hanya lewat navbar, supaya wizard tidak
   punya jalan keluar di tengah alur. */
.wiz-cari { margin: 0 0 14px; }
.wiz-cari[hidden] { display: none; }
.wiz-cari-field, .wiz-cari-sm {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiz-cari-field .form-input, .wiz-cari-sm .form-input {
  padding-left: 38px;
  padding-right: 36px;
}
.wiz-cari-sm .form-input { padding-left: 34px; }
.wiz-cari-ic {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--text-2, #64748b);
  pointer-events: none;
}
.wiz-cari-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(100, 116, 139, .14);
  color: var(--text-2, #475569);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.wiz-cari-clear:hover { background: rgba(100, 116, 139, .26); }
.wiz-cari-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-2, #64748b);
}
.wiz-cari-status:empty { display: none; }
/* Sembunyikan hasil filter tanpa menghapus dari DOM (state wizard tetap). */
.nest-card[hidden], .egg-option[hidden] { display: none !important; }

/* ============================================================
   RESPONSIVE & MOBILE-SAFE LAYER (2026-11-20)
   Satu tempat untuk perbaikan lintas-device. Semua aturan di bawah
   menyelesaikan cacat nyata yang terukur, bukan selera:
   - .auth-inner melebar 337px di viewport 320px (scroll horizontal).
     Sebabnya: .auth-wrap = grid dgn place-items:center; kolom grid
     mengikuti max-content anak, dan widget Turnstile 300px memaksa
     lebar > viewport. min-width:0 + max-width:100% menguncinya.
   - 100vh di iOS Safari lebih tinggi dari viewport terlihat (bar
     alamat), jadi halaman auth & drawer terpotong: pakai dvh.
   ============================================================ */

/* --- Auth: tidak boleh melebar melewati viewport --- */
.auth-wrap {
  /* minmax(0,1fr) mencegah kolom grid tumbuh mengikuti max-content
     anak (Turnstile 300px, tombol lebar) -> hilangnya scroll horizontal. */
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
}
.auth-inner {
  min-width: 0;
  max-width: min(440px, 100%);
}
.auth-split .auth-inner { max-width: min(460px, 100%); }
.auth-panel, .auth-card, .auth-card form, .auth-form-meta { min-width: 0; }
.captcha-field, .cf-turnstile { max-width: 100%; }
.captcha-field iframe, .cf-turnstile iframe { max-width: 100%; }
/* Badge reCAPTCHA mengambang di kanan bawah: jangan menambah lebar dokumen. */
.grecaptcha-badge { max-width: 100%; }

/* --- Tinggi viewport yang benar di mobile (bukan 100vh) --- */
@supports (height: 100dvh) {
  body.page-auth .auth-wrap { min-height: 100dvh; }
  .page-dashboard .main { min-height: calc(100dvh - 76px); }
}

/* --- Notch / gesture bar iPhone: jangan tertutup --- */
@supports (padding: max(0px)) {
  .site-header, .dash-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(var(--s-4), env(safe-area-inset-bottom)); }
  .nav-drawer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* --- Statistik landing: 4 kartu angka (dulu cuma grid child tak bergaya) --- */
.stat-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px;
  border: 1px solid rgba(10, 26, 47, 0.06);
  border-radius: var(--p-r-md);
  background: rgba(245, 247, 251, 0.8);
  text-align: center;
}
.stat-value {
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--p-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat-label {
  font-size: clamp(0.78rem, 1.7vw, 0.875rem);
  color: var(--p-text-3);
  margin-top: 0;
  line-height: 1.45;
}

/* --- Kartu error (404 / 403): satu tampilan, bukan inline style --- */
.err-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 28px);
  text-align: center;
}
.err-card h1 {
  font-size: clamp(1.35rem, 4.6vw, 1.7rem);
  margin: 12px 0 8px;
  line-height: 1.25;
}
.err-card .text-muted { margin-bottom: 22px; }
.err-card .hero-actions { justify-content: center; margin-top: 0; flex-wrap: wrap; }

/* --- Tablet & HP: ritme vertikal lebih rapat, kartu tetap lega --- */
@media (max-width: 768px) {
  /* Padding section tidak lagi menumpuk dua sistem (style+premium). */
  .section { padding: clamp(44px, 9vw, 72px) 0; }
  .section-head { margin-bottom: clamp(28px, 6vw, 44px); }
  .container { padding-left: var(--s-2); padding-right: var(--s-2); }
  /* Tombol utama selebar layar hanya di HP sempit: target sentuh lega. */
  .hero-actions .btn { flex: 1 1 auto; }
  .err-card .hero-actions .btn { flex: 0 1 auto; }
  /* Tabel dokumen tetap bisa digeser, tidak memotong halaman. */
  .doc-scroll { -webkit-overflow-scrolling: touch; }
  /* Badge status / pill tidak boleh memaksa baris melebar. */
  .status-pill, .tx-badge, .adm-chip { max-width: 100%; }
}

@media (max-width: 420px) {
  /* Gutter 16px di layar 320-420px: 8px terlalu sempit untuk jempol. */
  .container { padding-left: 16px; padding-right: 16px; }
  .auth-wrap { padding-left: 16px; padding-right: 16px; }
  .auth-card { padding: 22px 18px; }
  .stat-value { font-size: 1.3rem; }
  .stats-grid { gap: var(--s-3); }
}

/* --- Layar sangat lebar: jangan biarkan baris teks terlalu panjang --- */
@media (min-width: 1440px) {
  .hero .lead, .section-head p { max-width: 600px; }
}

/* --- Fokus keyboard selalu terlihat (di semua perangkat) --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Di layar sentuh outline hanya muncul saat navigasi keyboard, bukan tap. */
@media (hover: none) {
  :focus-visible { outline-offset: 3px; }
}

/* --- Preferensi kontras tinggi: pertegas border (WCAG 1.4.11) --- */
@media (prefers-contrast: more) {
  .card, .price-card, .nest-card, .egg-option, .srv-card, .settings-card {
    border-color: var(--border-strong, #C9D6E4);
  }
}

/* Judul pemisah kategori di halaman harga landing. */
.harga-kategori {
  margin: 34px 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #0f172a);
  letter-spacing: -.01em;
}
.harga-kategori:first-of-type { margin-top: 6px; }

/* ============================================================
   PRICE CAROUSEL (landing) - strip paket horizontal
   Auto-geser halus + geser manual (drag/swipe). Digerakkan carousel.js.
   CSS no-JS: tetap bisa di-scroll horizontal dengan scroll-snap.
   ============================================================ */
.price-carousel {
  position: relative;
  /* --c-k = kartu yang tampil penuh per layar (responsif di bawah).
     --c-peek = sisa ruang kanan supaya kartu berikutnya terlihat sebagian. */
  --c-gap: var(--s-3, 24px);
  --c-k: 3;
  --c-peek: 56px;
}

/* Track: satu baris horizontal, scroll-snap start per kartu.
   Kanvas kecil di sisi kiri/kanan agar glow&focus ring tidak terpotong. */
.carousel .pricing-grid,
.carousel .pricing-grid.few {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  max-width: none;
  margin: 0;
  gap: var(--c-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 2px;
  padding: 4px 2px 14px;
}
/* --c-peek menyisakan ruang di kanan agar kartu berikutnya "mengintip",
   tanda visual bahwa strip bisa digeser. Tanpa peek, fade tepi menimpa
   kartu yang sebenarnya utuh. */
.carousel .pricing-grid > * {
  flex: 0 0 calc((100% - (var(--c-k) - 1) * var(--c-gap)) / var(--c-k) - var(--c-peek, 0px));
  max-width: none;
  scroll-snap-align: start;
}
.carousel .pricing-grid { scrollbar-width: thin; scrollbar-color: rgba(10,26,47,.18) transparent; }
.carousel .pricing-grid::-webkit-scrollbar { height: 6px; }
.carousel .pricing-grid::-webkit-scrollbar-thumb { background: rgba(10,26,47,.18); border-radius: 999px; }
.carousel .pricing-grid::-webkit-scrollbar-track { background: transparent; }

/* --- Mask fade di kedua tepi (hanya saat bisa di-scroll) --- */
.price-carousel::before,
.price-carousel::after {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 14px;
  width: 26px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--p-ease, ease);
}
.price-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-soft, #EDF3FA), rgba(237,243,250,0));
}
.price-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-soft, #EDF3FA), rgba(237,243,250,0));
}
.price-carousel.can-scroll::before,
.price-carousel.can-scroll::after { opacity: 1; }
/* Tepi yang sudah habis tidak perlu fade: di awal tak ada apa pun di kiri,
   di akhir tak ada apa pun di kanan. */
.price-carousel.at-start::before { opacity: 0; }
.price-carousel.at-end::after { opacity: 0; }

/* --- Tombol panah (muncul via JS bila overflow) --- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(10, 26, 47, 0.1);
  background: var(--p-surface, #fff);
  color: var(--ink, #0f172a);
  box-shadow: var(--p-shadow-card, 0 6px 16px -8px rgba(10,26,47,.25));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--p-ease, ease), background 0.25s, color 0.25s, box-shadow 0.3s;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover {
  background: var(--accent, #0284c7);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--p-glow-cyan, 0 0 24px rgba(30,84,203,.35));
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.94); }
/* Atribut hidden harus menang atas display:inline-flex tombol panah. */
.carousel-arrow[hidden] { display: none !important; }
.carousel-prev { left: -14px; }
.carousel-prev svg { transform: rotate(180deg); }
.carousel-next { right: -14px; }

/* --- Progress bar tipis (autoplay): track penuh + isi tumbuh --- */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(10, 26, 47, 0.07);
  overflow: hidden;
  z-index: 2;
}
.carousel-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #0284c7), var(--accent-deep, #0369a1));
}
.price-carousel:not(.can-scroll) .carousel-progress { display: none; }

/* Kartu di dalam track tidak boleh ikut animasi reveal: kartu yang di luar
   layar horizontal tidak pernah "intersecting", jadi akan tertahan opacity 0
   sampai digeser. Track sudah punya animasi geser sendiri. */
.carousel .pricing-grid > .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Kursor tarik di desktop (pointer halus). */
@media (hover: hover) and (pointer: fine) {
  .carousel .pricing-grid { cursor: grab; }
  .carousel .pricing-grid:active { cursor: grabbing; }
}

@media (max-width: 860px) {
  .price-carousel { --c-k: 2; --c-peek: 40px; }
}
@media (max-width: 560px) {
  .price-carousel { --c-k: 1; --c-peek: 44px; }
  .price-carousel::before, .price-carousel::after { width: 18px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-prev, .carousel-next { display: none; } /* swipe sudah cukup di mobile */
}
