/* ===================================================
   NATA HADIR — GLOBAL DESIGN SYSTEM v3
   Color: White/Black + Red + Gold Accents
   =================================================== */

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

:root {
  --red-50:  #FFF1F1; --red-100: #FFE0E0; --red-200: #FFC2C2;
  --red-300: #FFA0A0; --red-400: #F06060; --red-500: #E02020;
  --red-600: #C41C1C; --red-700: #9B1414; --red-800: #740E0E;

  --gold-50:  #FFFBEB; --gold-100: #FEF3C7; --gold-200: #FDE68A;
  --gold-300: #FCD34D; --gold-400: #FBBF24; --gold-500: #E8AC10;
  --gold-600: #C8940A; --gold-700: #A07208;

  --gradient-brand:      linear-gradient(135deg, #C41C1C 0%, #C8940A 100%);
  --gradient-brand-r:    linear-gradient(135deg, #C8940A 0%, #C41C1C 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(196,28,28,0.08) 0%, rgba(200,148,10,0.08) 100%);

  /* Light mode */
  --bg-base:    #FFFFFF;
  --bg-subtle:  #F8F7F5;
  --bg-muted:   #F2F0EC;
  --bg-card:    #FFFFFF;
  --bg-modal:   rgba(0,0,0,0.55);

  --text-900: #0F0F0F; --text-700: #3C3C3C; --text-500: #717171;
  --text-300: #AAAAAA; --text-100: #E0E0E0; --text-inv: #FFFFFF;

  --border-subtle:  #F0F0F0;
  --border-default: #E8E8E8;
  --border-strong:  #D0D0D0;

  --shadow-xs:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.16);
  --shadow-brand: 0 8px 28px rgba(196,28,28,0.35);
  --shadow-gold:  0 8px 28px rgba(200,148,10,0.35);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);

  --r-xs:   6px;  --r-sm:  10px; --r-md:  16px;
  --r-lg:   22px; --r-xl:  30px; --r-2xl: 40px; --r-full: 9999px;

  --t-fast:   150ms ease;
  --t-normal: 260ms ease;
  --t-slow:   380ms ease;
  --t-spring: 440ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.72rem; --fs-sm: 0.85rem; --fs-base: 1rem;
  --fs-lg: 1.125rem; --fs-xl: 1.25rem; --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem; --fs-4xl: 2.25rem;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
  --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px;

  --bottom-nav-h: 74px;
  --header-h:     62px;
  --sidebar-w:    216px;
}

[data-theme="dark"] {
  --bg-base:    #090909; --bg-subtle: #111111;
  --bg-muted:   #191919; --bg-card:   #141414;
  --bg-modal:   rgba(0,0,0,0.85);

  --text-900: #F5F5F5; --text-700: #C8C8C8; --text-500: #888888;
  --text-300: #505050; --text-100: #282828;

  --border-subtle:  #1E1E1E;
  --border-default: #282828;
  --border-strong:  #3A3A3A;

  --shadow-xs:    0 1px 3px rgba(0,0,0,0.25);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.55);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: var(--fs-base); font-weight: 400;
  color: var(--text-900); background: var(--bg-subtle);
  overflow: hidden; height: 100dvh; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
input, textarea, button, select { font-family: var(--font); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

#app {
  width: 100%; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-muted); position: relative;
}

#device-frame {
  width: 100%; max-width: 430px;
  height: 100dvh; max-height: 932px;
  position: relative; background: var(--bg-base);
  overflow: hidden; box-shadow: var(--shadow-xl);
  transition: max-width var(--t-slow);
}
#device-frame.wide-mode { max-width: 760px; }

@media (min-width: 600px) {
  #device-frame { border-radius: var(--r-2xl); height: calc(100dvh - 40px); }
}

#screen-container { width: 100%; height: 100%; position: relative; overflow: hidden; }

.screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: none; flex-direction: column;
  background: var(--bg-base); overflow: hidden;
}
.screen.active { display: flex; animation: screenIn var(--t-normal) ease forwards; }
.screen.slide-out { animation: screenOut var(--t-normal) ease forwards; }

@keyframes screenIn  { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:translateX(0); } }
@keyframes screenOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(-24px); } }

.screen-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding-bottom: calc(var(--bottom-nav-h) + 8px);
}
.screen-content::-webkit-scrollbar { display: none; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* HEADER */
.app-header {
  height: var(--header-h); min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-5); background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 100;
}
.header-logo { display: flex; align-items: center; gap: var(--sp-2); }
.header-logo-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand); flex-shrink: 0;
  overflow: hidden;
}
.header-logo-icon svg { width: 20px; height: 20px; fill: white; }
.header-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.header-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-900); letter-spacing: -0.3px; }
.header-subtitle { font-size: var(--fs-xs); color: var(--text-500); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.home-floating-header { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 50; border: none; }
@media (min-width: 960px) { .home-floating-header { left: var(--sidebar-w); } }

/* BOTTOM NAV */
.bottom-nav {
  height: var(--bottom-nav-h); min-height: var(--bottom-nav-h);
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 var(--sp-1); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-base); border-top: 1px solid var(--border-subtle);
  z-index: 200;
}

/* ===================================================
   DESKTOP SHELL — responsive layout for wide viewports
   Sidebar navigation, no phone-frame chrome, wider content
   =================================================== */
@media (min-width: 960px) {
  #app { padding: 24px; }
  #device-frame {
    width: 100%; max-width: 1180px; height: calc(100dvh - 48px); max-height: none;
    border-radius: var(--r-lg);
  }
  #device-frame.wide-mode { max-width: 1180px; }

  .app-header { margin-left: var(--sidebar-w); }
  .screen-content { margin-left: var(--sidebar-w); padding-bottom: var(--sp-6); }
  .screen-content.no-desktop-margin { margin-left: 0; }

  .bottom-nav {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    left: 0; right: auto; top: 0; bottom: 0;
    width: var(--sidebar-w); height: 100%;
    padding: var(--sp-6) var(--sp-3);
    gap: var(--sp-1);
    border-top: none; border-right: 1px solid var(--border-subtle);
  }
  .nav-item {
    flex-direction: row; justify-content: flex-start; min-width: 0;
    width: 100%; padding: 10px 14px; gap: 12px;
  }
  .nav-item.active .nav-icon-wrap { transform: none; }
  .nav-icon-wrap { width: 26px; height: 26px; }
  .nav-label { font-size: var(--fs-sm); }
}

[data-theme="dark"] .bottom-nav {
  background: rgba(9,9,9,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top-color: var(--border-default);
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-lg); cursor: pointer;
  transition: all var(--t-normal); border: none; background: transparent;
  color: var(--text-300); min-width: 52px; position: relative;
}
.nav-item.active { color: var(--red-600); }
.nav-item.active .nav-icon-wrap { background: var(--red-50); transform: translateY(-2px); }
[data-theme="dark"] .nav-item.active .nav-icon-wrap { background: rgba(196,28,28,0.15); }
.nav-icon-wrap {
  width: 40px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); transition: all var(--t-spring);
}
.nav-item svg { width: 21px; height: 21px; transition: all var(--t-normal); }
.nav-label { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2px; transition: color var(--t-normal); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: 12px var(--sp-5);
  border-radius: var(--r-full); border: none;
  font-family: var(--font); font-size: var(--fs-base); font-weight: 600;
  cursor: pointer; transition: all var(--t-normal);
  position: relative; overflow: hidden; white-space: nowrap;
  user-select: none; -webkit-user-select: none; letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient-brand); color: white; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(196,28,28,0.45); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #C8940A 0%, #E8AC10 100%); color: white; box-shadow: var(--shadow-gold); }
.btn-gold:hover { box-shadow: 0 12px 36px rgba(200,148,10,0.45); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-subtle); color: var(--text-700); border: 1px solid var(--border-default); }
.btn-secondary:hover { background: var(--bg-muted); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--red-600); border: 1.5px solid var(--red-200); }
.btn-ghost:hover { background: var(--red-50); }
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: var(--r-md);
  background: var(--bg-subtle); color: var(--text-700); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--t-normal); flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg-muted); color: var(--red-600); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px var(--sp-8); font-size: var(--fs-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* CARDS */
.card {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card);
  overflow: hidden; transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.card:active { transform: scale(0.992); }
.card-clickable:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-body { padding: var(--sp-5); }

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-700); }
.form-input {
  width: 100%; padding: 12px var(--sp-4);
  background: var(--bg-subtle); border: 1.5px solid var(--border-default);
  border-radius: var(--r-md); font-family: var(--font); font-size: var(--fs-base);
  color: var(--text-900); transition: all var(--t-normal); outline: none;
}
.form-input::placeholder { color: var(--text-300); }
.form-input:focus { border-color: var(--red-400); background: var(--bg-base); box-shadow: 0 0 0 3px rgba(196,28,28,0.10); }

/* Native date/time input calendar & clock icons: invisible black-on-dark by default in Chrome/Edge */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
}
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
}
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--text-300); pointer-events: none; display: flex; }
.input-icon svg { width: 18px; height: 18px; }
.input-wrapper .form-input.has-icon { padding-left: 44px; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; padding: var(--sp-4); }

/* BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.3px;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: var(--gold-100); color: var(--gold-700); }
.badge-error   { background: var(--red-100); color: var(--red-700); }
.badge-neutral { background: var(--bg-muted); color: var(--text-500); }
.badge-brand   { background: var(--gradient-brand); color: white; }

[data-theme="dark"] .badge-success { background: rgba(22,163,74,0.2); color: #4ADE80; }
[data-theme="dark"] .badge-warning { background: rgba(200,148,10,0.2); color: var(--gold-300); }
[data-theme="dark"] .badge-error   { background: rgba(196,28,28,0.2); color: var(--red-300); }
[data-theme="dark"] .badge-neutral { background: rgba(255,255,255,0.07); color: var(--text-500); }

/* TOAST */
#toast-container {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 16px); left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-2);
  align-items: center; pointer-events: none;
  width: calc(100% - 32px); max-width: 400px;
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  background: var(--text-900); color: var(--text-inv);
  font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-lg);
  pointer-events: all; animation: toastIn 0.35s var(--t-spring) forwards; width: 100%;
}
[data-theme="dark"] .toast { background: #2A2A2A; color: var(--text-900); }
.toast.toast-success { background: #15803D; color: white; }
.toast.toast-error   { background: var(--red-600); color: white; }
.toast.toast-warning { background: var(--gold-600); color: white; }
.toast.hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateY(16px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(-12px) scale(0.95); } }

/* MODAL & BOTTOM SHEET (SCROLLABLE & PROPORTIONAL) */
.modal-overlay {
  position: fixed; inset: 0; background: var(--bg-modal);
  z-index: 500; display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn var(--t-normal) ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.bottom-sheet {
  width: 100%; max-width: 430px; margin: 0 auto;
  background: var(--bg-base); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--sp-3) var(--sp-5) var(--sp-6);
  animation: sheetUp var(--t-spring) forwards;
  max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden;
}

#device-frame.wide-mode .bottom-sheet { max-width: 680px; }

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

.sheet-handle {
  width: 42px; height: 4px; background: var(--border-strong);
  border-radius: var(--r-full); margin: 0 auto var(--sp-4); flex-shrink: 0;
}

.modal-scroll-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; padding-right: 4px; margin-bottom: 12px;
}
.modal-scroll-body::-webkit-scrollbar { width: 5px; }
.modal-scroll-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* SPINNER */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.section-title { font-size: var(--fs-base); font-weight: 700; color: var(--text-900); }
.section-action { font-size: var(--fs-sm); font-weight: 600; color: var(--red-600); cursor: pointer; border: none; background: none; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1.5px solid var(--border-default); background: var(--bg-subtle);
  color: var(--text-700); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-normal);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* TAB SWITCHER */
.tab-switcher {
  display: flex; background: var(--bg-subtle);
  padding: 4px; border-radius: var(--r-md);
  border: 1px solid var(--border-default); margin-bottom: 16px;
}
.tab-btn {
  flex: 1; padding: 8px 12px; font-size: var(--fs-xs); font-weight: 700;
  border: none; border-radius: var(--r-sm); background: transparent;
  color: var(--text-500); cursor: pointer; transition: all var(--t-normal); text-align: center;
}
.tab-btn.active { background: var(--bg-card); color: var(--red-600); box-shadow: var(--shadow-xs); }

/* SUCCESS OVERLAY */
.success-overlay {
  position: fixed; inset: 0; background: rgba(22,163,74,0.96);
  z-index: 900; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-4); animation: successPop 0.4s var(--t-spring);
}
.success-overlay.checkout { background: linear-gradient(135deg, rgba(200,148,10,0.97), rgba(232,172,16,0.97)); }
@keyframes successPop { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
.success-icon { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; animation: checkBounce 0.6s var(--t-bounce) 0.1s both; }
@keyframes checkBounce { from { transform:scale(0); } to { transform:scale(1); } }
.success-icon svg { width: 48px; height: 48px; stroke: white; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-title { font-size: var(--fs-2xl); font-weight: 800; color: white; text-align: center; }
.success-time  { font-size: var(--fs-lg); color: rgba(255,255,255,0.8); font-weight: 500; }

/* BIOMETRIC MODAL */
.biometric-modal { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.biometric-icon { width: 92px; height: 92px; border-radius: 50%; background: var(--gradient-brand-soft); display: flex; align-items: center; justify-content: center; animation: bioPulse 1.5s ease-in-out infinite; border: 2px solid rgba(196,28,28,0.15); }
@keyframes bioPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(196,28,28,0.15); } 50% { box-shadow: 0 0 0 16px rgba(196,28,28,0.05); } }
.biometric-icon svg { width: 48px; height: 48px; color: var(--red-600); }
.biometric-title { font-size: var(--fs-xl); font-weight: 700; color: var(--text-900); text-align: center; }
.biometric-sub { font-size: var(--fs-sm); color: var(--text-500); text-align: center; line-height: 1.5; }
.bio-progress { width: 100%; height: 4px; background: var(--border-default); border-radius: var(--r-full); overflow: hidden; }
.bio-progress-bar { height: 100%; background: var(--gradient-brand); border-radius: var(--r-full); animation: bioLoad 1.8s ease forwards; }
@keyframes bioLoad { from { width:0%; } to { width:100%; } }

/* ADMIN PENGGUNA */
.user-list { padding: 0 var(--sp-4); }
.user-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); border-radius: var(--r-md); margin-bottom: var(--sp-2);
  border: 1px solid var(--border-subtle); transition: all var(--t-normal); background: var(--bg-card);
}
.user-item:hover { border-color: var(--red-200); box-shadow: var(--shadow-sm); }
.user-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); color: white; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.user-email { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-actions { display: flex; gap: var(--sp-1); }
.user-actions button { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border-default); background: var(--bg-subtle); color: var(--text-500); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-normal); }
.user-actions button:hover { color: var(--red-600); border-color: var(--red-200); background: var(--red-50); }
.user-actions button svg { width: 14px; height: 14px; }
.add-user-fab {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 16px); right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-brand); border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand); cursor: pointer; transition: all var(--t-spring); z-index: 150;
}
.add-user-fab:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(196,28,28,0.45); }
.add-user-fab:active { transform: scale(0.94); }

@media (min-width: 600px) {
  body { background: radial-gradient(circle at 20% 20%, rgba(196,28,28,0.06) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(200,148,10,0.06) 0%, transparent 40%), var(--bg-muted); overflow: hidden; }
  [data-theme="dark"] body { background: radial-gradient(circle at 20% 20%, rgba(196,28,28,0.10) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(200,148,10,0.08) 0%, transparent 40%), #0A0A0A; }
}

/* ===================================================
   ICON BUTTON
   =================================================== */
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-md);
  border: 1.5px solid var(--border-default); background: var(--bg-subtle);
  color: var(--text-700); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-normal); flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-muted); color: var(--red-600); border-color: var(--red-200); }
.icon-btn svg { width: 18px; height: 18px; }

/* ===================================================
   SPLASH SCREEN
   =================================================== */
#screen-splash {
  background: var(--gradient-brand);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.splash-bg { position: absolute; inset: 0; }
.splash-circle-1 {
  position: absolute; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,0.07);
  top: -100px; right: -120px;
}
.splash-circle-2 {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,0.05);
  bottom: -80px; left: -60px;
}
.splash-content {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-6); z-index: 1; text-align: center; padding: var(--sp-8);
}
.splash-logo {
  width: 100px; height: 100px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.splash-logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  animation: splashRing 2s ease-in-out infinite;
}
.splash-logo-ring-2 {
  inset: -14px; border-color: rgba(255,255,255,0.12);
  animation-delay: 0.5s;
}
@keyframes splashRing { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.6; } }
.splash-logo svg { width: 56px; height: 56px; fill: white; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.splash-logo img { width: 82px; height: 82px; border-radius: var(--r-xl); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
.splash-app-name { font-size: var(--fs-4xl); font-weight: 900; color: white; letter-spacing: -1px; }
.splash-tagline { font-size: var(--fs-sm); color: rgba(255,255,255,0.8); font-weight: 500; line-height: 1.5; }
.splash-loader { display: flex; gap: 8px; margin-top: 8px; }
.splash-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: splashDot 1.2s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes splashDot { 0%,80%,100% { transform: scale(0.7); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* ===================================================
   LOGIN SCREEN
   =================================================== */
#screen-login {
  display: flex; flex-direction: column;
  background: var(--bg-base); overflow-y: auto;
}
.login-top { flex: 1; display: flex; flex-direction: column; }
.login-hero {
  background: var(--gradient-brand);
  padding: 48px var(--sp-6) 40px;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-3); text-align: center;
  clip-path: ellipse(110% 100% at 50% 0%);
  padding-bottom: 48px;
}
.login-hero-icon {
  width: 72px; height: 72px; border-radius: var(--r-xl);
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}
.login-hero-icon svg { width: 42px; height: 42px; fill: white; }
.login-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.login-hero-text h1 { font-size: var(--fs-3xl); font-weight: 900; color: white; letter-spacing: -0.5px; }
.login-hero-text p { font-size: var(--fs-sm); color: rgba(255,255,255,0.8); margin-top: 4px; }
.login-form { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.role-selector { display: flex; gap: var(--sp-3); }
.role-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px var(--sp-3); border-radius: var(--r-md);
  border: 1.5px solid var(--border-default); background: var(--bg-subtle);
  color: var(--text-500); cursor: pointer; transition: all var(--t-normal); font-size: var(--fs-sm); font-weight: 600;
}
.role-btn.active { border-color: var(--red-400); background: var(--red-50); color: var(--red-600); box-shadow: 0 0 0 3px rgba(196,28,28,0.10); }
[data-theme="dark"] .role-btn.active { background: rgba(196,28,28,0.12); }
.login-bottom {
  padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle);
}
.login-note { font-size: var(--fs-xs); color: var(--text-300); text-align: center; line-height: 1.5; }

/* ===================================================
   HOME SCREEN
   =================================================== */
.home-hero {
  background: var(--gradient-brand);
  padding: 0 var(--sp-5) 80px;
  position: relative;
}
.home-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-top: var(--sp-4);
}
.home-greeting p { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); font-weight: 500; }
.home-greeting h2 { font-size: var(--fs-xl); font-weight: 800; color: white; margin-top: 2px; }
.home-avatar-thumb {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg); font-weight: 800; color: white; cursor: pointer; flex-shrink: 0;
}
.home-avatar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-clock { text-align: center; padding: var(--sp-5) 0 var(--sp-4); }
.home-clock { font-size: 3.5rem; font-weight: 900; color: white; letter-spacing: -2px; line-height: 1; }
.home-clock-sub { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); margin-top: 6px; font-weight: 500; }
.home-pull-up { padding: 0 var(--sp-4); margin-top: -32px; position: relative; z-index: 10; }
.location-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4);
}
.loc-icon { display: flex; flex-shrink: 0; }
.loc-icon svg { width: 22px; height: 22px; }
.loc-icon.in-range svg { color: #16A34A; }
.loc-info { flex: 1; min-width: 0; }
.loc-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.loc-distance { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; }
.checkin-section {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); padding: var(--sp-6) var(--sp-4);
}
.checkin-btn-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.pulse-ring {
  position: absolute; width: 116px; height: 116px; border-radius: 50%;
  border: 2px solid rgba(196,28,28,0.2);
  animation: pulseRing 2s ease-out infinite;
}
.pulse-ring-2 { width: 140px; height: 140px; animation-delay: 0.5s; border-color: rgba(196,28,28,0.12); }
.pulse-ring-3 { width: 164px; height: 164px; animation-delay: 1s; border-color: rgba(196,28,28,0.06); }
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
.checkin-btn-main {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--gradient-brand); border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; box-shadow: var(--shadow-brand);
  transition: all var(--t-spring); position: relative; z-index: 1;
}
.checkin-btn-main:hover { transform: scale(1.06); box-shadow: 0 16px 40px rgba(196,28,28,0.45); }
.checkin-btn-main:active { transform: scale(0.95); }
.checkin-btn-main.checked-in { background: linear-gradient(135deg, #15803D 0%, #16A34A 100%); box-shadow: 0 8px 28px rgba(22,163,74,0.4); }
.checkin-btn-main.day-locked,
.checkin-btn-main:disabled {
  background: var(--border-default); box-shadow: none; cursor: not-allowed;
  filter: grayscale(60%); opacity: 0.7;
}
.checkin-btn-main.day-locked:hover,
.checkin-btn-main:disabled:hover { transform: none; box-shadow: none; }
.btn-label { font-size: 0.58rem; font-weight: 800; color: white; letter-spacing: 0.8px; }
.attendance-status-row { display: flex; gap: var(--sp-3); width: 100%; }
.status-mini-card { flex: 1; padding: 12px; text-align: center; }
.status-mini-card .label { font-size: var(--fs-xs); color: var(--text-500); font-weight: 600; }
.status-mini-card .value { font-size: var(--fs-xl); font-weight: 800; color: var(--text-900); margin-top: 4px; }
.status-mini-card .value.red { color: var(--red-600); }
.status-mini-card .value.gold { color: var(--gold-600); }
.home-section { padding: 0 var(--sp-4); }
.activity-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); border-top: 1px solid var(--border-subtle);
}
.activity-item:first-child { border-top: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-dot.success { background: #16A34A; }
.activity-dot.warning { background: var(--gold-500); }
.activity-text { flex: 1; }
.act-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-900); }
.act-time { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; }

/* ===================================================
   REKAP / CALENDAR
   =================================================== */
.recap-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) 0;
}
.recap-stat-card { padding: 14px; text-align: center; }
.stat-num { font-size: var(--fs-3xl); font-weight: 900; line-height: 1; }
.stat-label { font-size: var(--fs-xs); color: var(--text-500); font-weight: 600; margin-top: 4px; }
.calendar-wrap { padding: 0 var(--sp-4); margin-top: var(--sp-4); }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.cal-nav-btn { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--border-default); background: var(--bg-subtle); color: var(--text-700); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-normal); }
.cal-nav-btn:hover { background: var(--red-50); color: var(--red-600); }
.cal-nav-btn svg { width: 16px; height: 16px; }
.cal-month-title { font-size: var(--fs-base); font-weight: 700; color: var(--text-900); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 6px; }
.cal-weekday { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--text-300); padding: 4px 0; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; border-radius: var(--r-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 500;
  color: var(--text-700); cursor: pointer; position: relative; transition: all var(--t-normal);
}
.cal-day:hover { background: var(--bg-subtle); }
.cal-day.empty { pointer-events: none; }
.cal-day.today { background: var(--gradient-brand); color: white; font-weight: 800; border-radius: var(--r-md); }
.cal-day.hadir { font-weight: 700; color: var(--text-900); }
.cal-day.selected { background: var(--red-50); color: var(--red-600); font-weight: 700; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: #16A34A; margin-top: 2px; }
.cal-day.today .cal-dot { background: rgba(255,255,255,0.8); }

/* Compact calendar card */
.calendar-card-sm {
  padding: 10px; max-width: 300px; margin: 0 auto;
}
.calendar-card-sm .cal-month-title { font-size: var(--fs-sm); }
.calendar-card-sm .cal-nav-btn { width: 26px; height: 26px; }
.calendar-card-sm .cal-nav-btn svg { width: 13px; height: 13px; }
.calendar-card-sm .cal-weekday { font-size: 0.6rem; padding: 2px 0; }
.calendar-card-sm .cal-days { gap: 2px; }
.calendar-card-sm .cal-day { font-size: 0.65rem; border-radius: 4px; }
.calendar-card-sm .cal-day.today { border-radius: 5px; }
.calendar-card-sm .cal-dot { width: 4px; height: 4px; }
.attendance-list { padding: 0 var(--sp-4); }
.att-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); border-radius: var(--r-md); margin-bottom: var(--sp-2);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all var(--t-normal);
}
.att-item:hover { border-color: var(--red-200); box-shadow: var(--shadow-sm); }
.att-date-box { width: 42px; text-align: center; flex-shrink: 0; }
.att-date-num { font-size: var(--fs-xl); font-weight: 900; color: var(--red-600); line-height: 1; }
.att-date-day { font-size: 0.62rem; color: var(--text-300); font-weight: 600; text-transform: uppercase; }
.att-info { flex: 1; min-width: 0; }
.att-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.att-time { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.att-time svg { width: 12px; height: 12px; flex-shrink: 0; }
.att-action { color: var(--text-300); display: flex; }
.att-action svg { width: 16px; height: 16px; }

/* ===================================================
   AKTIVITAS SCREEN
   =================================================== */
.aktivitas-date-hero {
  background: var(--gradient-brand);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex; gap: var(--sp-4); align-items: flex-start;
}
.akt-date-badge {
  width: 60px; height: 70px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.akt-date-badge .num { font-size: var(--fs-3xl); font-weight: 900; color: white; line-height: 1; }
.akt-date-badge .mon { font-size: var(--fs-xs); color: rgba(255,255,255,0.8); font-weight: 600; text-transform: uppercase; }
.akt-hero-info { flex: 1; }
.akt-hero-info h3 { font-size: var(--fs-lg); font-weight: 800; color: white; margin-bottom: 4px; }
.akt-hero-info p { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); font-weight: 500; margin-bottom: 10px; }
.akt-times { display: flex; gap: var(--sp-2); }
.akt-time-badge { background: rgba(255,255,255,0.15); padding: 6px 10px; border-radius: var(--r-sm); }
.akt-time-badge .tl { font-size: 0.60rem; color: rgba(255,255,255,0.7); font-weight: 600; text-transform: uppercase; }
.akt-time-badge .tv { font-size: var(--fs-sm); font-weight: 800; color: white; margin-top: 1px; }
.aktivitas-form-body { padding: var(--sp-4); }
.total-hours-bar {
  background: var(--bg-subtle); border: 1px solid var(--border-default);
  border-radius: var(--r-md); padding: 12px var(--sp-4); margin-bottom: var(--sp-4);
  display: flex; flex-direction: column; gap: 8px;
}
.total-hours-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-700); }
.hours-bar-track { height: 6px; background: var(--border-default); border-radius: var(--r-full); overflow: hidden; }
.hours-bar-fill { height: 100%; border-radius: var(--r-full); transition: width 0.5s ease, background 0.3s ease; }
.activity-slots-grid { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.activity-slot {
  border: 1.5px solid var(--border-default); border-radius: var(--r-lg);
  background: var(--bg-card); overflow: hidden; transition: border-color var(--t-normal);
}
.activity-slot:focus-within { border-color: var(--red-300); }
.slot-header {
  background: var(--bg-subtle); padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: var(--sp-3);
}
.slot-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-brand); color: white;
  font-size: 0.70rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.slot-time-row {
  flex: 1; display: flex; align-items: center;
  gap: var(--sp-2); flex-wrap: wrap;
}
.slot-time-group { display: flex; flex-direction: column; gap: 2px; }
.slot-time-label { font-size: 0.60rem; color: var(--text-300); font-weight: 600; text-transform: uppercase; }
.slot-time-input { padding: 5px 8px !important; font-size: var(--fs-xs) !important; width: 100px; }
.slot-arrow { color: var(--text-300); font-size: var(--fs-sm); padding: 0 2px; margin-top: 14px; }
.slot-duration {
  background: var(--gradient-brand); color: white;
  font-size: 0.68rem; font-weight: 700; padding: 4px 8px;
  border-radius: var(--r-full); margin-top: 14px; white-space: nowrap;
}
.slot-remove-btn {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--red-200); background: var(--red-50);
  color: var(--red-600); cursor: pointer; font-size: var(--fs-base);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-normal); margin-top: 14px; flex-shrink: 0;
  line-height: 1;
}
.slot-remove-btn:hover { background: var(--red-100); }
.slot-desc-input { border: none !important; border-radius: 0 !important; background: var(--bg-card) !important; resize: none; }
.slot-desc-input:focus { box-shadow: none !important; background: var(--bg-subtle) !important; }
.prev-activities {
  background: var(--bg-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: var(--sp-4); margin-top: var(--sp-4);
}
.prev-act-item { margin-top: var(--sp-3); }
.pa-date { font-size: var(--fs-xs); font-weight: 700; color: var(--text-500); margin-bottom: 6px; }
.pa-text { font-size: var(--fs-xs); color: var(--text-700); line-height: 1.7; }

/* ===================================================
   PROFILE SCREEN
   =================================================== */
.profile-hero {
  background: var(--gradient-brand);
  padding: var(--sp-8) var(--sp-5) 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-3); text-align: center; position: relative; overflow: hidden;
}
.profile-hero-orb-1 {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,0.06); top: -80px; right: -60px;
}
.profile-hero-orb-2 {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.04); bottom: -40px; left: -40px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xl); font-weight: 900; color: white; z-index: 1;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-wrap { position: relative; z-index: 1; }
.profile-avatar-edit-btn {
  position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: white; border: 2px solid var(--red-500); color: var(--red-600);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
}
.profile-avatar-edit-btn svg { width: 13px; height: 13px; }
.profile-name { font-size: var(--fs-xl); font-weight: 800; color: white; z-index: 1; }
.profile-role { z-index: 1; }
.profile-pull {
  padding: 0 var(--sp-4); margin-top: -40px; position: relative; z-index: 10;
}
.profile-stats-row {
  display: flex; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.profile-stat-item {
  flex: 1; padding: 16px; text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.profile-stat-item:last-child { border-right: none; }
.profile-stat-num { font-size: var(--fs-2xl); font-weight: 900; line-height: 1; }
.profile-stat-label { font-size: var(--fs-xs); color: var(--text-500); font-weight: 600; margin-top: 4px; }
.profile-menu { padding: 0 var(--sp-4); margin-top: var(--sp-4); }
.menu-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 14px var(--sp-4); border-radius: var(--r-md);
  border: 1px solid var(--border-subtle); background: var(--bg-card);
  cursor: pointer; transition: all var(--t-normal);
}
.menu-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.menu-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-text { flex: 1; }
.menu-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.menu-sub { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; }
.menu-chevron { color: var(--text-300); display: flex; }
.menu-chevron svg { width: 16px; height: 16px; }

/* ===================================================
   ADMIN DASHBOARD
   =================================================== */
.admin-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) 0;
}
.stat-card { padding: var(--sp-4); position: relative; overflow: hidden; }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3);
}
.stat-card-value { font-size: var(--fs-3xl); font-weight: 900; color: var(--text-900); line-height: 1; }
.stat-card-label { font-size: var(--fs-xs); color: var(--text-500); font-weight: 600; margin-top: 4px; }
.stat-card-trend { font-size: 0.68rem; font-weight: 700; margin-top: 6px; }
.trend-up { color: #16A34A; }
.trend-neutral { color: var(--text-300); }
.chart-wrap { padding: var(--sp-4) var(--sp-4) 0; }
.chart-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); margin-bottom: var(--sp-4); }
.bar-chart { display: flex; gap: var(--sp-2); align-items: flex-end; height: 90px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: var(--r-xs) var(--r-xs) 0 0; transition: height 0.4s var(--t-spring); }
.bar-label { font-size: 0.60rem; color: var(--text-300); font-weight: 600; margin-top: 4px; }
.worker-list { padding: 0 var(--sp-4); margin-top: var(--sp-4); }
.worker-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); border-radius: var(--r-md); margin-bottom: var(--sp-2);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: all var(--t-normal);
}
.worker-item:hover { border-color: var(--red-200); box-shadow: var(--shadow-sm); }
.worker-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base); font-weight: 800; color: white; flex-shrink: 0;
}
.worker-info { flex: 1; min-width: 0; }
.worker-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.worker-time { font-size: var(--fs-xs); color: var(--text-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================================================
   ADMIN LOKASI
   =================================================== */
.location-list { padding: var(--sp-4); }
.loc-card { margin-bottom: var(--sp-3); }
.loc-card-header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); }
.loc-card-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text-900); }
.loc-card-coords { font-size: var(--fs-xs); color: var(--text-500); font-family: monospace; margin-top: 3px; }
.loc-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}
.loc-radius-badge { font-size: var(--fs-xs); color: var(--text-500); }
.fake-map {
  height: 180px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  position: relative; overflow: hidden; border: 1px solid var(--border-default);
}
[data-theme="dark"] .fake-map { background: linear-gradient(135deg, #0d1f0e 0%, #0d1827 100%); }
.fake-map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.fake-map-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px dashed rgba(196,28,28,0.3); background: rgba(196,28,28,0.06);
  animation: radiusPulse 2.5s ease-in-out infinite;
}
@keyframes radiusPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.04); } }
.fake-map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25)); animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce { 0%,100% { transform: translate(-50%,-100%) translateY(0); } 50% { transform: translate(-50%,-100%) translateY(-6px); } }

/* ===================================================
   ADMIN LAPORAN
   =================================================== */
.laporan-filter { padding: var(--sp-4); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.report-preview { padding: 0 var(--sp-4); }
.report-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); overflow: hidden; margin-top: var(--sp-3);
}
.report-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.report-table th {
  background: var(--bg-subtle); padding: 10px var(--sp-3);
  text-align: left; font-size: 0.72rem; font-weight: 700;
  color: var(--text-500); text-transform: uppercase; letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border-default); white-space: nowrap;
}
.report-table td {
  padding: 10px var(--sp-3); font-size: var(--fs-xs); color: var(--text-700);
  border-bottom: 1px solid var(--border-subtle); vertical-align: top;
}
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table tbody tr:hover td { background: var(--bg-subtle); }

/* ===================================================
   EMPTY STATE
   =================================================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-3); padding: var(--sp-8) var(--sp-4); text-align: center;
}
.empty-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-300); }
