/* =============================================
   1. DESIGN TOKENS
   ============================================= */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --line: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF6FF;
  --accent: #06B6D4;
  --warning: #F59E0B;
  --accent-text: #92400E;
  --danger: #EF4444;
  --success: #10B981;
  --secondary: #3B82F6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   2. RESET & GLOBALS
   ============================================= */
* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.muted,
.empty {
  color: var(--muted);
}

.empty {
  margin: 0;
  padding: 18px;
  text-align: center;
}

/* =============================================
   3. SKELETON LOADING (PRESERVED)
   ============================================= */
.site-skeleton {
  display: none;
}

.js .site-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  overflow: hidden;
  background: var(--bg);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  visibility: visible;
}

.js.page-ready .site-skeleton {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.skeleton-line,
.skeleton-logo,
.skeleton-brand-lines span,
.skeleton-nav-lines span,
.skeleton-menu-lines span,
.skeleton-public-panel span,
.skeleton-admin-topbar,
.skeleton-admin-grid span,
.skeleton-admin-table span,
.skeleton-form,
.skeleton-stat-row,
.skeleton-public-strip span {
  overflow: hidden;
  border-radius: 8px;
  background: #0284c7;
  background-size: 220% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.public-skeleton {
  background: #062542;
}

.skeleton-public-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  background: #082f5d;
  padding: 7px max(18px, calc((100vw - 1180px) / 2));
}

.skeleton-public-strip span {
  display: block;
  height: 10px;
  opacity: 0.42;
}

.skeleton-public-strip span:first-child {
  width: 118px;
}

.skeleton-public-strip span:last-child {
  width: 210px;
}

.skeleton-public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
  border-bottom: 1px solid rgba(217, 226, 238, 0.92);
  background: rgba(255, 255, 255, 0.97);
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  box-shadow: var(--shadow-sm);
}

.skeleton-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.skeleton-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.skeleton-brand-lines,
.skeleton-menu-lines,
.skeleton-copy-stack,
.skeleton-public-panel {
  display: grid;
  gap: 9px;
}

.skeleton-brand-lines span {
  display: block;
  height: 12px;
}

.skeleton-brand-lines span:first-child {
  width: 150px;
}

.skeleton-brand-lines span:last-child {
  width: 88px;
}

.skeleton-nav-lines {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.skeleton-nav-lines span {
  width: 82px;
  height: 34px;
}

.skeleton-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(730px, calc(100dvh - 112px));
  background:
    #0284c7 0%, rgba(5, 47, 82, 0.89) 48%, rgba(5, 47, 82, 0.62) 100%),
    url("ktm-campus-bg.png") right bottom / min(620px, 62%) auto no-repeat,
    #062542;
  padding: clamp(36px, 6vw, 84px) max(18px, calc((100vw - 1180px) / 2));
}

.skeleton-copy-stack {
  width: min(650px, 100%);
}

.skeleton-line {
  display: block;
  height: 16px;
  opacity: 0.72;
}

.skeleton-line-kicker {
  width: 190px;
  height: 14px;
}

.skeleton-line-title {
  width: min(560px, 100%);
  height: clamp(42px, 6vw, 64px);
}

.skeleton-line-title.short {
  width: min(430px, 76%);
}

.skeleton-line.medium {
  width: min(460px, 82%);
}

.skeleton-form {
  display: block;
  width: min(620px, 100%);
  height: 72px;
  margin-top: 12px;
}

.skeleton-stat-row {
  display: block;
  width: min(620px, 100%);
  height: 74px;
}

.skeleton-public-panel {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 26px;
}

.skeleton-public-panel span:first-child {
  height: 86px;
}

.skeleton-public-panel span {
  display: block;
  height: 76px;
  opacity: 0.62;
}

.js .admin-skeleton {
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #eef3f8;
}

.skeleton-admin-sidebar {
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.skeleton-menu-lines {
  margin-top: 12px;
}

.skeleton-menu-lines span {
  display: block;
  height: 44px;
}

.skeleton-admin-main {
  min-width: 0;
  padding: 16px 20px 48px;
}

.skeleton-admin-topbar {
  height: 68px;
  margin-bottom: 22px;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
}

.skeleton-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto 18px;
}

.skeleton-admin-grid span {
  display: block;
  height: 118px;
  background-color: #fff;
}

.skeleton-admin-table {
  display: grid;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.skeleton-admin-table span {
  display: block;
  height: 42px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

/* =============================================
   4. GRID, PANEL, TOOLBAR
   ============================================= */
.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.list-panel {
  margin-top: 18px;
}

.list-panel.flush-list {
  margin-top: 0;
}

.toolbar,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar {
  justify-content: space-between;
}

.toolbar h1,
.toolbar h2,
.page-title h1,
.page-title h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

.toolbar p,
.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-title.toolbar {
  margin-bottom: 18px;
}

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: none;
}

.btn.danger {
  background: var(--danger);
}

.btn.danger:hover {
  background: #DC2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn.primary-action {
  min-height: 44px;
  padding: 11px 22px;
  background: var(--primary);
}

.btn.primary-action:hover {
  background: var(--primary-dark);
}

.btn.small {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =============================================
   6. ALERTS
   ============================================= */
.alert {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
}

.alert.success {
  border-color: #A7F3D0;
  background: #ECFDF5;
  color: #065F46;
}

.alert.error {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #991B1B;
}

/* =============================================
   7. BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: #F1F5F9;
  padding: 4px 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.Aktif,
.badge.success {
  background: #D1FAE5;
  color: #065F46;
}

.badge.Menunggu,
.badge.warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge.Tidak,
.badge.Cuti,
.badge.Alumni,
.badge.danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* =============================================
   8. FORMS
   ============================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.form-section-title:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.form-section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.field-status {
  max-width: 280px;
}

.field-status select {
  min-height: 40px;
  padding-block: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.color-field input[type="color"] {
  height: 46px;
  padding: 5px;
  cursor: pointer;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================
   9. LOGIN PANEL (PRESERVED)
   ============================================= */
.login-panel {
  max-width: 460px;
  margin: 0 auto;
}

/* =============================================
   10. TABLE
   ============================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #F8FAFC;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: #F8FAFC;
}

td .actions {
  flex-wrap: wrap;
}

td form {
  margin: 0;
}

/* =============================================
   11. STUDENT PHOTO THUMB (PRESERVED)
   ============================================= */
.student-photo-thumb {
  width: 36px;
  height: 48px;
  border: 2px solid #0f315a;
  border-radius: 6px;
  background: #e9f1f8;
  object-fit: cover;
  object-position: center top;
}

/* =============================================
   12. PHOTO UPLOAD (PRESERVED)
   ============================================= */
.photo-upload-control {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfefe;
  padding: 8px;
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #b9c7d8;
  border-radius: 6px;
  background: #eef4fa;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.file-input-native:focus + .file-picker-btn {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(7, 93, 168, 0.12);
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: #475d76;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-upload-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  align-items: center;
  gap: 14px;
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.photo-preview-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-preview-copy strong,
.photo-preview-copy span {
  color: var(--muted);
  line-height: 1.25;
}

.photo-preview-copy strong {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.photo-preview-copy span {
  font-size: 12px;
  font-weight: 800;
}

.photo-crop-tool {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.photo-crop-tool.is-hidden {
  display: none;
}

.photo-crop-frame {
  width: 132px;
  aspect-ratio: 279 / 413;
  overflow: hidden;
  border: 2px solid #0f315a;
  border-radius: 6px;
  background: #e9f1f8;
}

.photo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center center;
}

.photo-upload-preview img.is-hidden {
  display: none;
}

.photo-crop-controls {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
  width: 100%;
}

.photo-crop-controls label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.photo-crop-controls input[type="range"] {
  padding: 0;
}

.photo-upload-preview.is-empty {
  grid-template-columns: 1fr;
}

.photo-upload-preview.is-empty .photo-preview-copy {
  justify-items: center;
  text-align: center;
}

/* =============================================
   13. APP SHELL & SIDEBAR
   ============================================= */
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.sidebar-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 16px 12px;
}

.brand,
.sidebar-nav a,
.admin-mini,
.logout-link {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: contain;
  padding: 4px;
}

.brand-copy,
.nav-copy,
.admin-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong,
.nav-copy strong,
.admin-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.brand-copy small,
.nav-copy small,
.admin-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  border-color: transparent;
}

.sidebar-nav a.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sidebar-nav a.active .nav-copy strong {
  color: #fff;
}

.sidebar-nav a.active .nav-copy small {
  color: rgba(255, 255, 255, 0.7);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #F1F5F9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  transition: all var(--transition);
}

.sidebar-nav a:hover .nav-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-copy strong {
  font-size: 13px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
}

.admin-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.logout-form {
  display: contents;
}

.logout-link,
.sidebar-login {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.logout-link:hover,
.sidebar-login:hover {
  border-color: var(--danger);
  background: #FEF2F2;
  color: var(--danger);
}

/* =============================================
   14. MAIN SHELL & TOPBAR
   ============================================= */
.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin: 16px 20px 0;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topbar-copy {
  min-width: 0;
}

.topbar-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.mobile-menu-btn,
.sidebar-backdrop {
  display: none;
}

.mobile-menu-btn {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

/* =============================================
   15. CONTAINER
   ============================================= */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 40px;
}

/* =============================================
   16. PUBLIC SITE STYLES (PRESERVED)
   ============================================= */
.public-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
}

.public-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  background: var(--primary-dark);
  color: #fff;
  padding: 6px max(18px, calc((100vw - 1180px) / 2));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.public-top-strip span:first-child {
  color: #ffcf4a;
}

.public-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid #E2E8F0;
  border-top: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  box-shadow: 0 2px 8px rgba(15, 35, 68, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.public-brand img,
.public-footer-brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.public-brand span {
  display: grid;
  min-width: 0;
}

.public-brand strong,
.public-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-brand strong {
  color: var(--primary-dark);
  font-size: 15px;
  line-height: 1.1;
}

.public-brand small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.public-nav-toggle,
.nav-burger-toggle {
  display: none;
}

.nav-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
}

.nav-burger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.public-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: #31445c;
  font-size: 13px;
  font-weight: 800;
}

.public-nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.public-nav-links a:hover {
  border-color: #c0cad6;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.public-nav-links .btn-portal,
.public-nav-links .public-nav-cta {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff !important;
}

.public-nav-links .btn-portal:hover,
.public-nav-links .public-nav-cta:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff !important;
}

/* Responsive Burger Menu for Public Navbar */
@media (max-width: 768px) {
  .public-nav-bar {
    position: relative;
    padding: 12px 16px;
  }

  .nav-burger-btn {
    display: flex;
  }

  .nav-burger-toggle:checked ~ .nav-burger-btn span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-burger-toggle:checked ~ .nav-burger-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-burger-toggle:checked ~ .nav-burger-btn span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .public-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
    z-index: 100;
  }

  .nav-burger-toggle:checked ~ .public-nav-links {
    display: flex;
  }

  .public-nav-links a {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
  }
}

.public-container {
  width: 100%;
  margin: 0;
}

.public-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(660px, calc(100dvh - 92px));
  overflow: hidden;
  background:
    #0284c7 0%, rgba(30, 58, 95, 0.82) 50%, rgba(15, 23, 42, 0.88) 100%),
    url("ktm-campus-bg.png") center / cover no-repeat;
  padding: clamp(30px, 5vw, 64px) max(18px, calc((100vw - 1180px) / 2));
}

.public-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(620px, 66%);
  height: 100%;
  background: linear-gradient(135deg, #0284c7, transparent);
  content: "";
}

.public-home-page .public-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image:
    #070a12, transparent 50%),
    #070a12, transparent 50%),
    #0284c7 1px, transparent 1px),
    #0284c7 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  content: "";
  pointer-events: none;
}

.public-hero-content {
  width: min(650px, 100%);
  min-width: 0;
  color: #fff;
}

.public-home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.public-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid #F59E0B;
  padding-left: 10px;
  color: #FCD34D;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.public-kicker::before {
  content: none;
}

.public-kicker.dark {
  color: #2563EB;
  border-color: #2563EB;
}

.public-kicker.light {
  color: #FCD34D;
  border-color: #FCD34D;
}

.public-hero h1,
.public-detail-copy h1 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.public-hero h1 span {
  display: block;
}

.public-hero p,
.public-detail-copy p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-search-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  width: min(620px, 100%);
  max-width: 100%;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.public-search-card label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.public-search-card input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
}

.public-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 16px;
}

.public-hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.public-hero-stats div:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.public-hero-stats strong,
.public-hero-stats span {
  display: block;
}

.public-hero-stats strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.public-hero-stats span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.public-hero-visual {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 360px;
  padding: 22px;
}

.public-hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    #0284c7, rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  content: "";
  transform: rotate(-1.3deg);
}

.public-visual-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: var(--primary-dark);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.public-visual-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.public-visual-logo span {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.public-visual-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.public-visual-card.accent {
  border-color: rgba(245, 179, 35, 0.38);
  background: rgba(245, 179, 35, 0.15);
}

.public-visual-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-visual-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.public-home-page .public-hero-content > .public-kicker,
.public-home-page .public-hero-content h1,
.public-home-page .public-hero-content p,
.public-home-page .public-search-card,
.public-home-page .public-hero-stats,
.public-home-page .public-section-heading,
.public-home-page .public-flow-item,
.public-home-page .public-campus-image,
.public-home-page .public-campus-copy,
.public-home-page .public-cta-inner {
  animation: indexFadeUp 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.public-home-page .public-hero-content > .public-kicker {
  animation-delay: 0.05s;
}

.public-home-page .public-hero-content h1 {
  animation-delay: 0.13s;
}

.public-home-page .public-hero-content p {
  animation-delay: 0.21s;
}

.public-home-page .public-search-card {
  animation-delay: 0.3s;
}

.public-home-page .public-hero-stats {
  animation-delay: 0.38s;
}

.public-home-page .public-hero-visual {
  animation: indexVisualIn 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both;
}

.public-home-page .public-hero-visual::before {
  animation: indexPanelBreath 7s ease-in-out infinite;
}

.public-home-page .public-visual-logo,
.public-home-page .public-visual-card {
  animation: indexCardIn 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.public-home-page .public-visual-logo {
  animation-delay: 0.42s;
}

.public-home-page .public-visual-card:nth-child(2) {
  animation-delay: 0.52s;
}

.public-home-page .public-visual-card:nth-child(3) {
  animation-delay: 0.62s;
}

.public-home-page .public-visual-card:nth-child(4) {
  animation-delay: 0.72s;
}

.public-home-page .public-flow-item:nth-child(1) {
  animation-delay: 0.05s;
}

.public-home-page .public-flow-item:nth-child(2) {
  animation-delay: 0.12s;
}

.public-home-page .public-flow-item:nth-child(3) {
  animation-delay: 0.19s;
}

.public-home-page .public-flow-item:nth-child(4) {
  animation-delay: 0.26s;
}

.public-home-page .public-program-grid span {
  animation: indexFadeUp 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.public-home-page .public-program-grid span:nth-child(1) {
  animation-delay: 0.08s;
}

.public-home-page .public-program-grid span:nth-child(2) {
  animation-delay: 0.14s;
}

.public-home-page .public-program-grid span:nth-child(3) {
  animation-delay: 0.2s;
}

.public-home-page .public-program-grid span:nth-child(4) {
  animation-delay: 0.26s;
}

.public-home-page .primary-action:hover {
  transform: translateY(-1px);
}

@keyframes indexFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes indexVisualIn {
  0% {
    opacity: 0;
    transform: translateX(22px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes indexCardIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes indexPanelBreath {
  0%,
  100% {
    transform: rotate(-1.3deg) translateY(0);
  }

  50% {
    transform: rotate(-0.5deg) translateY(-7px);
  }
}

@keyframes indexGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 52px 52px;
  }
}

.public-section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-flow-band,
.public-campus-band {
  padding: clamp(54px, 8vw, 96px) 0;
}

.public-flow-band {
  background: #0284c7;
}

.public-section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 32px;
}

.public-section-heading h2,
.public-campus-copy h2,
.public-cta-inner h2 {
  margin: 0;
  color: #0F172A;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.public-section-heading p,
.public-campus-copy p {
  margin: 0;
  color: #64748B;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.public-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.public-flow-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 35, 68, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.public-flow-item:hover {
  border-color: #BFDBFE;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.public-flow-item span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0284c7;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.public-flow-item strong {
  color: #0F172A;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.public-flow-item p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.public-campus-band {
  background: #0284c7;
}

.public-campus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.public-campus-image {
  min-height: 430px;
  border-radius: 16px;
  background:
    #0284c7, rgba(6, 182, 212, 0.06)),
    url("ktm-campus-bg.png") center bottom / contain no-repeat,
    #0284c7;
  box-shadow: 0 16px 48px rgba(15, 35, 68, 0.1);
  border: 1px solid #E2E8F0;
}

.public-campus-copy {
  display: grid;
  gap: 16px;
}

.public-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.public-program-grid span {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.public-program-grid span:hover {
  border-color: #BFDBFE;
  background: #EFF6FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.public-cta-band {
  position: relative;
  overflow: hidden;
  background: #0284c7;
  padding: clamp(44px, 7vw, 76px) 0;
}

.public-cta-band::before {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: #0284c7 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.public-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-cta-inner h2 {
  max-width: 600px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
}

.public-detail-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 48px;
  border-radius: 16px;
  background: #0284c7;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 16px 48px rgba(15, 35, 68, 0.2);
}

.public-detail-copy {
  position: sticky;
  top: 128px;
  color: #fff;
}

.public-detail-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
}

.public-detail-copy p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.public-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.public-back-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.student-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.student-summary div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.student-summary div:hover {
  background: rgba(255, 255, 255, 0.1);
}

.student-summary span,
.student-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.student-summary span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.student-summary strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.public-detail-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.student-summary div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.student-summary-wide {
  grid-column: 1 / -1;
}

.student-summary span,
.student-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.student-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-summary strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.public-detail-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.public-detail-empty {
  width: min(1180px, calc(100% - 36px));
  min-height: 360px;
  margin: 24px auto 48px;
  border-radius: 16px;
  background: #0284c7;
  padding: 24px;
}

.public-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.public-alert-modal.is-open {
  display: flex;
}

.public-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.public-alert-box {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(430px, 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #fff;
  padding: 28px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(15, 35, 68, 0.2);
}

.public-alert-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FEF2F2;
  color: #EF4444;
  font-size: 28px;
  font-weight: 900;
}

.public-alert-box h2 {
  margin: 16px 0 8px;
  color: #0F172A;
  font-size: 20px;
  font-weight: 700;
}

.public-alert-box p {
  margin: 0 0 20px;
  color: #64748B;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.public-footer {
  width: 100%;
  margin: 0;
  background: #0F172A;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.public-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.25fr;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-width: 0;
  background: transparent;
  padding: 34px 0 24px;
}

.public-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.public-footer-info,
.public-footer-contact,
.public-footer-meta {
  min-width: 0;
}

.public-footer-brand strong,
.public-footer-brand span,
.public-footer-info strong,
.public-footer-info span,
.public-footer-contact strong,
.public-footer-contact span,
.public-footer-meta span {
  display: block;
  overflow-wrap: anywhere;
}

.public-footer-brand strong,
.public-footer-info strong,
.public-footer-contact strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.public-footer-brand img {
  background: #fff;
}

.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.public-footer-links a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.public-footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 12px;
}

.ktm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.print-warning {
  max-width: 520px;
  border: 1px solid #f4d27a;
  border-radius: 8px;
  background: #fffbe6;
  padding: 10px 12px;
  color: #875a00;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.ktm-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  text-align: center;
}

.ktm-empty h2 {
  margin: 8px 0 8px;
  color: var(--primary-dark);
}

.ktm-empty p {
  max-width: 520px;
  margin: 0 auto 16px;
  font-weight: 700;
}

.ktm-empty-code {
  display: inline-flex;
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 5px 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.design-preview-panel {
  overflow: hidden;
}

.design-preview-panel > .toolbar {
  align-items: flex-start;
  gap: 16px;
}

.design-preview-picker {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  gap: 8px;
}

.design-preview-picker label {
  grid-column: 1 / -1;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.design-preview-picker select {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.design-preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 12px;
}

.design-preview-meta span {
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 5px 9px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.design-preview-panel .ktm-stage {
  margin-top: 16px;
}

.design-preview-panel .ktm-print-area {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.design-preview-panel .ktm-card {
  width: 100%;
  box-shadow: 0 8px 24px rgba(8, 36, 72, 0.12);
}

/* =============================================
   17. FILTER PANEL
   ============================================= */
.filter-panel {
  padding: 14px;
  border-radius: var(--radius-lg);
}

.filter-header-mobile {
  display: none;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(126px, 1fr)) max-content;
  align-items: end;
  gap: 10px;
}

.filter-grid .field {
  gap: 4px;
}

.filter-grid .field label {
  font-size: 11px;
  line-height: 1;
}

.filter-grid input,
.filter-grid select {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  white-space: nowrap;
}

/* =============================================
   18. DASHBOARD HERO
   ============================================= */
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.dashboard-hero h1 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
  animation: dashPulse 2s ease-in-out infinite;
}

@keyframes dashPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* =============================================
   19. OVERVIEW CARDS
   ============================================= */
.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.overview-card.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  color: #fff;
}

.overview-card.primary::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.overview-card span,
.overview-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overview-card span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-card strong {
  color: var(--text);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.overview-card.primary span,
.overview-card.primary strong,
.overview-card.primary small {
  color: #fff;
}

.overview-card.primary small {
  opacity: 0.78;
}

/* =============================================
   20. HEALTH METER
   ============================================= */
.health-panel {
  margin-bottom: 24px;
}

.dashboard-feature-panel {
  position: relative;
  overflow: hidden;
}

.health-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #E2E8F0;
}

.health-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #0284c7, var(--success));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   21. PHOTO MISSING LIST
   ============================================= */
.photo-missing-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-missing-list a {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  transition: all var(--transition);
}

.photo-missing-list a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.photo-missing-list strong {
  color: var(--text);
}

.photo-missing-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   22. CHARTS
   ============================================= */
.dashboard-charts,
.design-grid {
  align-items: start;
}

.line-chart {
  display: grid;
  gap: 12px;
}

.line-svg {
  width: 100%;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.line-grid,
.line-marker {
  stroke: #E2E8F0;
  stroke-width: 1;
}

.line-axis {
  stroke: #94A3B8;
  stroke-width: 1.5;
}

.line-area {
  fill: rgba(37, 99, 235, 0.08);
}

.line-stroke {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.line-dot {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 3;
}

.line-value,
.line-y-label {
  fill: #64748B;
  font-size: 13px;
  font-weight: 700;
}

.line-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.line-labels span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.line-labels strong {
  color: var(--text);
}

/* =============================================
   23. MAJOR BAR CHART
   ============================================= */
.major-chart {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
}

.major-bar-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(120px, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.major-bar-meta {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.major-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bar-color);
}

.major-bar-meta strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
}

.major-bar-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.major-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #F1F5F9;
}

.major-bar-track span {
  display: block;
  width: var(--bar-width);
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.major-bar-row[style*="--bar-width: 0%"] .major-bar-track span {
  min-width: 0;
}

.major-bar-total {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

/* =============================================
   24. MODALS
   ============================================= */
.modal-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-toggle:checked + .modal-layer {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-box,
section.modal-box,
div.modal-box {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88dvh, 780px);
  overflow: auto;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 28px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.35);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-box *,
.modal-box h2,
.modal-box h3,
.modal-box label,
.modal-box .field label,
.modal-box p,
.modal-box .muted,
.modal-box span {
  color: #0f172a;
}

.modal-box h2,
.modal-box h3 {
  color: #0f4c81 !important;
  font-weight: 800 !important;
}

.modal-box label,
.modal-box .field label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.modal-box input, 
.modal-box select, 
.modal-box textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600 !important;
}

.modal-box input::placeholder,
.modal-box textarea::placeholder {
  color: #94a3b8 !important;
}

.modal-box .muted, 
.modal-box p {
  color: #475569 !important;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box-wide {
  width: min(900px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-head h2 {
  margin: 0;
  color: #0f4c81;
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* =============================================
   25. QUICK ADD GRID
   ============================================= */
.quick-add-grid {
  display: grid;
  gap: 10px;
}

.quick-add-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: all var(--transition);
}

.quick-add-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.quick-add-item .nav-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.quick-add-item strong,
.quick-add-item small {
  display: block;
}

.quick-add-item strong {
  color: var(--text);
}

.quick-add-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* =============================================
   26. CONFIRM MODAL
   ============================================= */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.confirm-modal.is-open {
  display: flex;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.confirm-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px 16px;
  width: min(440px, 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  background: #0f172a;
  color: #fff;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #FEE2E2;
  color: var(--danger);
  font-size: 24px;
  font-weight: 900;
}

.confirm-box h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.confirm-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

/* =============================================
   27. KTM STAGE (PRESERVED)
   ============================================= */
.ktm-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.ktm-print-area {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

/* =============================================
   28. KTM CARD STYLES
   ============================================= */
.ktm-card {
  --ktm-navy: var(--ktm-primary, #0a2540);
  --ktm-yellow: var(--ktm-accent, #e8a817);
  --ktm-teal: #0fa4a8;
  --ktm-blue: #1a6fc4;
  position: relative;
  isolation: isolate;
  width: min(100%, 720px);
  aspect-ratio: 85.6 / 54;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.15);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.ktm-card::before {
  display: none;
}

.ktm-header {
  position: relative;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 18px;
  background: var(--ktm-navy);
  color: #fff;
  overflow: hidden;
  align-self: stroke;
}

.ktm-header::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  background: var(--ktm-yellow);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  content: "";
}

.ktm-logo {
  width: clamp(26px, 5%, 40px);
  height: clamp(26px, 5%, 40px);
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}

.ktm-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.ktm-header h2 {
  order: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.ktm-campus {
  order: 2;
  margin: 0;
  max-width: 100%;
  overflow: visible;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(7px, 0.9vw, 10px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.ktm-subtitle {
  display: none;
}

.ktm-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  gap: 5%;
  padding: 4% 6% 0;
}

.ktm-photo-wrap {
  display: grid;
  justify-items: center;
  align-content: start;
}

.ktm-photo {
  display: block;
  width: 70%;
  height: auto;
  aspect-ratio: 279 / 413;
  border: 3px solid var(--ktm-navy);
  border-radius: 8px;
  background: #c0392b;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

.ktm-photo-empty {
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 279 / 413;
  color: #fff;
  font-weight: 900;
  background: #c0392b;
  border: 3px solid var(--ktm-navy);
  border-radius: 8px;
}

.ktm-info {
  min-width: 0;
  padding-top: 1%;
}

.ktm-lockup {
  width: min(130px, 55%);
  margin: 0 0 2%;
}

.ktm-field {
  margin-bottom: 1%;
}

.ktm-field-label {
  display: block;
  color: var(--ktm-navy);
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 0.7;
}

.ktm-field-value {
  display: block;
  color: var(--ktm-navy);
  font-weight: 800;
  line-height: 1.1;
}

.ktm-nim-value {
  color: var(--ktm-navy);
  font-size: clamp(18px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.ktm-name {
  display: block;
  margin: 0;
  max-width: 100%;
  color: var(--ktm-navy);
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.ktm-name-compact {
  font-size: clamp(14px, 2.1vw, 22px);
  line-height: 1.1;
}

.ktm-name-tight {
  font-size: clamp(12px, 1.7vw, 18px);
  line-height: 1.05;
}

.ktm-major-line {
  display: block;
  margin: 2% 0 0;
  color: #e74c3c;
  font-size: clamp(11px, 1.7vw, 18px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.ktm-alamat-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2%;
}

.ktm-alamat-label {
  flex: 0 0 auto;
  color: var(--ktm-navy);
  font-size: clamp(7px, 1vw, 11px);
  font-weight: 700;
}

.ktm-alamat-value {
  display: block;
  color: #444;
  font-size: clamp(7px, 1vw, 11px);
  font-weight: 600;
  line-height: 1.2;
}

.ktm-footer {
  position: absolute;
  right: 5%;
  bottom: 4%;
  left: 5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.ktm-valid-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ktm-valid-item span,
.ktm-valid-item strong {
  text-transform: uppercase;
}

.ktm-valid-item span {
  color: var(--ktm-navy);
  font-size: clamp(6px, 0.8vw, 9px);
  font-weight: 700;
  line-height: 1.15;
}

.ktm-valid-item strong {
  color: var(--ktm-teal);
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1;
}

.ktm-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ktm-qr-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
}

.ktm-qr-label {
  font-size: 7px;
  font-weight: 600;
  color: #999;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ---- Back of Card ---- */
.ktm-card-back {
  background: #0284c7;
}

.ktm-card-back::before {
  display: none;
}

.ktm-card-back .ktm-header {
  justify-content: flex-start;
}

.ktm-card-back .ktm-header .ktm-logo {
  order: 0;
}

.ktm-back-content {
  position: relative;
  height: 100%;
  padding: 0 6% 4%;
}

.ktm-back-logo {
  display: block;
  width: min(140px, 40%);
  margin: 0 0 10px;
  margin-left: auto;
}

.ktm-card-back .ktm-header .ktm-logo {
  order: 2;
}

.ktm-back-content {
  position: relative;
  height: 100%;
  padding: 0 6% 4%;
}

.ktm-back-logo {
  display: block;
  width: min(140px, 45%);
  margin: 0 0 12px;
}

.ktm-back-content h2 {
  display: none;
}

.ktm-back-section {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(46, 49, 146, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.04);
}

.ktm-back-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #1a237e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ktm-back-section-title svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #2e3192;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ktm-back-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.ktm-back-rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.ktm-back-rules li::before {
  content: counter(rule);
  counter-increment: rule;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  background: rgba(46, 49, 146, 0.1);
  color: #1a237e;
  border-radius: 50%;
  font-weight: 800;
  font-size: 9px;
}

.ktm-back-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ktm-back-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border: 1px solid rgba(46, 49, 146, 0.18);
  background: #ffffff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.04);
}

.ktm-back-badge-icon {
  width: 16px;
  height: 16px;
  color: #1a237e;
}

.ktm-back-badge-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ktm-back-badge span {
  color: #1a237e;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.ktm-back-campus {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(46, 49, 146, 0.12);
}

.ktm-back-campus strong {
  display: block;
  color: #1a237e;
  font-size: 10.5px;
  font-weight: 800;
}

.ktm-back-campus span {
  display: block;
  color: #777;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
}

.ktm-back-socials {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.social-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #555;
  font-size: 9px;
  font-weight: 600;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ktm-navy);
  color: #fff;
}

.social-icon svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.social-icon.facebook svg,
.social-icon.tiktok svg,
.social-icon.youtube svg {
  stroke-width: 0;
}

.social-icon.instagram svg,
.social-icon.threads svg,
.social-icon.globe svg {
  fill: none;
}

.social-icon .social-cut {
  fill: #fff;
  stroke: #fff;
}

.ktm-status {
  display: none;
}

/* =============================================
   29. PREFERS REDUCED MOTION (PRESERVED)
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-logo,
  .skeleton-brand-lines span,
  .skeleton-nav-lines span,
  .skeleton-menu-lines span,
  .skeleton-public-panel span,
  .skeleton-admin-topbar,
  .skeleton-admin-grid span,
  .skeleton-admin-table span,
  .skeleton-form,
  .skeleton-stat-row,
  .skeleton-public-strip span,
  .public-home-page .public-hero::before,
  .public-home-page .public-hero-visual,
  .public-home-page .public-hero-visual::before,
  .public-home-page .public-visual-logo,
  .public-home-page .public-visual-card,
  .public-home-page .public-hero-content > .public-kicker,
  .public-home-page .public-hero-content h1,
  .public-home-page .public-hero-content p,
  .public-home-page .public-search-card,
  .public-home-page .public-hero-stats,
  .public-home-page .public-section-heading,
  .public-home-page .public-flow-item,
  .public-home-page .public-campus-image,
  .public-home-page .public-campus-copy,
  .public-home-page .public-cta-inner,
  .public-home-page .public-program-grid span {
    animation: none !important;
  }
}

/* =============================================
   30. RESPONSIVE: TABLET (980px)
   ============================================= */
@media (max-width: 980px) {
  .js .admin-skeleton,
  .skeleton-public-hero {
    grid-template-columns: 1fr;
  }

  .skeleton-admin-sidebar,
  .skeleton-public-panel {
    display: none;
  }

  .skeleton-admin-main {
    padding: 12px;
  }

  .skeleton-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .main-shell,
  .container {
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(260px, calc(100vw - 56px));
    height: 100dvh;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
  }

  .sidebar-toggle:checked ~ .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(8, 31, 58, 0.48);
  }

  .sidebar-toggle:checked ~ .sidebar-backdrop {
    display: block;
  }

  .grid.cols-2,
  .grid.cols-3,
  .dashboard-hero,
  .public-home-inner,
  .public-campus-grid,
  .public-detail-shell,
  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-greeting {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-hero-visual {
    min-height: auto;
  }

  .public-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-actions {
    flex-wrap: wrap;
  }

  .filter-actions .btn {
    flex: 1 1 auto;
  }

  .public-detail-copy {
    position: static;
  }

  .public-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .public-footer-contact {
    grid-column: 1 / -1;
  }

  .design-preview-panel .ktm-print-area {
    grid-template-columns: 1fr;
  }

  .design-preview-panel .ktm-card {
    width: min(100%, 650px);
  }

  .photo-missing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Admin Mobile Responsive Enhancements */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .table-wrap table {
    min-width: 680px;
  }

  .page-title.toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-title.toolbar .btn,
  .page-title.toolbar .actions {
    width: 100%;
    justify-content: stretch;
  }

  .page-title.toolbar .btn {
    text-align: center;
  }

  /* Default grid layout untuk tablet / laptop 980px kebawah */
  .filter-panel form.filter-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 10px;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .filter-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .bulk-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .bulk-bar select,
  .bulk-bar button {
    flex: 1 1 100%;
  }
}

/* =============================================
   31. RESPONSIVE: MOBILE (640px)
   ============================================= */
@media (max-width: 640px) {
  .filter-panel form.filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .filter-panel form.filter-grid .field:first-child {
    grid-column: 1 / -1;
  }
  .filter-actions {
    grid-column: 1 / -1;
  }
  .skeleton-public-strip,
  .skeleton-public-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .skeleton-public-nav {
    align-items: flex-start;
    flex-direction: column;
    height: 128px;
  }

  .skeleton-nav-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .skeleton-nav-lines span {
    width: 100%;
  }

  .skeleton-public-hero {
    min-height: calc(100dvh - 162px);
    padding: 28px 16px;
  }

  .skeleton-line-title {
    height: 38px;
  }

  .skeleton-form,
  .skeleton-stat-row {
    height: 88px;
  }

  .skeleton-admin-grid {
    grid-template-columns: 1fr;
  }

  .container,
  .public-detail-shell,
  .public-detail-empty,
  .public-section-inner,
  .public-footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .public-container,
  .public-footer {
    width: 100%;
  }

  .public-site-header {
    position: static;
    width: 100%;
    margin-top: 0;
  }

  .public-top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 7px 16px;
  }

  .public-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 10px 16px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #E2E8F0;
  }

  .public-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .public-brand span strong {
    font-size: 13px;
  }

  .public-brand span small {
    font-size: 10px;
    color: #64748b;
  }

  .public-nav-links a:hover {
    background: rgba(0, 0, 0, 0.08);
  }

  .container {
    margin-top: 16px;
  }

  .topbar {
    margin: 12px 12px 0;
    padding: 11px 12px;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-preview-meta {
    justify-content: flex-start;
  }

  .design-preview-picker {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .design-preview-picker .btn {
    width: 100%;
  }

  .actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .actions .btn,
  .actions label.btn {
    flex: 1 1 auto;
  }

  .field-status {
    max-width: 100%;
  }

  .dashboard-overview,
  .dash-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .dash-hero-actions .btn,
  .dash-hero-actions label.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .dash-pending-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }

  .dash-pending-banner p {
    margin: 6px 0 0 0;
  }

  .dash-pending-banner .btn-approve {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .dash-chart-grid,
  .dashboard-charts {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .line-chart,
  .major-chart {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .line-svg {
    min-width: 500px;
    height: auto;
  }

  .panel,
  .public-hero,
  .public-detail-shell {
    padding: 16px;
  }

  .public-detail-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 12px auto 24px;
    border-radius: 16px;
  }

  .public-detail-copy {
    position: static;
    color: #fff;
  }

  .public-detail-copy h1 {
    font-size: clamp(22px, 7vw, 30px);
    margin: 10px 0 8px;
    line-height: 1.08;
  }

  .public-detail-copy p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
  }

  .public-back-link {
    margin-bottom: 12px;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  .public-kicker {
    font-size: 10px;
    padding-left: 8px;
  }

  .student-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .student-summary div {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
  }

  .student-summary span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    display: block;
  }

  .student-summary strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
  }

  .public-detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 16px;
    padding: 12px 0;
    background: #0284c7;
  }

  .public-detail-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .public-detail-actions .btn:active {
    transform: scale(0.98);
  }

  .public-hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 34px;
    background:
      #0284c7 0%, rgba(5, 47, 82, 0.9) 52%, rgba(5, 47, 82, 0.62) 100%),
      url("ktm-campus-bg.png") center bottom / min(410px, 96%) auto no-repeat,
      #062542;
  }

  .public-home-inner,
  .public-hero-content,
  .public-search-card,
  .public-section-heading,
  .public-campus-copy {
    max-width: 100%;
    min-width: 0;
  }

  .public-home-inner {
    width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .public-hero-content {
    width: 100%;
  }

  .public-hero h1,
  .public-detail-copy h1 {
    font-size: clamp(28px, 8.6vw, 38px);
    line-height: 1.02;
  }

  .public-hero p,
  .public-detail-copy p {
    font-size: 14px;
  }

  .public-search-card {
    grid-template-columns: 1fr;
  }

  .public-hero-stats,
  .public-flow-grid,
  .public-program-grid {
    grid-template-columns: 1fr;
  }

  .public-section-heading h2,
  .public-campus-copy h2,
  .public-cta-inner h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .public-hero-visual {
    display: none;
  }

  .public-campus-image {
    min-height: 260px;
  }

  .public-search-card .btn,
  .ktm-actions .btn {
    width: 100%;
  }

  .photo-upload-preview {
    grid-template-columns: 1fr;
  }

  .photo-crop-frame {
    width: min(150px, 100%);
  }

  .public-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .public-footer-contact {
    grid-column: auto;
  }

  .public-footer-links {
    display: grid;
    gap: 4px;
  }

  .public-footer-info span,
  .public-footer-contact span,
  .public-footer-meta span {
    max-width: 30ch;
  }

  .table-wrap {
    margin-inline: -4px;
  }

  table {
    min-width: 700px;
  }

  .photo-missing-list {
    grid-template-columns: 1fr;
  }

  .line-svg {
    min-height: 190px;
  }

  .major-bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .major-bar-total {
    text-align: left;
  }

  .modal-layer {
    align-items: end;
    padding: 10px;
  }

  .modal-box {
    width: 100%;
  }

  .confirm-modal {
    align-items: end;
    padding: 10px;
  }

  .confirm-box {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ktm-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .ktm-card-back {
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 0;
  }

  .ktm-card-back .ktm-back-content {
    height: auto !important;
    min-height: 0;
  }

  .public-hero,
  .public-detail-shell,
  .ktm-stage,
  .ktm-print-area {
    min-width: 0;
    overflow: hidden;
  }

  .ktm-header {
    padding: 4% 5% 3%;
    gap: 6px;
  }

  .ktm-header h2 {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: 1px;
  }

  .ktm-campus {
    font-size: clamp(5px, 1.6vw, 8px);
  }

  .ktm-body {
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 3%;
    padding: 3% 5% 0;
  }

  .ktm-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 279 / 413;
    border-width: 2px;
  }

  .ktm-photo-empty {
    width: 100%;
    height: auto;
    aspect-ratio: 279 / 413;
  }

  .ktm-lockup {
    width: min(90px, 45%);
    margin-bottom: 2%;
  }

  .ktm-name {
    font-size: clamp(10px, 4vw, 18px);
  }

  .ktm-name-compact {
    font-size: clamp(9px, 3.5vw, 15px);
  }

  .ktm-name-tight {
    font-size: clamp(8px, 3vw, 13px);
  }

  .ktm-nim-value {
    font-size: clamp(11px, 4vw, 18px);
  }

  .ktm-field-label {
    font-size: clamp(5px, 1.5vw, 7px);
  }

  .ktm-major-line {
    font-size: clamp(7px, 2.2vw, 11px);
  }

  .ktm-alamat-label,
  .ktm-alamat-value {
    font-size: clamp(4px, 1.2vw, 6px);
  }

  .ktm-footer {
    right: 10px;
    left: 10px;
    bottom: 6px;
    gap: 4%;
  }

  .ktm-valid-item {
    gap: 3px;
  }

  .ktm-valid-item span {
    font-size: clamp(4px, 1.5vw, 6px);
  }

  .ktm-valid-item strong {
    font-size: clamp(8px, 3vw, 14px);
  }

  .ktm-qr-img {
    width: 36px;
    height: 36px;
  }

  .ktm-back-content {
    padding: 0 6% 4%;
  }

  .ktm-back-logo {
    width: min(110px, 40%);
    margin-bottom: 8px;
  }

  .ktm-back-section {
    margin-bottom: 6px;
  }

  .ktm-back-section-title {
    font-size: 10px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .ktm-back-section-title svg {
    width: 11px;
    height: 11px;
  }

  .ktm-back-rules {
    gap: 4px;
  }

  .ktm-back-rules li {
    font-size: 9px;
    gap: 3px;
    line-height: 1.3;
  }

  .ktm-back-rules li::before {
    font-size: 9px;
  }

  .ktm-back-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .ktm-back-badge {
    padding: 4px 2px;
    gap: 2px;
    border-width: 1px;
    border-radius: 6px;
  }

  .ktm-back-badge-icon {
    width: 14px;
    height: 14px;
  }

  .ktm-back-badge span {
    font-size: 6px;
    line-height: 1.1;
  }

  .ktm-back-campus {
    padding-top: 6px;
    margin-top: 4px !important;
  }

  .ktm-back-campus strong {
    font-size: 9px;
  }

  .ktm-back-campus span {
    font-size: 8px;
  }

  .ktm-back-socials {
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
  }

  .social-row {
    gap: 3px;
    font-size: 7px;
  }

  .social-icons {
    gap: 2px;
  }

  .social-icon {
    width: 10px;
    height: 10px;
  }

  .social-icon svg {
    width: 6px;
    height: 6px;
  }

  .design-preview-panel .ktm-print-area {
    grid-template-columns: 1fr;
  }

  .design-preview-panel .ktm-card {
    width: 100%;
  }

  html.dark .student-summary div {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  html.dark .student-summary span {
    color: rgba(255, 255, 255, 0.5);
  }

  html.dark .student-summary strong {
    color: rgba(255, 255, 255, 0.9);
  }
}

  .ktm-back-section {
    margin-bottom: 5px;
  }

  .ktm-back-section-title {
    font-size: 8px;
    gap: 3px;
    margin-bottom: 3px;
  }

  .ktm-back-section-title svg {
    width: 10px;
    height: 10px;
  }

  .ktm-back-rules {
    gap: 2px;
  }

  .ktm-back-rules li {
    font-size: 7px;
    gap: 3px;
    line-height: 1.2;
  }

  .ktm-back-rules li::before {
    font-size: 7px;
  }

  .ktm-back-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .ktm-back-badge {
    padding: 4px 2px;
    gap: 2px;
    border-width: 1px;
  }

  .ktm-back-badge-icon {
    width: 16px;
    height: 16px;
  }

  .ktm-back-badge span {
    font-size: 5.5px;
    line-height: 1.1;
  }

  .ktm-back-campus {
    padding-top: 4px;
  }

  .ktm-back-campus strong {
    font-size: 7px;
  }

  .ktm-back-campus span {
    font-size: 6px;
  }

  .ktm-back-socials {
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
  }

  .social-row {
    gap: 2px;
    font-size: 6px;
  }

  .social-icon {
    width: 9px;
    height: 9px;
  }

  .social-icon svg {
    width: 5px;
    height: 5px;
  }
}

/* =============================================
   32. RESPONSIVE: SMALL (420px)
   ============================================= */
@media (max-width: 420px) {
  .brand-copy small,
  .nav-copy small {
    display: none;
  }

  .sidebar-nav a {
    min-height: 40px;
  }

  .public-brand span {
    font-size: 14px;
  }

  .ktm-card {
    width: 100% !important;
  }

  .ktm-photo {
    width: 100%;
    height: auto;
  }

  .ktm-photo-empty {
    width: 100%;
    height: auto;
  }

  .ktm-lockup {
    width: min(80px, 45%);
  }

  .ktm-name {
    font-size: clamp(10px, 3.8vw, 16px);
  }

  .ktm-name-compact {
    font-size: clamp(9px, 3.2vw, 14px);
  }

  .ktm-name-tight {
    font-size: clamp(8px, 2.8vw, 12px);
  }

  .ktm-nim-value {
    font-size: clamp(10px, 3.8vw, 16px);
  }

  .ktm-major-line {
    font-size: clamp(6px, 2vw, 10px);
  }

  .ktm-back-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }

  .ktm-back-badge {
    padding: 3px 2px;
  }

  .ktm-back-badge-icon {
    width: 12px;
    height: 12px;
  }

  .ktm-back-badge span {
    font-size: 5.5px;
  }
}

/* =============================================
   20. PRINT MEDIA QUERY
   ============================================= */
@media print {
  * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Full Page 1 Kertas A4 Landscape dengan Elemen & Tulisan Ekstra Besar Tanpa Menimpa */
  .handcrafted-card-face {
    display: flex !important;
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Sisi belakang mulai di halaman baru; tanpa break setelah face terakhir (anti halaman kosong) */
  .handcrafted-card-face + .handcrafted-card-face {
    page-break-before: always !important;
    break-before: page !important;
  }

  .handcrafted-card-face h2 {
    font-size: 38px !important;
    line-height: 1.15 !important;
  }
  .handcrafted-card-face img[alt="POLITEKNIK LP3I PEKANBARU"] {
    height: 64px !important;
  }
  .handcrafted-card-face .card-student-photo {
    width: 155px !important;
    height: 200px !important;
  }
  .handcrafted-card-face .card-qr-box,
  .handcrafted-card-face div[style*="width:48px;"],
  .handcrafted-card-face div[style*="width:52px;"] {
    width: 76px !important;
    height: 76px !important;
  }

  .tab-hidden-view {
    display: flex !important;
  }
}

/* =============================================
   33b. PRINT — KARTU (.ktm-card) 1 KARTU = 1 HALAMAN A4 LANDSCAPE
   ============================================= */
@media print {

  .ktm-print-area {
    display: block !important;
    width: 297mm !important;
    margin: 0 !important;
  }

  .ktm-card {
    width: 297mm !important;
    height: 210mm !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Pisahkan setiap kartu cetak masal ke halaman sendiri; tanpa halaman kosong di akhir */
  .ktm-print-area:not(:last-child) {
    page-break-after: always !important;
    break-after: page !important;
  }

  .ktm-card::before {
    background: #fff !important;
  }

  .ktm-card::after {
    display: none !important;
  }

  .ktm-globe-watermark {
    opacity: 0.08 !important;
  }

  .ktm-header {
    padding: 3px 8px !important;
  }
  .ktm-header h2 {
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.1 !important;
  }
  .ktm-campus {
    font-size: 6px !important;
    line-height: 1.1 !important;
  }
  .ktm-logo {
    width: 18px !important;
    height: 18px !important;
    padding: 1px !important;
  }
  .ktm-body {
    padding: 4px 8px !important;
    gap: 8px !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }
  .ktm-photo, .ktm-photo-empty {
    width: 50px !important;
    height: 65px !important;
    border-width: 1.5px !important;
  }
  .ktm-name {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }
  .ktm-nim-label {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
  .ktm-prodi {
    font-size: 8px !important;
    margin-bottom: 4px !important;
  }
  .ktm-valid-range {
    gap: 8px !important;
  }
  .ktm-valid-item span {
    font-size: 5px !important;
  }
  .ktm-valid-item strong {
    font-size: 7px !important;
  }
  .ktm-footer {
    padding: 3px 8px !important;
  }
  .ktm-alamat-line {
    font-size: 5.5px !important;
    line-height: 1.1 !important;
  }
  .ktm-qr {
    width: 28px !important;
    height: 28px !important;
  }

  .ktm-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .ktm-header h2 {
    font-size: 13px !important;
    letter-spacing: 3px !important;
  }

  .ktm-campus {
    font-size: 10px !important;
  }

  .ktm-body {
    padding: 18px 28px 0 !important;
    gap: 20px !important;
    grid-template-columns: 155px minmax(0, 1fr) !important;
  }

  .ktm-photo {
    width: 155px !important;
    height: 206px !important;
    border-width: 4px !important;
    border-color: var(--ktm-navy) !important;
    border-radius: 10px !important;
    background: #c0392b !important;
  }

  .ktm-photo-empty {
    width: 155px !important;
    height: 206px !important;
    background: #c0392b !important;
  }

  .ktm-lockup {
    width: 160px !important;
    margin-bottom: 10px !important;
  }

  .ktm-field-label {
    font-size: 9px !important;
  }

  .ktm-nim-value {
    font-size: 32px !important;
  }

  .ktm-name {
    font-size: 36px !important;
    white-space: nowrap !important;
  }

  .ktm-name-compact {
    font-size: 30px !important;
  }

  .ktm-name-tight {
    font-size: 24px !important;
  }

  .ktm-major-line {
    font-size: 15px !important;
  }

  .ktm-alamat-value {
    font-size: 12px !important;
  }

  .ktm-footer {
    right: 28px !important;
    bottom: 16px !important;
    left: 28px !important;
  }

  .ktm-valid-box {
    padding: 8px 14px !important;
  }

  .ktm-valid-date {
    font-size: 14px !important;
  }

  .ktm-qr-img {
    width: 60px !important;
    height: 60px !important;
  }

  .ktm-back-content {
    padding: 20px 28px !important;
  }

  .ktm-back-logo {
    width: 140px !important;
  }

  .ktm-verification {
    display: none !important;
  }
}

/* =============================================
   34. TOAST NOTIFICATIONS
   ============================================= */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 4s forwards;
  pointer-events: auto;
}

.toast.success {
  background: #065F46;
  color: #fff;
}

.toast.error {
  background: #991B1B;
  color: #fff;
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* =============================================
   35. SUBMIT & COPY BUTTONS
   ============================================= */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.copy-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background var(--transition);
}

.copy-btn:hover {
  background: #F1F5F9;
}

/* =============================================
   36. PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 0;
}

.pagination-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* =============================================
   37. BULK ACTION BAR
   ============================================= */
.bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
}

.bulk-bar select {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}

/* =============================================
   38. DARK MODE TOGGLE
   ============================================= */
.dark-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
}

.dark-toggle:hover {
  background: #F1F5F9;
}

html.dark .dark-toggle {
  border-color: #475569;
}

/* =============================================
   39. DARK MODE
   ============================================= */
html.dark {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-muted: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --primary-dark: #60A5FA;
  --surface: #1E293B;
  --surface-soft: #1E293B;
  --line: #334155;
  --primary-soft: #1E3A5F;
  --shadow-sm: none;
  --shadow-md: none;
  color-scheme: dark;
}

html.dark body {
  background: var(--bg);
  color: var(--text);
}

html.dark .sidebar {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .panel,
html.dark .confirm-box {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .modal-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

html.dark .topbar {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border);
}

html.dark input,
html.dark select,
html.dark textarea {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark table {
  border-color: var(--border);
}

html.dark th {
  background: var(--bg-muted);
  color: var(--text);
}

html.dark td {
  border-color: var(--border);
}

html.dark .alert,
html.dark .badge {
  border-color: var(--border);
}

html.dark .btn.secondary {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .sidebar-nav a,
html.dark .brand,
html.dark .admin-mini,
html.dark .logout-link {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

html.dark .sidebar-nav a:hover,
html.dark .sidebar-nav a.active {
  background: var(--primary-soft);
}

html.dark .table-wrap {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark td {
  color: var(--text);
}

html.dark tr:hover td {
  background: var(--bg-muted);
}

html.dark .pagination a,
html.dark .pagination span {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .copy-btn {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .student-summary {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .student-summary span {
  color: var(--text-muted);
}

html.dark .student-summary strong {
  color: var(--text);
}

html.dark .public-flow-band,
html.dark .public-campus-band {
  background: var(--bg-card);
}

html.dark .public-program-grid span {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .public-campus-card {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .public-search-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: none;
}

html.dark .public-search-card label {
  color: var(--text);
}

html.dark .public-search-card input {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .public-alert-box {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

html.dark .public-alert-box p {
  color: var(--text-muted);
}

html.dark .public-detail-copy h1,
html.dark .public-detail-copy p {
  color: var(--text);
}

html.dark .public-kicker {
  color: var(--text-muted);
}

html.dark .public-back-link {
  color: var(--text-muted);
}

html.dark .public-hero-stats div {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .public-hero-stats strong,
html.dark .public-hero-stats span {
  color: var(--text);
}

html.dark .public-footer {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

html.dark .public-footer-brand img {
  background: transparent;
}

html.dark .public-footer a {
  color: var(--text);
}

html.dark .skeleton-admin-sidebar,
html.dark .skeleton-admin-table {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .toolbar h1,
html.dark .toolbar h2,
html.dark .page-title h1,
html.dark .page-title h2 {
  color: var(--text);
}

html.dark .toolbar p,
html.dark .page-title p {
  color: var(--text-muted);
}

html.dark .filter-grid input,
html.dark .filter-grid select {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .filter-grid .field label {
  color: var(--text-muted);
}

html.dark .badge.warning,
html.dark .badge.Menunggu {
  background: #422006;
  color: #FBBF24;
}

html.dark .badge.Tidak,
html.dark .badge.Cuti,
html.dark .badge.Alumni {
  background: #1E1E1E;
  color: #94A3B8;
}

html.dark .ktm-empty {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

html.dark .confirm-box h3 {
  color: var(--text);
}

html.dark .confirm-box p {
  color: var(--text-muted);
}

html.dark .modal-box,
html.dark .modal-box h2,
html.dark .modal-box h3,
html.dark .modal-box label,
html.dark .modal-box p,
html.dark .modal-box span,
html.dark .modal-box div {
  color: #0f172a !important;
}

html.dark .modal-box h2,
html.dark .modal-box h3 {
  color: #0f4c81 !important;
}

html.dark .modal-box p,
html.dark .modal-box .muted {
  color: #334155 !important;
}

html.dark .modal-box input,
html.dark .modal-box select,
html.dark .modal-box textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.dark .health-meter {
  background: var(--bg-muted);
}

html.dark .photo-missing-list a {
  background: var(--bg-muted);
  border-color: var(--border);
}

html.dark .photo-missing-list strong {
  color: var(--text);
}

html.dark .dashboard-hero,
html.dark .overview-card,
html.dark .major-chart,
html.dark .line-svg,
html.dark .quick-add-item {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

html.dark .dashboard-hero h1,
html.dark .overview-card strong,
html.dark .major-bar-meta strong,
html.dark .major-bar-total,
html.dark .line-labels strong {
  color: var(--text);
}

html.dark .dashboard-hero p,
html.dark .overview-card span,
html.dark .overview-card small,
html.dark .major-bar-meta small,
html.dark .line-labels span,
html.dark .photo-missing-list span {
  color: var(--text-muted);
}

html.dark .overview-card.primary {
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  border-color: transparent;
}

html.dark .quick-add-item:hover,
html.dark .photo-missing-list a:hover,
html.dark .public-flow-item:hover,
html.dark .public-program-grid span:hover {
  background: var(--bg-muted);
  border-color: #475569;
}

html.dark .design-preview-panel {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark label {
  color: var(--text);
}

html.dark .field label {
  color: var(--text);
}

html.dark a {
  color: var(--primary-dark);
}

html.dark .btn.danger {
  background: #991B1B;
}

html.dark .print-warning {
  color: var(--text-muted);
}

html.dark .panel {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: none;
}

html.dark .main-content {
  background: var(--bg);
}

html.dark .sidebar-nav a:hover {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

html.dark .sidebar-nav a.active {
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  border-color: transparent;
}

html.dark .logout-link:hover,
html.dark .sidebar-login:hover {
  background: #3b1111;
  border-color: #7f1d1d;
  color: #FCA5A5;
}

html.dark .logout-link,
html.dark .sidebar-login {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark th {
  background: var(--bg-muted);
  color: var(--text-muted);
}

html.dark td {
  background: transparent;
}

html.dark tr:hover td {
  background: var(--bg-muted);
}

html.dark .alert.success {
  background: #064E3B;
  border-color: #065F46;
  color: #6EE7B7;
}

html.dark .alert.error,
html.dark .alert.danger {
  background: #450A0A;
  border-color: #7F1D1D;
  color: #FCA5A5;
}

html.dark .badge.success,
html.dark .badge.Aktif {
  background: #064E3B;
  color: #6EE7B7;
}

html.dark .badge.danger,
html.dark .badge.Tidak {
  background: #450A0A;
  color: #FCA5A5;
}

html.dark .admin-mini {
  background: var(--bg-muted);
  border-color: var(--border);
}

html.dark .admin-mini span {
  color: var(--text);
}

html.dark .brand {
  color: var(--text);
}

html.dark .brand span {
  color: var(--text-muted);
}

html.dark .public-hero {
  background: var(--bg-card);
}

html.dark .public-hero::after {
  opacity: 0.1;
}

html.dark .public-hero h1,
html.dark .public-hero h1 span {
  color: var(--text);
}

html.dark .public-hero p {
  color: var(--text-muted);
}

html.dark .public-detail-shell {
  background: var(--bg);
}

html.dark .public-footer {
  background: var(--bg-card);
  color: var(--text-muted);
}

html.dark .public-footer-links a {
  color: var(--text-muted);
}

html.dark strong {
  color: var(--text);
}

html.dark h1,
html.dark h2,
html.dark h3 {
  color: var(--text);
}

html.dark .field input,
html.dark .field select,
html.dark .field textarea {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

html.dark .topbar .breadcrumb {
  color: var(--text-muted);
}

html.dark .topbar .breadcrumb a {
  color: var(--text);
}

html.dark .import-drop {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
}

html.dark .audit-row {
  border-color: var(--border);
}

html.dark .audit-row:hover {
  background: var(--bg-muted);
}

html.dark .change-password-form {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .profile-card {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .profile-card h2,
html.dark .profile-card p {
  color: var(--text);
}

/* Dark mode: new dashboard classes */
html.dark .dash-stat-card {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .dash-stat-number,
html.dark .dash-stat-label,
html.dark .dash-stat-desc {
  color: var(--text);
}

html.dark .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: var(--border);
}

html.dark .dash-progress-bar-track {
  background: var(--bg-muted);
}

html.dark .dash-status-badge {
  border-color: var(--border);
}

html.dark .dash-decoration-blob {
  opacity: 0.08;
}

html.dark .dash-hero-time {
  color: var(--text-muted);
}

html.dark .quick-add-item {
  background: var(--bg-card);
  border-color: var(--border);
}

html.dark .quick-add-item:hover {
  background: var(--bg-muted);
  border-color: var(--border);
}

/* =============================================
   40. RESPONSIVE: TINY (359px)
   ============================================= */
@media (max-width: 359px) {
  .public-hero-content h1 {
    font-size: 1.4rem;
  }

  .public-search-card {
    flex-direction: column;
  }

  .public-search-card .field {
    min-width: 0;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    font-size: 12px;
  }

  .table-wrap .actions {
    flex-direction: column;
    gap: 4px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .student-summary {
    grid-template-columns: 1fr;
  }

  .ktm-stage {
    transform: scale(0.7);
    transform-origin: top left;
  }
}

/* =============================================
   41. EMPTY STATE
   ============================================= */
td.empty,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-style: italic;
}

td.empty::before,
.empty-state::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: #F1F5F9;
  border-radius: 50%;
  opacity: 0.7;
}

/* =============================================
   42. @keyframes fadeInUp
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   43. NEW DASHBOARD CLASSES
   ============================================= */

/* --- Dashboard Greeting --- */
.dash-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dash-hero-greeting {
  flex: 1;
  min-width: 0;
}

.dash-hero-greeting h1 {
  margin: 4px 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.dash-hero-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Dashboard Search --- */
.dash-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 260px;
}

.dash-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dash-search input {
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 14px;
}

.dash-search input:focus {
  box-shadow: none;
}

/* --- Notification Button --- */
.dash-notif-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.dash-notif-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.dash-notif-btn::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

/* --- Quick Action --- */
.dash-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.dash-quick-action:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Stat Grid --- */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dash-stat-card .dash-stat-icon {
  flex-shrink: 0;
}

.dash-stat-card > div:not(.dash-stat-icon):not(.dash-stat-trend) {
  flex: 1;
  min-width: 0;
}

.dash-stat-card .dash-stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dash-stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, var(--secondary));
  color: #fff;
  font-size: 20px;
}

.dash-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dash-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.dash-stat-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.dash-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dash-stat-trend.up {
  background: #D1FAE5;
  color: #065F46;
}

.dash-stat-trend.down {
  background: #FEE2E2;
  color: #991B1B;
}

/* --- Section Headers --- */
.dash-section {
  margin-bottom: 28px;
}

.dash-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dash-section-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.dash-section-header .muted {
  margin: 2px 0 0;
  font-size: 13px;
}

/* --- Chart Card --- */
.dash-chart-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* --- Modern Progress Bar --- */
.dash-progress-modern {
  width: 100%;
}

.dash-progress-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #F1F5F9;
  overflow: hidden;
}

.dash-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #0284c7, var(--accent));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Status Badge --- */
.dash-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dash-status-badge.active {
  background: #D1FAE5;
  color: #065F46;
}

.dash-status-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}

.dash-status-badge.inactive {
  background: #F1F5F9;
  color: #64748B;
}

/* --- Glass Card --- */
.glass-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.glass-card .photo-missing-list {
  margin-top: 16px;
}

/* --- Decoration Blob --- */
.dash-decoration-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}

.dash-decoration-blob.primary {
  background: var(--primary);
}

.dash-decoration-blob.accent {
  background: var(--accent);
}

.dash-decoration-blob.success {
  background: var(--success);
}

/* --- Icon Lucide (size utilities) --- */
.icon-lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-lucide svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}
