/* SIWISUDA · Universitas Almuslim — tema hijau segar */
:root {
  --g-900: #0b3d24;
  --g-800: #0f5132;
  --g-700: #15803d;
  --g-600: #16a34a;
  --g-500: #22c55e;
  --g-300: #86efac;
  --g-200: #bbf7d0;
  --g-100: #dcfce7;
  --g-50: #f0fdf4;
  --lime: #a3e635;
  --bg: #f5faf6;
  --card: #ffffff;
  --ink: #12261b;
  --muted: #5b6f63;
  --line: #e2ece5;
  --amber: #b45309; --amber-bg: #fef3c7;
  --red: #b91c1c; --red-bg: #fee2e2;
  --gray: #475569; --gray-bg: #eef2f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 60, 36, .06), 0 8px 24px rgba(16, 60, 36, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55;
}
a { color: var(--g-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
.ti { font-size: 1.15em; vertical-align: -.15em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .span-2 { grid-column: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none !important;
  transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--g-600); color: #fff; box-shadow: 0 4px 14px rgba(22, 163, 74, .28); }
.btn-primary:hover { background: var(--g-700); }
.btn-light { background: var(--g-50); color: var(--g-800); border-color: var(--g-200); }
.btn-light:hover { background: var(--g-100); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #fecaca; }
.btn-white { background: #fff; color: var(--g-800); }
.btn-white:hover { background: var(--g-50); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; box-shadow: none; }
form.inline { display: inline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-green { background: var(--g-100); color: var(--g-800); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 16px; }
.card-tight { padding: 0; overflow: hidden; }
.card-tight .card-head { padding: 18px 22px 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; color: #2b4136; }
.field label .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink); transition: border .15s, box-shadow .15s;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.input[disabled] { background: #f6f8f7; color: var(--muted); }
.field.has-error .input { border-color: #f87171; }
.field .err { color: var(--red); font-size: 12px; }
.ro { padding: 11px 13px; border: 1.5px dashed var(--g-200); border-radius: 10px; background: var(--g-50); font-weight: 600; min-height: 46px; word-break: break-word; }
.field label .ti-lock, .ro + .hint, .form-section .ti-lock { color: var(--g-600); }
.hint { color: var(--muted); font-size: 12px; }
.form-section { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--g-700); font-weight: 700; margin: 8px 0 14px; display: flex; align-items: center; gap: 8px; }
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.input-icon { position: relative; }
.input-icon .ti { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input, .filters .input-icon .input { padding-left: 40px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--g-600); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 84px; right: 18px; z-index: 100; max-width: 380px; display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  border-left: 5px solid var(--g-500); animation: slideIn .3s ease; font-size: 14px;
}
.toast-error { border-left-color: #ef4444; }
.toast .ti { font-size: 20px; color: var(--g-600); }
.toast-error .ti { color: #ef4444; }
.toast button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
@keyframes slideIn { from { transform: translateY(-12px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (max-width: 640px) { .toast { left: 12px; right: 12px; max-width: none; } }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; align-items: flex-start; }
.alert .ti { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-green { background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-200); }
.alert-amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p:last-child { margin: 0; }

/* =============== LANDING =============== */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 250, 246, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner, .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 22px;
  background: linear-gradient(135deg, var(--g-500), var(--g-700)); box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.brand b { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { display: block; font-size: 12px; color: var(--muted); margin-top: -2px; }
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0 96px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(163, 230, 53, .35), transparent 60%),
              linear-gradient(140deg, #0f5132 0%, #15803d 55%, #22c55e 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--lime); }
.hero p.lead { font-size: 17px; opacity: .92; max-width: 540px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(163, 230, 53, .3); }
.pill.closed .dot { background: #fca5a5; box-shadow: 0 0 0 4px rgba(252, 165, 165, .3); }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.hero-card h3 { font-size: 18px; }
.info-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-list .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: 12px; }
.section { padding: 70px 0; }
.section-title { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-title .eyebrow { color: var(--g-600); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section-title h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.steps { counter-reset: s; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.step-card .num { width: 44px; height: 44px; border-radius: 12px; background: var(--g-100); color: var(--g-700); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.step-card h4 { font-size: 16px; }
.step-card p { color: var(--muted); font-size: 14px; margin: 0; }
.step-card .tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; color: var(--g-300); }
.req-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.req-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.req-item .ti { color: var(--g-600); font-size: 22px; }
.req-item b { display: block; font-size: 14px; }
.req-item small { color: var(--muted); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } .req-list { grid-template-columns: 1fr; } }
.cta-band { background: var(--g-800); color: #fff; border-radius: 22px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h3 { font-size: 22px; margin: 0; }
.footer { padding: 28px 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* =============== AUTH =============== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(800px 400px at 100% 0%, rgba(163, 230, 53, .35), transparent 60%), linear-gradient(150deg, #0f5132, #16a34a);
}
.auth-side .brand { color: #fff; }
.auth-side .brand small { color: rgba(255, 255, 255, .75); }
.auth-side h2 { font-size: 34px; font-weight: 800; max-width: 420px; }
.auth-side .cap { position: absolute; right: -40px; bottom: -30px; font-size: 280px; opacity: .08; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box.wide { max-width: 560px; }
.auth-box h1 { font-size: 26px; font-weight: 800; }
.demo-box { margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--g-50); border: 1px dashed var(--g-300); font-size: 13px; }
.demo-box code { background: #fff; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--g-200); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* =============== APP SHELL =============== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex-shrink: 0; background: var(--g-900); color: #d6efe0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 20px 14px 12px;
}
.sidebar .brand { color: #fff; padding: 4px 8px 20px; }
.sidebar .brand small { color: #9cc9ad; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #7fae92; margin: 14px 10px 6px; font-weight: 700; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
.side-nav a { flex-shrink: 0; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfe8d8;
  font-weight: 500; font-size: 14px; text-decoration: none;
}
.side-nav a .ti { font-size: 20px; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: var(--g-600); color: #fff; box-shadow: 0 6px 18px rgba(34, 197, 94, .3); }
.side-nav a .count { margin-left: auto; background: var(--lime); color: var(--g-900); font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.side-user b { display: block; color: #fff; font-size: 13px; line-height: 1.3; }
.side-user small { color: #9cc9ad; font-size: 12px; }
.side-user button { margin-left: auto; background: none; border: 0; color: #cfe8d8; cursor: pointer; font-size: 20px; padding: 4px; border-radius: 8px; }
.side-user button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--g-900); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: rgba(245, 250, 246, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 800; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.top-user { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-user .avatar { width: 36px; height: 36px; font-size: 13px; }
.top-user-info { min-width: 0; text-align: right; line-height: 1.25; }
.top-user-info b { display: block; font-size: 13.5px; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-user-info small { color: var(--muted); font-size: 12px; }
.top-logout { white-space: nowrap; }
.topbar > div:nth-of-type(1) { min-width: 0; }
@media (max-width: 760px) { .top-user-info, .top-user .avatar, .top-logout span { display: none; } .top-logout { padding: 8px 10px; } }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--ink); }
.content { padding: 26px 28px 48px; width: 100%; max-width: none; }
.backdrop { display: none; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topbar { padding: 14px 16px; }
  .content { padding: 18px 16px 40px; }
}

/* ---------- Dashboard ---------- */
.welcome {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; color: #fff; margin-bottom: 22px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(163, 230, 53, .35), transparent 60%), linear-gradient(135deg, #0f5132, #16a34a);
}
.welcome h2 { font-size: 24px; font-weight: 800; }
.welcome p { opacity: .9; margin: 0; }
.welcome .cap { position: absolute; right: 18px; bottom: -28px; font-size: 150px; opacity: .14; }
.welcome .cap-logo { position: absolute; right: 150px; top: 50%; transform: translateY(-50%); width: 120px; opacity: .16; pointer-events: none; }
@media (max-width: 640px) { .welcome .cap-logo { right: 10px; } }
.welcome .row { position: relative; z-index: 1; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat small { color: var(--muted); font-size: 13px; }
.ic-green { background: var(--g-100); color: var(--g-700); }
.ic-amber { background: var(--amber-bg); color: var(--amber); }
.ic-red { background: var(--red-bg); color: var(--red); }
.ic-gray { background: var(--gray-bg); color: var(--gray); }

.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.progress .p-step { text-align: center; position: relative; }
.progress .p-step::before { content: ''; position: absolute; top: 21px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress .p-step:first-child::before { display: none; }
.progress .p-step.done::before, .progress .p-step.current::before { background: var(--g-500); }
.p-dot { position: relative; z-index: 1; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--muted); font-size: 20px; }
.p-step.done .p-dot { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.p-step.current .p-dot { border-color: var(--g-500); color: var(--g-700); box-shadow: 0 0 0 6px rgba(34, 197, 94, .15); }
.p-step.warn .p-dot { border-color: #f87171; color: var(--red); box-shadow: 0 0 0 6px rgba(248, 113, 113, .15); }
.p-step b { display: block; font-size: 13px; }
.p-step small { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .p-step small { display: none; } .p-step b { font-size: 11px; } .p-dot { width: 36px; height: 36px; font-size: 17px; } .progress .p-step::before { top: 17px; } }

.bar { height: 10px; border-radius: 999px; background: var(--g-50); overflow: hidden; border: 1px solid var(--g-100); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--g-500), var(--lime)); border-radius: 999px; }

/* ---------- Berkas list ---------- */
.doc { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doc + .doc { margin-top: 12px; }
.doc.ok { border-color: var(--g-200); background: linear-gradient(0deg, #fff, var(--g-50)); }
.doc.bad { border-color: #fecaca; background: #fffafa; }
.doc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.doc.bad .doc-ic { background: var(--red-bg); color: var(--red); }
.doc-body { flex: 1; min-width: 0; }
.doc-body h4 { font-size: 15px; margin: 0 0 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-file { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; background: var(--g-50); border-radius: 10px; font-size: 13px; flex-wrap: wrap; }
.doc-file a { font-weight: 600; word-break: break-all; }
.doc-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: #991b1b; font-size: 13px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.file-pick { position: relative; overflow: hidden; }
.file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { font-size: 13px; color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .doc { flex-direction: column; } }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #f8fbf9; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafdfb; }
.person { display: flex; gap: 12px; align-items: center; }
.person .avatar { width: 36px; height: 36px; font-size: 13px; background: var(--g-100); color: var(--g-800); }
.person b { display: block; font-size: 14px; }
.person small { color: var(--muted); font-size: 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ti { font-size: 44px; color: var(--g-300); display: block; margin-bottom: 8px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.filters .input { width: auto; min-width: 160px; padding: 9px 12px; }
.filters .grow { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .filters { padding: 14px; } .filters .input, .filters .grow, .filters select { flex: 1 1 100%; min-width: 0; width: 100%; max-width: none !important; } .filters .btn { flex: 1 1 auto; justify-content: center; } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.tabs a.active { background: var(--g-600); border-color: var(--g-600); color: #fff; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

.photo { width: 120px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 3px solid var(--g-100); background: var(--g-50); }
.photo-empty { width: 120px; aspect-ratio: 3/4; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-300); font-size: 40px; border: 2px dashed var(--g-200); }

details.edit { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.edit + details.edit { margin-top: 10px; }
details.edit summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit[open] summary { border-bottom: 1px solid var(--line); }
details.edit .edit-body { padding: 18px; }
.chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
details[open] .chev { transform: rotate(180deg); }

.fak-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; }
.fak-row + .fak-row { margin-top: 12px; }
.fak-row .bar { grid-column: 1 / -1; }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.error-page .code { font-size: 90px; font-weight: 800; color: var(--g-600); line-height: 1; }

/* =============== ANIMASI LATAR (beranda, login/daftar, banner dashboard) =============== */
.bg-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-anim .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; will-change: transform; }
.bg-anim .b1 { width: 420px; height: 420px; background: #a3e635; top: -140px; right: -80px; animation: blob1 18s ease-in-out infinite alternate; }
.bg-anim .b2 { width: 360px; height: 360px; background: #4ade80; bottom: -160px; left: -100px; animation: blob2 22s ease-in-out infinite alternate; }
.bg-anim .b3 { width: 260px; height: 260px; background: #fde047; top: 40%; left: 45%; opacity: .18; animation: blob3 26s ease-in-out infinite alternate; }
@keyframes blob1 { to { transform: translate(-160px, 120px) scale(1.15); } }
@keyframes blob2 { to { transform: translate(180px, -120px) scale(1.2); } }
@keyframes blob3 { 0% { transform: translate(-40%, -40%) scale(.9); } 100% { transform: translate(10%, -10%) scale(1.25); } }
.bg-anim .topi { position: absolute; bottom: -60px; color: #fff; opacity: 0; animation: naik 24s linear infinite; }
@keyframes naik {
  0% { transform: translateY(0) rotate(-12deg); opacity: 0; }
  10% { opacity: .22; }
  50% { transform: translateY(-55vh) rotate(10deg) translateX(18px); }
  85% { opacity: .18; }
  100% { transform: translateY(-115vh) rotate(-8deg) translateX(-12px); opacity: 0; }
}
.bg-anim .konfeti { position: absolute; bottom: -20px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: naik-putar 20s linear infinite; }
.bg-anim .konfeti.k0 { background: #a3e635; }
.bg-anim .konfeti.k1 { background: #fde047; }
.bg-anim .konfeti.k2 { background: #ffffff; }
@keyframes naik-putar {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: .55; }
  100% { transform: translateY(-110vh) rotate(720deg) translateX(40px); opacity: 0; }
}
.bg-anim .kilau { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.7); opacity: 0; animation: kilau 4s ease-in-out infinite; }
@keyframes kilau { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }
.bg-anim.ringan .blob { opacity: .3; }
.bg-anim.ringan .topi { animation-name: naik-ringan; }
@keyframes naik-ringan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .18; } 100% { transform: translateY(-260px) rotate(15deg); opacity: 0; } }
.hero > .container, .auth-side > :not(.bg-anim):not(.cap), .welcome > .row { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bg-anim * { animation: none !important; } .bg-anim .topi, .bg-anim .konfeti { display: none; } }

/* =============== Navigasi halaman (pager) =============== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--line); }
.pager-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-no { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.pager-no:hover { border-color: var(--g-500); color: var(--g-700); }
.pager-no.aktif { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.pager-gap { color: var(--muted); padding: 0 2px; }
@media (max-width: 640px) { .pager { padding: 12px 14px; } .pager-no:not(.aktif) { display: none; } }

/* =============== Tombol tampilkan / sembunyikan password =============== */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap .input { padding-right: 46px; width: 100%; }
.pw-wrap .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-wrap .pw-toggle:hover, .pw-wrap .pw-toggle:focus-visible { background: var(--g-50, #f0fdf4); color: var(--g-700); outline: none; }
.pw-wrap .pw-toggle .ti { position: static; transform: none; font-size: 19px; color: inherit; left: auto; }
.pw-wrap .pw-toggle[aria-pressed="true"] { color: var(--g-700); }
.input-icon > .ti { z-index: 2; pointer-events: none; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* =============== Kartu grup WhatsApp (dashboard mahasiswa) =============== */
.wa-card { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 60%); }
.wa-ic { width: 42px; height: 42px; border-radius: 12px; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 24px; flex: none; }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; justify-content: center; font-weight: 700; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.wa-qr { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wa-qr img { width: 92px; height: 92px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
@media (max-width: 760px) { .wa-qr { display: none; } }
.wa-hp { display: none; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #86efac; color: var(--ink); text-decoration: none; }
.wa-hp b { display: block; font-size: 14.5px; } .wa-hp small { display: block; color: var(--muted); font-size: 12.5px; }
.wa-hp > .ti { margin-left: auto; color: #16a34a; font-size: 20px; }
@media (max-width: 760px) { .wa-hp { display: flex; } .wa-card { display: none; } }
