/* ============================================================================
   MA'HAD AL-ADZKIYA' v5.1 — DASHSTACK PRO ADMIN DASHBOARD UI THEME
   Supports Light & Dark Mode · PC, Tablet & Mobile · Lil Banin & Lil Banat
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4880ff;
  --primary-light: #6393ff;
  --primary-lighter: #eef3ff;
  --primary-dark: #202224;
  --brand-deep: #3468e8;
  --brand-deep-2: #2651c9;
  --accent: #fec53d;
  --bg: #f5f6fa;
  --bg-card: #ffffff;
  --bg-subtle: #f8f9fc;
  --bg-input: #f5f6fa;
  --sidebar-bg: #ffffff;
  --topbar-bg: #ffffff;
  --text: #202224;
  --text-secondary: #606060;
  --text-light: #94a3b8;
  --border: #e6e8ec;
  --border-light: #f1f3f7;
  --success: #00b69b;
  --warning: #fec53d;
  --danger: #f93c65;
  --info: #4880ff;
  --purple: #8280ff;
  --pink: #ec4899;
  --sidebar-w: 252px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 28px rgba(16, 24, 40, .07);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .14);
  --transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

body[data-gender="banat"] {
  --primary: #7c4dff;
  --primary-light: #9670ff;
  --primary-lighter: #f3efff;
  --brand-deep: #6536eb;
  --brand-deep-2: #4f25c7;
}

/* ============ DARK MODE PALETTE (DASHSTACK DARK) ============ */
html[data-theme="dark"] {
  --primary-dark: #f1f5f9;
  --bg: #1b2431;
  --bg-card: #273142;
  --bg-subtle: #202938;
  --bg-input: #323d4e;
  --sidebar-bg: #273142;
  --topbar-bg: #273142;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --border: #323d4e;
  --border-light: #2d3848;
  --primary-lighter: rgba(72, 128, 255, .18);
  --shadow: 0 4px 20px rgba(0, 0, 0, .22);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .32);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] body[data-gender="banat"] {
  --primary-lighter: rgba(124, 77, 255, .2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.brand-accent { color: var(--primary); }

/* ============ LOGIN PAGE (DASHSTACK ROYAL BLUE / VIOLET HERO) ============ */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.14) 0%, transparent 40%),
              linear-gradient(135deg, #2148c0 0%, var(--primary) 55%, #5b8dff 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
body[data-gender="banat"] .login-page {
  background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.14) 0%, transparent 40%),
              linear-gradient(135deg, #432399 0%, var(--primary) 55%, #9d75ff 100%);
}
.login-bg-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(rgba(255, 255, 255, .28) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
}
.login-bg-dots.left { left: 32px; bottom: 60px; }
.login-bg-dots.right { right: 32px; top: 60px; }

.login-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 38px 34px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 28px 64px rgba(13, 28, 78, .32);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .15);
}

.login-logo { text-align: center; margin-bottom: 20px; }
.login-logos-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.login-logo .icon {
  width: 60px; height: 60px;
  background: var(--primary-lighter);
  border: 1.5px solid rgba(72, 128, 255, .25);
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--primary);
  box-shadow: 0 8px 20px rgba(72, 128, 255, .16);
  overflow: hidden;
}
.login-logo .icon.secondary { background: #e0e7ff; }
.login-logo .icon img { width: 100%; height: 100%; object-fit: cover; background: #fff; padding: 3px; }
.login-logo h1 { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.login-logo p { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-top: 3px; }

.portal-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg-input); padding: 5px; border-radius: 12px; margin-bottom: 16px;
}
.portal-tab {
  border: none; background: transparent; padding: 10px 8px;
  border-radius: 9px; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.portal-tab.active {
  background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(72, 128, 255, .28);
}

.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { padding-right: 42px; }
.pass-toggle {
  position: absolute; right: 10px; border: none; background: transparent;
  cursor: pointer; font-size: 16px; opacity: .7;
}
.pass-toggle:hover { opacity: 1; }

.login-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; display: none;
}

.login-ref-toggle { margin-top: 14px; }
.login-ref-drawer {
  margin-top: 10px; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; background: var(--bg-subtle);
}
.ref-hint { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; }
.ref-user-list { max-height: 190px; overflow-y: auto; display: grid; gap: 6px; }
.ref-user-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 12px; transition: var(--transition);
}
.ref-user-item:hover { border-color: var(--primary); background: var(--primary-lighter); }

/* ============ FORMS & BUTTONS ============ */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10.5px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px; font-family: inherit;
  transition: var(--transition); background: var(--bg-input); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(72, 128, 255, .15);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10.5px 18px; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff; box-shadow: 0 4px 14px rgba(72, 128, 255, .3);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(72, 128, 255, .38); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-xs { padding: 5.5px 10px; font-size: 11.5px; border-radius: 7px; }
.btn-outline { background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lighter); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-info { background: #0ea5e9; color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-wa { background: #16a34a; color: #fff; border: 1px solid #15803d; }
.btn-wa:hover { background: #15803d; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ============ APP LAYOUT & WHITE DASHSTACK SIDEBAR ============ */
.app-layout { display: none; min-height: 100vh; min-height: 100dvh; }
.app-layout.active { display: flex; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.open { display: block; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--text);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 160;
  display: flex; flex-direction: column;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), width .24s ease;
  overflow: hidden;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
}

.sidebar-header {
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.sidebar-brand-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
}
.sidebar-brand-left {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.sidebar-logo-img {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border); padding: 2px; background: #fff; flex-shrink: 0;
}
.brand-wordmark {
  font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--text);
  line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-header p {
  font-size: 10.5px; font-weight: 600; color: var(--text-secondary); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-close-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle); color: var(--text);
  cursor: pointer; font-size: 15px; flex-shrink: 0;
}

.sidebar-asrama-tabs {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.asrama-tab-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg-input); padding: 4px; border-radius: 10px;
}
.asrama-tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 6px; border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer; font-family: inherit; transition: var(--transition); text-align: center;
}
.asrama-tab-btn span { font-size: 11px; font-weight: 800; }
.asrama-tab-btn small { font-size: 9px; opacity: .8; }
.asrama-tab-btn.active {
  background: var(--bg-card); color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.asrama-scope-banner {
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 8px 12px; border-radius: 9px;
  display: flex; flex-direction: column; gap: 1px;
}
.asrama-scope-banner span { font-size: 11.5px; font-weight: 800; }
.asrama-scope-banner small { font-size: 10px; opacity: .85; }

/* DASHSTACK NAV PILLS WITH LEFT INDICATOR BAR */
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
}
.nav-section {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.nav-section:last-child { border-bottom: none; }
.nav-section-title {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px;
  color: var(--text-light); padding: 8px 10px 5px; font-weight: 800;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10.5px 14px; border-radius: 8px;
  cursor: pointer; transition: var(--transition);
  font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px;
}
.nav-item:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}
.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(72, 128, 255, .26);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}
.nav-item .nav-icon {
  width: 20px; text-align: center; font-size: 15px; flex-shrink: 0;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.user-info .user-name { font-size: 12.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .user-role { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-footer-btns {
  display: flex; gap: 6px; margin-top: 10px;
}
.btn-sidebar-sec {
  flex: 1; padding: 8px 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.btn-sidebar-sec:hover { border-color: var(--primary); color: var(--primary); }
.btn-logout {
  flex: 1.25; padding: 8px 10px;
  background: #fff1f2; border: 1px solid #fecdd3;
  color: #e11d48; border-radius: 8px; font-size: 11.5px; font-weight: 800;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
html[data-theme="dark"] .btn-logout {
  background: rgba(249, 60, 101, .16); border-color: rgba(249, 60, 101, .35); color: #fb7185;
}
.btn-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ============ MAIN CONTENT & DASHSTACK TOPBAR ============ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left .24s cubic-bezier(.4, 0, .2, 1);
}

.page-header {
  min-height: 70px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0; z-index: 60;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger-btn {
  width: 38px; height: 38px;
  border: none; background: transparent; color: var(--text);
  border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--bg-input); color: var(--primary); }

/* DASHSTACK PILL GLOBAL SEARCH */
.topbar-search-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
}
.topbar-search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none;
}
.topbar-search-input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}
.topbar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(72, 128, 255, .14);
}
.topbar-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 120;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.topbar-search-dropdown.open { display: block; }
.gs-result-group {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-light); padding: 6px 10px 4px;
}
.gs-result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; border: none; background: transparent; text-align: left;
  padding: 8px 10px; border-radius: 9px; cursor: pointer; font-family: inherit;
  color: var(--text); font-size: 12.5px; transition: var(--transition);
}
.gs-result-item:hover { background: var(--primary-lighter); color: var(--primary); }

.nav-history-btns, .undo-redo-group {
  display: inline-flex; gap: 4px; align-items: center;
}
.btn-icon-nav {
  width: 32px; height: 32px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); border-radius: 8px; cursor: pointer; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-icon-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-lighter); }
.btn-icon-nav:disabled { opacity: .35; cursor: not-allowed; }

/* NOTIFICATION BELL + POPOVER (EXACT DASHSTACK CARD) */
.topbar-notif-wrap { position: relative; }
.topbar-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--bg-input);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.topbar-icon-btn:hover { background: var(--primary-lighter); border-color: rgba(72, 128, 255, .25); }
.notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f93c65;
  color: #fff;
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--topbar-bg);
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 310px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 130;
  overflow: hidden;
}
.notif-dropdown.open { display: block; animation: popFade .16s ease; }
@keyframes popFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.notif-dd-head {
  padding: 14px 18px 11px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px; font-weight: 800; color: var(--text);
}
.notif-dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: var(--transition);
}
.notif-dd-item:hover { background: var(--bg-subtle); }
.notif-dd-ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.notif-dd-ic.blue { background: #e0f2fe; color: #0284c7; }
.notif-dd-ic.pink { background: #fce7f3; color: #db2777; }
.notif-dd-ic.purple { background: #ede9fe; color: #7c3aed; }
.notif-dd-ic.red { background: #ffe4e6; color: #e11d48; }
.notif-dd-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.25; }
.notif-dd-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.notif-dd-foot {
  display: block; width: 100%; padding: 11px; text-align: center;
  border: none; background: transparent;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
}
.notif-dd-foot:hover { color: var(--primary); background: var(--bg-subtle); }

/* PROFILE CHIP & DROPDOWN */
.topbar-user-box {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 8px; border-left: 1px solid var(--border);
}
.topbar-profile-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; padding: 3px 6px; border-radius: 10px;
  transition: var(--transition);
}
.topbar-profile-trigger:hover { background: var(--bg-input); }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.topbar-user-meta { display: flex; flex-direction: column; min-width: 0; }
.topbar-user-name {
  font-size: 13px; font-weight: 800; color: var(--text);
  max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15;
}
.topbar-user-role {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-caret {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text-secondary);
}
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 130;
}
.profile-dropdown.open { display: block; animation: popFade .16s ease; }
.pd-item {
  width: 100%; border: none; background: transparent; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--text); cursor: pointer; font-family: inherit; transition: var(--transition);
}
.pd-item:hover { background: var(--bg-input); color: var(--primary); }
.pd-item.danger { color: var(--danger); }
.pd-item.danger:hover { background: #fff1f2; }

.btn-topbar-logout {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px;
  background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48;
  font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: var(--transition); white-space: nowrap;
}
html[data-theme="dark"] .btn-topbar-logout {
  background: rgba(249, 60, 101, .16); border-color: rgba(249, 60, 101, .35); color: #fb7185;
}
.btn-topbar-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.gender-switcher {
  display: inline-flex; background: var(--bg-input); padding: 3px; border-radius: 10px; border: 1px solid var(--border);
}
.gs-btn {
  border: none; background: transparent; padding: 5.5px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: var(--text-secondary); cursor: pointer;
  font-family: inherit; transition: var(--transition);
}
.gs-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(72, 128, 255, .28); }

.sync-pill {
  border: 1px solid var(--border); border-radius: 20px; padding: 5.5px 11px;
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; transition: var(--transition);
  white-space: nowrap;
}
.sync-local { background: var(--bg-input); color: var(--text-secondary); }
.sync-ready { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.sync-syncing { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.sync-ok { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.sync-cloud-live {
  background: #ecfdf5; color: #047857; border-color: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .15);
}
.sync-err { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* ============ MAIN SCROLL CANVAS & PAGE HEADING ============ */
.canvas-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 28px 32px;
}
.page-heading-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.page-heading-bar h1 {
  font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.4px; line-height: 1.2;
}
.page-heading-bar .subtitle {
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-top: 3px;
}
.page-body { min-width: 0; }

.login-cloud-bar {
  width: 100%; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 11.5px; line-height: 1.4;
  text-align: left; cursor: pointer; font-family: inherit; transition: var(--transition);
}
.login-cloud-bar.local { background: var(--bg-subtle); color: var(--text-secondary); border-color: var(--border); }
.login-cloud-bar.local:hover { background: var(--primary-lighter); border-color: var(--primary); color: var(--primary); }
.login-cloud-bar.syncing { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.login-cloud-bar.ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.login-cloud-bar.live { background: #ecfdf5; color: #065f46; border-color: #34d399; }
.login-cloud-bar.err { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }

.code-sql-box {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.45; padding: 12px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #0f172a; color: #e2e8f0; resize: vertical;
}

/* ============ DASHSTACK KPI STAT CARDS & AREA CHART ============ */
.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.ds-kpi-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}
.ds-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ds-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ds-kpi-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.ds-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.ds-kpi-squircle {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.ds-kpi-squircle.lavender { background: #e5e4ff; color: #8280ff; }
.ds-kpi-squircle.amber    { background: #fff3d6; color: #fec53d; }
.ds-kpi-squircle.mint     { background: #d9f7e8; color: #00b69b; }
.ds-kpi-squircle.coral    { background: #ffded1; color: #ff9066; }

html[data-theme="dark"] .ds-kpi-squircle.lavender { background: rgba(130, 128, 255, .2); }
html[data-theme="dark"] .ds-kpi-squircle.amber    { background: rgba(254, 197, 61, .2); }
html[data-theme="dark"] .ds-kpi-squircle.mint     { background: rgba(0, 182, 155, .2); }
html[data-theme="dark"] .ds-kpi-squircle.coral    { background: rgba(255, 144, 102, .2); }

.ds-kpi-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ds-trend-up { color: #00b69b; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.ds-trend-down { color: #f93c65; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }

/* DASHSTACK CHART CARD */
.ds-chart-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.ds-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ds-chart-head h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.ds-chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ds-chart-controls select, .ds-chart-controls input[type="date"] {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}
.ds-svg-wrap {
  width: 100%;
  overflow-x: auto;
}
.ds-svg-chart {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}

/* ============ GENERIC CARDS, GRIDS & STATS (ALL OTHER PAGES) ============ */
.card {
  background: var(--bg-card); border-radius: 16px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 15px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-card); flex-wrap: wrap;
}
.card-header h3 { font-size: 15.5px; font-weight: 800; color: var(--text); }
.card-body { padding: 20px; }

.grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card); border-radius: 16px; padding: 18px 20px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow);
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px;
}
.stat-icon {
  width: 50px; height: 50px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.stat-icon.green  { background: #d9f7e8; color: #00b69b; }
.stat-icon.blue   { background: #e5e4ff; color: #4880ff; }
.stat-icon.yellow { background: #fff3d6; color: #d97706; }
.stat-icon.red    { background: #ffded1; color: #f93c65; }
.stat-icon.purple { background: #ede9fe; color: #8280ff; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 700; margin-top: 4px; }

/* ============ PERIOD SELECTOR & IMPORT DROPZONE ============ */
.period-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-card); padding: 11px 16px; border-radius: 14px;
  border: 1px solid var(--border-light); margin-bottom: 16px; box-shadow: var(--shadow);
}
.period-modes {
  display: inline-flex; background: var(--bg-input); padding: 3px; border-radius: 9px; gap: 3px; flex-wrap: wrap;
}
.pm-btn {
  border: none; background: transparent; padding: 6px 12px; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: var(--text-secondary); cursor: pointer;
  font-family: inherit; transition: var(--transition);
}
.pm-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(72, 128, 255, .25); }

.dropzone-import {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--primary-light); border-radius: 14px;
  padding: 26px 16px; text-align: center; cursor: pointer;
  background: var(--bg-subtle); transition: var(--transition);
}
.dropzone-import:hover, .dropzone-import.dragover {
  background: var(--primary-lighter); border-color: var(--primary);
}

/* ============ PJ DUTY BANNER, WA PREVIEW & AUDIT DIFF ============ */
.duty-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.duty-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; align-items: start;
}
.duty-meta-grid .dm-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
  font-weight: 800; color: var(--text-secondary); margin-bottom: 3px;
}
.duty-meta-grid .dm-val { font-size: 12.5px; font-weight: 700; color: var(--text); }
.row-my-duty { background: var(--primary-lighter) !important; }
.wa-preview-area {
  width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.5; padding: 12px; border: 1.5px solid var(--border);
  border-radius: 9px; background: var(--bg-subtle); color: var(--text); resize: vertical;
}
.audit-diff { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; font-weight: 700; }

/* ============ CATEGORIZED PERMISSION CARDS ============ */
.perm-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.perm-cat-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.perm-cat-header {
  padding: 13px 16px; background: var(--bg-subtle); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text);
}
.perm-cat-body { padding: 12px; display: grid; gap: 7px; }
.perm-cat-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; transition: var(--transition); background: var(--bg-card);
}
.perm-cat-item:hover { background: var(--bg-subtle); border-color: var(--primary-light); }
.perm-cat-item.checked { background: var(--primary-lighter); border-color: rgba(72, 128, 255, .35); }
.perm-cat-item input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.pci-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.pci-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ============ PROGRESS & STACKED BARS ============ */
.mini-progress { width: 100%; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 3px; }
.mini-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 99px; }
.stacked-bar { display: flex; height: 9px; background: var(--border); border-radius: 99px; overflow: hidden; }
.sb-seg { height: 100%; }
.sb-hadir { background: #00b69b; }
.sb-masbuk { background: #fec53d; }
.sb-madol { background: #f93c65; }

/* ============ FILTER BAR & TABS ============ */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input[type="date"], .filter-bar input[type="month"], .filter-bar input[type="text"] {
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-family: inherit; background: var(--bg-card); color: var(--text); min-width: 120px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--primary); }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }

.tabs {
  display: flex; gap: 5px; margin-bottom: 18px; background: var(--bg-card);
  padding: 5px; border-radius: 12px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow); overflow-x: auto;
}
.tab {
  padding: 9px 16px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
  font-weight: 700; transition: var(--transition); white-space: nowrap;
  border: none; background: transparent; color: var(--text-secondary); font-family: inherit;
}
.tab:hover { background: var(--bg-input); color: var(--text); }
.tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(72, 128, 255, .25); }

/* ============ ANGKATAN PILLS & WEEK BAR ============ */
.angkatan-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.angkatan-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.angkatan-pill {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 9px 15px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--text); cursor: pointer; transition: var(--transition); font-family: inherit;
}
.angkatan-pill:hover { border-color: var(--primary); background: var(--primary-lighter); }
.angkatan-pill.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(72, 128, 255, .28);
}
.angkatan-pill .ap-code { font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.angkatan-pill .ap-sub { font-size: 10.5px; opacity: .82; }

.week-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.week-controls input[type="date"], .week-controls input[type="month"] {
  padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 12.5px; font-family: inherit; background: var(--bg-card); color: var(--text);
}

/* ============ WEEKLY PRESENSI MATRIX ============ */
.matrix-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.legend-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.legend-chip {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .06);
}
.toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.matrix-scroll { overflow: auto; max-height: 68vh; }
.presensi-matrix { border-collapse: separate; border-spacing: 0; font-size: 11.5px; width: 100%; }
.presensi-matrix th, .presensi-matrix td {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 5px 4px; text-align: center; white-space: nowrap;
}
.presensi-matrix thead th {
  background: var(--brand-deep-2); color: #fff; font-weight: 700;
  position: sticky; top: 0; z-index: 4;
}
.presensi-matrix thead tr:nth-child(2) th { top: 27px; background: var(--brand-deep); font-size: 10px; }
.presensi-matrix thead tr:nth-child(3) th { top: 50px; background: #e0eaff; color: #1e3a8a; font-size: 10px; }
body[data-gender="banat"] .presensi-matrix thead tr:nth-child(3) th { background: #ede9fe; color: #4c1d95; }
.presensi-matrix th.day-has-sched { background: var(--primary); }
.presensi-matrix .slot-th { min-width: 26px; width: 26px; }

.sticky-col { position: sticky; background: var(--bg-card); z-index: 2; }
.presensi-matrix thead th.sticky-col { z-index: 6; background: var(--brand-deep-2); }
.col-no { left: 0; min-width: 34px; width: 34px; }
.col-name { left: 34px; min-width: 210px; max-width: 230px; text-align: left !important; padding: 5px 8px !important; }
.col-room { left: 244px; min-width: 58px; width: 58px; }
.stu-name-cell { font-weight: 700; font-size: 11.5px; color: var(--text); white-space: normal; line-height: 1.25; }
.stu-id-sub { font-size: 9.5px; color: var(--text-light); }
.room-merged-cell { background: var(--bg-subtle) !important; font-size: 11px; color: var(--primary); font-weight: 800; border-bottom: 2px solid var(--border) !important; }
.row-inactive td { opacity: .55; }

.matrix-cell { min-width: 26px; font-weight: 700; font-size: 11px; }
.matrix-cell.clickable { cursor: pointer; }
.matrix-cell.clickable:hover { outline: 2px solid var(--primary); outline-offset: -2px; }
.matrix-total { font-weight: 800; background: var(--bg-subtle); min-width: 42px; }
.matrix-pct { background: var(--bg-subtle); min-width: 50px; }

.st-empty { color: var(--text-light); background: var(--bg-card); }
.st-hadir { background: #dcfce7; color: #166534; }
.st-masbuk { background: #fef3c7; color: #92400e; }
.st-alpha { background: #fee2e2; color: #991b1b; }
.st-sakit { background: #fef9c3; color: #854d0e; }
.st-izin { background: #dbeafe; color: #1e40af; }
.st-pulang { background: #f1f5f9; color: #334155; }
.st-haid { background: #fce7f3; color: #9d174d; }
.st-hi { background: #ede9fe; color: #5b21b6; }

/* ============ DASHSTACK CLEAN TABLES & ATTENDANCE BUTTONS ============ */
.table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-light); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  background: var(--bg-subtle); color: var(--text); padding: 12px 14px;
  text-align: left; font-weight: 800; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text); }
.table tbody tr:hover { background: var(--bg-subtle); }
.table tbody tr.row-auto { background: rgba(130, 128, 255, .08); }
.room-header-row { background: var(--primary-lighter) !important; }
.room-header-row td { font-weight: 800; color: var(--primary); font-size: 12.5px; }

.att-btn-group { display: flex; gap: 4px; flex-wrap: wrap; }
.att-btn {
  min-width: 32px; height: 32px; padding: 0 6px;
  border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg-card);
  cursor: pointer; font-weight: 700; font-size: 11px; transition: var(--transition); font-family: inherit;
}
.att-btn:hover { transform: scale(1.06); }
.att-btn.hadir, .att-btn.terkumpul { border-color: #00b69b; color: #00b69b; }
.att-btn.hadir.active, .att-btn.terkumpul.active { background: #00b69b; color: #fff; }
.att-btn.masbuk { border-color: #d97706; color: #d97706; }
.att-btn.masbuk.active { background: #d97706; color: #fff; }
.att-btn.sakit { border-color: #ca8a04; color: #ca8a04; }
.att-btn.sakit.active { background: #eab308; color: #fff; }
.att-btn.alpha { border-color: #f93c65; color: #f93c65; }
.att-btn.alpha.active { background: #f93c65; color: #fff; }
.att-btn.izin { border-color: #4880ff; color: #4880ff; }
.att-btn.izin.active { background: #4880ff; color: #fff; }
.att-btn.dispensasi { border-color: #8280ff; color: #8280ff; }
.att-btn.dispensasi.active { background: #8280ff; color: #fff; }
.att-btn.pulang { border-color: #64748b; color: #64748b; }
.att-btn.pulang.active { background: #64748b; color: #fff; }
.att-btn.haid { border-color: #db2777; color: #db2777; }
.att-btn.haid.active { background: #db2777; color: #fff; }
.att-btn.hi { border-color: #9333ea; color: #9333ea; }
.att-btn.hi.active { background: #9333ea; color: #fff; }

.note-input { width: 100%; min-width: 110px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 11.5px; font-family: inherit; background: var(--bg-input); color: var(--text); }
.time-input { padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-family: inherit; background: var(--bg-input); color: var(--text); }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-green { background: #d9f7e8; color: #00876c; }
.badge-yellow, .badge-amber { background: #fff3d6; color: #b45309; }
.badge-red { background: #ffe4e6; color: #e11d48; }
.badge-blue { background: #e5edff; color: #2563eb; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-gray { background: var(--bg-input); color: var(--text-secondary); }

/* ============ SUMMARY BAR & INFO BOX ============ */
.summary-bar { display: flex; gap: 14px; padding: 12px 16px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-light); box-shadow: var(--shadow); margin-bottom: 14px; flex-wrap: wrap; }
.summary-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.summary-dot { width: 10px; height: 10px; border-radius: 50%; }

.info-box { padding: 12px 16px; border-radius: 12px; font-size: 12.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-box.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.info-box.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.info-box.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
html[data-theme="dark"] .info-box.info { background: rgba(72, 128, 255, .14); color: #93c5fd; border-color: rgba(72, 128, 255, .3); }
html[data-theme="dark"] .info-box.warning { background: rgba(254, 197, 61, .14); color: #fcd34d; border-color: rgba(254, 197, 61, .3); }
html[data-theme="dark"] .info-box.success { background: rgba(0, 182, 155, .14); color: #6ee7b7; border-color: rgba(0, 182, 155, .3); }

/* ============ WIZARD (DEVICE CHECK) ============ */
.wizard-container { max-width: 740px; margin: 0 auto; }
.wizard-card { background: var(--bg-card); border-radius: 18px; border: 1px solid var(--border-light); box-shadow: var(--shadow-md); overflow: hidden; }
.wizard-header { text-align: center; padding: 26px 24px 18px; border-bottom: 1px solid var(--border-light); }
.wiz-logos { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.wiz-logos img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.wiz-logo-placeholder { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.wiz-logo-placeholder.secondary { background: #1e3a8a; }
.wizard-header h2 { font-size: 20px; font-weight: 800; color: var(--text); }
.wiz-date { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.wizard-body { padding: 22px 24px; }
.wizard-footer { padding: 14px 0 0; display: flex; gap: 10px; justify-content: center; }

.step-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: var(--text-secondary); }
.step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
.step-line { width: 32px; height: 2px; background: var(--border); }
.step-line.done { background: var(--success); }

.wiz-field { margin-bottom: 18px; }
.wiz-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.wiz-field .hint { font-size: 11px; color: var(--text-secondary); font-style: italic; margin-top: 6px; }
.wiz-field input[type="text"] { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 13.5px; font-family: inherit; background: var(--bg-input); color: var(--text); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.checkbox-card { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: var(--transition); background: var(--bg-card); user-select: none; }
.checkbox-card:hover { border-color: var(--primary); background: var(--primary-lighter); }
.checkbox-card.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.cb-check { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.checkbox-card.selected .cb-check { background: #fff; border-color: #fff; color: var(--primary); }
.cb-label { font-size: 13.5px; font-weight: 700; }

.student-checklist { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.student-checklist-header { padding: 10px 14px; background: var(--primary-lighter); font-weight: 800; font-size: 13px; color: var(--primary); border-bottom: 1px solid var(--border); }
.student-check-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; user-select: none; }
.student-check-item:last-child { border-bottom: none; }
.student-check-item:hover { background: rgba(249, 60, 101, .06); }
.student-check-item.checked { background: rgba(249, 60, 101, .12); }
.sci-check { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.student-check-item.checked .sci-check { background: var(--danger); border-color: var(--danger); color: #fff; }
.student-check-item.auto-status { background: rgba(130, 128, 255, .08); cursor: default; }
.student-check-item.auto-status .sci-check { background: var(--purple); border-color: var(--purple); color: #fff; }
.sci-name { font-size: 13px; font-weight: 700; }
.wizard-success { text-align: center; padding: 10px 0; }
.wizard-success .success-icon { font-size: 48px; margin-bottom: 8px; }

/* ============ QUICK ACTIONS, PERMISSION MATRIX, LOGO UPLOAD, MODAL, TOAST ============ */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 22px; }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 12px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); text-align: center;
}
.quick-action-btn:hover { border-color: var(--primary); background: var(--primary-lighter); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.qa-icon { font-size: 26px; }
.qa-label { font-size: 13px; font-weight: 800; color: var(--text); }
.qa-desc { font-size: 11px; color: var(--text-secondary); }

.perm-grid { overflow-x: auto; max-height: 62vh; }
.perm-grid table { border-collapse: collapse; font-size: 12px; width: 100%; }
.perm-grid th { padding: 10px 8px; text-align: center; background: var(--brand-deep); color: #fff; position: sticky; top: 0; z-index: 3; }
.perm-grid td { padding: 7px 8px; border: 1px solid var(--border); text-align: center; }
.perm-grid input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

.logo-upload-area {
  border: 2px dashed var(--border); border-radius: 14px; padding: 24px; text-align: center;
  cursor: pointer; transition: var(--transition); background: var(--bg-subtle);
}
.logo-upload-area:hover { border-color: var(--primary); background: var(--primary-lighter); }
.logo-upload-area img { max-width: 110px; max-height: 110px; border-radius: 10px; margin-bottom: 8px; background: #fff; padding: 4px; }
.logo-upload-area input[type="file"] { display: none; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .52); display: none;
  align-items: center; justify-content: center; z-index: 200; padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); color: var(--text); border-radius: 18px; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal-header { padding: 16px 22px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg-input); color: var(--text); border-radius: 8px; cursor: pointer; font-size: 18px; }
.modal-close:hover { background: #fee2e2; color: var(--danger); }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.toast-container { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 16px; border-radius: 10px; color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-lg); animation: slideIn .25s ease; max-width: 360px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 4px; }

/* ============ 3-TIER RESPONSIVE BREAKPOINTS (PC > TABLET <=1100px > HP <=640px) ============ */
@media (max-width: 1360px) {
  .nav-history-btns { display: none; }
  .topbar-search-wrap { max-width: 280px; }
}

@media (max-width: 1200px) {
  .ds-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: 272px; box-shadow: var(--shadow-lg); }
  body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
  .sidebar.open, body.sidebar-collapsed .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: inline-flex; }
  .main-content { margin-left: 0; }
  .page-header { padding: 10px 16px; }
  .canvas-scroll { padding: 18px 16px 28px; }
  .topbar-search-wrap { max-width: 210px; }
  .perm-category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; }
  .topbar-user-meta, .profile-caret { display: none; }
  .undo-redo-group { display: none; }
}

@media (max-width: 640px) {
  .page-header { padding: 8px 10px; gap: 6px; min-height: 58px; }
  .header-left { flex: 0 0 auto; }
  .header-right { gap: 5px; min-width: 0; }
  .hamburger-btn { width: 36px; height: 36px; }
  .topbar-icon-btn { width: 34px; height: 34px; font-size: 14px; }
  .topbar-search-wrap { display: none; }
  .nav-history-btns, .undo-redo-group, .sync-pill, .topbar-profile-trigger { display: none; }
  .topbar-user-box { border-left: none; padding-left: 0; gap: 4px; }
  .gender-switcher { padding: 2px; }
  .gs-btn { padding: 4px 7px; font-size: 11px; }
  .btn-topbar-logout { padding: 5px 8px; font-size: 11px; }
  .notif-dropdown { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; }
  .canvas-scroll { padding: 14px 12px 24px; }
  .page-heading-bar h1 { font-size: 20px; }
  .page-heading-bar .subtitle { font-size: 11px; }
  .ds-kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .ds-kpi-card { padding: 16px 18px; }
  .ds-kpi-value { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wiz-row-2 { grid-template-columns: 1fr !important; }
  .col-no { display: none; }
  .col-name { left: 0; min-width: 132px; max-width: 145px; }
  .col-room { left: 132px; min-width: 46px; width: 46px; }
  .att-btn { min-width: 34px; height: 34px; }
}

@media print {
  .sidebar, .sidebar-backdrop, .page-header, .tabs, .filter-bar, .period-bar, .angkatan-bar, .matrix-toolbar, .btn, .wizard-footer { display: none !important; }
  .main-content { margin-left: 0 !important; height: auto !important; overflow: visible !important; }
  .canvas-scroll, .page-body { overflow: visible !important; padding: 0 !important; }
  .matrix-scroll { max-height: none !important; overflow: visible !important; }
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #475569; }


/* ============================================================================
   RESPONSIVE DRAG & DROP DASHBOARD UTAMA + POPUP MODAL RESPONSIF
   ============================================================================ */

.rdrag-item {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.rdrag-item.rdrag-dragging {
  opacity: 0.58 !important;
  transform: scale(0.985) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22) !important;
  outline: 2px dashed var(--primary) !important;
  z-index: 90 !important;
}

.rdrag-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 12;
  opacity: 0.38;
  transition: opacity 0.18s ease;
}

.rdrag-item:hover > .rdrag-toolbar,
.rdrag-toolbar:focus-within {
  opacity: 1;
}

.rdrag-handle,
.rdrag-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 0;
}

.rdrag-popup-btn {
  cursor: pointer;
}

.rdrag-handle:hover,
.rdrag-popup-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.rdrag-handle:active {
  cursor: grabbing;
}

/* Popup / Modal Responsif untuk Semua Ukuran Layar */
.modal.modal-responsive-enhanced {
  width: min(94vw, 680px);
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, max-width 0.2s ease, height 0.2s ease;
}

.modal.modal-responsive-enhanced.modal-wide {
  width: min(95vw, 1140px);
  max-width: 95vw;
}

.modal.modal-responsive-enhanced.modal-fullscreen {
  width: 98vw !important;
  max-width: 98vw !important;
  height: 94vh !important;
  max-height: 94vh !important;
}

.modal.modal-responsive-enhanced .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-expand-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-input);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-expand-btn:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

.popup-all-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.popup-dash-widget {
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

@media (max-width: 640px) {
  .rdrag-toolbar {
    opacity: 0.85;
    top: 6px;
    right: 6px;
  }

  .modal-overlay {
    padding: 8px;
  }

  .modal.modal-responsive-enhanced,
  .modal.modal-responsive-enhanced.modal-wide {
    width: 96vw;
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 14px;
  }

  .modal.modal-responsive-enhanced .modal-header,
  .modal.modal-responsive-enhanced .modal-body,
  .modal.modal-responsive-enhanced .modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .popup-all-dash-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================================================
   V6 PROFESSIONAL CLEAN UI: REAL-TIME CLOCK, ONLINE/OFFLINE INDICATOR,
   LANDING PAGE, 1-PAGE DEVICE CHECK (SEARCH + PILLS), 41-PASAL TATIB,
   AND GLOBAL CUSTOM APPEARANCE
   ============================================================================ */

/* --- Online / Offline Status Indicator --- */
.login-net-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.login-net-bar.online {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.login-net-bar.offline {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
html[data-theme="dark"] .login-net-bar.online {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
html[data-theme="dark"] .login-net-bar.offline {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.net-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  white-space: nowrap;
}
.net-status-pill.online {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.net-status-pill.offline {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
html[data-theme="dark"] .net-status-pill.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
html[data-theme="dark"] .net-status-pill.offline {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.net-dot.online {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.net-dot.offline {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* --- Real-Time Clock Pill in Topbar --- */
.realtime-clock-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.topbar-text-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.topbar-text-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

/* --- Simplified Topbar Account Trigger & Dropdown --- */
.topbar-profile-trigger {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.topbar-profile-trigger:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}
.topbar-avatar {
  width: 28px;
  height: 28px;
  font-size: 12.5px;
}
.pd-user-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.pd-user-fullname {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.pd-user-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pd-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* --- Nav Code Badge (Clean No-Emoji Sidebar) --- */
.nav-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: var(--bg-input);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.nav-item.active .nav-code-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* --- Landing Page (Post-Login Shortcut Hub) --- */
.landing-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.landing-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.landing-hero-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.landing-hero-info p {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.btn-enter-dashboard {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(72, 128, 255, 0.28);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-enter-dashboard:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.landing-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.landing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.landing-card:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.landing-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg-input);
  color: var(--primary);
}
.landing-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.landing-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --- 1-Page Laptop / Device Check UI (Matching Screenshot image_99ab87.png) --- */
.devcheck-container {
  max-width: 780px;
  margin: 0 auto;
}
.devcheck-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 32px 34px;
}
.devcheck-header {
  text-align: center;
  margin-bottom: 26px;
}
.devcheck-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}
html[data-theme="dark"] .devcheck-header h2 {
  color: var(--text);
}
.devcheck-header .devcheck-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.devcheck-field {
  margin-bottom: 20px;
}
.devcheck-field label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.devcheck-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}
.devcheck-input:focus {
  outline: none;
  border: 2px solid #0f172a;
}
html[data-theme="dark"] .devcheck-input:focus {
  border-color: var(--primary);
}

.devcheck-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.devcheck-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 14px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1.5px solid #1e3a8a;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
html[data-theme="dark"] .devcheck-chip {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #f1f5f9;
}
.devcheck-chip .chip-meta {
  font-weight: 600;
  color: #475569;
}
html[data-theme="dark"] .devcheck-chip .chip-meta {
  color: #cbd5e1;
}
.devcheck-chip-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #0f2942;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.devcheck-chip-remove:hover {
  background: var(--danger);
}

.devcheck-student-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.devcheck-student-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.devcheck-student-item:hover {
  border-color: #94a3b8;
}
.devcheck-student-item.selected {
  background: #eff6ff;
  border: 1.5px solid #1e3a8a;
}
html[data-theme="dark"] .devcheck-student-item {
  border-color: var(--border);
}
html[data-theme="dark"] .devcheck-student-item.selected {
  background: rgba(59, 130, 246, 0.16);
  border-color: #60a5fa;
}
.devcheck-box {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}
.devcheck-student-item.selected .devcheck-box {
  background: #0f2942;
  border-color: #0f2942;
  color: #ffffff;
}
html[data-theme="dark"] .devcheck-student-item.selected .devcheck-box {
  background: var(--primary);
  border-color: var(--primary);
}
.devcheck-stu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.devcheck-stu-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
}
.devcheck-stu-sub {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Detailed 41-Pasal Tata Tertib Styling --- */
.tatib-pasal-block {
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-subtle);
  margin-bottom: 12px;
}
.tatib-pasal-block:last-child {
  margin-bottom: 0;
}
.tatib-pasal-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tatib-pasal-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tatib-pasal-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}
.tatib-pasal-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}
.tatib-ayat-list {
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.tatib-ayat-item {
  white-space: pre-line;
  padding-left: 4px;
}
.tatib-sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}
.tatib-sign-box {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
}
.tatib-sign-role {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 32px;
}
.tatib-sign-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
}

/* --- Custom Appearance Modal Controls --- */
.appearance-section {
  margin-bottom: 18px;
}
.appearance-section label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.appearance-options-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.app-opt-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.app-opt-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}
.color-swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.color-swatch-btn:hover {
  transform: scale(1.1);
}
.color-swatch-btn.active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--primary-lighter);
}

/* Density & Font Scaling Overrides */
body[data-density="compact"] .card-body { padding: 14px; }
body[data-density="compact"] .table td, body[data-density="compact"] .table th { padding: 7px 10px; }
body[data-density="compact"] .ds-kpi-card { padding: 14px 16px; }
body[data-density="comfortable"] .card-body { padding: 26px; }
body[data-density="comfortable"] .table td, body[data-density="comfortable"] .table th { padding: 13px 16px; }

@media (max-width: 640px) {
  .realtime-clock-pill {
    font-size: 11px;
    padding: 5px 8px;
  }
  .topbar-text-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .devcheck-card {
    padding: 20px 16px;
  }
  .landing-hero {
    padding: 20px 18px;
  }
}

/* --- Bottom-Right Semi-Transparent Version Badge (Release 1.0.0) --- */
.app-version-watermark {
  position: fixed;
  bottom: 12px;
  right: 16px;
  z-index: 185;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
@media print {
  .app-version-watermark { display: none !important; }
}

/* ============================================================================
   RELEASE 1.0.0 FINAL PATCH — STICKY REKAP HEADERS, 9:16 BLURRED PORTAL,
   PDF ATTACHMENT VIEWER & DAILY HP CHECK
   ============================================================================ */

/* 1. Sticky Header untuk Semua Tabel Rekap & Presensi Saat Di-Scroll ke Bawah */
.table-wrapper {
  position: relative;
  max-height: 68vh;
  overflow-y: auto;
  overflow-x: auto;
}

.table thead th,
#rekapSubContent .table thead th,
#rhBody .table thead th,
#rkBody .table thead th,
#riBody .table thead th,
#rlBody .table thead th,
#radBody .table thead th,
#sholatSubContent .table thead th,
#literasiSubContent .table thead th,
#apelTableContainer .table thead th,
#devTableBody .table thead th,
#statusListHost .table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 15 !important;
  background: var(--bg-subtle) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.presensi-matrix thead tr:nth-child(1) th {
  position: sticky !important;
  top: 0 !important;
  z-index: 18 !important;
}
.presensi-matrix thead tr:nth-child(2) th {
  position: sticky !important;
  top: 28px !important;
  z-index: 17 !important;
}
.presensi-matrix thead tr:nth-child(3) th {
  position: sticky !important;
  top: 51px !important;
  z-index: 16 !important;
}
.presensi-matrix thead th.sticky-col {
  z-index: 22 !important;
}

/* 2. Portal Pintasan ~9:16 di Atas Latar Belakang Dashboard yang Di-Blur */
.portal-blur-stage {
  position: relative;
  min-height: calc(100vh - 110px);
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.portal-dashboard-bg-blur {
  filter: blur(11px) brightness(0.92);
  transform: scale(1.02);
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.88;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.portal-916-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(4px);
  z-index: 30;
}

.portal-916-card {
  width: min(92vw, 415px);
  min-height: min(82vh, 680px);
  max-height: 88vh;
  aspect-ratio: 9 / 15.2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.34);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  animation: popFade 0.22s ease;
}

.portal-916-header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.portal-916-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.portal-916-logos img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(72, 128, 255, 0.14);
}

.portal-916-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

.portal-916-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.portal-916-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0;
  flex: 1 1 auto;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.portal-916-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text);
}

.portal-916-item:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

.portal-916-item .p916-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}

.portal-916-item .p916-title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}

.portal-916-item .p916-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.25;
}

.portal-916-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   RELEASE 1.0.0 — FLOATING PENCIL FAB, DASHBOARD LAYOUT TEMPLATES,
   PREVIEW MODE (FLOATING BLOCKS, PROMINENT DRAG, REBOUND CLICK) & POPUP LANDING
   ============================================================================ */

/* 1. Sembunyikan tombol kotak kosong (.rdrag-toolbar) di tiap tabel/kartu dashboard */
#pageBody .rdrag-toolbar,
#pageBody .rdrag-popup-btn,
#pageBody .rdrag-handle {
  display: none !important;
}

/* 2. Seluruh kotak tabel / kartu di Dashboard bisa diklik (Whole-Card Clickable) */
.dash-clickable-block {
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}

body:not(.dash-preview-mode) .dash-clickable-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* 3. Efek Rebound (Spring Bounce) Saat Blok Diklik */
@keyframes dashBlockRebound {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.94); }
  65%  { transform: scale(1.035); }
  85%  { transform: scale(0.985); }
  100% { transform: scale(1); }
}

.dash-rebound-anim {
  animation: dashBlockRebound 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 4. Tombol Kustomisasi Kecil (Logo Pensil) di Pojok Kanan Bawah
      Diposisikan di atas tulisan "Release 1.0.0" agar tidak pernah menutupi */
.app-version-watermark,
.release-version-badge {
  position: fixed;
  bottom: 10px;
  right: 16px;
  z-index: 185;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.dash-customize-fab {
  position: fixed;
  bottom: 42px;
  right: 16px;
  z-index: 190;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
}

body[data-page="dashboard"] .dash-customize-fab {
  display: inline-flex;
}

.dash-customize-fab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 10px 24px rgba(72, 128, 255, 0.35);
}

.dash-customize-fab:active {
  transform: scale(0.92);
}

body.dash-preview-mode .dash-customize-fab {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-lighter), 0 10px 24px rgba(72, 128, 255, 0.35);
}

/* 5. Mode Preview: Blok-Blok Tabel Mengambang (Floating Blocks) */
@keyframes dashBlockFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.15deg);
  }
}

body.dash-preview-mode .dash-float-block {
  animation: dashBlockFloat 2.6s ease-in-out infinite;
  border: 1.5px dashed var(--primary) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14) !important;
  position: relative;
  user-select: none;
}

body.dash-preview-mode .dash-float-block:nth-child(even) {
  animation-delay: 0.45s;
}

body.dash-preview-mode .dash-float-block:nth-child(3n) {
  animation-delay: 0.9s;
}

body.dash-preview-mode.dash-custom-drag-mode .dash-float-block {
  cursor: grab !important;
}

body.dash-preview-mode.dash-custom-drag-mode .dash-float-block::after {
  content: 'Geser Blok';
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--primary);
  color: #ffffff;
  opacity: 0.85;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* 6. Kalau Di-Drag, Responsif Menonjol (Prominent Responsive Drag) */
body.dash-preview-mode .dash-float-block.rdrag-dragging,
.rdrag-item.rdrag-dragging {
  animation: none !important;
  opacity: 0.97 !important;
  transform: scale(1.045) translateY(-8px) !important;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.34),
              0 0 0 3px var(--primary) !important;
  border: 2px solid var(--primary) !important;
  background: var(--bg-card) !important;
  z-index: 140 !important;
  cursor: grabbing !important;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.14s ease !important;
}

/* 7. Bar Konfirmasi & Cancel Mode Preview Layout Dashboard */
.dash-preview-banner {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
  animation: popFade 0.2s ease;
}

.dash-preview-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dash-preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 8. Pop-up Kotak-Kotak Pilihan Template Layout & "Kustomisasi Sendiri" */
.dash-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.dash-tpl-box {
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-subtle);
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.dash-tpl-box:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dash-tpl-box.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  box-shadow: 0 0 0 3px rgba(72, 128, 255, 0.18);
}

.dash-tpl-box.custom-self {
  border: 2px dashed var(--primary);
  background: var(--bg-card);
}

.dash-tpl-box.custom-self:hover {
  background: var(--primary-lighter);
  border-style: solid;
}

.dash-tpl-wireframe {
  height: 76px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.wf-row {
  display: flex;
  gap: 5px;
  width: 100%;
}

.wf-block {
  background: var(--primary-lighter);
  border: 1px solid var(--primary-light);
  border-radius: 4px;
  flex: 1;
  min-height: 12px;
}

.wf-block.accent {
  background: var(--primary);
  opacity: 0.78;
}

.wf-block.tall {
  min-height: 22px;
}

.dash-tpl-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dash-tpl-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
}

/* 9. Variasi Layout Template pada Dashboard */
#pageBody[data-dash-template="compact_split"] .ds-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pageBody[data-dash-template="analytics_focus"] .ds-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 10. Pop-up Landing Page (Pintasan Modul) */
.landing-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.landing-popup-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-popup-user img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1px solid var(--border);
}

.landing-popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 11px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 2px;
}

.landing-popup-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.18s ease,
              background 0.18s ease,
              box-shadow 0.18s ease;
}

.landing-popup-card:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.landing-popup-card .lpc-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-input);
  color: var(--primary);
}

.landing-popup-card .lpc-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.landing-popup-card .lpc-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.38;
}
