/* ============================================================
   ABSENSI DIGITAL — NEON GLASSMORPHISM v2
   Lapisan desain final (dimuat paling akhir). Mengacu 1:1 pada
   desain referensi: dark background, kartu kaca biru gelap,
   glow neon biru/ungu/hijau/kuning/merah, radius besar.
   ============================================================ */

:root {
  /* Warna dasar mengikuti referensi */
  --bg-0: #04050a;
  --bg-1: #070912;
  --bg-2: #0b1020;

  --n-blue: #2f8bff;
  --n-cyan: #22d3ff;
  --n-violet: #a855f7;
  --n-green: #22e07a;
  --n-amber: #ffc528;
  --n-red: #ff3b63;

  --neon-cyan: var(--n-cyan);
  --neon-blue: var(--n-blue);
  --neon-violet: var(--n-violet);
  --neon-lime: var(--n-green);
  --neon-amber: var(--n-amber);
  --neon-red: var(--n-red);
  --neon-magenta: var(--n-violet);

  --card-bg: linear-gradient(160deg, rgba(16, 26, 54, 0.86), rgba(8, 12, 26, 0.9));
  --card-brd: rgba(90, 140, 255, 0.18);
  --glass-bg: rgba(14, 22, 46, 0.72);
  --glass-bg-2: rgba(22, 34, 66, 0.85);
  --glass-brd: rgba(90, 140, 255, 0.18);
  --glass-brd-2: rgba(120, 170, 255, 0.34);

  --txt: #eef3ff;
  --txt-dim: #93a3c9;
  --txt-mute: #6b7a9e;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --radius: 20px;

  --sh-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --sh-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 26px rgba(47, 139, 255, 0.35);
  --glow-violet: 0 0 26px rgba(168, 85, 247, 0.32);

  --header-h: 74px;
  --bottomnav-h: 78px;

  --font-ui: "Inter", "Poppins", "Outfit", "Segoe UI", system-ui, sans-serif;
}

html,
body {
  background: #04050a;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

body::before {
  background:
    radial-gradient(52rem 34rem at 8% -6%, rgba(47, 139, 255, 0.18), transparent 62%),
    radial-gradient(46rem 32rem at 100% 4%, rgba(168, 85, 247, 0.16), transparent 62%),
    radial-gradient(44rem 34rem at 50% 118%, rgba(34, 211, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #070a14 0%, #04050a 60%, #04050a 100%);
}

body::after {
  opacity: 0.16;
  background-size: 54px 54px;
}

/* ---------------- Kartu kaca ---------------- */
.glass,
.glass-strong {
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  position: relative;
}

.glass-hover {
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}
.glass-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 175, 255, 0.42);
  box-shadow: var(--sh-lg), 0 0 30px rgba(47, 139, 255, 0.22);
}

.card-pad {
  padding: 1.1rem;
}
@media (min-width: 640px) {
  .card-pad {
    padding: 1.35rem;
  }
}

.section-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.link-more {
  color: var(--n-blue);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}
.link-more:hover {
  text-shadow: 0 0 14px rgba(47, 139, 255, 0.8);
}

/* ---------------- Header aplikasi ---------------- */
.app-header {
  height: auto;
  min-height: var(--header-h);
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, rgba(6, 9, 20, 0.96), rgba(6, 9, 20, 0.72));
  border-bottom: 1px solid rgba(90, 140, 255, 0.14);
  backdrop-filter: blur(20px);
}

.hd-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}
.hd-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(30, 48, 96, 0.9), rgba(10, 16, 36, 0.95));
  border: 1px solid rgba(120, 170, 255, 0.32);
  box-shadow: 0 0 18px rgba(47, 139, 255, 0.28);
  overflow: hidden;
}
.hd-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.hd-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hd-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--n-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 255, 0.5);
  white-space: nowrap;
}

.hd-clock {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 16px;
  background: rgba(14, 22, 46, 0.8);
  border: 1px solid rgba(90, 140, 255, 0.22);
  box-shadow: inset 0 0 26px rgba(47, 139, 255, 0.08);
  backdrop-filter: blur(14px);
}
@media (min-width: 480px) {
  .hd-clock {
    display: inline-flex;
  }
}
.hd-clock .ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--n-blue);
  background: rgba(47, 139, 255, 0.12);
  border: 1px solid rgba(47, 139, 255, 0.3);
  flex: none;
}
.hd-clock .ico svg {
  width: 17px;
  height: 17px;
}
.hd-clock .d {
  font-size: 0.74rem;
  color: #dbe5ff;
  white-space: nowrap;
  line-height: 1.25;
}
.hd-clock .t {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--n-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.hd-bell {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #cfdcff;
  background: rgba(14, 22, 46, 0.8);
  border: 1px solid rgba(90, 140, 255, 0.22);
  cursor: pointer;
  transition: var(--tr);
}
.hd-bell:hover {
  border-color: rgba(120, 170, 255, 0.5);
  box-shadow: var(--glow-blue);
}
.hd-bell svg {
  width: 19px;
  height: 19px;
}
.hd-bell .dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--n-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(255, 59, 99, 0.7);
  border: 2px solid #070912;
}

/* ---------------- Hero ---------------- */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 130% at 92% 50%, rgba(120, 60, 255, 0.24), transparent 60%),
    linear-gradient(150deg, rgba(17, 27, 58, 0.92), rgba(8, 11, 24, 0.94));
  border: 1px solid rgba(110, 150, 255, 0.2);
  box-shadow: var(--sh-md), inset 0 0 60px rgba(47, 139, 255, 0.07);
  overflow: hidden;
}
.hero-card h2 {
  font-size: clamp(1.35rem, 5.6vw, 1.95rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.hero-card p {
  color: var(--txt-dim);
  font-size: 0.86rem;
  margin-top: 0.5rem;
  max-width: 30ch;
}
.hero-art {
  width: clamp(112px, 34vw, 210px);
  aspect-ratio: 1 / 0.92;
  background: none;
  border: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  justify-self: end;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(110, 80, 255, 0.55));
  animation: heroFloat 5.5s ease-in-out infinite;
}
@keyframes heroFloat {
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    animation: none;
  }
}
.hero-chips {
  margin-top: 0.85rem;
}
.chip {
  background: rgba(47, 139, 255, 0.1);
  border: 1px solid rgba(47, 139, 255, 0.28);
  color: #cbdcff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ---------------- Kartu statistik ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (min-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.stat-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 0.95rem 0.6rem 1rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(14, 22, 46, 0.9), rgba(7, 10, 22, 0.94));
}
.stat-card .stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.6px solid currentColor;
}
.stat-card .stat-ico svg {
  width: 21px;
  height: 21px;
}
.stat-card .stat-value {
  font-size: clamp(1.35rem, 5.4vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 0.74rem;
  color: var(--txt-dim);
}
.stat-card .stat-sub {
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-c-blue {
  border-color: rgba(47, 139, 255, 0.42);
  box-shadow: var(--sh-sm), inset 0 0 34px rgba(47, 139, 255, 0.14);
}
.stat-c-lime {
  border-color: rgba(34, 224, 122, 0.4);
  box-shadow: var(--sh-sm), inset 0 0 34px rgba(34, 224, 122, 0.12);
}
.stat-c-amber {
  border-color: rgba(255, 197, 40, 0.4);
  box-shadow: var(--sh-sm), inset 0 0 34px rgba(255, 197, 40, 0.12);
}
.stat-c-violet {
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: var(--sh-sm), inset 0 0 34px rgba(168, 85, 247, 0.14);
}
.stat-c-red {
  border-color: rgba(255, 59, 99, 0.42);
  box-shadow: var(--sh-sm), inset 0 0 34px rgba(255, 59, 99, 0.12);
}

.ico-blue {
  color: var(--n-blue);
  box-shadow: 0 0 18px rgba(47, 139, 255, 0.35), inset 0 0 12px rgba(47, 139, 255, 0.18);
}
.ico-lime {
  color: var(--n-green);
  box-shadow: 0 0 18px rgba(34, 224, 122, 0.32), inset 0 0 12px rgba(34, 224, 122, 0.16);
}
.ico-amber {
  color: var(--n-amber);
  box-shadow: 0 0 18px rgba(255, 197, 40, 0.32), inset 0 0 12px rgba(255, 197, 40, 0.16);
}
.ico-violet {
  color: var(--n-violet);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.34), inset 0 0 12px rgba(168, 85, 247, 0.18);
}
.ico-red {
  color: var(--n-red);
  box-shadow: 0 0 18px rgba(255, 59, 99, 0.32), inset 0 0 12px rgba(255, 59, 99, 0.16);
}

.neon-blue {
  color: var(--n-blue);
  text-shadow: 0 0 12px rgba(47, 139, 255, 0.6);
}
.neon-lime {
  color: var(--n-green);
  text-shadow: 0 0 12px rgba(34, 224, 122, 0.55);
}
.neon-amber {
  color: var(--n-amber);
  text-shadow: 0 0 12px rgba(255, 197, 40, 0.55);
}
.neon-violet {
  color: var(--n-violet);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.neon-red {
  color: var(--n-red);
  text-shadow: 0 0 12px rgba(255, 59, 99, 0.55);
}
.neon-cyan {
  color: var(--n-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 255, 0.55);
}

/* ---------------- Donut & legend ---------------- */
.donut-box {
  max-width: 168px;
  filter: drop-shadow(0 0 18px rgba(34, 224, 122, 0.25));
}
.donut-center b {
  font-size: 1.5rem;
  color: #fff;
}
.legend-row {
  font-size: 0.85rem;
}
.legend-row b {
  color: #fff;
}

/* ---------------- Kartu scan ---------------- */
.scan-cta {
  border-radius: var(--r-xl);
  padding: 1.35rem 1rem;
}
.scan-cta .scan-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(47, 139, 255, 0.55);
  background: radial-gradient(circle, rgba(47, 139, 255, 0.18), transparent 70%);
  box-shadow: 0 0 34px rgba(47, 139, 255, 0.45), inset 0 0 28px rgba(47, 139, 255, 0.22);
  animation: ringPulse 2.8s ease-in-out infinite;
}
@keyframes ringPulse {
  50% {
    box-shadow: 0 0 52px rgba(47, 139, 255, 0.6), inset 0 0 34px rgba(47, 139, 255, 0.3);
  }
}
.scan-cta .scan-ring svg {
  width: 46px;
  height: 46px;
  color: #6cb4ff;
  filter: drop-shadow(0 0 10px rgba(47, 139, 255, 0.8));
}
.scan-cta .btn {
  border-color: rgba(47, 139, 255, 0.6);
  color: #9ccbff;
}

/* ---------------- Baris daftar absensi ---------------- */
.row-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(90, 140, 255, 0.12);
  background: rgba(11, 18, 38, 0.55);
  transition: var(--tr);
}
.row-item + .row-item {
  margin-top: 0.5rem;
}
.row-item:hover {
  border-color: rgba(120, 170, 255, 0.35);
  background: rgba(20, 32, 64, 0.7);
  transform: translateX(2px);
}
.row-item .row-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(120, 170, 255, 0.3);
}
.row-item .row-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #eaf1ff;
}
.row-item .row-sub {
  font-size: 0.73rem;
}
.row-time {
  font-size: 0.75rem;
  color: var(--txt-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------- Badge ---------------- */
.badge {
  border-radius: 10px;
  padding: 0.24rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid currentColor;
  text-transform: capitalize;
}
.badge-hadir {
  color: var(--n-green);
  background: rgba(34, 224, 122, 0.12);
}
.badge-telat {
  color: var(--n-amber);
  background: rgba(255, 197, 40, 0.12);
}
.badge-izin {
  color: var(--n-violet);
  background: rgba(168, 85, 247, 0.14);
}
.badge-sakit {
  color: var(--n-cyan);
  background: rgba(34, 211, 255, 0.12);
}
.badge-alfa {
  color: var(--n-red);
  background: rgba(255, 59, 99, 0.14);
}

/* ---------------- Tombol ---------------- */
.btn {
  border-radius: 14px;
  font-weight: 600;
  background: rgba(18, 28, 56, 0.8);
  border: 1px solid rgba(90, 140, 255, 0.24);
}
.btn:hover {
  background: rgba(28, 44, 84, 0.9);
  border-color: rgba(120, 170, 255, 0.5);
  box-shadow: 0 0 20px rgba(47, 139, 255, 0.22);
}
.btn-primary,
.btn-neon {
  color: #bfe0ff;
  border-color: rgba(47, 139, 255, 0.55);
  background: linear-gradient(140deg, rgba(47, 139, 255, 0.22), rgba(47, 139, 255, 0.08));
}
.btn-primary:hover,
.btn-neon:hover {
  box-shadow: 0 0 26px rgba(47, 139, 255, 0.4);
}
.btn-magenta {
  color: #e2c6ff;
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(140deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.06));
}
.btn-lime {
  color: #b6ffd6;
  border-color: rgba(34, 224, 122, 0.5);
  background: linear-gradient(140deg, rgba(34, 224, 122, 0.18), rgba(34, 224, 122, 0.05));
}
.btn-danger {
  color: #ffc0cd;
  border-color: rgba(255, 59, 99, 0.5);
  background: linear-gradient(140deg, rgba(255, 59, 99, 0.18), rgba(255, 59, 99, 0.05));
}
.btn-icon {
  border-radius: 14px;
}

/* ---------------- Form ---------------- */
.input {
  border-radius: 14px;
  background: rgba(10, 16, 34, 0.9);
  border: 1px solid rgba(90, 140, 255, 0.22);
}
.input:focus {
  border-color: rgba(47, 139, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.18);
}
select.input option {
  background: #0b1020;
  color: #eef3ff;
}
.label {
  color: var(--txt-dim);
  font-weight: 600;
}

/* ---------------- Tabel ---------------- */
.table-wrap {
  border-radius: var(--r-lg);
  border: 1px solid rgba(90, 140, 255, 0.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tbl thead th {
  background: rgba(14, 24, 50, 0.95);
  color: #b9c8ee;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(90, 140, 255, 0.22);
}
.tbl tbody td {
  border-bottom: 1px solid rgba(90, 140, 255, 0.1);
  font-size: 0.84rem;
}
.tbl tbody tr:hover {
  background: rgba(47, 139, 255, 0.07);
}

/* ---------------- Sidebar (desktop) ---------------- */
.sidebar {
  background: linear-gradient(180deg, rgba(9, 14, 30, 0.97), rgba(5, 7, 16, 0.98));
  border-right: 1px solid rgba(90, 140, 255, 0.14);
  backdrop-filter: blur(20px);
}
.nav-item {
  border-radius: 14px;
  font-weight: 600;
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(47, 139, 255, 0.24), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(120, 170, 255, 0.4);
  box-shadow: inset 0 0 24px rgba(47, 139, 255, 0.16), 0 0 18px rgba(47, 139, 255, 0.16);
}
.sidebar-brand {
  border-bottom: 1px solid rgba(90, 140, 255, 0.14);
}

/* ---------------- Bottom navigation ---------------- */
.bottom-nav {
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(11, 18, 40, 0.95), rgba(5, 8, 18, 0.98));
  border-top: 1px solid rgba(90, 140, 255, 0.24);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(120, 170, 255, 0.12);
  backdrop-filter: blur(22px);
}
.bn-item {
  color: var(--txt-dim);
  font-size: 0.68rem;
  gap: 0.18rem;
  position: relative;
  transition: var(--tr);
}
.bn-item svg {
  width: 23px;
  height: 23px;
}
.bn-item.active {
  color: var(--n-blue);
  text-shadow: 0 0 12px rgba(47, 139, 255, 0.6);
}
.bn-item.active svg {
  filter: drop-shadow(0 0 8px rgba(47, 139, 255, 0.9));
}
.bn-item.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--n-blue);
  box-shadow: 0 0 10px var(--n-blue);
}
.bn-item.bn-scan {
  color: #cfe6ff;
}
.bn-item.bn-scan::after {
  display: none;
}
.bn-item.bn-scan .bn-fab {
  width: 62px;
  height: 62px;
  margin-top: -30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #3d95ff, #0b47a8);
  border: 3px solid rgba(6, 10, 24, 0.95);
  box-shadow: 0 0 30px rgba(47, 139, 255, 0.75), 0 8px 22px rgba(0, 0, 0, 0.55);
  color: #fff;
  animation: fabGlow 2.8s ease-in-out infinite;
}
@keyframes fabGlow {
  50% {
    box-shadow: 0 0 46px rgba(47, 139, 255, 0.95), 0 8px 22px rgba(0, 0, 0, 0.55);
  }
}
.bn-item.bn-scan .bn-fab svg {
  width: 28px;
  height: 28px;
}
@media (prefers-reduced-motion: reduce) {
  .bn-item.bn-scan .bn-fab,
  .scan-cta .scan-ring {
    animation: none;
  }
}

/* ---------------- Grafik ---------------- */
.chart-box {
  height: 250px;
}
@media (min-width: 640px) {
  .chart-box {
    height: 290px;
  }
}

/* ---------------- Sheet / modal / dialog ---------------- */
.modal-card,
.sheet,
.result-card,
dialog {
  background: linear-gradient(160deg, rgba(16, 26, 54, 0.96), rgba(8, 12, 26, 0.98)) !important;
  border: 1px solid rgba(110, 160, 255, 0.26) !important;
  border-radius: 24px !important;
  box-shadow: var(--sh-lg), 0 0 40px rgba(47, 139, 255, 0.14) !important;
}

/* ---------------- Halaman login ---------------- */
.auth-card {
  border-radius: 28px;
  box-shadow: var(--sh-lg), 0 0 50px rgba(47, 139, 255, 0.18);
}

/* ---------------- QR tile ---------------- */
.qr-tile .qr-box {
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 26px rgba(47, 139, 255, 0.28);
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.7rem;
}

/* ---------------- Utilitas anti-overflow ---------------- */
.page,
.app-main,
.app-shell {
  max-width: 100%;
  min-width: 0;
}
.grid,
.stat-grid,
.qr-grid {
  min-width: 0;
}
img,
canvas,
svg,
video {
  max-width: 100%;
}

/* Hero artwork: samarkan tepi gambar agar menyatu dengan kartu */
.hero-art img {
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 52%, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 52%, #000 55%, transparent 78%);
  filter: saturate(1.12) contrast(1.05);
}
