/* ============================================================
   FinOS — Sistem Keuangan Pribadi & Bisnis
   Design System: Ultra-Glassmorphism & Mobile-First UX
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand Colors (TitikBersama & Glass Theme) */
  --bg-primary:         #07090e;
  --bg-secondary:       rgba(14, 18, 27, 0.75);
  --bg-card:            rgba(22, 28, 42, 0.55);
  --bg-card-hover:      rgba(30, 39, 58, 0.75);
  --bg-glass:           rgba(18, 24, 38, 0.65);
  --bg-glass-high:      rgba(22, 30, 48, 0.85);
  --bg-sidebar:         rgba(10, 13, 20, 0.75);

  --accent-cyan:        #0EA5A5;
  --accent-cyan-bright: #00e5ff;
  --accent-cyan-glow:   rgba(14, 165, 165, 0.35);
  
  --accent-magenta:     #D9455F;
  --accent-magenta-glow:rgba(217, 69, 95, 0.35);
  
  --accent-green:       #10b981;
  --accent-green-glow:  rgba(16, 185, 129, 0.35);
  
  --accent-yellow:      #f59e0b;
  --accent-purple:      #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);

  --text-primary:       #f8fafc;
  --text-secondary:     #94a3b8;
  --text-muted:         #64748b;

  --border-glass:       rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.15);
  --border-accent:      rgba(14, 165, 165, 0.4);

  --shadow-glass:       0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-card:        0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --shadow-glow-cyan:   0 0 25px rgba(14, 165, 165, 0.3);

  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --sidebar-w:  260px;
  --topbar-h:   56px;
  --mobile-nav-h: 72px;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-only { display: none !important; }
.desktop-only { display: flex; }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) {
  html {
    scroll-padding-bottom: calc(var(--mobile-nav-h) + 20px + env(safe-area-inset-bottom, 0px));
  }
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: 'Inter', sans-serif; outline: none; border: none; }

/* ── Liquid Animated Ambient Blobs ─────────────────────────── */
.liquid-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: blobFloat 18s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  top: -100px;
  left: -100px;
  animation-duration: 22s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-magenta);
  bottom: 10%;
  right: -80px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-purple);
  top: 45%;
  left: 30%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, -60px) scale(1.1); }
  66%  { transform: translate(-40px, 40px) scale(0.95); }
  100% { transform: translate(30px, 50px) scale(1.05); }
}

.circuit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(var(--accent-cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-cyan) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(10, 13, 20, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -0.3px; }

/* ── App Shell ──────────────────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

/* ── Auth Screen (Glassmorphism) ────────────────────────────── */
#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(25px);
  padding: 20px;
}
.auth-card {
  background: var(--bg-glass-high);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--shadow-card), 0 0 40px rgba(14,165,165,0.15);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
}
.auth-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(14,165,165,0.4);
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-card p { color: var(--text-secondary); margin-bottom: 28px; font-size: 13px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 24px; }
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.pin-dot.filled {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan-bright);
  box-shadow: 0 0 14px var(--accent-cyan-bright);
}
.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 250px;
  margin: 0 auto;
}
.pin-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.pin-btn:hover, .pin-btn:active {
  background: rgba(14, 165, 165, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: scale(0.97);
}
.pin-btn.del { font-size: 18px; color: var(--accent-magenta); }
.auth-error { color: var(--accent-magenta); font-size: 13px; margin-top: -8px; animation: shake 0.3s; }
.auth-hint { color: var(--text-muted); font-size: 12px; }

/* ── Sidebar Overlay (Mobile) ─────────────────────────────── */
#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 98;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* ── Sidebar (Glass Sidebar) ───────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(14,165,165,0.35);
}
.logo-text .name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.logo-text .sub { font-size: 10px; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

.sidebar-section { padding: 16px 12px 6px; }
.sidebar-section-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 10px;
  margin-bottom: 6px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(14, 165, 165, 0.2), rgba(14, 165, 165, 0.05));
  color: var(--accent-cyan-bright);
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(14, 165, 165, 0.15);
}
.nav-item .icon { width: 22px; text-align: center; font-size: 17px; }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border-glass);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}
.user-info:hover { background: rgba(255, 255, 255, 0.08); }
.user-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ── Main Content Area ───────────────────────────────────────── */
#main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-bottom: 80px;
}

/* ── Topbar ──────────────────────────────────────────────────── */
#topbar {
  height: var(--topbar-h);
  background: rgba(14, 18, 27, 0.7);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
}
.topbar-title { font-size: 18px; font-weight: 600; flex: 1; font-family: 'Poppins', sans-serif; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}
.topbar-badge .dot { width: 7px; height: 7px; background: var(--accent-green); border-radius: 50%; animation: pulse 2s infinite; }
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-sm);
  padding: 0;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.topbar-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-date-compact {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Page Content ────────────────────────────────────────────── */
.page {
  padding: 28px;
  display: none;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.page.active { display: block; }
.page-scroll { overflow: visible; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-header p,
.page-header-desc { color: var(--text-secondary); font-size: 14px; }

/* ── Ultra Glass Cards ───────────────────────────────────────── */
.card, .glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::after, .glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.01));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(14, 165, 165, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 25px rgba(14, 165, 165, 0.1);
}
@media (hover: none) {
  .card:hover, .kpi-card:hover {
    transform: none;
    box-shadow: var(--shadow-glass);
  }
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; }

/* ── KPI Cards (Frosted Sheen) ───────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-color, var(--accent-cyan));
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(14,165,165,0.15);
  border-color: rgba(255, 255, 255, 0.2);
}
.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.kpi-value { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.5px; }
.kpi-value.cyan { color: var(--accent-cyan-bright); }
.kpi-value.green { color: var(--accent-green); }
.kpi-value.red { color: var(--accent-magenta); }
.kpi-value.yellow { color: var(--accent-yellow); }
.kpi-sub { font-size: 12px; color: var(--text-secondary); }
.kpi-glow {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: var(--kpi-color, var(--accent-cyan));
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(35px);
  pointer-events: none;
}

/* ── Grids ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(10, 13, 20, 0.4);
  backdrop-filter: blur(10px);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  background: rgba(22, 30, 48, 0.8);
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-glass);
}
td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-primary);
  white-space: nowrap;
}
tr:hover td { background: rgba(255,255,255,0.03); }

/* ── Badges / Pills ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.badge-cyan  { background: rgba(14,165,165,0.18); color: var(--accent-cyan-bright); border: 1px solid rgba(14,165,165,0.3); }
.badge-green { background: rgba(16,185,129,0.18); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.badge-red   { background: rgba(217,69,95,0.18);  color: var(--accent-magenta); border: 1px solid rgba(217,69,95,0.3); }
.badge-yellow{ background: rgba(245,158,11,0.18); color: var(--accent-yellow); border: 1px solid rgba(245,158,11,0.3); }
.badge-purple{ background: rgba(139,92,246,0.18); color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.3); }
.badge-gray  { background: rgba(255,255,255,0.08); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1); }

/* ── Buttons (Glass Buttons) ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  min-height: 44px; /* Mobile touch friendly */
  backdrop-filter: blur(10px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0bb5b5);
  color: #05080e;
  box-shadow: 0 4px 15px rgba(14, 165, 165, 0.3);
}
.btn-primary:hover, .btn-primary:active {
  background: linear-gradient(135deg, var(--accent-cyan-bright), var(--accent-cyan));
  box-shadow: 0 0 25px rgba(14, 165, 165, 0.6);
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(217,69,95,0.18);
  color: var(--accent-magenta);
  border: 1px solid rgba(217,69,95,0.35);
}
.btn-danger:hover { background: rgba(217,69,95,0.3); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass-light);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent-cyan); background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 8px 14px; font-size: 12px; min-height: 36px; }
.btn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}
.btn-icon:hover { color: var(--accent-cyan-bright); border-color: var(--accent-cyan); background: rgba(14,165,165,0.15); }

/* ── Inputs (Glass Input) ────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input, .form-select {
  width: 100%;
  background: rgba(10, 14, 22, 0.6);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  min-height: 46px; /* Mobile touch size */
  backdrop-filter: blur(10px);
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan-bright);
  background: rgba(14, 20, 32, 0.85);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── Modal (Glass Sheet / Dialog) ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-glass-high);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(30px) saturate(190%);
  box-shadow: var(--shadow-card), 0 0 50px rgba(14,165,165,0.15);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 19px; font-weight: 700; font-family: 'Poppins', sans-serif; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(217,69,95,0.25); color: var(--accent-magenta); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }

/* ── Progress Bar ────────────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-bright));
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Chart Container ─────────────────────────────────────────── */
.chart-container { position: relative; height: 230px; }
.chart-container-lg { position: relative; height: 290px; }

/* ── Stats Row ───────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin: 16px 0;
}
.stat-item { flex: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.stat-value { font-size: 16px; font-weight: 700; font-family: 'Poppins', sans-serif; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 52px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 17px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ── Alert / Notifications ───────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}
.alert-warn { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: var(--accent-yellow); }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--accent-green); }
.alert-danger { background: rgba(217,69,95,0.12); border: 1px solid rgba(217,69,95,0.3); color: var(--accent-magenta); }
.alert-info { background: rgba(14,165,165,0.12); border: 1px solid rgba(14,165,165,0.3); color: var(--accent-cyan-bright); }

/* ── Tab Bar (Glass Pill Tabs) ───────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 6px;
  background: rgba(10, 14, 22, 0.6);
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-glass);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan-bright);
  border: 1px solid var(--border-glass-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Toast ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-glass-high);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error   { border-left: 4px solid var(--accent-magenta); }
.toast.info    { border-left: 4px solid var(--accent-cyan); }

/* ── Donut Chart Container ───────────────────────────────────── */
.donut-container { display: flex; align-items: center; gap: 20px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-name { flex: 1; color: var(--text-secondary); }
.legend-value { font-weight: 600; }

/* ── Mobile Bottom Navigation Bar ────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 95;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 10px env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  max-width: 96px;
  min-height: 56px;
  transition: color 0.25s ease, transform 0.2s ease;
  position: relative;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item .icon {
  font-size: 22px;
  line-height: 1;
  transition: transform var(--transition-spring);
}
.mobile-nav-item .label { letter-spacing: 0.2px; }
.mobile-nav-item .nav-pill {
  position: absolute;
  top: 4px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-bright));
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-item.active {
  color: var(--accent-cyan-bright);
}
.mobile-nav-item.active .nav-pill { width: 28px; }
.mobile-nav-item.active .icon { transform: scale(1.08); }
.mobile-nav-item:active { transform: scale(0.94); }

/* Mobile "Lainnya" sheet */
.mobile-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.65);
  backdrop-filter: blur(6px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-sheet-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 111;
  background: rgba(14, 18, 28, 0.97);
  border: 1px solid var(--border-glass-light);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
}
.mobile-sheet.show { transform: translateY(0); }
.mobile-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin: 4px auto 14px;
}
.mobile-sheet-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.mobile-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  text-align: left;
  min-height: 64px;
  transition: var(--transition);
}
.mobile-sheet-item:active {
  background: rgba(14, 165, 165, 0.15);
  border-color: var(--border-accent);
  transform: scale(0.98);
}
.mobile-sheet-item-muted { opacity: 0.85; }
.msi-icon { font-size: 24px; width: 32px; text-align: center; flex-shrink: 0; }
.msi-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.msi-text strong { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.msi-text small { font-size: 11px; color: var(--text-muted); }
.msi-chevron { color: var(--text-muted); font-size: 22px; font-weight: 300; }

/* KPI horizontal carousel (mobile) */
.kpi-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--text-muted);
  margin: -12px 0 10px 2px;
  align-items: center;
  gap: 6px;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ── MOBILE UX & RESPONSIVE BREAKPOINTS ───────────────────────── */
* {
  -webkit-tap-highlight-color: transparent;
}

.table-wrapper {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  #app {
    flex-direction: column;
    overflow-x: clip;
  }

  #sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-card);
    width: min(88vw, 300px);
    padding-top: env(safe-area-inset-top, 0px);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebar-overlay.show { display: block; }
  #main-content {
    margin-left: 0;
    flex: 1 1 auto;
    min-height: auto;
    padding-bottom: calc(var(--mobile-nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  }

  #topbar {
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 12px;
    gap: 10px;
    flex-shrink: 0;
  }
  .topbar-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .menu-toggle { display: flex; }

  .mobile-nav { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }

  .page {
    flex: none;
    padding: 10px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    animation: fadeIn 0.28s ease;
    box-sizing: border-box;
  }
  .page-header { margin-bottom: 12px; }
  .page-header-mobile h2 {
    font-size: 19px;
    line-height: 1.3;
    word-break: break-word;
  }
  .page-header-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
  }

  /* KPI swipe carousel — stay inside page width */
  .kpi-scroll-hint { display: flex; margin: 0 0 8px 2px; }
  .kpi-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
    padding: 2px 4px 10px;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kpi-grid::-webkit-scrollbar { display: none; }
  .kpi-card {
    flex: 0 0 calc(100% - 32px);
    max-width: 320px;
    scroll-snap-align: center;
    padding: 14px 16px;
  }
  .kpi-value { font-size: 21px; word-break: break-word; }
  .kpi-label { font-size: 10px; line-height: 1.35; }

  .card {
    padding: 16px;
    border-radius: var(--radius-md);
    max-width: none !important;
    overflow: visible;
  }
  .kpi-card { overflow: hidden; }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  /* Sticky tab bar — full labels visible, no edge mask */
  .tab-bar-sticky {
    position: sticky;
    top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) - 1px);
    z-index: 45;
    background: rgba(8, 11, 18, 0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px !important;
  }
  .tab-bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px;
    gap: 6px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn {
    padding: 10px 14px;
    font-size: 11px;
    flex: 0 0 auto;
    min-height: 44px;
    max-width: none;
  }

  .filter-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .filter-stack .form-select,
  .filter-stack .form-input {
    width: 100% !important;
    min-width: 0 !important;
  }
  .toolbar-mobile.flex-between > .flex-gap-8 {
    grid-template-columns: 1fr;
  }
  .toolbar-mobile .btn-sm {
    min-height: 44px;
  }

  .flex-gap-8 {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  .flex-gap-8 .form-input,
  .flex-gap-8 .form-select {
    min-width: 0;
    flex: 1 1 100%;
  }

  .donut-container { flex-direction: column; align-items: stretch; }
  .donut-container canvas { margin: 0 auto; max-width: 100% !important; height: auto !important; }
  .stats-row {
    flex-direction: column;
    gap: 14px;
  }
  .stat-item { min-width: 0; width: 100%; }

  .form-input, .form-select, textarea.form-input {
    font-size: 16px !important;
    min-height: 48px;
    max-width: 100%;
  }

  .btn {
    min-height: 48px;
    font-size: 14px;
    max-width: 100%;
  }
  .btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .flex-between.mb-16,
  .flex-between.mb-24 {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
  }
  .flex-between.mb-16 > .flex-gap-8,
  .flex-between.mb-24 > .flex-gap-8 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .flex-between.mb-16 > .flex-gap-8 .btn-primary,
  .flex-between.mb-16 > .btn-primary {
    grid-column: 1 / -1;
  }

  /* Tables → card rows */
  .table-wrapper.table-cards-host {
    overflow: visible;
    border: none;
    background: transparent;
    width: 100%;
    max-width: 100%;
  }
  table.table-cards {
    width: 100%;
    table-layout: fixed;
  }
  table.table-cards thead { display: none; }
  table.table-cards tbody { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  table.table-cards tbody tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    backdrop-filter: blur(12px);
  }
  table.table-cards tbody tr:hover td { background: transparent; }
  table.table-cards tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border: none;
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
    text-align: right;
  }
  table.table-cards tbody td > * {
    text-align: right;
    max-width: 58%;
  }
  table.table-cards tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    flex-shrink: 0;
    max-width: 40%;
    text-align: left;
  }
  table.table-cards tbody td:last-child {
    border-top: 1px solid var(--border-glass);
    margin-top: 6px;
    padding-top: 12px;
    justify-content: flex-end;
  }
  table.table-cards tbody td:last-child::before { display: none; }
  table.table-cards tbody td[colspan] {
    display: block;
    text-align: center;
  }
  table.table-cards tbody td[colspan]::before { display: none; }

  .table-wrapper:not(.table-cards-host) {
    border-radius: var(--radius-md);
    max-width: 100%;
  }

  #page-reports .table-wrapper,
  #page-reports .card {
    margin-bottom: 16px;
  }
  #page-reports .chart-container-lg {
    height: min(280px, 55vw);
    min-height: 200px;
  }

  #biz-tab-games .table-wrapper,
  #biz-tab-games #calc-game-checkboxes {
    max-height: none !important;
    overflow: visible !important;
  }

  .chart-container { height: 200px; min-height: 180px; }
  .chart-container-lg { height: 240px; min-height: 200px; }

  #toast-container {
    left: 14px;
    right: 14px;
    bottom: calc(var(--mobile-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 92dvh;
    padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
  }
  .modal-overlay.show .modal {
    transform: translateY(0) scale(1);
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    margin: 0 auto 14px;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .modal-footer .btn { width: 100%; }

  .auth-card {
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 94dvh;
    overflow-y: auto;
  }
  #auth-screen {
    align-items: flex-end;
    padding: 0;
  }
  .pin-grid {
    max-width: 100%;
    gap: 10px;
  }
  .pin-btn {
    min-height: 56px;
    font-size: 22px;
    border-radius: 16px;
  }
  .pin-btn:active {
    transform: scale(0.96);
    background: rgba(14, 165, 165, 0.35);
  }

  .alert {
    font-size: 12px;
    line-height: 1.5;
    padding: 12px 14px;
  }

  .empty-state { padding: 32px 16px; }

  /* Prevent nested grids from forcing horizontal overflow */
  .grid-2,
  .grid-3,
  .kpi-grid,
  .tab-bar,
  .page,
  #main-content {
    box-sizing: border-box;
  }
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 480px) {
  .flex-between.mb-16 > .flex-gap-8,
  .flex-between.mb-24 > .flex-gap-8 {
    grid-template-columns: 1fr;
  }
  .flex-gap-8.w-full .btn { width: 100%; }
}


/* ── Utility ─────────────────────────────────────────────────── */
.text-cyan    { color: var(--accent-cyan-bright); }
.text-green   { color: var(--accent-green); }
.text-red     { color: var(--accent-magenta); }
.text-yellow  { color: var(--accent-yellow); }
.text-muted   { color: var(--text-muted); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.fs-12        { font-size: 12px; }
.fs-13        { font-size: 13px; }
.mb-4         { margin-bottom: 4px; }
.mb-8         { margin-bottom: 8px; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.gap-8        { gap: 8px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-8   { display: flex; gap: 8px; }
.flex-gap-12  { display: flex; gap: 12px; }
.w-full       { width: 100%; }
.hidden       { display: none !important; }

/* ── Mobile Performance Patch ──────────────────────────────────
   backdrop-filter: blur() dan animasi blob 80px berjalan terus-
   menerus sangat berat untuk GPU HP (terutama Android non-flagship).
   Di layar mobile, matikan animasi & ganti blur berat dengan
   background solid semi-transparan (visualnya tetap gelap & rapi,
   tapi jauh lebih ringan di-render).
────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blob {
    animation: none;
    filter: blur(40px);
    opacity: 0.14;
  }
  .circuit-bg { display: none; }

  *,
  #auth-screen,
  .auth-card,
  .card,
  .modal,
  #sidebar,
  #topbar,
  .mobile-nav,
  .mobile-more-sheet,
  .kpi-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Hormati pengaturan "reduce motion" di HP pengguna */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
