/* ==========================================================================
   CLEAN DARK LIQUID GLASSMORPHISM — CRIMSON RUBY ADMIN THEME
   ========================================================================== */

:root {
  /* Background */
  --bg-obsidian: #0B0D13;
  --bg-slate: #0D1117;
  --glass-bg: rgba(22, 27, 34, 0.65);
  --glass-bg-soft: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hi: rgba(255, 255, 255, 0.14);

  /* Crimson Accent */
  --crimson: #E11D48;
  --crimson-deep: #BE123C;
  --crimson-vivid: #EF4444;
  --rose-soft: #FB7185;
  --coral: #F87171;

  /* Text */
  --text-white: #FFFFFF;
  --text-primary: #E6EAF0;
  --text-secondary: #94A3B8;
  --text-dim: #64748B;

  /* Status */
  --online: #22C55E;
  --warn: #F59E0B;

  /* Fonts */
  --font-hacker: 'Courier New', 'Consolas', 'Monaco', 'Lucida Console', monospace;
  --font-ui: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-normal: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;

  /* Aliases (kompatibilitas kode lama) */
  --neon-blue: var(--crimson);
  --neon-cyan: var(--rose-soft);
  --danger-red: var(--coral);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-hacker);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(225, 29, 72, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(190, 18, 60, 0.05), transparent 55%);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(225, 29, 72, 0.45); }

/* ===================== LIQUID GLASS CARD ===================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.glass-soft {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

/* Kompatibilitas: neon-box kini jadi glass card untuk admin */
.neon-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.neon-text {
  color: var(--text-white);
}

/* ===================== BUTTONS ===================== */
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-hacker);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--crimson-vivid) 0%, var(--crimson) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--glass-bg-soft);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hi);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(225, 29, 72, 0.5);
  color: #fff;
}

.btn-danger {
  background: transparent;
  color: var(--coral);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===================== FORM INPUTS ===================== */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 11px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-hacker);
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: rgba(225, 29, 72, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

select.form-input option {
  background: #161B22;
  color: #fff;
}

/* ===================== COLOR PICKER ===================== */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
}

.color-swatch:hover, .color-swatch.active {
  border-color: var(--crimson);
  transform: scale(1.08);
}

.color-input-native {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--glass-border-hi);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

/* ===================== HAMBURGER ===================== */
.hamburger-btn {
  width: 44px;
  height: 40px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-hi);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger-btn:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.4);
}

.hamburger-btn:hover span { background: #fff; width: 24px; }

/* ===================== DRAWER ===================== */
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-drawer-backdrop.active { opacity: 1; visibility: visible; }

.admin-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 50vw;
  min-width: 280px;
  max-width: 360px;
  height: 100vh;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.admin-drawer.active { left: 0; }

.drawer-header {
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.drawer-close-btn {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-hi);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 8px;
}

.drawer-menu-list {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-item {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-hacker);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.drawer-item:hover {
  background: var(--glass-bg-soft);
  color: #fff;
}

.drawer-item.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(190, 18, 60, 0.9));
  color: #fff;
  border-color: rgba(225, 29, 72, 0.5);
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===================== ADMIN LAYOUT: SIDEBAR + MAIN ===================== */
.admin-shell {
  display: none;
  min-height: 100vh;
}

.admin-shell.active {
  display: block;
}

/* Backdrop sidebar admin */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1650;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Left Sidebar (off-canvas, geser dari kiri ke kanan) */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 84vw;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--glass-border);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1700;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar.open {
  transform: translateX(0);
}

.sidebar-close-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-hi);
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-close-btn:hover {
  background: rgba(225, 29, 72, 0.18);
  color: #fff;
  border-color: rgba(225, 29, 72, 0.5);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.sidebar-logo-text b {
  display: block;
  font-size: 1rem;
  color: var(--text-white);
  letter-spacing: 1px;
}

.sidebar-logo-text span {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* User profile card */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.profile-info b { display: block; font-size: 0.85rem; color: var(--text-white); }
.profile-info span { font-size: 0.7rem; color: var(--text-dim); }

.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  margin-left: auto;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-section-label {
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-hacker);
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: var(--glass-bg-soft);
  color: #fff;
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(190, 18, 60, 0.95));
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(225, 29, 72, 0.85);
  color: #fff;
}

.sidebar-nav-item.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* Promo upgrade card */
.sidebar-promo {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(225, 29, 72, 0.16), rgba(190, 18, 60, 0.06));
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.sidebar-promo h4 {
  font-size: 0.85rem;
  color: var(--text-white);
  margin-bottom: 4px;
}

.sidebar-promo p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Sidebar footer (logout) */
.sidebar-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Main content area */
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 48px;
  overflow-x: hidden;
}

/* ===================== HEADER (GREETING + STATUS) ===================== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.greeting-block h1 {
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.greeting-block p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-pill b { color: var(--text-white); }

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.status-led.warn {
  background: var(--warn);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

/* ===================== STAT CARDS ===================== */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(190, 18, 60, 0.1));
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-soft);
  flex-shrink: 0;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===================== TABS / SECTION HEADERS ===================== */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.admin-top-bar h2 {
  font-size: 1.25rem;
  color: var(--text-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===================== PILL TABS ===================== */
.pill-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 24px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
}

.pill-tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-hacker);
  cursor: pointer;
  transition: all 0.2s;
}

.pill-tab:hover { color: #fff; }

.pill-tab.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #fff;
}

.admin-subtab { display: none; }
.admin-subtab.active { display: block; }

/* ===================== CONTROLS BAR ===================== */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.controls-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

/* ===================== LOG CARDS (VERTIKAL) ===================== */
.vertical-logs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.log-card-vertical {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.log-card-vertical::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

@media (max-width: 720px) {
  .log-card-vertical { grid-template-columns: 1fr; gap: 14px; }
}

.log-card-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.log-card-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-border-hi);
  cursor: pointer;
}

@media (max-width: 720px) {
  .log-card-photo { width: 100%; max-width: 260px; height: 200px; }
}

.log-card-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.log-field-item {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 14px;
}

.log-field-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.log-field-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

/* ===================== EMPLOYEE LINK CARDS ===================== */
.link-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.link-card-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.link-card-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.link-card-item:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.4);
}

.link-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-hacker);
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ===================== BADGES ===================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.pri {
  background: rgba(225, 29, 72, 0.18);
  color: var(--rose-soft);
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.status-badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: var(--online);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--online);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.loading {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.no-photo-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  background: var(--glass-bg-soft);
  color: var(--text-dim);
  border: 1px dashed var(--glass-border-hi);
}

/* ===================== PROGRESS BAR (CRIMSON GRADIENT) ===================== */
.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--rose-soft) 60%, var(--coral) 100%);
  transition: width 0.5s ease;
}

/* ===================== IP LOOKUP ===================== */
.lookup-box {
  max-width: 720px;
  padding: 22px;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .search-bar { flex-direction: column; }
}

.result-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  gap: 12px;
}

.result-row:last-child { border-bottom: none; }

.result-key { color: var(--text-dim); font-size: 0.85rem; }

.result-val {
  color: var(--text-white);
  font-weight: 600;
  font-family: var(--font-hacker);
  text-align: right;
  word-break: break-word;
}

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal-box {
  max-width: 480px;
  width: 100%;
  padding: 24px;
  border-radius: 18px;
  background: rgba(22, 27, 34, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-hacker);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.toast.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast.info {
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: var(--rose-soft);
}

/* ==========================================================================
   EMPLOYEE PUBLIC PAGE (link hasil generate) — TIDAK DIUBAH
   Font normal, tanpa glow, sesuai permintaan sebelumnya
   ========================================================================== */

#site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-white);
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.welcome-container {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 25px;
}

.pulse-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  animation: neonPulse 2.5s infinite;
}

@keyframes neonPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.welcome-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--text-white);
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.video-responsive-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 20px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Admin login card */
.admin-lock-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 36px 28px;
  text-align: center;
}

.lock-icon {
  color: var(--crimson);
  display: inline-block;
  margin-bottom: 14px;
}

.admin-view { display: none; }
