/* ==========================================================================
   ROADMAP KARIR DOSEN - EXECUTIVE HIGH-PERFORMANCE STYLESHEET (CLEAN & TIDY)
   Kukuh Rokhman Hidayat, M.Pd. | UIN Siber Syekh Nurjati Cirebon
   Architecture: Zero-Reflow GPU Composited Animations (Transform & Opacity Only)
   ========================================================================== */

/* Design Tokens */
:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Canvas & Surfaces */
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-main: #f8fafc;
  --border-soft: #e2e8f0;
  --accent-primary: #3730a3;
  
  /* Text */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;
  
  /* Brand Palette */
  --primary: #3730a3;        /* Deep Academic Indigo */
  --primary-hover: #312e81;
  --primary-soft: #e0e7ff;
  --primary-text: #3730a3;
  
  --emerald: #059669;        /* UIN Emerald Green */
  --emerald-hover: #047857;
  --emerald-soft: #d1fae5;
  --emerald-text: #065f46;
  
  --cyan: #0284c7;           /* Focus Cyan */
  --cyan-soft: #e0f2fe;
  --cyan-text: #0369a1;
  
  --amber: #d97706;          /* Warning / Fast-track Amber */
  --amber-soft: #fef3c7;
  --amber-text: #92400e;
  
  --purple: #7c3aed;         /* Summit Purple */
  --purple-soft: #ede9fe;
  --purple-text: #5b21b6;
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-active: #3730a3;
  
  /* Modern Scrollbar Design Tokens */
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
  --scrollbar-track: transparent;
  
  /* Layered Pre-rasterized Shadows (Zero Reflow via Opacity) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  /* Easing curves */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Theme Design Tokens (Brightened, High-Contrast Modern Slate Palette) */
[data-theme="dark"] {
  color-scheme: dark;
  /* Canvas & Surfaces */
  --bg-page: #0f172a;          /* Refined modern slate canvas (Slate-900), comfortable & brightened */
  --bg-card: #1e293b;          /* Brightened card surface (Slate-800), clearly elevated from page */
  --bg-card-subtle: #27354f;   /* Elevated slate container (Slate-750) */
  --bg-main: #182235;
  --border-soft: #334155;
  --accent-primary: #818cf8;
  
  /* Text */
  --text-main: #ffffff;        /* Crisp white for headings and primary labels */
  --text-body: #e2e8f0;        /* Slate-200, highly legible and comfortable */
  --text-muted: #cbd5e1;       /* Slate-300, clear secondary text */
  --text-subtle: #94a3b8;      /* Slate-400, clear subtle notes */
  --text-inverse: #0f172a;
  
  /* Brand Palette */
  --primary: #818cf8;          /* Bright Academic Indigo */
  --primary-hover: #6366f1;
  --primary-soft: rgba(129, 140, 248, 0.2);
  --primary-text: #c7d2fe;
  
  --emerald: #34d399;          /* UIN Emerald Green */
  --emerald-hover: #10b981;
  --emerald-soft: rgba(52, 211, 153, 0.2);
  --emerald-text: #a7f3d0;
  
  --cyan: #38bdf8;             /* Focus Cyan */
  --cyan-soft: rgba(56, 189, 248, 0.2);
  --cyan-text: #bae6fd;
  
  --amber: #fbbf24;            /* Warning / Fast-track Amber */
  --amber-soft: rgba(251, 191, 36, 0.2);
  --amber-text: #fef3c7;
  
  --purple: #c084fc;           /* Summit Purple */
  --purple-soft: rgba(192, 132, 252, 0.2);
  --purple-text: #f3e8ff;
  
  /* Borders */
  --border-light: #334155;     /* Slate-700, crisp clear card boundaries */
  --border-subtle: #475569;    /* Slate-600 */
  --border-active: #818cf8;
  
  /* Modern Scrollbar Dark Tokens */
  --scrollbar-thumb: rgba(148, 163, 184, 0.35);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.6);
  --scrollbar-track: transparent;
  
  /* Layered Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.35), 0 1px 2px -1px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 10px 24px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   KEPATUHAN VISIBILITAS MUTLAK (ANTI TUMPANG-TINDIH HALAMAN & KARTU)
   ========================================================================== */
[hidden],
#pageAuthPortal[hidden],
#pageDashboard[hidden],
#viewPortalLogin[hidden],
#viewPortalRegister[hidden],
.auth-view-card[hidden],
.tab-pane[hidden] {
  display: none !important;
}

/* Base Reset */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-overflow-scrolling: touch;
}

/* Scroll-Lock saat Pop-Up / Modal Terbuka */
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BILAH GULIR ELEGAN & MODERN (MINIMALIS, SLEEK, BEBAS TAMPILAN KAKU)
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: background-color 160ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 1.5rem 1rem 4rem;
  overflow-x: clip;
  transition: background-color 200ms ease, color 200ms ease;
}

.profile-card,
.content-card,
.pathway-control-card,
.stepper-node,
.pilar-card,
.category-block,
.check-item,
.modal-card,
.auth-gate-card,
.setting-switch-card,
.bkd-status-bar-box,
.text-input,
.filter-select {
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.dashboard-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

/* ==========================================================================
   1. HEADER IDENTITAS DOSEN (Profile Card)
   ========================================================================== */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-layout {
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.profile-main-col {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1 1 540px;
}

.avatar-box {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.22);
}

.avatar-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.avatar-badge-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--emerald);
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-badge-check svg { width: 10px; height: 10px; }

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.profile-meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-tag strong {
  color: var(--text-body);
  font-weight: 700;
}

.meta-tag-campus {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--emerald-text);
}
.meta-tag-campus strong { color: var(--emerald-text); }

.meta-tag-specialty {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--cyan-text);
  font-weight: 700;
}

.meta-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.8;
}

.profile-action-col {
  display: flex;
  align-items: center;
  align-self: flex-start;
}

/* Penanda Tenggat Dekat: Berdenyut 3x lalu DIAM (Aturan Performa 3) */
@keyframes pulseDeadlineStrip {
  0% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.008); opacity: 1; }
  100% { transform: scale(1); opacity: 0.94; }
}

.deadline-strip {
  position: relative;
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-left: 4px solid var(--amber);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  animation: pulseDeadlineStrip 800ms ease-in-out 3 normal forwards;
}

.deadline-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--amber-text);
  flex: 1 1 480px;
}

.deadline-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--amber);
  flex-shrink: 0;
}

.deadline-status-pill {
  font-size: 0.72rem;
  background: #fde68a;
  color: #78350f;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   2. SELEKTOR JALUR KENAIKAN PANGKAT (Pathway Control Card)
   ========================================================================== */
.pathway-control-card {
  background: linear-gradient(180deg, #f8faff 0%, #f1f4fd 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pathway-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.section-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pathway-status-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4338ca;
  background: #ede9fe;
  border: 1px solid #c7d2fe;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pathway-tile {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  transition: transform 180ms var(--ease-smooth), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.pathway-tile:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.pathway-tile:active {
  transform: translateY(0);
}

/* 01 Lektor 300: Pastel Indigo */
.pathway-tile[data-target-mode="lektor-300"] {
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 100%);
  border: 1.5px solid #c7d2fe;
}
.pathway-tile[data-target-mode="lektor-300"] .tile-tag {
  background: #ede9fe;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.pathway-tile[data-target-mode="lektor-300"].active {
  background: linear-gradient(165deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #6366f1;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
}

/* 02 Lektor 200: Pastel Sky Blue */
.pathway-tile[data-target-mode="lektor-200"] {
  background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
}
.pathway-tile[data-target-mode="lektor-200"] .tile-tag {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.pathway-tile[data-target-mode="lektor-200"].active {
  background: linear-gradient(165deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
}

/* 03 Lektor Kepala 400: Pastel Amber / Warm Honey */
.pathway-tile[data-target-mode="lompat-lektor-kepala"],
.pathway-tile.tile-accent {
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
}
.pathway-tile[data-target-mode="lompat-lektor-kepala"] .tile-tag,
.pathway-tile.tile-accent .tile-tag {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pathway-tile[data-target-mode="lompat-lektor-kepala"].active,
.pathway-tile.tile-accent.active {
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.18);
}

/* 04 Guru Besar 850: Pastel Purple / Lilac */
.pathway-tile[data-target-mode="guru-besar"],
.pathway-tile.tile-purple {
  background: linear-gradient(165deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px solid #e9d5ff;
}
.pathway-tile[data-target-mode="guru-besar"] .tile-tag,
.pathway-tile.tile-purple .tile-tag {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.pathway-tile[data-target-mode="guru-besar"].active,
.pathway-tile.tile-purple.active {
  background: linear-gradient(165deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #9333ea;
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.18);
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-number {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-subtle);
}

.tile-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
}
.tag-primary { background: var(--primary-soft); color: var(--primary-text); }
.tag-subtle { background: var(--bg-card-subtle); color: var(--text-muted); }
.tag-amber { background: var(--amber-soft); color: var(--amber-text); }
.tag-purple { background: var(--purple-soft); color: var(--purple-text); }

.tile-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.tile-desc {
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

.tile-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.tile-kum {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-body);
}

.tile-arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: transform 180ms ease;
}
.pathway-tile:hover .tile-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   3. MODERN TABS NAVIGATION (PROPORTIONAL 3-COLUMN SEGMENTED CONTROL)
   ========================================================================== */
.modern-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: transparent;
  border: none;
  outline: none !important;
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease-smooth), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.tab-button:focus,
.tab-button:focus-visible {
  outline: none !important;
}

.tab-button:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  transform: translateY(-1px);
}

.tab-button:active {
  transform: translateY(0);
}

.tab-button.active {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px -2px rgba(55, 48, 163, 0.3);
}

.tab-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.tab-chip-status {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--emerald-soft);
  color: var(--emerald-text);
  font-weight: 800;
  line-height: 1.2;
}
.tab-button.active .tab-chip-status {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.tab-badge-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 800;
  line-height: 1.2;
}
.tab-button.active .tab-badge-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   ANIMASI HALUS PERGANTIAN HALAMAN & TAB (Smooth Transitions)
   ========================================================================== */
@keyframes pageEnterSmooth {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.tab-pane,
.modern-tab-pane {
  display: none;
}

.tab-pane.active,
.modern-tab-pane.active {
  display: flex !important;
  flex-direction: column;
  gap: 2.25rem;
  animation: pageEnterSmooth 220ms ease both !important;
  will-change: opacity;
}

.page-enter-active {
  animation: pageEnterSmooth 220ms ease both !important;
  will-change: opacity;
}

/* ==========================================================================
   4. METRIK UTAMA & CINCIN PROGRES (RAPI & LEGA)
   ========================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 285px;
  transition: transform 180ms var(--ease-smooth), border-color 180ms ease, box-shadow 180ms ease;
}

/* Kartu 1: Capaian Target (Pastel Mint / Emerald) */
.overview-grid > .metric-card:nth-child(1) {
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.07);
}
.overview-grid > .metric-card:nth-child(1):hover {
  border-color: #86efac;
}
.overview-grid > .metric-card:nth-child(1) .card-icon-bubble {
  background: #dcfce7;
  color: #059669;
  border: 1px solid #bbf7d0;
}
.overview-grid > .metric-card:nth-child(1) .ring-caption-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.overview-grid > .metric-card:nth-child(1) .metric-card-bottom {
  border-top: 1px solid #dcfce7;
  color: #166534;
}
.overview-grid > .metric-card:nth-child(1) .metric-card-bottom strong {
  color: #15803d;
}

/* Kartu 2: Akumulasi Angka Kredit (Pastel Indigo / Royal Blue) */
.overview-grid > .metric-card:nth-child(2) {
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 100%);
  border: 1.5px solid #c7d2fe;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.07);
}
.overview-grid > .metric-card:nth-child(2):hover {
  border-color: #a5b4fc;
}
.overview-grid > .metric-card:nth-child(2) .card-icon-bubble {
  background: #ede9fe;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}
.overview-grid > .metric-card:nth-child(2) .badge-teal {
  background: #ede9fe;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.overview-grid > .metric-card:nth-child(2) .metric-card-bottom {
  border-top: 1px solid #e0e7ff;
  color: #4338ca;
}
.overview-grid > .metric-card:nth-child(2) .metric-card-bottom strong {
  color: #3730a3;
}

/* Kartu 3: Kewajiban Khusus Publikasi (Pastel Amber / Golden Honey) */
.overview-grid > .metric-card:nth-child(3) {
  background: linear-gradient(165deg, #ffffff 0%, #fffdf0 100%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.07);
}
.overview-grid > .metric-card:nth-child(3):hover {
  border-color: #fcd34d;
}
.overview-grid > .metric-card:nth-child(3) .card-icon-bubble {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}
.overview-grid > .metric-card:nth-child(3) .special-req-card {
  background: #ffffff;
  border: 1.5px solid #fef3c7;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.06);
}
.overview-grid > .metric-card:nth-child(3) .metric-card-bottom {
  border-top: 1px solid #fef3c7;
  color: #92400e;
}

.interactive-card {
  position: relative;
  cursor: pointer;
  transition: transform 180ms var(--ease-smooth), border-color 180ms ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-smooth);
}

.interactive-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.interactive-card:hover::after { opacity: 1; }
.interactive-card:active { transform: translateY(0); }

.stagger-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-smooth), transform 500ms var(--ease-smooth);
}
.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.card-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.card-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SVG Progress Ring Box - Dijamin Lega dan Bebas Benturan */
.ring-center-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.35rem 0;
}

.progress-ring-box {
  position: relative;
  width: 136px;
  height: 136px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring-svg {
  width: 136px;
  height: 136px;
  transform: rotate(0deg);
  display: block;
}

.ring-bg {
  fill: none;
  stroke: #f1f5f9;
}

.ring-progress {
  fill: none;
  stroke: var(--emerald);
  stroke-linecap: round;
  transition: stroke-dashoffset 750ms var(--ease-smooth);
}

.ring-inner-data {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ring-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ring-percent-sign {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-left: 2px;
}

.ring-caption-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald-text);
  background: var(--emerald-soft);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.metric-card-bottom {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
  margin-top: auto;
  line-height: 1.45;
  min-height: 46px;
  display: block;
  box-sizing: border-box;
}

.metric-card-bottom strong {
  font-weight: 700;
}

.metric-card-bottom.req-footer-meta {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Total KUM Metric Readout */
.kum-display-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kum-readout {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.kum-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.kum-cap {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.kum-status-badge-wrap {
  display: flex;
}

/* Progress Bar Container */
.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.bar-val-bold { color: var(--primary); }

.bar-track {
  width: 100%;
  height: 7px;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 700ms var(--ease-smooth);
}

.bar-fill.fill-indigo { background-color: var(--primary); }
.bar-fill.fill-cyan { background-color: var(--cyan); }
.bar-fill.fill-emerald { background-color: var(--emerald); }
.bar-fill.fill-amber { background-color: var(--amber); }

/* Special Requirement Box */
.special-req-card {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.req-headline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.35;
}

.req-summary {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.req-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.req-status-row .badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.req-footer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. DIAGRAM TANGGA KARIR (Visual Stepper - Rapi & Bersih)
   ========================================================================== */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.career-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stepper-node {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 195px;
}

.stepper-node.node-current {
  border-color: #86efac;
  background: linear-gradient(165deg, #f0fdf4 0%, #dcfce7 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.stepper-node.node-target {
  border-color: #c7d2fe;
  background: linear-gradient(165deg, #f5f3ff 0%, #ede9fe 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.stepper-node.node-fasttrack {
  border-color: #fde68a;
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.stepper-node.node-summit {
  border-color: #e9d5ff;
  background: linear-gradient(165deg, #faf5ff 0%, #f3e8ff 100%);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.08);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-bullet-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.node-bullet {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--bg-card-subtle);
  color: var(--text-subtle);
}
.node-current .node-bullet { background: var(--emerald); color: white; }
.node-target .node-bullet { background: var(--primary); color: white; }
.node-fasttrack .node-bullet { background: var(--amber-soft); color: var(--amber-text); }
.node-summit .node-bullet { background: var(--purple-soft); color: var(--purple-text); }

.node-stage-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.node-phase-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}
.phase-active { background: var(--emerald-soft); color: var(--emerald-text); }
.phase-target { background: var(--primary-soft); color: var(--primary-text); }
.phase-fasttrack { background: var(--amber-soft); color: var(--amber-text); }
.phase-summit { background: var(--purple-soft); color: var(--purple-text); }

.node-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.node-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.node-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0;
}

.node-kum-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-text);
  background: var(--primary-soft);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-sm);
}
.node-current .node-kum-badge {
  color: var(--emerald-text);
  background: var(--emerald-soft);
}

.node-gol-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.node-rule-box {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  color: var(--text-body);
  line-height: 1.35;
}

.rule-icon { font-weight: bold; flex-shrink: 0; }
.rule-text { flex-grow: 1; }

/* ==========================================================================
   6. PILAR BEBAN TRIDHARMA (2x2 atau 4-Kolom Lega)
   ========================================================================== */
.tridharma-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pilar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 255px;
  transition: transform 180ms var(--ease-smooth), border-color 180ms ease, box-shadow 180ms ease;
}

/* Pilar 1: Pendidikan (Pastel Sky Blue) */
.tridharma-cards-grid > .pilar-card:nth-child(1) {
  background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.06);
}
.tridharma-cards-grid > .pilar-card:nth-child(1):hover {
  border-color: #7dd3fc;
}

/* Pilar 2: Penelitian (Pastel Indigo / Violet) */
.tridharma-cards-grid > .pilar-card:nth-child(2) {
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 100%);
  border: 1.5px solid #ddd6fe;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06);
}
.tridharma-cards-grid > .pilar-card:nth-child(2):hover {
  border-color: #c4b5fd;
}

/* Pilar 3: Pengabdian (Pastel Mint / Emerald) */
.tridharma-cards-grid > .pilar-card:nth-child(3) {
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.06);
}
.tridharma-cards-grid > .pilar-card:nth-child(3):hover {
  border-color: #86efac;
}

/* Pilar 4: Penunjang (Pastel Amber / Golden Honey) */
.tridharma-cards-grid > .pilar-card:nth-child(4) {
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.06);
}
.tridharma-cards-grid > .pilar-card:nth-child(4):hover {
  border-color: #fcd34d;
}

.pilar-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pilar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pilar-info {
  display: flex;
  flex-direction: column;
}

.pilar-category {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.pilar-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.pilar-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.2rem 0;
}

.pilar-kum-digits {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pilar-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.pilar-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.pilar-bullets {
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.65rem;
  line-height: 1.35;
}
.pilar-bullets li::before {
  content: "• ";
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   7. DETAIL TABLE & CONTENT CARD (Tab 2)
   ========================================================================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-inner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-frame {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.clean-table th {
  background: var(--bg-card-subtle);
  color: var(--text-subtle);
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clean-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.clean-table tbody tr {
  transition: background-color 150ms ease;
}

.clean-table tbody tr:hover {
  background-color: var(--bg-card-subtle);
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
}
.chip-indigo { background: var(--primary-soft); color: var(--primary-text); }
.chip-cyan { background: var(--cyan-soft); color: var(--cyan-text); }
.chip-emerald { background: var(--emerald-soft); color: var(--emerald-text); }
.chip-amber { background: var(--amber-soft); color: var(--amber-text); }

.status-indicator {
  font-size: 0.78rem;
  font-weight: 700;
}
.status-indicator.ok { color: var(--emerald); }
.status-indicator.pending { color: var(--amber); }

/* BKD Semester Dynamic Header Actions & Status Bar */
.bkd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.semester-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.filter-select {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.filter-select:focus {
  border-color: var(--primary);
}

.bkd-status-bar-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.bkd-status-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bkd-metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.bkd-metric-val {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sks-big-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.sks-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.kum-contrib-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.row-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-edit-row,
.btn-delete-row {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.btn-edit-row:hover {
  color: var(--primary);
  background-color: var(--primary-soft);
  transform: scale(1.1);
}
.btn-delete-row:hover {
  color: #e11d48;
  background-color: #ffe4e6;
  transform: scale(1.1);
}
.btn-edit-row:focus-visible,
.btn-delete-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-edit-row svg,
.btn-delete-row svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   8. CHECKLIST BERKAS JFA (Tab 3) - 4 Kategori Rapi
   ========================================================================== */
.checklist-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.checklist-btn-group {
  display: flex;
  gap: 0.5rem;
}

.checklist-summary-card {
  background: var(--bg-card-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.summary-pct { font-weight: 800; color: var(--emerald); }

.checklist-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.category-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 180ms var(--ease-smooth), border-color 180ms ease, box-shadow 180ms ease;
}

/* Kategori A: Kualifikasi & Administrasi (Pastel Sky Blue) */
.checklist-categories-grid > .category-block:nth-child(1) {
  background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.06);
}
.checklist-categories-grid > .category-block:nth-child(1) .cat-pill {
  background: #0284c7;
}

/* Kategori B: Pelaksanaan Pendidikan (Pastel Indigo) */
.checklist-categories-grid > .category-block:nth-child(2) {
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 100%);
  border: 1.5px solid #ddd6fe;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06);
}
.checklist-categories-grid > .category-block:nth-child(2) .cat-pill {
  background: #7c3aed;
}

/* Kategori C: Penelitian & Publikasi (Pastel Amber) */
.checklist-categories-grid > .category-block:nth-child(3) {
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.06);
}
.checklist-categories-grid > .category-block:nth-child(3) .cat-pill {
  background: #d97706;
}

/* Kategori D: Pengabdian & Penunjang (Pastel Mint) */
.checklist-categories-grid > .category-block:nth-child(4) {
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.06);
}
.checklist-categories-grid > .category-block:nth-child(4) .cat-pill {
  background: #059669;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.65rem;
}

.cat-pill {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.category-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  position: relative;
  user-select: none;
}

.check-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  flex-shrink: 0;
  transition: transform 150ms var(--ease-spring), background-color 150ms ease, border-color 150ms ease;
}

.check-icon {
  width: 12px;
  height: 10px;
  stroke: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 160ms var(--ease-spring), opacity 120ms ease;
}

.check-input:checked + .custom-checkbox {
  background-color: var(--emerald);
  border-color: var(--emerald);
  transform: scale(1.05);
}

.check-input:checked + .custom-checkbox .check-icon {
  opacity: 1;
  transform: scale(1);
}

.check-input:focus-visible + .custom-checkbox {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.check-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.check-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.check-input:checked ~ .check-info .check-title { color: #334155; }
.check-desc { font-size: 0.73rem; color: var(--text-subtle); }

.check-kum-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--emerald-text);
  background: var(--emerald-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.check-kum-tag.tag-accent {
  color: var(--amber-text);
  background: var(--amber-soft);
}

/* ==========================================================================
   9. FORM EDIT PROFIL & SETTINGS (Tab 4)
   ========================================================================== */
.form-container {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .form-field label {
  color: #e2e8f0;
}

.text-input {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  width: 100%;
}

[data-theme="dark"] .text-input {
  background: #182235;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .text-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
  background: #1c273d;
}

[data-theme="dark"] select.text-input option {
  background: #151d2f;
  color: #f8fafc;
}

.form-action-row {
  display: flex;
  justify-content: flex-end;
}

.setting-switch-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-lg);
  gap: 1rem;
}

.switch-label { font-size: 0.92rem; font-weight: 800; color: var(--text-main); cursor: pointer; }
.switch-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; line-height: 1.4; }

.switch-control {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-input { opacity: 0; width: 0; height: 0; }
.toggle-rail {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: var(--radius-full);
  transition: background-color 200ms ease;
}

.toggle-knob {
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translateX(0);
  transition: transform 200ms var(--ease-smooth);
}

.toggle-input:checked + .toggle-rail { background-color: var(--primary); }
.toggle-input:checked + .toggle-rail .toggle-knob { transform: translateX(22px); }

.perf-guide-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.guide-header-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #166534;
  margin-bottom: 0.75rem;
}
.guide-title { font-size: 0.98rem; font-weight: 800; }
.guide-ol {
  padding-left: 1.25rem;
  font-size: 0.83rem;
  color: #15803d;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  line-height: 1.5;
}
.guide-ol strong { color: #14532d; }

/* ==========================================================================
   10. BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease-smooth), background-color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background-color: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary { background-color: var(--bg-card-subtle); color: var(--text-main); border-color: var(--border-light); }
.btn-secondary:hover { background-color: #e2e8f0; }

.btn-outline { background-color: transparent; border-color: var(--border-light); color: var(--text-main); }
.btn-outline:hover { background-color: var(--bg-card-subtle); }

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
}
.badge-emerald { background: var(--emerald-soft); color: var(--emerald-text); }
.badge-teal { background: #ccfbf1; color: #115e59; }
.badge-subtle { background: var(--bg-card-subtle); color: var(--text-muted); }
.badge-amber { background: var(--amber-soft); color: var(--amber-text); }
.badge-primary { background: var(--primary-soft); color: var(--primary-text); }
.badge-purple { background: var(--purple-soft); color: var(--purple-text); }
.badge-lg { font-size: 0.82rem; padding: 0.35rem 0.85rem; }

/* ==========================================================================
   11. MODAL INPUT KINERJA (Single Entry, Dual Output)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
  padding: 1rem;
  overscroll-behavior: contain;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
  transform: scale(0.96) translateY(12px);
  transition: transform 250ms var(--ease-smooth), background-color 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 0.15rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background-color 150ms ease;
}
.btn-close-modal:hover {
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
}

.modal-desc {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.45;
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.field-label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
}

.field-hint-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sks-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sks-quick-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  width: 100%;
}

.bukti-quick-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
}

.sks-chip,
.bukti-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 140ms ease;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.sks-chip:hover,
.bukti-chip:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.sks-chip.active,
.bukti-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(55, 48, 163, 0.25);
}

[data-theme="dark"] .sks-chip,
[data-theme="dark"] .bukti-chip {
  background: rgba(30, 41, 59, 0.6);
  border-color: var(--border-light);
  color: #94a3b8;
}

[data-theme="dark"] .sks-chip:hover,
[data-theme="dark"] .bukti-chip:hover {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
  border-color: #818cf8;
}

[data-theme="dark"] .sks-chip.active,
[data-theme="dark"] .bukti-chip.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.req-star {
  color: #e11d48;
  font-weight: 800;
  margin-left: 0.15rem;
}
[data-theme="dark"] .req-star {
  color: #fb7185;
}

/* Auto-conversion Preview Card (PO PAK & BKD Converter) */
.conversion-preview-card {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conversion-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.conversion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.conversion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.conversion-metric-box {
  background: var(--bg-card);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.conversion-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

.conversion-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.conversion-num {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}
.conversion-num.bkd-color { color: var(--emerald-text); }
.conversion-num.kum-color { color: var(--primary); }

.conversion-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.conversion-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.conversion-rule-note {
  font-size: 0.75rem;
  color: #312e81;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.kelayakan-status-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.kelayakan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.kelayakan-pill.ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.kelayakan-pill.subtle {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.kelayakan-pill.special {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.manual-override-accordion {
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  background: #fafbfc;
}

.manual-override-summary {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-subtle);
  cursor: pointer;
  user-select: none;
  outline: none;
}
.manual-override-summary:hover {
  color: var(--primary);
}

.input-with-hint {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-hint {
  font-size: 0.7rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

.special-checkbox-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.checkbox-label-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-custom-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.checkbox-text-desc {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.35;
}

.checkbox-text-desc strong {
  color: #14532d;
  font-size: 0.84rem;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* ==========================================================================
   12. SISTEM AKUN & KEAMANAN PROFIL PRIBADI (Multi-User & PIN Lock)
   ========================================================================== */
.auth-gate-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
  padding: 1rem;
}

.auth-gate-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-gate-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  transform: scale(0.95) translateY(14px);
  transition: transform 250ms var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-gate-backdrop.active .auth-gate-card {
  transform: scale(1) translateY(0);
}

.auth-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #e0e7ff 0%, #d1fae5 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.25rem;
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.15);
}
.auth-icon-bubble svg { width: 26px; height: 26px; }

.auth-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.account-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.account-item-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
  user-select: none;
}

.account-item-tile:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.account-item-tile.selected {
  border-color: var(--primary);
  background-color: #f5f3ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.settings-account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.settings-account-item.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.account-tile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3730a3 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.account-tile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
  min-width: 0;
}

.account-tile-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-tile-sub {
  font-size: 0.73rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-tile-check {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.auth-pin-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.auth-pin-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pin-code-input {
  padding: 0.75rem 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 150ms ease;
  outline: none;
}
.pin-code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.auth-toggle-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0.4rem;
  transition: color 150ms ease;
}
.auth-toggle-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.account-security-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-text);
  background: var(--emerald-soft);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.btn-profile-edit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.btn-profile-edit-tag:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.profile-section-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.avatar-large {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(55, 48, 163, 0.22);
  flex-shrink: 0;
}

/* ==========================================================================
   13. CELEBRATION 100% OVERLAY (CSS Burst, Sekali Saja)
   ========================================================================== */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.celebration-overlay.active { opacity: 1; pointer-events: auto; }

.celebration-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(16px);
  transition: transform 350ms var(--ease-spring);
}
.celebration-overlay.active .celebration-card { transform: scale(1) translateY(0); }

.celebration-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--emerald-soft);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.celebration-icon { width: 32px; height: 32px; }
.celebration-title { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.35rem; }
.celebration-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.4; }

.particle-burst-cluster { position: absolute; pointer-events: none; }
.css-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translate(0, 0) scale(1);
}

@keyframes burstUpLeft {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(-120px, -140px) scale(0); opacity: 0; }
}
@keyframes burstUpRight {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(130px, -130px) scale(0); opacity: 0; }
}
@keyframes burstDownLeft {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(-140px, 110px) scale(0); opacity: 0; }
}
@keyframes burstDownRight {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(120px, 120px) scale(0); opacity: 0; }
}
@keyframes burstTop {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(0, -170px) scale(0); opacity: 0; }
}
@keyframes burstLeft {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(-160px, -20px) scale(0); opacity: 0; }
}
@keyframes burstRight {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(160px, -20px) scale(0); opacity: 0; }
}

.celebration-overlay.active .p-1 { background: #10b981; animation: burstUpLeft 750ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-2 { background: #6366f1; animation: burstUpRight 700ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-3 { background: #f59e0b; animation: burstDownLeft 650ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-4 { background: #06b6d4; animation: burstDownRight 800ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-5 { background: #ec4899; animation: burstTop 720ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-6 { background: #8b5cf6; animation: burstLeft 680ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-7 { background: #14b8a6; animation: burstRight 740ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-8 { background: #f97316; animation: burstUpLeft 820ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-9 { background: #3b82f6; animation: burstUpRight 760ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-10 { background: #84cc16; animation: burstDownLeft 700ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-11 { background: #a855f7; animation: burstDownRight 780ms var(--ease-smooth) 1 normal forwards; }
.celebration-overlay.active .p-12 { background: #e11d48; animation: burstTop 800ms var(--ease-smooth) 1 normal forwards; }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.footer-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-tag {
  background: var(--bg-card-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Icons & Colors */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-inline { width: 15px; height: 15px; flex-shrink: 0; }
.icon-warning { color: var(--amber); }

.text-indigo { color: var(--primary); }
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-purple { color: var(--purple); }

.bg-indigo-soft { background-color: var(--primary-soft); }
.bg-cyan-soft { background-color: var(--cyan-soft); }
.bg-emerald-soft { background-color: var(--emerald-soft); }
.bg-amber-soft { background-color: var(--amber-soft); }
.bg-purple-soft { background-color: var(--purple-soft); }

/* Overlay & Pop-up Selebrasi Mode Gelap */
[data-theme="dark"] .celebration-card {
  background: #111827 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75) !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .celebration-title {
  color: #f8fafc !important;
}
[data-theme="dark"] .celebration-subtitle {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .meta-tag-campus {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #a7f3d0 !important;
}
[data-theme="dark"] .meta-tag-specialty {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #bae6fd !important;
}

/* Transisi Elegan & Bebas Hambatan (GPU Composited) */
.stagger-item {
  transition: transform 220ms var(--ease-smooth), opacity 220ms ease;
}

/* ==========================================================================
   TEMA GELAP / TERANG & TOMBOL IKON NAVIGASI HEADER
   ========================================================================== */
.btn-theme-toggle,
.btn-icon-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 180ms var(--ease-spring), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  position: relative;
  flex-shrink: 0;
}

.btn-icon-nav svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.btn-theme-toggle:hover,
.btn-icon-nav:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-soft);
}

.btn-theme-toggle:active,
.btn-icon-nav:active {
  transform: scale(0.95);
}

.btn-icon-logout {
  color: var(--amber-text);
}
.btn-icon-logout:hover {
  border-color: #e11d48 !important;
  color: #e11d48 !important;
  background-color: rgba(225, 29, 72, 0.1) !important;
}

[data-theme="dark"] .btn-icon-nav {
  background: var(--bg-card-subtle);
  border-color: var(--border-light);
  color: var(--text-main);
}
[data-theme="dark"] .btn-icon-nav:hover {
  border-color: #818cf8;
  color: #818cf8;
  background-color: rgba(129, 140, 248, 0.16);
}
[data-theme="dark"] .btn-icon-logout {
  color: #fbbf24;
}
[data-theme="dark"] .btn-icon-logout:hover {
  border-color: #fb7185 !important;
  color: #fb7185 !important;
  background-color: rgba(225, 29, 72, 0.18) !important;
}

.btn-theme-toggle .icon-theme {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease-smooth), opacity 200ms ease;
}

/* Light mode icon visibility */
:root:not([data-theme="dark"]) .icon-sun {
  display: none !important;
}
:root:not([data-theme="dark"]) .icon-moon {
  display: block !important;
  color: var(--primary);
}

/* Dark mode icon visibility */
[data-theme="dark"] .icon-moon {
  display: none !important;
}
[data-theme="dark"] .icon-sun {
  display: block !important;
  color: #fbbf24;
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .tab-nav-bar {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .tab-button {
  color: var(--text-muted);
}

[data-theme="dark"] .tab-button:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

[data-theme="dark"] .tab-button.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px -2px rgba(129, 140, 248, 0.45) !important;
}

[data-theme="dark"] .tab-button.active .tab-icon {
  stroke: #ffffff !important;
}

[data-theme="dark"] .tab-button.active .tab-chip-status,
[data-theme="dark"] .tab-button.active .tab-badge-pill {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .table-frame {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .clean-table {
  background: var(--bg-card);
}

[data-theme="dark"] .clean-table th {
  background: var(--bg-card-subtle);
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .clean-table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

[data-theme="dark"] .clean-table tbody tr {
  background-color: transparent !important;
}

[data-theme="dark"] .clean-table tbody tr:hover,
[data-theme="dark"] .clean-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Modal Dark Theme Enhancements (Brightened, High-Contrast & Clear Surfaces) */
[data-theme="dark"] .modal-card {
  background: #1e293b !important;
  border: 1.5px solid rgba(129, 140, 248, 0.38) !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .modal-desc {
  background: rgba(51, 65, 85, 0.5) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 3.5px solid #818cf8 !important;
}

[data-theme="dark"] .modal-desc strong {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-close-modal {
  color: #94a3b8;
}
[data-theme="dark"] .btn-close-modal:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .conversion-preview-card {
  background: linear-gradient(135deg, rgba(39, 53, 79, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
  border: 1.5px solid rgba(129, 140, 248, 0.35) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .conversion-badge {
  background: rgba(99, 102, 241, 0.28) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
}

[data-theme="dark"] .conversion-metric-box {
  background: #192335 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .conversion-rule-note {
  background: rgba(25, 35, 53, 0.85) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3.5px solid #818cf8 !important;
}
[data-theme="dark"] .conversion-rule-note strong {
  color: #a5b4fc !important;
}

[data-theme="dark"] .kelayakan-pill {
  background: var(--bg-card-subtle);
  border-color: var(--border-light);
  color: var(--text-muted);
}

[data-theme="dark"] .kelayakan-pill.ok {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

[data-theme="dark"] .kelayakan-pill.subtle {
  background: var(--bg-card-subtle);
  border-color: var(--border-light);
  color: var(--text-subtle);
}

[data-theme="dark"] .kelayakan-pill.special {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

[data-theme="dark"] .manual-override-accordion {
  background: var(--bg-card-subtle);
  border-color: var(--border-light);
}

[data-theme="dark"] .account-item-tile:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .account-item-tile.selected {
  background: rgba(129, 140, 248, 0.14);
  border-color: var(--primary);
}

[data-theme="dark"] .settings-account-item {
  background: var(--bg-card) !important;
  border-color: var(--border-light) !important;
}

[data-theme="dark"] .settings-account-item.active {
  background: rgba(129, 140, 248, 0.14) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .pin-code-input {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-light);
}

[data-theme="dark"] .auth-icon-bubble {
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
}

[data-theme="dark"] .custom-checkbox {
  border-color: var(--border-subtle);
}

[data-theme="dark"] .stepper-node.node-current {
  background: linear-gradient(165deg, #151d2f 0%, rgba(16, 185, 129, 0.16) 100%);
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="dark"] .stepper-node.node-target {
  background: linear-gradient(165deg, #151d2f 0%, rgba(99, 102, 241, 0.16) 100%);
  border-color: rgba(129, 140, 248, 0.35);
}

[data-theme="dark"] .stepper-node.node-fasttrack {
  background: linear-gradient(165deg, #151d2f 0%, rgba(245, 158, 11, 0.16) 100%);
  border-color: rgba(251, 191, 36, 0.35);
}

[data-theme="dark"] .stepper-node.node-summit {
  background: linear-gradient(165deg, #151d2f 0%, rgba(168, 85, 247, 0.16) 100%);
  border-color: rgba(192, 132, 252, 0.35);
}

[data-theme="dark"] .stepper-node .node-rule-box {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Metric Cards Dark Pastel (Brightened & High Legibility) */
[data-theme="dark"] .overview-grid > .metric-card:nth-child(1) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(16, 185, 129, 0.2) 100%);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(1) .card-icon-bubble {
  background: rgba(52, 211, 153, 0.24);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(1) .ring-caption-pill {
  background: rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.45);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(1) .metric-card-bottom {
  border-top-color: rgba(52, 211, 153, 0.3);
  color: #cbd5e1;
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(1) .metric-card-bottom strong {
  color: #6ee7b7;
}

[data-theme="dark"] .overview-grid > .metric-card:nth-child(2) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(99, 102, 241, 0.2) 100%);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(2) .card-icon-bubble {
  background: rgba(129, 140, 248, 0.24);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.45);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(2) .badge-teal {
  background: rgba(129, 140, 248, 0.24);
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.45);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(2) .metric-card-bottom {
  border-top-color: rgba(129, 140, 248, 0.3);
  color: #cbd5e1;
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(2) .metric-card-bottom strong {
  color: #c7d2fe;
}

[data-theme="dark"] .overview-grid > .metric-card:nth-child(3) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(3) .card-icon-bubble {
  background: rgba(251, 191, 36, 0.24);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(3) .special-req-card {
  background: #253248;
  border-color: rgba(251, 191, 36, 0.35);
}
[data-theme="dark"] .overview-grid > .metric-card:nth-child(3) .metric-card-bottom,
[data-theme="dark"] .overview-grid > .metric-card:nth-child(3) .req-footer-meta {
  border-top-color: rgba(251, 191, 36, 0.3);
  color: #cbd5e1;
}

/* Tridharma 4 Pilars Dark Pastel */
[data-theme="dark"] .tridharma-cards-grid > .pilar-card:nth-child(1) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(14, 165, 233, 0.2) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}
[data-theme="dark"] .tridharma-cards-grid > .pilar-card:nth-child(2) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(124, 58, 237, 0.2) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}
[data-theme="dark"] .tridharma-cards-grid > .pilar-card:nth-child(3) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(16, 185, 129, 0.2) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}
[data-theme="dark"] .tridharma-cards-grid > .pilar-card:nth-child(4) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

/* Checklist Categories Dark Pastel */
[data-theme="dark"] .checklist-categories-grid > .category-block:nth-child(1) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(14, 165, 233, 0.2) 100%);
  border-color: rgba(56, 189, 248, 0.4);
}
[data-theme="dark"] .checklist-categories-grid > .category-block:nth-child(2) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(124, 58, 237, 0.2) 100%);
  border-color: rgba(167, 139, 250, 0.4);
}
[data-theme="dark"] .checklist-categories-grid > .category-block:nth-child(3) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}
[data-theme="dark"] .checklist-categories-grid > .category-block:nth-child(4) {
  background: linear-gradient(165deg, #1e293b 0%, rgba(16, 185, 129, 0.2) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

/* BKD Status Bar Dark Pastel */
[data-theme="dark"] .bkd-status-bar-box {
  background: linear-gradient(135deg, #1e293b 0%, rgba(16, 185, 129, 0.24) 100%);
  border-color: rgba(52, 211, 153, 0.45);
}

[data-theme="dark"] .perf-guide-box {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .guide-header-line {
  color: #34d399 !important;
}

[data-theme="dark"] .guide-ol {
  color: #a7f3d0 !important;
}

[data-theme="dark"] .guide-ol strong {
  color: #6ee7b7 !important;
}

[data-theme="dark"] .badge-subtle {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

/* Dark Mode Pathway Control Card & Tiles */
[data-theme="dark"] .pathway-control-card {
  background: linear-gradient(180deg, #1e293b 0%, #162033 100%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .pathway-control-card .section-eyebrow {
  color: #a5b4fc !important;
}

[data-theme="dark"] .pathway-control-card .section-headline {
  color: #ffffff !important;
}

[data-theme="dark"] .pathway-status-label {
  background: rgba(99, 102, 241, 0.28) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
}

/* Inactive Tiles in Dark Mode (Brightened & Elevated) */
[data-theme="dark"] .pathway-tile {
  background: #222d42 !important;
  border-color: #334460 !important;
}

[data-theme="dark"] .pathway-tile .tile-title {
  color: #ffffff !important;
}

[data-theme="dark"] .pathway-tile .tile-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .pathway-tile .tile-number {
  color: #94a3b8 !important;
}

[data-theme="dark"] .pathway-tile .tile-bottom {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .pathway-tile .tile-arrow {
  color: #94a3b8 !important;
}

/* Tile 01: Lektor 300 Dark Mode */
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"] {
  background: linear-gradient(165deg, #222d42 0%, rgba(99, 102, 241, 0.22) 100%) !important;
  border: 1.5px solid rgba(129, 140, 248, 0.38) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"] .tile-tag {
  background: rgba(99, 102, 241, 0.28) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"] .tile-kum {
  color: #c7d2fe !important;
}

/* Tile 02: Lektor 200 Dark Mode */
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"] {
  background: linear-gradient(165deg, #222d42 0%, rgba(14, 165, 233, 0.22) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.38) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"] .tile-tag {
  background: rgba(14, 165, 233, 0.28) !important;
  color: #bae6fd !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"] .tile-kum {
  color: #bae6fd !important;
}

/* Tile 03: Lektor Kepala 400 Dark Mode */
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"],
[data-theme="dark"] .pathway-tile.tile-accent {
  background: linear-gradient(165deg, #222d42 0%, rgba(245, 158, 11, 0.22) 100%) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.38) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"] .tile-tag,
[data-theme="dark"] .pathway-tile.tile-accent .tile-tag {
  background: rgba(245, 158, 11, 0.28) !important;
  color: #fef08a !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"] .tile-kum,
[data-theme="dark"] .pathway-tile.tile-accent .tile-kum {
  color: #fef08a !important;
}

/* Tile 04: Guru Besar 850 Dark Mode */
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"],
[data-theme="dark"] .pathway-tile.tile-purple {
  background: linear-gradient(165deg, #222d42 0%, rgba(168, 85, 247, 0.22) 100%) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.38) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"] .tile-tag,
[data-theme="dark"] .pathway-tile.tile-purple .tile-tag {
  background: rgba(168, 85, 247, 0.28) !important;
  color: #f3e8ff !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"] .tile-kum,
[data-theme="dark"] .pathway-tile.tile-purple .tile-kum {
  color: #f3e8ff !important;
}

/* Active Tiles in Dark Mode */
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"].active {
  background: linear-gradient(165deg, #2c385c 0%, #222c48 100%) !important;
  border: 2px solid #818cf8 !important;
  box-shadow: 0 0 0 1px #818cf8, 0 8px 24px -4px rgba(99, 102, 241, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"].active .tile-title {
  color: #ffffff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"].active .tile-desc {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"].active .tile-kum {
  color: #c7d2fe !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-300"].active .tile-arrow {
  color: #818cf8 !important;
}

[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"].active {
  background: linear-gradient(165deg, #1c3650 0%, #162a3f 100%) !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 0 1px #38bdf8, 0 8px 24px -4px rgba(14, 165, 233, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"].active .tile-title {
  color: #ffffff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"].active .tile-desc {
  color: #bae6fd !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"].active .tile-kum {
  color: #7dd3fc !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lektor-200"].active .tile-arrow {
  color: #38bdf8 !important;
}

[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"].active,
[data-theme="dark"] .pathway-tile.tile-accent.active {
  background: linear-gradient(165deg, #3f311c 0%, #302414 100%) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 0 1px #fbbf24, 0 8px 24px -4px rgba(245, 158, 11, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"].active .tile-title,
[data-theme="dark"] .pathway-tile.tile-accent.active .tile-title {
  color: #ffffff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"].active .tile-desc,
[data-theme="dark"] .pathway-tile.tile-accent.active .tile-desc {
  color: #fde68a !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"].active .tile-kum,
[data-theme="dark"] .pathway-tile.tile-accent.active .tile-kum {
  color: #fde68a !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="lompat-lektor-kepala"].active .tile-arrow {
  color: #fbbf24 !important;
}

[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"].active,
[data-theme="dark"] .pathway-tile.tile-purple.active {
  background: linear-gradient(165deg, #3b2454 0%, #2d1942 100%) !important;
  border: 2px solid #c084fc !important;
  box-shadow: 0 0 0 1px #c084fc, 0 8px 24px -4px rgba(168, 85, 247, 0.45) !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"].active .tile-title {
  color: #ffffff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"].active .tile-desc {
  color: #e9d5ff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"].active .tile-kum {
  color: #e9d5ff !important;
}
[data-theme="dark"] .pathway-tile[data-target-mode="guru-besar"].active .tile-arrow {
  color: #c084fc !important;
}

/* Dark Mode Deadline Strip */
[data-theme="dark"] .deadline-strip {
  background: #171d2b !important;
  border-top: 1px solid #243049 !important;
  border-left: 4px solid var(--amber) !important;
}
[data-theme="dark"] .deadline-left {
  color: #fef3c7 !important;
}
[data-theme="dark"] .deadline-left strong {
  color: #ffffff !important;
}
[data-theme="dark"] .deadline-icon {
  color: #fbbf24 !important;
}
[data-theme="dark"] .deadline-status-pill {
  background: rgba(251, 191, 36, 0.18) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: #fef08a !important;
}

/* Dark Mode Badges, Inputs & Checklist (Brightened & High Contrast) */
[data-theme="dark"] .check-item {
  background: #222d42 !important;
  border-color: #334460 !important;
}
[data-theme="dark"] .check-item:hover {
  background: #28364e !important;
  border-color: #475a7c !important;
}
[data-theme="dark"] .custom-checkbox {
  background: #1e293b;
  border-color: #475569;
}
[data-theme="dark"] .check-input:checked ~ .check-info .check-title {
  color: #94a3b8 !important;
}

[data-theme="dark"] .badge-teal {
  background: rgba(45, 212, 191, 0.22) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

[data-theme="dark"] .auth-pin-box {
  background: var(--bg-card-subtle) !important;
  border-color: var(--border-light) !important;
}

[data-theme="dark"] .special-checkbox-card {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}
[data-theme="dark"] .checkbox-text-desc {
  color: #a7f3d0 !important;
}
[data-theme="dark"] .checkbox-text-desc strong {
  color: #ecfdf5 !important;
}

[data-theme="dark"] .btn-edit-row:hover {
  color: #c7d2fe !important;
  background-color: rgba(129, 140, 248, 0.2) !important;
}

[data-theme="dark"] .btn-delete-row:hover {
  color: #fb7185 !important;
  background-color: rgba(225, 29, 72, 0.2) !important;
}

/* Dark Mode Donut Chart & Stepper Rule Box */
[data-theme="dark"] .ring-bg {
  stroke: #334155 !important;
}

[data-theme="dark"] .node-rule-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--border-light) !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] .pathway-tile:hover {
  border-color: var(--primary) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .btn-secondary {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light) !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .conversion-badge {
  background: rgba(129, 140, 248, 0.2) !important;
  color: #c7d2fe !important;
  box-shadow: none !important;
}

[data-theme="dark"] .conversion-metric-box {
  background: var(--bg-card-subtle) !important;
  border-color: var(--border-light) !important;
}

/* ==========================================================================
   HALAMAN UTAMA: PORTAL MASUK & REGISTRASI DOSEN (Landing & Auth Portal)
   Didesain kompak dan proporsional (Tanpa Scroll / No-Scroll Viewport)
   ========================================================================== */
body.auth-portal-open,
body:has(#pageAuthPortal:not([hidden])) {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.auth-portal-open.login-view-active,
body:has(#pageAuthPortal:not([hidden]) #viewPortalLogin:not([hidden])) {
  overflow: hidden !important;
}

body.auth-portal-open.login-view-active #pageAuthPortal,
body:has(#pageAuthPortal:not([hidden]) #viewPortalLogin:not([hidden])) #pageAuthPortal {
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

/* Jika tampilan registrasi terbuka, izinkan gulir halus jika form melebihi layar */
body.auth-portal-open.register-view-active,
body:has(#pageAuthPortal:not([hidden]) #viewPortalRegister:not([hidden])) {
  overflow-y: auto !important;
  max-height: none !important;
}

body.auth-portal-open.register-view-active #pageAuthPortal,
body:has(#pageAuthPortal:not([hidden]) #viewPortalRegister:not([hidden])) #pageAuthPortal {
  overflow-y: auto !important;
  max-height: none !important;
  height: auto !important;
  min-height: 100vh !important;
}

.auth-portal-page {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(150deg, #eef2f6 0%, #f1f5f9 50%, #e2e8f0 100%);
  position: relative;
  transition: opacity 220ms ease;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="dark"] .auth-portal-page {
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #131b2e 60%, #0f172a 100%);
}

.auth-portal-container {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Tombol Mode Gelap/Terang Diposisikan Absolut di Pojok Kanan Atas agar Tidak Memakan Tinggi Vertikal */
.portal-top-bar {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
}

.portal-hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.portal-hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

.auth-card-main {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.65rem;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

[data-theme="dark"] .auth-card-main {
  background: #1e293b;
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Penyesuaian Proporsi Lebih Besar & Mewah untuk Kartu Login Tanpa Scroll */
#viewPortalLogin.auth-card-main {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.14), 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  padding: 2.1rem 2.6rem;
  border-radius: var(--radius-2xl, 1.25rem);
  gap: 1.15rem;
}

[data-theme="dark"] #viewPortalLogin.auth-card-main {
  background: #1e293b;
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#viewPortalLogin .auth-card-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.35rem;
}

#viewPortalLogin .auth-header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#viewPortalLogin .auth-header-icon-box svg {
  width: 22px;
  height: 22px;
}

#viewPortalLogin .auth-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#viewPortalLogin .auth-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}

#viewPortalLogin .auth-card-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

#viewPortalLogin .auth-form-fields {
  gap: 1rem !important;
}

#viewPortalLogin .portal-label {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

#viewPortalLogin .text-input {
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 0.72rem 1.05rem;
  font-size: 0.96rem;
  min-height: 46px;
  border-radius: var(--radius-lg);
  transition: all 180ms ease;
}

#viewPortalLogin .text-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
}

[data-theme="dark"] #viewPortalLogin .text-input {
  background-color: #131b2e !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #viewPortalLogin .text-input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

#viewPortalLogin .btn-portal-action {
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  font-size: 1.02rem;
  min-height: 48px;
  border-radius: var(--radius-lg);
}

#viewPortalLogin .portal-switch-prompt {
  font-size: 0.86rem;
  padding-top: 0.95rem;
  gap: 0.55rem;
}

#viewPortalLogin .link-switch-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  min-height: 38px;
}

@media (max-height: 720px) {
  .auth-portal-page {
    padding: 0.45rem 1rem;
  }
  .auth-portal-container {
    max-width: 500px;
    gap: 0.65rem;
  }
  .portal-hero-title {
    font-size: 1.35rem;
  }
  .portal-hero-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  #viewPortalLogin.auth-card-main {
    padding: 1.25rem 1.75rem;
    gap: 0.75rem;
  }
  #viewPortalLogin .text-input {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
  }
  #viewPortalLogin .btn-portal-action {
    min-height: 42px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }
}

/* Halaman / Kartu Autentikasi Mandiri (Terpisah Sempurna) */
.auth-view-card {
  display: none;
}

.auth-view-card.active {
  display: flex !important;
  animation: portalFadeIn 240ms ease both;
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 0.2rem;
}

.auth-header-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-header-icon-box svg {
  width: 18px;
  height: 18px;
}

.auth-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.auth-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem !important;
}

@keyframes portalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.portal-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.2rem;
}

.auth-portal-page .text-input {
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
  border-radius: var(--radius-md);
  min-height: 38px;
}

.auth-error-msg {
  color: #e11d48;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

[data-theme="dark"] .auth-error-msg {
  color: #fb7185;
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(225, 29, 72, 0.35);
}

.btn-portal-action {
  width: 100%;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.15rem;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.22);
}

[data-theme="dark"] .btn-portal-action {
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
}

.portal-switch-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.link-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: auto;
  min-height: 32px;
  transition: all 180ms ease;
}

.link-switch {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 150ms ease;
  display: inline;
}

.link-switch:hover {
  color: var(--primary-hover);
}

[data-theme="dark"] .link-switch {
  color: #818cf8;
}

[data-theme="dark"] .link-switch:hover {
  color: #a5b4fc;
}

/* Explicit Dark Theme Input Overrides */
[data-theme="dark"] .text-input,
[data-theme="dark"] select.text-input,
[data-theme="dark"] input.text-input {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] select.text-input option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .text-input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25) !important;
}

.auth-demo-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  line-height: 1.35;
}
.auth-demo-hint strong {
  color: var(--primary);
}
[data-theme="dark"] .auth-demo-hint {
  background: rgba(30, 41, 59, 0.4);
  border-color: var(--border-light);
  color: var(--text-muted);
}
[data-theme="dark"] .auth-demo-hint strong {
  color: #a5b4fc;
}

/* Penyesuaian Kompak Kartu Registrasi agar Tidak Melewati Batas Layar */
#viewPortalRegister.auth-card-main {
  max-width: 520px;
  padding: 1.15rem 1.5rem;
  gap: 0.55rem;
}
#viewPortalRegister .modal-form {
  gap: 0.55rem;
}
#viewPortalRegister .form-field {
  margin-bottom: 0;
}
#viewPortalRegister .form-row-2 {
  gap: 0.6rem;
}
#viewPortalRegister label {
  font-size: 0.74rem;
  margin-bottom: 0.15rem;
}
#viewPortalRegister .modal-footer-actions {
  margin-top: 0.55rem;
}
#viewPortalRegister .modal-footer-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  min-height: 36px;
}


/* ==========================================================================
   HALAMAN PROFIL DOSEN (TAMPILAN MODERN DUA KOLOM DENGAN AKSEN PASTEL)
   ========================================================================== */
.profile-view-pane {
  width: 100%;
}

.profile-page-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Kolom Kiri: Sidebar Profil & Utilitas */
.profile-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Kolom Kanan: Formulir Identitas & Keamanan */
.profile-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Desain Kartu Pastel Berkarakter */
.profile-card-pastel {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: transform 180ms var(--ease-smooth), box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
  overflow: hidden;
}

/* 1. Kartu Identitas Profil (Pastel Lavender/Indigo) */
.profile-card-identity {
  background: linear-gradient(170deg, #f8faff 0%, #eef2ff 100%);
  border: 1.5px solid #c7d2fe;
  box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.08);
}
[data-theme="dark"] .profile-card-identity {
  background: linear-gradient(170deg, #13192b 0%, #171c35 100%);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

.profile-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
[data-theme="dark"] .profile-avatar-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 1.65rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(55, 48, 163, 0.28);
}

.profile-identity-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.profile-page-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.profile-page-email {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.profile-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.summary-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-light);
}
.summary-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-meta-item .meta-label {
  color: var(--text-subtle);
  font-weight: 600;
  flex-shrink: 0;
}
[data-theme="dark"] .summary-meta-item .meta-label {
  color: #94a3b8;
}

.summary-meta-item .meta-val {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* 2. Kartu Cadangan Mandiri (Pastel Emerald) */
.profile-card-backup {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #f4fbf7 0%, #e6f7ef 100%);
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.08);
}
[data-theme="dark"] .profile-card-backup {
  background: linear-gradient(170deg, #0e1e19 0%, #112822 100%);
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

.profile-card-backup .card-header-compact,
.profile-card-session .card-header-compact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.profile-card-backup .card-icon-bubble,
.profile-card-session .card-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card-backup .card-icon-bubble svg,
.profile-card-session .card-icon-bubble svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0;
}

.card-header-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title-compact {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.card-subtitle-compact {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.profile-backup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-backup-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.52rem 0.85rem;
  min-height: 36px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  transition: all 160ms var(--ease-smooth);
}
.btn-backup-action svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-shrink: 0;
}
.btn-backup-action:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-soft);
  transform: translateY(-1px);
}
.btn-backup-action:active {
  transform: scale(0.98);
}

/* 3. Kartu Sesi Akun (Pastel Rose / Slate) - Ringkas & Proporsional */
.profile-card-session {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #fff7ed 0%, #fef2f2 100%);
  border: 1.5px solid #fecdd3;
  box-shadow: 0 4px 16px -2px rgba(244, 63, 94, 0.06);
}
[data-theme="dark"] .profile-card-session {
  background: linear-gradient(170deg, #181114 0%, #1a1016 100%);
  border-color: rgba(251, 113, 133, 0.25);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

.btn-logout-danger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.52rem 0.85rem;
  min-height: 36px;
  border-radius: var(--radius-md);
  font-size: 0.81rem;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.08);
  border: 1.5px solid rgba(225, 29, 72, 0.28);
  color: #e11d48;
  cursor: pointer;
  transition: all 160ms var(--ease-smooth);
  margin-top: 0.2rem;
}
.btn-logout-danger svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex-shrink: 0;
}
[data-theme="dark"] .btn-logout-danger {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fb7185;
}
.btn-logout-danger:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}
.btn-logout-danger:active {
  transform: scale(0.98);
}

/* 4. Kartu Formulir Identitas (Pastel Slate / Blue) */
.profile-card-form {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 4px 18px -2px rgba(59, 130, 246, 0.06);
  padding: 1.6rem 1.85rem;
}
[data-theme="dark"] .profile-card-form {
  background: #111827;
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

/* 5. Kartu Keamanan (Pastel Amber) */
.profile-card-security {
  background: linear-gradient(170deg, #fffdf8 0%, #fffbf0 100%);
  border: 1.5px solid #fef3c7;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.06);
  padding: 1.6rem 1.85rem;
}
[data-theme="dark"] .profile-card-security {
  background: linear-gradient(170deg, #181510 0%, #1b1612 100%);
  border-color: rgba(251, 191, 36, 0.22);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4);
}

/* Header Kartu Profil Utama dengan Divider & Alignment Presisi */
.profile-card-form .card-header,
.profile-card-security .card-header {
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .profile-card-form .card-header,
[data-theme="dark"] .profile-card-security .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Elemen Judul dengan Bubble Ikon */
.card-title-with-bubble {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}
.card-title-with-bubble .card-icon-bubble {
  margin-top: 2px;
  flex-shrink: 0;
}
.card-title-with-bubble .card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}
.card-title-with-bubble .card-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
[data-theme="dark"] .card-title-with-bubble .card-subtitle {
  color: #94a3b8;
}

.card-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-bubble svg {
  width: 20px;
  height: 20px;
}

.bubble-indigo {
  background: #eef2ff;
  color: #4f46e5;
  border: 1.5px solid #c7d2fe;
}
[data-theme="dark"] .bubble-indigo {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.35);
}

.bubble-emerald {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
}
[data-theme="dark"] .bubble-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

.bubble-amber {
  background: #fffbeb;
  color: #d97706;
  border: 1.5px solid #fde68a;
}
[data-theme="dark"] .bubble-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.bubble-rose {
  background: #fff1f2;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
}
[data-theme="dark"] .bubble-rose {
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.35);
}

/* Formulir Profil & Footer Tombol */
.profile-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}
[data-theme="dark"] .profile-form-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.btn-save-profile,
.btn-update-pass {
  padding: 0.75rem 1.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.btn-update-pass {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* Responsive Mobile Layout */
@media (max-width: 1024px) {
  .modern-tabs-nav { grid-template-columns: repeat(3, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .career-stepper { grid-template-columns: repeat(2, 1fr); }
  .tridharma-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-categories-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding: 0.75rem 0.5rem 2.5rem; }
  .modern-tabs-nav { grid-template-columns: 1fr; }
  .profile-layout { padding: 1.25rem 1.1rem; }
  .profile-name { font-size: 1.15rem; }
  .career-stepper { grid-template-columns: 1fr; }
  .tridharma-cards-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .bkd-header-actions { flex-direction: column; align-items: stretch; }
  .bkd-status-bar-box { flex-direction: column; align-items: flex-start; }
  .modal-card { padding: 1.25rem 1rem; }
  .conversion-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   1. APP TOP HEADER & UNIFIED TAB NAVIGATION (Row 1)
   ========================================================================== */
.app-top-header {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0.4rem 0.65rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

[data-theme="dark"] .app-top-header {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.top-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav-tabs::-webkit-scrollbar {
  display: none;
}

.top-nav-tabs .tab-button {
  width: auto;
  padding: 0.42rem 0.56rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  outline: none !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.top-nav-tabs .tab-button:focus,
.top-nav-tabs .tab-button:focus-visible {
  outline: none !important;
}

.top-nav-tabs .tab-button:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  transform: translateY(-1px);
}

.top-nav-tabs .tab-button:active {
  transform: translateY(0);
}

.top-nav-tabs .tab-button.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(55, 48, 163, 0.28) !important;
}

[data-theme="dark"] .top-nav-tabs .tab-button.active {
  background-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.38) !important;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding-left: 0.5rem;
  border-left: 1.5px solid var(--border-light);
}

/* ==========================================================================
   2. ACTION BAR STRIP: CATAT KINERJA BARU & TARGET WAKTU (Row 2)
   ========================================================================== */
.action-bar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.35rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.06);
  width: 100%;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

[data-theme="dark"] .action-bar-strip {
  background: linear-gradient(135deg, #1e293b 0%, rgba(59, 130, 246, 0.22) 100%);
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.action-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.action-bar-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action-catat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  box-shadow: 0 4px 14px -2px rgba(55, 48, 163, 0.3);
  transition: transform 180ms var(--ease-smooth), box-shadow 180ms ease, background-color 180ms ease;
}

.btn-action-catat:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(55, 48, 163, 0.45);
}

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

@media (max-width: 1080px) {
  .top-nav-bar {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .top-nav-tabs {
    order: 1;
    flex: 1 1 100%;
    width: 100%;
    padding: 0.2rem 0.1rem;
  }
  .top-nav-actions {
    order: 2;
    border-left: none;
    margin-left: auto;
    padding-left: 0;
  }
  .action-bar-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .action-bar-text {
    white-space: normal;
  }
  .btn-action-catat {
    justify-content: center;
    width: 100%;
  }
}


/* Styling Profil sebagai ikon bulat di jejeran dark mode & exit */
.top-nav-actions .btn-icon-nav {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: var(--radius-full) !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.top-nav-actions .btn-icon-nav:focus,
.top-nav-actions .btn-icon-nav:focus-visible {
  outline: none !important;
}

.top-nav-actions .btn-icon-nav svg {
  width: 17px;
  height: 17px;
}

.top-nav-actions .btn-icon-nav.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4) !important;
}

[data-theme="dark"] .top-nav-actions .btn-icon-nav.active {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5) !important;
}


/* Smooth Scrolling & Responsive Transitions */
body {
  -webkit-overflow-scrolling: touch;
}

.auth-portal-page.page-enter-active {
  animation: pageEnterSmooth 240ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: opacity;
}

.portal-form-pane.active,
.portal-form-pane.page-enter-active {
  animation: pageEnterSmooth 220ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
  will-change: opacity;
}

/* Floating Toast Notification (Non-blocking feedback without popups) */
.app-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
  z-index: 10000;
}

[data-theme="dark"] .app-toast {
  background: #1e293b;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
}

.app-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.app-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Cloud Synchronization Pill Badge */
.cloud-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 180ms ease;
  line-height: 1.2;
}

[data-theme="dark"] .cloud-sync-pill {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.cloud-sync-pill .cloud-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.cloud-sync-pill.syncing {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
  color: #3b82f6;
}

[data-theme="dark"] .cloud-sync-pill.syncing {
  color: #60a5fa;
}

.cloud-sync-pill.syncing .cloud-sync-dot {
  animation: pulseSyncDot 1s infinite alternate;
}

.cloud-sync-pill.offline {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  color: #64748b;
}

[data-theme="dark"] .cloud-sync-pill.offline {
  color: #94a3b8;
}

@keyframes pulseSyncDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}


/* ==========================================================================
   LAB BRAINSTORMING RISET & PUBLIKASI ILMIAH (Sesuai Keilmuan Profil Dosen)
   ========================================================================== */
.research-lab-hero {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .research-lab-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.research-lab-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.research-lab-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.research-lab-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.5;
}

.research-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.research-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.research-profile-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.research-profile-card .prof-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.research-profile-card .prof-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.research-profile-card .prof-sub {
  font-size: 0.76rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* ==========================================================================
   RESEARCH LAB TOOLBAR (REFINED 3-TIER ARCHITECTURE)
   ========================================================================== */
.research-toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

[data-theme="dark"] .research-toolbar-card {
  background: #182235;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Tier 1: Search Box & Actions Row */
.research-toolbar-main-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.research-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.research-search-box input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.3rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

[data-theme="dark"] .research-search-box input {
  background: #131c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

.research-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .research-search-box input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

.research-search-box svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.research-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-toolbar-action {
  height: 38px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
  box-sizing: border-box;
}

.btn-toolbar-action svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

#btnRandomizeIdeas {
  background: rgba(99, 102, 241, 0.1);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  color: #6366f1;
}

[data-theme="dark"] #btnRandomizeIdeas {
  background: rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
}

#btnRandomizeIdeas:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  transform: translateY(-1px);
}

#btnResetResearchFilters {
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  color: var(--text-muted);
}

[data-theme="dark"] #btnResetResearchFilters {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

#btnResetResearchFilters:hover {
  background: var(--bg-card-subtle);
  border-color: var(--text-main);
  color: var(--text-main);
  transform: translateY(-1px);
}

[data-theme="dark"] #btnResetResearchFilters:hover {
  border-color: #818cf8;
  color: #ffffff;
}

/* Tier 2: Two Symmetrical Dropdowns Grid */
.research-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

@media (max-width: 768px) {
  .research-toolbar-main-row {
    flex-direction: column;
    align-items: stretch;
  }
  .research-dropdown-grid {
    grid-template-columns: 1fr;
  }
}

.research-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.research-select-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.research-select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  color-scheme: light dark;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

[data-theme="dark"] .research-select {
  background: #131c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  color-scheme: dark !important;
}

.research-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .research-select:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

/* Global Select Options Dark / Light Fix */
select option,
.research-select option,
.form-select option,
.clean-select option,
.filter-select option,
select.text-input option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 0.55rem 0.85rem;
}

[data-theme="dark"] select option,
[data-theme="dark"] .research-select option,
[data-theme="dark"] .form-select option,
[data-theme="dark"] .clean-select option,
[data-theme="dark"] .filter-select option,
[data-theme="dark"] select.text-input option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* Modal Form Input & Textarea Elements */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  font-family: inherit;
  box-sizing: border-box;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #182235 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  color-scheme: dark !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
  background: #1c273d !important;
}

/* Table Clean Select in Saved Ideas Vault */
.clean-select {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color 150ms ease;
}

[data-theme="dark"] .clean-select {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  color-scheme: dark !important;
}

.clean-select:focus {
  border-color: var(--primary);
}

/* Tier 3: Cluster Filter Pills Section */
.research-cluster-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

[data-theme="dark"] .research-cluster-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.research-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cluster-section-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cluster-active-hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--primary-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .cluster-active-hint {
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}

.research-cluster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.cluster-pill-btn {
  padding: 0.38rem 0.8rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

[data-theme="dark"] .cluster-pill-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.cluster-pill-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: var(--bg-card-subtle);
  transform: translateY(-1px);
}

[data-theme="dark"] .cluster-pill-btn:hover {
  background: #27354f;
  border-color: #818cf8;
  color: #ffffff;
}

.cluster-pill-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .cluster-pill-btn.active {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

/* Grid & Cards */
.research-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.research-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.research-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.research-card-cluster-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .research-card-cluster-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.research-card-kum-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

[data-theme="dark"] .research-card-kum-badge {
  color: #34d399;
}

.research-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.research-card-title-en {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.research-gap-box {
  background: var(--bg-main);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.research-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.research-tag {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.research-target-journal {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.research-details-box {
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-main);
}

.research-details-box h5 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--accent-primary);
}

.research-details-box ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.research-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}

.btn-card-action {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  border: 1px solid var(--border-soft);
  background: var(--bg-main);
  color: var(--text-main);
}

.btn-card-action:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-card-action.primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-card-action.primary:hover {
  opacity: 0.9;
}

/* Vault / Saved Ideas Section */
.research-vault-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.research-vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.85rem;
}

/* Trigger button inside Roadmap Pilar 2 & Card 3 */
.pilar-brainstorm-cta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-soft);
}

.btn-brainstorm-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #0284c7;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-brainstorm-trigger {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-brainstorm-trigger:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.25));
  border-color: #0284c7;
  transform: translateY(-1px);
}

.btn-brainstorm-trigger.secondary {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

[data-theme="dark"] .btn-brainstorm-trigger.secondary {
  color: #34d399;
}

.btn-brainstorm-trigger.secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #059669;
}


/* ==========================================================================
   iOS GLASSMORPHISM / LIQUID GLASS DESIGN SYSTEM (Light & Dark Mode)
   ========================================================================== */
:root {
  --ios-glass-bg: rgba(255, 255, 255, 0.68);
  --ios-glass-bg-strong: rgba(255, 255, 255, 0.80);
  --ios-glass-bg-subtle: rgba(255, 255, 255, 0.46);
  --ios-glass-border: rgba(255, 255, 255, 0.78);
  --ios-glass-border-subtle: rgba(148, 163, 184, 0.24);
  --ios-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --ios-glass-shadow: 0 12px 34px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  --ios-glass-blur: blur(22px) saturate(185%);
}

[data-theme="dark"] {
  --ios-glass-bg: rgba(18, 26, 44, 0.56);
  --ios-glass-bg-strong: rgba(20, 29, 49, 0.72);
  --ios-glass-bg-subtle: rgba(30, 41, 66, 0.40);
  --ios-glass-border: rgba(255, 255, 255, 0.13);
  --ios-glass-border-subtle: rgba(255, 255, 255, 0.09);
  --ios-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --ios-glass-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.52), 0 4px 14px -4px rgba(0, 0, 0, 0.35);
  --ios-glass-blur: blur(24px) saturate(180%);
}

/* 1. Ambient iOS Mesh Canvas (Memberi Kedalaman di Balik Kaca Buram) */
body {
  background-color: #ebf0f9;
  background-image:
    radial-gradient(at 12% 10%, rgba(99, 102, 241, 0.16) 0px, transparent 48%),
    radial-gradient(at 88% 16%, rgba(14, 165, 233, 0.14) 0px, transparent 46%),
    radial-gradient(at 78% 85%, rgba(16, 185, 129, 0.12) 0px, transparent 48%),
    radial-gradient(at 18% 82%, rgba(139, 92, 246, 0.11) 0px, transparent 46%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-color: #070b15;
  background-image:
    radial-gradient(at 14% 8%, rgba(79, 70, 229, 0.24) 0px, transparent 48%),
    radial-gradient(at 86% 18%, rgba(14, 165, 233, 0.16) 0px, transparent 46%),
    radial-gradient(at 82% 84%, rgba(16, 185, 129, 0.14) 0px, transparent 48%),
    radial-gradient(at 16% 86%, rgba(124, 58, 237, 0.16) 0px, transparent 46%);
  background-attachment: fixed;
}

/* 2. Portal Masuk & Registrasi iOS Glass */
.auth-portal-page {
  background: transparent !important;
}

.auth-portal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card-main {
  background: var(--ios-glass-bg-strong) !important;
  backdrop-filter: var(--ios-glass-blur);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 26px !important;
  box-shadow: var(--ios-glass-highlight), var(--ios-glass-shadow) !important;
  width: 100%;
}

.auth-header-icon-box {
  background: rgba(99, 102, 241, 0.14) !important;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 3. Bilah Navigasi & Action Bar Strip iOS Floating Pill */
.app-top-header {
  background: var(--ios-glass-bg) !important;
  backdrop-filter: var(--ios-glass-blur);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 9999px !important;
  box-shadow: var(--ios-glass-highlight), var(--ios-glass-shadow) !important;
  padding: 0.45rem 0.7rem !important;
}

.top-nav-tabs .tab-button {
  border-radius: 9999px !important;
  padding: 0.46rem 0.85rem !important;
}

.top-nav-tabs .tab-button.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(99, 102, 241, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -4px rgba(79, 70, 229, 0.45) !important;
}

[data-theme="dark"] .top-nav-tabs .tab-button.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(129, 140, 248, 0.85)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 18px -4px rgba(99, 102, 241, 0.5) !important;
}

.btn-icon-nav,
.btn-theme-toggle {
  background: var(--ios-glass-bg-subtle) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--ios-glass-border) !important;
  box-shadow: var(--ios-glass-highlight);
}

.action-bar-strip {
  background: var(--ios-glass-bg) !important;
  backdrop-filter: var(--ios-glass-blur);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--ios-glass-highlight), var(--ios-glass-shadow) !important;
}

/* 4. Kartu Utama Dasbor, Metrik, Pathway, Konten, & Lab Riset */
.pathway-control-card,
.metric-card,
.content-card,
.pilar-card,
.profile-card,
.research-lab-hero,
.research-toolbar-card,
.research-idea-card,
.saved-idea-card,
.modal-card,
.celebration-card,
.app-footer {
  background: var(--ios-glass-bg) !important;
  backdrop-filter: var(--ios-glass-blur);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--ios-glass-highlight), var(--ios-glass-shadow) !important;
}

.modal-card,
.celebration-card {
  background: var(--ios-glass-bg-strong) !important;
  border-radius: 26px !important;
}

.app-footer {
  padding: 0.9rem 1.35rem !important;
  border-radius: 20px !important;
  margin-top: 0.5rem;
}

.footer-tag {
  background: var(--ios-glass-bg-subtle) !important;
  border: 1px solid var(--ios-glass-border-subtle) !important;
  border-radius: 9999px !important;
  padding: 0.25rem 0.65rem;
}

.modal-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Nested Glass Cards / Tiles */
.pathway-tile,
.special-req-card,
.stepper-node,
.category-block,
.check-item,
.research-profile-card,
.bkd-status-bar-box,
.setting-switch-card,
.conversion-metric-box {
  background: var(--ios-glass-bg-subtle) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--ios-glass-border-subtle) !important;
  border-radius: 18px !important;
  box-shadow: var(--ios-glass-highlight) !important;
}

.pathway-tile.active {
  background: rgba(99, 102, 241, 0.14) !important;
  border-color: rgba(99, 102, 241, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 22px -6px rgba(99, 102, 241, 0.35) !important;
}

[data-theme="dark"] .pathway-tile.active {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: rgba(129, 140, 248, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px -6px rgba(99, 102, 241, 0.42) !important;
}

/* 5. Input, Select, & Tombol Pill iOS */
.text-input,
.research-search-box input,
.research-select,
.form-input,
.form-select,
.filter-select {
  background: var(--ios-glass-bg-subtle) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ios-glass-border-subtle) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .text-input,
[data-theme="dark"] .research-search-box input,
[data-theme="dark"] .research-select,
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .filter-select {
  background: rgba(15, 23, 42, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.btn-primary,
.btn-action-catat {
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.94), rgba(99, 102, 241, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -6px rgba(79, 70, 229, 0.48) !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-action-catat {
  background: linear-gradient(135deg, rgba(114, 118, 246, 0.92), rgba(99, 102, 241, 0.9)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -6px rgba(99, 102, 241, 0.55) !important;
}

.btn-secondary,
.cluster-pill-btn,
.btn-toolbar-action {
  background: var(--ios-glass-bg-subtle) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ios-glass-border-subtle) !important;
  border-radius: 9999px !important;
  box-shadow: var(--ios-glass-highlight);
}

.cluster-pill-btn.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(99, 102, 241, 0.9)) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Tabel dalam Glass Frame */
.table-frame {
  background: var(--ios-glass-bg-subtle);
  border: 1px solid var(--ios-glass-border-subtle);
  border-radius: 16px;
}

.clean-table th {
  background: rgba(148, 163, 184, 0.08) !important;
}

[data-theme="dark"] .clean-table tbody tr {
  background: transparent !important;
}

@media (max-width: 1080px) {
  .app-top-header {
    border-radius: 22px !important;
  }
}
