/* App.css */

/* Toast */
.toast-wrap {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy-900);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--cyan-400);
  max-width: 330px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn .25s ease;
}

.toast.ok {
  border-left-color: #22C55E;
}

.toast.bad {
  border-left-color: #F87171;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media(max-width:640px) {
  .toast-wrap {
    left: 14px;
    right: 14px;
  }

  .toast {
    max-width: none;
  }
}

/* Podium Ranking */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 40px;
}

.podium-item {
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  color: #fff;
  background: #145E9D;
  box-shadow: 0 8px 24px rgba(20, 94, 157, .22);
  position: relative;
}

.podium-item.p1 {
  padding: 40px 22px;
  background: #145E9D;
  box-shadow: 0 14px 34px rgba(20, 94, 157, .35);
  order: 2;
}

.podium-item.p2 {
  order: 1;
}

.podium-item.p3 {
  order: 3;
}

.podium-medal {
  font-size: 1.9rem;
  line-height: 1;
}

.podium-photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 14px auto 12px auto;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, .4);
}

.podium-item h4 {
  color: #fff;
  font-size: 1.02rem;
  margin: 0 0 2px 0;
}

.podium-meta {
  font-size: .8rem;
  color: rgba(255, 255, 255, .75);
}

.podium-score {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-top: 14px;
}

.podium-score span {
  font-size: .75rem;
  font-weight: 500;
  display: block;
  color: rgba(255, 255, 255, .75);
}

@media(max-width:768px) {
  .podium {
    grid-template-columns: 1fr;
  }

  .podium-item.p1 {
    order: -1;
    padding: 30px 22px;
  }
}

/* Baris Ranking */
.rank-row {
  display: grid;
  grid-template-columns: 56px 1.7fr repeat(4, .8fr) .9fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  font-size: .9rem;
}

.rank-row.head {
  background: var(--grey-50);
  box-shadow: none;
  font-size: .76rem;
  color: var(--grey-500);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rank-no {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 105, 170, .1);
  color: var(--blue-600);
  font-weight: 800;
  font-family: var(--font-display);
}

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

.rank-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.rank-person strong {
  display: block;
  font-size: .92rem;
  color: var(--navy-900);
}

.rank-person span {
  font-size: .78rem;
  color: var(--grey-500);
}

.rank-score {
  font-weight: 800;
  color: var(--blue-600);
  font-family: var(--font-display);
}

@media(max-width:900px) {
  .rank-row {
    grid-template-columns: 52px 1fr auto;
  }

  .rank-row .rank-col {
    display: none;
  }

  .rank-row.head {
    display: none;
  }
}

/* Peringkat Saya */
.rank-saya-label {
  margin: 22px 0 10px 0;
  font-weight: 600;
  color: var(--blue-600);
}

.rank-row--saya {
  border: 2px solid var(--blue-600);
  background: rgba(23, 105, 170, .04);
}

/* Tab Sederhana */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--grey-300);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
  cursor: pointer;
}

.tab-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.tab-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Kodex Dashboard */
.kodex-tip {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1.5px dashed var(--cyan-400);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.kodex-tip img {
  width: 76px;
  flex-shrink: 0;
  animation: floaty 4.5s ease-in-out infinite;
}

.kodex-tip strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-display);
  margin-bottom: 2px;
}

.kodex-tip p {
  margin: 0;
  font-size: .86rem;
  color: var(--grey-500);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* List Notifikasi / Verifikasi */
.notif-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.notif-item.unread {
  border-color: rgba(56, 189, 248, .5);
  background: rgba(56, 189, 248, .05);
}

.notif-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 105, 170, .1);
  color: var(--blue-600);
}

.notif-item strong {
  display: block;
  font-size: .92rem;
  color: var(--navy-900);
}

.notif-item p {
  margin: 3px 0 0 0;
  font-size: .85rem;
  color: var(--grey-500);
}

.notif-time {
  font-size: .75rem;
  color: var(--grey-500);
  margin-top: 6px;
  display: block;
}

.notif-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Profil Dashboard */
.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 26px;
  background: var(--grad-primary);
  box-shadow: var(--shadow-md);
}

.profile-head .p-photo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, .35);
  flex-shrink: 0;
}

.profile-head h2 {
  color: #fff;
  margin: 0 0 4px 0;
  font-size: 1.3rem;
}

.profile-head p {
  color: rgba(255, 255, 255, .8);
  margin: 0;
  font-size: .88rem;
}

.profile-head .spacer {
  margin-left: auto;
}

dl.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 26px;
  margin: 0;
}

dl.kv dt {
  font-size: .75rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: .03em;
}

dl.kv dd {
  margin: 4px 0 0 0;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-900);
}

@media(max-width:640px) {
  dl.kv {
    grid-template-columns: 1fr;
  }
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  background: var(--grey-50);
  color: var(--grey-500);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
}

.dropzone:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.dropzone strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 4px;
}

/* Kartu Akreditasi */
.akreditasi-hero {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-lg);
}

.akreditasi-seal {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
}

.akreditasi-seal b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}

.akreditasi-seal span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  margin-top: 6px;
}

.akreditasi-hero h2 {
  color: #fff;
}

.akreditasi-hero p {
  color: rgba(255, 255, 255, .82);
}

.akreditasi-hero dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0 0 0;
}

.akreditasi-hero dt {
  font-size: .75rem;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.akreditasi-hero dd {
  margin: 4px 0 0 0;
  font-weight: 600;
  font-size: .95rem;
}

@media(max-width:900px) {
  .akreditasi-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .akreditasi-hero dl {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--grey-100);
  padding-left: 28px;
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--cyan-400);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-600);
  font-size: .9rem;
}

.timeline-item h4 {
  margin: 4px 0 4px 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  font-size: .88rem;
}

/* Empty State Publik */
.empty-public {
  text-align: center;
  padding: 50px 20px;
  color: var(--grey-500);
  grid-column: 1 / -1;
}

.empty-public img {
  width: 120px;
  margin: 0 auto 16px auto;
}
/* Empty State */
.empty-public{
  grid-column:1 / -1;
  text-align:center;
  padding:48px 24px;
  background:var(--grey-50);
  border:1.5px dashed var(--grey-300);
  border-radius:22px;
}
.empty-public img{ width:110px; margin:0 auto 16px auto; display:block; opacity:.9; }
.empty-public p{ margin:0; color:var(--grey-500); font-size:.92rem; }
.empty-public i{ font-size:2rem; color:var(--grey-300); display:block; margin-bottom:12px; }

.form-error{ color:#DC2626; font-size:.8rem; margin-top:6px; display:block; }
.alert-error{
  background:#FEE2E2; color:#B91C1C; border-radius:12px;
  padding:14px 16px; font-size:.86rem; margin-bottom:18px;
}
.alert-error ul{ margin:6px 0 0 18px; list-style:disc; }

a.tab-btn{ text-decoration:none; }
.btn.disabled{ opacity:.45; pointer-events:none; }

.form-group input.input-terkunci,
.form-group input.input-terkunci:disabled {
  background: var(--grey-50);
  color: var(--navy-900);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 1;
}

.tabel-publik-wrap {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabel-publik {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.tabel-publik th {
  text-align: left;
  padding: 14px 18px;
  background: var(--grey-50);
  color: var(--grey-500);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabel-publik td {
  padding: 14px 18px;
  border-top: 1px solid var(--grey-100);
  vertical-align: middle;
  color: var(--grey-700);
}

.tabel-publik td strong {
  color: var(--navy-900);
}

.tabel-publik .sub {
  display: block;
  font-size: .78rem;
  color: var(--grey-500);
}

.tabel-publik .label-kriteria {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 105, 170, .1);
  color: var(--blue-600);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.tabel-publik .label-kriteria.non {
  background: rgba(56, 189, 248, .15);
  color: #0284C7;
}

.tabel-publik .poin {
  font-weight: 800;
  color: var(--blue-600);
  font-family: var(--font-display);
  white-space: nowrap;
}

.tabel-publik .empty-row td {
  text-align: center;
  color: var(--grey-500);
  padding: 30px 18px;
}

.tabel-publik-info {
  font-size: .85rem;
  color: var(--grey-500);
  margin: 14px 0 0 0;
}

@media(max-width:768px) {
  .tabel-publik {
    font-size: .84rem;
  }

  .tabel-publik th,
  .tabel-publik td {
    padding: 12px 14px;
  }

  .tabel-publik .kolom-opsional {
    display: none;
  }
}

.brand-badge.brand-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

.brand-badge.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter .3s ease;
}

.navbar:not(.is-solid) .brand-badge.brand-logo img,
.footer .brand-badge.brand-logo img,
.sidebar-brand .brand-badge.brand-logo img {
  filter: brightness(0) invert(1);
}

@media (min-width: 901px) {
  .nav-menu { gap: 2px; }
  .nav-link { padding: 12px 12px; white-space: nowrap; }
  .navbar .brand-text,
  .nav-actions .lang-switch { white-space: nowrap; }
}

@media (min-width: 901px) and (max-width: 1260px) {
  .nav-actions .lang-switch { display: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .navbar.mobile-open .nav-menu {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px; box-shadow: var(--shadow-lg); gap: 2px; border-radius: 0 0 16px 16px;
  }
  .navbar.mobile-open .nav-link { color: var(--navy-900) !important; }
  .navbar.mobile-open .dropdown {
    position: static; opacity: 1; visibility: visible; box-shadow: none; transform: none; display: none; padding-left: 14px;
  }
  .navbar.mobile-open .nav-item.open .dropdown { display: block; }
}

.kodetik-reader { position: relative; }
.kodetik-bar {
  position: sticky; top: 72px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px;
  padding: 8px 10px; background: #fff; border: 1px solid var(--grey-100);
  border-radius: var(--radius-md) var(--radius-md) 0 0; box-shadow: var(--shadow-sm);
}
.kodetik-grup { display: flex; align-items: center; gap: 2px; }
.kodetik-hal {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; white-space: nowrap;
  font-size: .85rem; color: var(--grey-500); background: var(--grey-50); border-radius: 8px;
}
.kodetik-hal input {
  width: 46px; padding: 3px 4px; text-align: center; font: inherit; font-weight: 700; color: var(--navy-900);
  border: 1.5px solid var(--grey-300); border-radius: 6px; background: #fff; -moz-appearance: textfield;
}
.kodetik-hal input::-webkit-outer-spin-button, .kodetik-hal input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kodetik-zoom { min-width: 50px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--grey-700); }
.kodetik-alat {
  height: 38px; min-width: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 8px; background: transparent; color: var(--grey-700);
  font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease;
}
.kodetik-alat span { font-size: .82rem; }
.kodetik-alat:hover { background: rgba(23, 105, 170, .1); color: var(--blue-600); }
.kodetik-alat:disabled { opacity: .35; cursor: not-allowed; background: transparent; color: var(--grey-700); }
.kodetik-alat.aktif { background: rgba(23, 105, 170, .1); color: var(--blue-600); }
.kodetik-alat:focus-visible, .kodetik-hal input:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

.kodetik-stage {
  position: relative; overflow: auto; min-height: 75vh;
  padding: 24px; background: linear-gradient(180deg, #74839A 0%, var(--grey-500) 100%);
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-md);
}
.kodetik-halaman { display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: min-content; }
.kodetik-lembar {
  position: relative; flex-shrink: 0; background: #fff; border-radius: 3px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(6, 43, 96, .28); scroll-margin-top: 140px;
}
.kodetik-lembar canvas { display: block; width: 100%; height: 100%; }
.kodetik-lembar:not(.terender)::after {
  content: "Memuat halaman..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--grey-500);
}
.kodetik-nomor {
  position: absolute; right: 10px; bottom: 8px; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; color: var(--grey-500); background: rgba(248, 250, 252, .9);
}
.kodetik-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 60vh; color: #fff; font-size: .9rem; text-align: center;
}
.kodetik-loading img { width: 90px; animation: floaty 4.5s ease-in-out infinite; }
.kodetik-reader.siap .kodetik-loading { display: none; }
.kodetik-petunjuk { margin-top: 12px; }
.kodetik-fallback iframe { width: 100%; border: 0; display: block; background: #fff; border-radius: 3px; }
.kodetik-reader.gagal [data-kodetik-hanya-pdfjs] { display: none; }

.kodetik-reader:fullscreen { background: var(--grey-500); overflow: hidden; display: flex; flex-direction: column; }
.kodetik-reader:fullscreen .kodetik-bar { position: static; border-radius: 0; }
.kodetik-reader:fullscreen .kodetik-stage { flex: 1; min-height: 0; border-radius: 0; box-shadow: none; }
.kodetik-reader:fullscreen .kodetik-petunjuk { display: none; }

@media (max-width: 900px) {
  .kodetik-alat span { display: none; }
}
@media (max-width: 600px) {
  .kodetik-bar { top: 62px; padding: 6px; justify-content: center; }
  .kodetik-stage { padding: 10px; min-height: 60vh; }
  .kodetik-halaman { gap: 10px; }
  .kodetik-alat { height: 34px; min-width: 34px; padding: 0 8px; font-size: .9rem; }
  .kodetik-zoom { display: none; }
}

.label-kriteria[class*="status-"] {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.label-kriteria.status-aktif { background: #DCFCE7; color: #16A34A; }
.label-kriteria.status-pendidikan { background: rgba(23, 105, 170, .1); color: var(--blue-600); }
.label-kriteria.status-nonaktif { background: var(--grey-100); color: var(--grey-500); }

.kurikulum-semester { margin-bottom: 36px; }
.kurikulum-judul {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  font-size: 1.15rem; margin: 0 0 14px 0; color: var(--navy-900);
}
.kurikulum-judul span { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--grey-500); }
.tabel-publik .tampil-mobile { display: none; }
@media (max-width: 768px) {
  .tabel-publik .tampil-mobile { display: block; }
}

/* Jarak Panel */
.content > .panel + .two-col,
.content > .two-col + .panel,
.content > .two-col + .two-col,
.content > .astats-grid + .panel { margin-top: 26px; }
.content > .two-col > .panel + .panel { margin-top: 0; }

/* Impor CSV */
.impor-box { max-width: 720px; }
.impor-kolom { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.impor-kolom .badge { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; cursor: help; }
.dropzone.seret { border-color: var(--blue-600); color: var(--blue-600); background: rgba(23,105,170,.05); }
.impor-pratinjau { margin-top: 14px; }
.impor-ringkasan {
  border-radius: 12px; padding: 12px 14px; font-size: .84rem; margin-bottom: 12px;
  background: var(--grey-50); color: var(--grey-700); border: 1px solid var(--grey-100);
}
.impor-ringkasan.ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.impor-ringkasan.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.impor-ringkasan.bad { background: #FEE2E2; border-color: #FECACA; color: #B91C1C; }
.impor-ringkasan ul { margin: 6px 0 0 18px; padding: 0; }
.impor-tabel { max-height: 230px; overflow: auto; border: 1px solid var(--grey-100); border-radius: 12px; }
.impor-tabel:empty, .impor-ringkasan.bad + .impor-tabel { display: none; }
.impor-tabel table.data-table { font-size: .8rem; }
.impor-tabel table.data-table td, .impor-tabel table.data-table th { padding: 8px 12px; white-space: nowrap; }
.impor-tabel td.sel-kosong { background: #FEF2F2; color: #DC2626; }
.impor-opsi { display: flex; flex-direction: column; gap: 8px; }
.impor-opsi label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .86rem; color: var(--grey-700); margin: 0; cursor: pointer; }
.impor-opsi input { width: auto; margin: 0; }
.impor-opsi .form-hint { margin: 0; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.content .panel[id] { scroll-margin-top: 96px; }

.konten-split {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) 2.15fr;
  gap: 44px;
  align-items: start;
}
.konten-split-teks { position: sticky; top: 110px; }
.konten-split-teks h2 { font-size: 1.7rem; margin-bottom: 12px; }
.konten-split-teks > p { font-size: .95rem; margin-bottom: 22px; }
.konten-split .grid-2 { gap: 22px; }

.intro-baris {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
}
.intro-baris h2 { font-size: 1.7rem; margin-bottom: 10px; }
.intro-baris p { font-size: .95rem; margin: 0; }

.ringkas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ringkas-list { display: flex; flex-direction: column; gap: 12px; }
.ringkas-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--grey-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.ringkas-grid .ringkas-item { flex-direction: column; align-items: flex-start; gap: 10px; }
.ringkas-item .benefit-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.05rem; margin: 0; flex-shrink: 0; }
.ringkas-item b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.ringkas-item span { font-size: .8rem; color: var(--grey-500); font-weight: 500; }

.cari-kosong { display: none; }
.cari-kosong.tampil { display: block; }
tr.cari-kosong.tampil { display: table-row; }

.news-card.tanpa-link { cursor: default; }
.news-body .ta-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.fasilitas-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 0; padding: 0; list-style: none; }
.fasilitas-list li {
  font-size: .74rem; font-weight: 600; color: var(--grey-700);
  background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 999px; padding: 4px 10px;
}
.news-photo.ikon-saja {
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 105, 170, .06); color: var(--blue-600); font-size: 2.6rem;
}

@media (max-width: 1024px) {
  .konten-split { grid-template-columns: 1fr; gap: 28px; }
  .konten-split-teks { position: static; }
  .intro-baris { grid-template-columns: 1fr; gap: 22px; }
  .ringkas-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .konten-split .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ringkas-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .ringkas-grid .ringkas-item { padding: 12px; }
  .ringkas-grid .ringkas-item span { font-size: .72rem; }
  .ringkas-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ringkas-list .ringkas-item { padding: 12px; gap: 10px; }
  .ringkas-item b { font-size: 1.2rem; }
  .konten-split-teks h2, .intro-baris h2 { font-size: 1.4rem; }
  .konten-split .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .ringkas-grid { grid-template-columns: 1fr; }
  .ringkas-grid .ringkas-item { flex-direction: row; align-items: center; }
}

/* Penerima Pengumuman */
.penerima-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1.5px solid var(--grey-300);
  border-radius: 10px;
  background: #fff;
  cursor: text;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.penerima-box:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .12);
}
.penerima-input {
  flex: 1 1 200px;
  min-width: 160px;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  padding: 6px 4px !important;
  font-size: .86rem;
  background: transparent;
}
.penerima-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  background: rgba(23, 105, 170, .08);
  border: 1px solid rgba(23, 105, 170, .18);
  color: var(--navy-900);
  font-size: .8rem;
  animation: penerimaMasuk .18s ease;
}
@keyframes penerimaMasuk { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.penerima-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
}
.penerima-teks {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}
.penerima-teks b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.penerima-teks small { color: var(--grey-500); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.penerima-teks em { color: #DC2626; font-size: .72rem; font-style: normal; }
.penerima-hapus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--grey-500);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.penerima-hapus:hover { background: #FEE2E2; color: #DC2626; }
.penerima-saran {
  margin-top: 6px;
  border: 1px solid var(--grey-100);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}
.penerima-opsi {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: .84rem;
  color: var(--navy-900);
}
.penerima-opsi:hover,
.penerima-opsi.aktif { background: var(--grey-50); }
.penerima-opsi.nonaktif { cursor: not-allowed; opacity: .6; }
.penerima-pesan { padding: 10px 12px; font-size: .82rem; color: var(--grey-500); }
.penerima-pesan.bad { color: #DC2626; }
.penerima-info { margin-top: 6px; font-size: .78rem; color: var(--grey-500); }
.penerima-info span { font-weight: 700; color: var(--blue-600); }

@media (max-width: 560px) {
  .penerima-chip { width: 100%; }
  .penerima-teks { flex: 1; }
}

/* Page Hero Foto */
.page-hero.page-hero--foto {
  background-color: #0C3C66;
  background-image:
    linear-gradient(100deg, rgba(12, 60, 102, .88) 12%, rgba(12, 60, 102, .65) 48%, rgba(20, 94, 157, .22) 100%),
    var(--hero-foto, none),
    linear-gradient(135deg, #0C3C66 0%, #145E9D 100%);
  background-size: cover, cover, cover;
  background-position: center, var(--hero-posisi, center), center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .page-hero.page-hero--foto {
    background-image:
      linear-gradient(180deg, rgba(12, 60, 102, .90) 0%, rgba(12, 60, 102, .75) 100%),
      var(--hero-foto, none),
      linear-gradient(135deg, #0C3C66 0%, #145E9D 100%);
  }
}

/* Dialog Konfirmasi */
.ti-konf {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 43, 96, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s ease;
}
.ti-konf.show { opacity: 1; }
.ti-konf-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(6, 43, 96, .16));
  padding: 32px 28px 24px;
  text-align: center;
  transform: translateY(12px) scale(.96);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.ti-konf.show .ti-konf-box { transform: none; }
.ti-konf-ikon {
  --konf-warna: var(--blue-600);
  --konf-latar: rgba(23, 105, 170, .1);
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--konf-warna);
  background: var(--konf-latar);
  box-shadow: 0 0 0 8px var(--konf-latar);
  animation: tiKonfDenyut 1.8s ease-in-out infinite;
}
.ti-konf--bahaya .ti-konf-ikon { --konf-warna: #DC2626; --konf-latar: rgba(220, 38, 38, .1); }
.ti-konf--sukses .ti-konf-ikon { --konf-warna: #16A34A; --konf-latar: rgba(22, 163, 74, .1); }
@keyframes tiKonfDenyut {
  0%, 100% { box-shadow: 0 0 0 8px var(--konf-latar); }
  50% { box-shadow: 0 0 0 14px transparent; }
}
.ti-konf-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.15rem;
  color: var(--navy-900);
}
.ti-konf-box p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--grey-700, #334155);
  overflow-wrap: anywhere;
}
.ti-konf-catatan {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--grey-50);
  color: var(--grey-500);
  font-size: .8rem;
  text-align: left;
}
.ti-konf-catatan i { margin-top: 2px; color: var(--blue-600); }
.ti-konf--bahaya .ti-konf-catatan { background: #FEF2F2; color: #B91C1C; }
.ti-konf--bahaya .ti-konf-catatan i { color: #DC2626; }
.ti-konf-aksi {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.ti-konf-aksi .btn { flex: 1; padding: 12px 18px; cursor: pointer; }
.ti-konf-aksi .btn:disabled { opacity: .75; cursor: progress; transform: none; }
.ti-konf-ya { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.ti-konf-ya:hover:not(:disabled) { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ti-konf--bahaya .ti-konf-ya { background: #DC2626; }
.ti-konf--bahaya .ti-konf-ya:hover:not(:disabled) { background: #B91C1C; }
.ti-konf--sukses .ti-konf-ya { background: #16A34A; }
.ti-konf--sukses .ti-konf-ya:hover:not(:disabled) { background: #15803D; }
.ti-konf-aksi .btn:focus-visible { outline: 3px solid rgba(23, 105, 170, .35); outline-offset: 2px; }
body.ti-konf-terbuka { overflow: hidden; }
@media (max-width: 480px) {
  .ti-konf-box { padding: 28px 20px 20px; }
  .ti-konf-aksi { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .ti-konf, .ti-konf-box { transition: none; }
  .ti-konf-ikon { animation: none; }
}

/* Navbar publik */
.nav-link.nav-induk { cursor: pointer; user-select: none; }
.nav-link.nav-induk:focus-visible { outline: 3px solid rgba(56, 189, 248, .45); outline-offset: 2px; }
@media (min-width: 1101px) {
  .nav-item:focus-within .dropdown,
  .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item.open .nav-link i.chev { transform: rotate(180deg); }
}

/* Media sosial */
.footer-social a.belum-diatur,
.social-item.belum-diatur { cursor: default; }

/* Bagan Struktur Organisasi */
.org-chart-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; padding-bottom: 8px; }
.org-chart { display: flex; flex-direction: column; align-items: center; min-width: max-content; margin: 0 auto; }
.org-level { display: flex; justify-content: center; align-items: stretch; }
.org-node { position: relative; width: 250px; padding: 0 12px; }
.org-node.ada-atas { padding-top: 30px; }
.org-node.ada-bawah { padding-bottom: 26px; }
.org-node .person-card { height: 100%; }
.org-node .person-photo { aspect-ratio: 1/1; border-radius: 14px; margin: 0 auto 12px auto; width: 100%; max-width: 200px; }

.org-link-up, .org-link-down { position: absolute; left: 0; right: 0; pointer-events: none; }
.org-link-up { top: 0; height: 30px; }
.org-link-down { bottom: 0; height: 26px; }
.org-link-up::before, .org-link-down::before {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(23, 105, 170, .45);
}
.org-link-up::before { top: 0; }
.org-link-down::before { bottom: 0; }
.org-link-up::after, .org-link-down::after {
  content: ''; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: rgba(23, 105, 170, .45);
}
.org-link-up::after { top: 0; bottom: 8px; }
.org-link-down::after { top: 0; bottom: 0; }
.org-link-up i {
  position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  color: var(--blue-600); font-size: 1.15rem; line-height: 1;
}
.org-level > .org-node:first-child > .org-link-up::before,
.org-level > .org-node:first-child > .org-link-down::before { left: 50%; }
.org-level > .org-node:last-child > .org-link-up::before,
.org-level > .org-node:last-child > .org-link-down::before { right: 50%; }
.org-level--tunggal .org-link-up::before,
.org-level--tunggal .org-link-down::before { display: none; }
.org-connector { width: 2px; height: 22px; background: rgba(23, 105, 170, .45); }

/* Struktur: Koordinator & Garis Koordinasi */
.org-node--pimpinan { width: 260px; padding: 0; }
.org-koordinasi { display: flex; justify-content: center; align-items: stretch; }
.org-node--koord { width: 180px; padding: 30px 7px 0; }
.org-node--koord .person-body h4 { font-size: .9rem; }
.org-node--kosong.ada-garis::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 2px dashed rgba(23, 105, 170, .55);
}
.org-link-koord { position: absolute; left: 0; right: 0; top: 0; height: 30px; pointer-events: none; }
.org-link-koord::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 2px dashed rgba(23, 105, 170, .55);
}
.org-link-koord::after {
  content: ''; position: absolute; top: 0; bottom: 8px; left: 50%; margin-left: -1px; border-left: 2px dashed rgba(23, 105, 170, .55);
}
.org-link-koord i {
  position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  color: var(--blue-600); font-size: 1.15rem; line-height: 1;
}
.org-node--koord.ujung-kiri > .org-link-koord::before { left: 50%; }
.org-node--koord.ujung-kanan > .org-link-koord::before { right: 50%; }
.org-batang { position: relative; width: 40px; flex: 0 0 40px; }
.org-batang::before {
  content: ''; position: absolute; top: 0; left: 50%; right: 50%; border-top: 2px dashed rgba(23, 105, 170, .55);
}
.org-batang.ada-kiri::before { left: 0; }
.org-batang.ada-kanan::before { right: 0; }
.org-batang::after {
  content: ''; position: absolute; top: 0; height: 2px; left: 50%; width: 2px; margin-left: -1px; background: rgba(23, 105, 170, .45);
}
.org-batang.lanjut::after { height: auto; bottom: 0; }
.org-foto-grup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--grey-50); }
.org-foto-grup span { width: 64px; height: 64px; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.org-nama-grup { font-size: .88rem; margin-bottom: 2px; }
.org-legenda { display: inline-block; width: 34px; vertical-align: middle; border-top: 2px solid rgba(23, 105, 170, .55); }
.org-legenda--koordinasi { border-top-style: dashed; }

@media (max-width: 768px) {
  .org-chart { min-width: 0; width: 100%; }
  .org-level { flex-direction: column; align-items: center; width: 100%; }
  .org-node { width: min(300px, 100%); padding: 0; }
  .org-node.ada-bawah { padding-bottom: 0; }
  .org-level > .org-node + .org-node:not(.ada-atas) { margin-top: 20px; }
  .org-link-up::before, .org-link-down, .org-connector { display: none; }
  .org-koordinasi { flex-direction: column; align-items: center; width: 100%; gap: 20px; margin-top: 20px; }
  .org-node--pimpinan, .org-node--koord { width: min(300px, 100%); padding: 0; }
  .org-node--kosong, .org-batang, .org-link-koord { display: none; }
}

/* Prospek Lulusan */
.ikon-saran { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ikon-saran .btn-icon { width: 32px; height: 32px; }

/* Profil Saya Mahasiswa */
.aksi-ikon { display: inline-flex; gap: 8px; align-items: center; }

.form-grid.baris-organisasi { grid-template-columns: 1fr 1fr auto; align-items: end; margin-bottom: 14px; }
@media (max-width: 900px) { .form-grid.baris-organisasi { grid-template-columns: 1fr; } }

/* Prospek Lulusan */
.ikon-terpilih { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--grey-300); border-radius: 10px; background: var(--grey-50); }
.ikon-saran .btn-icon.ikon-dipilih { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* Tampilan HP */
img, video, iframe { max-width: 100%; }

@media (max-width: 900px) {
  .hero-actions, .cta-actions { flex-wrap: wrap; }
  .grid-2 > *, .two-col > *, .content > *, .kodex-grid > *, .social-grid > *, .video-grid > * { min-width: 0; }
  .astats-grid[style] { grid-template-columns: repeat(2, 1fr) !important; }
  .toolbar > div, .toolbar form { width: 100%; }
  .toolbar .search-mini, .toolbar .search-mini input { width: 100%; }
  .toolbar form select { flex: 1 1 auto; }
  table.data-table { min-width: 620px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 640px) {
  .navbar .brand-text .b2 { font-size: .62rem; line-height: 1.25; max-width: 112px; }
  .nav-actions { gap: 8px; }
  .tabel-publik { min-width: 560px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .topbar { gap: 12px; }
  .topbar h1 { font-size: 1.1rem; }
  .topbar .subtitle { display: none; }
  .admin-profile > div:not(.admin-avatar) { display: none; }
  .panel { padding: 20px 16px; }
  .panel-head .btn, .toolbar .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 380px) {
  .navbar .brand-text .b2 { display: none; }
  .panel code { white-space: normal; word-break: break-word; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 8px 14px; }
  .navbar .container { padding: 0 14px; }
}

@media (max-width: 340px) {
  .navbar .brand-text { display: none; }
}

/* Tombol Bahasa */
.lang-switch a { color: inherit; opacity: .6; transition: opacity .2s; }
.lang-switch a:hover, .lang-switch a.aktif { opacity: 1; }
.lang-switch a.aktif { text-decoration: underline; text-underline-offset: 3px; }
.nav-bahasa { display: none; }
@media (max-width: 900px) {
  .navbar.mobile-open .nav-bahasa { display: flex; gap: 6px; padding: 8px 4px 0; border-top: 1px solid var(--grey-100); margin-top: 6px; }
  .navbar.mobile-open .nav-bahasa .nav-link { padding: 8px 14px; opacity: .55; }
  .navbar.mobile-open .nav-bahasa .nav-link.aktif { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
}
.navbar:not(.is-solid) .lang-switch { color: #fff; }

/* Foto profil bulat: gambar tidak merembes ke area border */
.podium-photo, .rank-photo, .p-photo, .table-thumb, .modal-photo, .person-photo, .testi-photo, .foto-kelola-pratinjau {
  background-repeat: no-repeat;
  background-clip: padding-box;
}

/* ===================== Hero Beranda v2 ===================== */
.hero-v2 { height: 94vh; min-height: 660px; }

/* Overlay lebih ringan agar foto/video tampak jelas, kartu teks yang menjaga keterbacaan */
.hero-v2 .hero-slide::after {
  background:
    linear-gradient(180deg, rgba(8, 36, 66, .55) 0%, rgba(8, 36, 66, 0) 22%),
    linear-gradient(100deg, rgba(12, 60, 102, .62) 0%, rgba(12, 60, 102, .30) 48%, rgba(20, 94, 157, .08) 100%);
}
.hero-v2 .hero-slide--desain2::after {
  background:
    linear-gradient(180deg, rgba(8, 36, 66, .50) 0%, rgba(8, 36, 66, 0) 22%),
    linear-gradient(95deg, rgba(12, 60, 102, 0) 0%, rgba(12, 60, 102, .08) 40%, rgba(12, 60, 102, .38) 62%, rgba(12, 60, 102, .18) 100%);
}

/* Kartu Liquid Glass (gaya Apple): bening, blur kuat, kilau di tepi */
.hero-v2 .hero-content {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  max-width: 760px;
  margin-top: 56px;
  padding: 36px 44px 36px;
  border-radius: 34px;
  /* Kaca jernih: tint sangat tipis, blur ringan agar latar tetap terlihat jelas */
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(160deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 50%, rgba(6, 28, 56, .10) 100%);
  backdrop-filter: blur(5px) saturate(160%) brightness(1.06) contrast(1.02);
  -webkit-backdrop-filter: blur(5px) saturate(160%) brightness(1.06) contrast(1.02);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .7),
    inset 1.5px 0 0 rgba(255, 255, 255, .25),
    inset 0 -1.5px 0 rgba(255, 255, 255, .18),
    inset 0 0 22px rgba(255, 255, 255, .10),
    0 24px 60px -28px rgba(2, 18, 40, .55);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .6s ease .1s, transform .6s cubic-bezier(.22, .61, .36, 1) .1s;
}
.hero-v2 .hero-slide.active .hero-content { opacity: 1; transform: none; }
/* Tepi kaca berkilau (border gradasi) */
.hero-v2 .hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .25) 24%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .28) 78%, rgba(255, 255, 255, .8) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 1;
}
/* Kilau cahaya lembut di sudut kanan bawah */
.hero-v2 .hero-content::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, .22) 0%, rgba(125, 211, 252, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-v2 .hero-content h1,
.hero-v2 .hero-content p { text-shadow: 0 1px 2px rgba(2, 18, 40, .45), 0 4px 22px rgba(2, 18, 40, .55); }
.hero-v2 .hero-content .eyebrow {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  backdrop-filter: none;
}
.hero-v2 .hero-content .eyebrow i { color: #BAE6FD; }
.hero-v2 .hero-actions .btn-ghost-white {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-v2 .hero-actions .btn-ghost-white:hover { background: rgba(255, 255, 255, .26); }
.hero-v2 .hero-content h1,
.hero-v2 .hero-slide--desain2 .hero-content h1 {
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  line-height: 1.14;
  text-wrap: balance;
  letter-spacing: -.01em;
  margin-bottom: .45em;
  text-shadow: 0 4px 24px rgba(4, 24, 48, .35);
}
.hero-v2 .hero-slide--desain2 .hero-content h1 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.hero-v2 .hero-sorot {
  background: linear-gradient(90deg, #BAE6FD 0%, #7DD3FC 45%, #E0F2FE 100%);
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(2, 18, 40, .35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v2 .hero-content p,
.hero-v2 .hero-slide--desain2 .hero-content p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
  max-width: 480px;
  text-shadow: none;
}
.hero-v2 .hero-actions { margin-top: 26px; flex-wrap: wrap; gap: 12px; }
.hero-v2 .hero-content p { max-width: 640px; }
.hero-v2 .hero-actions .btn { padding: 14px 22px; font-size: .95rem; border-radius: 14px; }
.hero-v2 .hero-actions .btn-primary { box-shadow: 0 12px 28px -10px rgba(56, 189, 248, .75); }
.hero-v2 .hero-actions .btn-primary i { transition: transform .25s ease; }
.hero-v2 .hero-actions .btn-primary:hover i { transform: translateX(4px); }

/* Slide 2: kartu di ruang kosong antara foto mahasiswa dan Kodex */
.hero-v2 .hero-slide--desain2 { align-items: center; }
.hero-v2 .hero-slide--desain2 .hero-content {
  width: min(620px, 48%);
  max-width: 620px;
  /* Di layar lebar kotak digeser ke tengah ruang kosong antara foto mahasiswa dan Kodex */
  margin-right: clamp(0px, calc((100vw - 1440px) * .3), 170px);
  margin-top: 0;
  margin-bottom: 56px;
  padding: 32px 40px;
}

/* Indikator berlabel dalam kapsul kaca */
.hero-v2 .hero-indicators {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 78px;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 30px -14px rgba(2, 18, 40, .6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.hero-v2 .hero-indicators button {
  width: auto;
  height: auto;
  padding: 9px 16px 11px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-v2 .hero-indicators button:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.hero-v2 .hero-indicators button.active { background: rgba(255, 255, 255, .24); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.hero-v2 .hero-indikator-teks b { color: var(--cyan-300); margin-right: 4px; font-weight: 800; }
.hero-v2 .hero-indicator-fill {
  top: auto;
  bottom: 4px;
  left: 16px;
  right: auto;
  height: 2px;
  max-width: calc(100% - 32px);
}
@keyframes heroIndicatorProgressV2 { from { width: 0; } to { width: calc(100% - 32px); } }
.hero-v2 .hero-indicators button.active .hero-indicator-fill { animation-name: heroIndicatorProgressV2; }

.hero-v2 .hero-nav-btn { width: 52px; height: 52px; opacity: .7; background: rgba(8, 36, 66, .35); }

/* Akses cepat di bawah hero */
.hero-akses-wrap { position: relative; z-index: 6; margin-top: -56px; }
.hero-akses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -20px rgba(12, 60, 102, .35);
  border: 1px solid #E5EDF6;
}
.hero-akses-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--navy-900);
  transition: background .2s ease, transform .2s ease;
}
.hero-akses-item:hover { background: #F0F6FC; transform: translateY(-2px); }
.hero-akses-ikon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #145E9D, #38BDF8);
  box-shadow: 0 8px 18px -8px rgba(20, 94, 157, .8);
}
.hero-akses-item strong { display: block; font-size: .95rem; line-height: 1.25; }
.hero-akses-item small { display: block; font-size: .78rem; color: var(--grey-500, #64748B); margin-top: 2px; }

@media (max-width: 1024px) {
  .hero-v2 .hero-content { max-width: 560px; padding: 30px 32px; }
  .hero-v2 .hero-slide--desain2 .hero-content { width: min(500px, 56%); margin-right: 16px; }
  .hero-akses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-v2 { height: 100vh; min-height: 700px; padding-top: 0; }
  .hero-v2 .hero-content h1, .hero-v2 .hero-slide--desain2 .hero-content h1 { font-size: 1.85rem; }
  .hero-v2 .hero-content p { font-size: .98rem; }
  .hero-v2 .hero-slide { align-items: flex-end; padding-bottom: 150px; }
  .hero-v2 .hero-content,
  .hero-v2 .hero-slide--desain2 .hero-content { width: 100%; max-width: none; margin: 0; padding: 26px 24px 24px; border-radius: 22px; }
  .hero-v2 .hero-indicators { bottom: 86px; }
  .hero-v2 .hero-indikator-teks { font-size: 0; }
  .hero-v2 .hero-indikator-teks b { font-size: .8rem; margin: 0; }
  .hero-v2 .hero-nav-btn { display: none; }
  .hero-akses-wrap { margin-top: -48px; }
  .hero-akses { gap: 6px; padding: 8px; }
  .hero-akses-item { padding: 10px; gap: 10px; }
  .hero-akses-ikon { width: 40px; height: 40px; }
  .hero-akses-item small { display: none; }
}

@media (prefers-reduced-motion: reduce) { .hero-v2 .hero-content { transition: none; transform: none; } }

/* Interaksi tombol hero: berubah warna saat kursor diarahkan */
.hero-v2 .hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .3s ease, color .3s ease, transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.hero-v2 .hero-actions .btn-primary {
  background: linear-gradient(135deg, #145E9D 0%, #1170B8 100%) !important;
}
.hero-v2 .hero-actions .btn-primary:hover,
.hero-v2 .hero-actions .btn-primary:focus-visible {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(56, 189, 248, .9), 0 0 0 3px rgba(125, 211, 252, .35);
}
/* Kilatan cahaya melintas saat hover */
.hero-v2 .hero-actions .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: -1;
}
.hero-v2 .hero-actions .btn:hover::after { animation: heroKilauTombol .7s ease; }
@keyframes heroKilauTombol { from { left: -75%; } to { left: 130%; } }
.hero-v2 .hero-actions .btn-ghost-white:hover,
.hero-v2 .hero-actions .btn-ghost-white:focus-visible {
  background: #fff !important;
  color: #0C3C66 !important;
  border-color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -12px rgba(255, 255, 255, .55);
}
.hero-v2 .hero-actions .btn:active { transform: translateY(-1px) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .hero-v2 .hero-actions .btn:hover::after { animation: none; }
}

/* Lebar area konten halaman publik diatur di style.css (--container: 1520px) */

/* ==========================================================
   Interaksi tambahan (dicatat di docs/catatan-interaksi.md)
   ========================================================== */

/* Efek riak saat tombol diklik (publik & dashboard) */
.ti-riak-wadah { overflow: hidden; isolation: isolate; }
.ti-riak {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .22;
  transform: scale(0);
  pointer-events: none;
  z-index: -1;
  animation: tiRiak .6s ease-out forwards;
}
@keyframes tiRiak { to { transform: scale(1); opacity: 0; } }

/* Tombol sedang memproses (setelah form dikirim) */
.btn.ti-memuat { position: relative; pointer-events: none; opacity: .85; }
.btn.ti-memuat > * { visibility: hidden; }
.btn.ti-memuat { color: transparent !important; }
.btn.ti-memuat::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: tiPutar .7s linear infinite;
}
.btn-outline.ti-memuat::before, .btn-light.ti-memuat::before { border-color: rgba(20, 94, 157, .25); border-top-color: #145E9D; }
@keyframes tiPutar { to { transform: rotate(360deg); } }

/* Fokus keyboard lebih jelas */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .7);
  outline-offset: 3px;
}

/* Bilah progres baca (halaman publik) */
.ti-progres-baca {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #145E9D, #38BDF8, #7DD3FC);
  box-shadow: 0 0 10px rgba(56, 189, 248, .6);
  pointer-events: none;
}

/* Tombol kembali ke atas dengan cincin progres */
.back-to-top { isolation: isolate; }
.back-to-top::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#38BDF8 var(--progres, 0deg), rgba(20, 94, 157, .15) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  z-index: -1;
}
.back-to-top:hover { transform: translateY(-4px) !important; box-shadow: 0 14px 30px -10px rgba(56, 189, 248, .8); }

/* Sorotan cahaya mengikuti kursor pada kartu */
.ti-sorot { position: relative; }
.ti-sorot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--sorot-x, 50%) var(--sorot-y, 50%), rgba(56, 189, 248, .14), transparent 65%);
  z-index: 1;
}
.ti-sorot:hover::after { opacity: 1; }
.ti-sorot-gelap.ti-sorot::after {
  background:
    radial-gradient(320px circle at var(--sorot-x, 50%) var(--sorot-y, 50%), rgba(125, 211, 252, .30), rgba(56, 189, 248, .10) 45%, transparent 70%);
  mix-blend-mode: screen;
}
.hero-akses-item.ti-sorot::after { background: radial-gradient(180px circle at var(--sorot-x, 50%) var(--sorot-y, 50%), rgba(56, 189, 248, .16), transparent 70%); }

/* Kartu: foto membesar halus & ikon bergerak saat hover */
.card .news-photo, .card .person-photo, .card img { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.card:hover .news-photo:not(.ikon-saja), .card:hover .person-photo { transform: scale(1.05); }
.news-card { overflow: hidden; }
body:has(#navbar) .card [class*="icon"]:not(.btn) i, .benefit-card i { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
body:has(#navbar) .card:hover [class*="icon"]:not(.btn) i, .benefit-card:hover i { transform: scale(1.15) rotate(-6deg); }
.hero-akses-ikon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.hero-akses-item:hover .hero-akses-ikon { transform: scale(1.08) rotate(-6deg); }

/* Baris tabel & daftar ranking menyala saat disorot */
.tabel-publik tbody tr { transition: background .2s ease; }
.tabel-publik tbody tr:not(.empty-row):hover { background: #F0F7FF; }
.rank-row:not(.head) { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.rank-row:not(.head):hover { transform: translateX(4px); box-shadow: 0 10px 24px -14px rgba(12, 60, 102, .35); }

/* Tombol umum halaman publik: perubahan warna lebih terasa */
body:has(#navbar) .btn-primary:hover { background: linear-gradient(135deg, #0EA5E9, #38BDF8) !important; box-shadow: 0 12px 26px -10px rgba(56, 189, 248, .85); }
body:has(#navbar) .btn-outline:hover { background: #145E9D !important; color: #fff !important; }

/* Lightbox foto */
.ti-bisa-diperbesar { cursor: zoom-in; }
.ti-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  background: rgba(4, 18, 36, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
}
.ti-lightbox.buka { opacity: 1; visibility: visible; }
.ti-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.94);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  cursor: default;
}
.ti-lightbox.buka img { transform: scale(1); }
.ti-lightbox-judul { color: #E0F2FE; font-weight: 600; text-align: center; }
.ti-lightbox-tutup {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.ti-lightbox-tutup:hover { background: rgba(255, 255, 255, .25); }

@media (prefers-reduced-motion: reduce) {
  .ti-riak, .btn.ti-memuat::before { animation: none; }
  .card:hover .news-photo, .card:hover .person-photo, .rank-row:not(.head):hover { transform: none; }
}

/* Sembunyikan ikon mata bawaan browser (Edge/IE) agar tidak dobel
   dengan tombol mata milik website */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input::-ms-reveal,
input::-ms-clear { display: none; width: 0; height: 0; }

/* Konten sedang dimuat ulang oleh filter (tanpa refresh halaman) */
.ti-filter-memuat { opacity: .5; pointer-events: none; transition: opacity .2s ease; }
.ti-filter-memuat .filter-bar { opacity: 1; }
