/* Portal Alumni IKA ITEKES Muhammadiyah Kalbar — palet dari logo */
:root {
  --green: #147F3C;
  --green-dark: #0D5E2C;
  --green-deep: #0A4521;
  --green-soft: #E3F1E7;
  --green-on: #D4EBDB;
  --gold: #F2C200;
  --gold-soft: #FFF4C2;
  --gold-text: #7A6400;
  --ink: #17201A;
  --ink-2: #3C463A;
  --muted: #55604F;
  --nav-muted: #5F6A5A;
  --ground: #F7F6EF;
  --surface: #FFFFFF;
  --line: #E3E0D2;
  --line-2: #EFEDE3;
  --field: #D6D2C2;
  --danger: #B42318;
  --danger-soft: #FDE8E6;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #E9E7DC;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

/* Kerangka aplikasi: penuh di HP, bingkai tengah di layar lebar */
#app {
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--ground);
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  #app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 60px rgba(10,69,33,.12); }
}
.screen { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.screen.has-nav { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
.content { padding: 20px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.xs { font-size: 12px; }

h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 15px; font-weight: 800; }
p { margin: 0; line-height: 1.55; }
.lead { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Top bar */
.topbar { height: 64px; padding: 0 12px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar .title { font-size: 16px; font-weight: 700; }
.topbar.page { padding: 0 20px; }
.topbar.page .title { font-size: 18px; font-weight: 800; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  position: relative; flex-shrink: 0; text-decoration: none;
}
.icon-btn:hover { background: rgba(0,0,0,.04); }
.icon-btn svg { width: 22px; height: 22px; }

.pill { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pill.gold { color: var(--gold-text); background: var(--gold-soft); }
.pill.green { color: var(--green-dark); background: var(--green-soft); }
.pill.gray { color: var(--ink-2); background: var(--line-2); }
.pill.red { color: var(--danger); background: var(--danger-soft); }
.pill svg { width: 14px; height: 14px; }

.progress { height: 4px; margin: 0 24px; background: var(--line); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 8px; transition: width .4s; }

/* Tombol */
.btn {
  height: 54px; border-radius: var(--radius); border: 0; padding: 0 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--field); }
.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green); height: 44px; padding: 0 12px; font-size: 14px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 44px; font-size: 14px; padding: 0 18px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-dashed {
  height: 48px; border-radius: var(--radius); border: 1.5px dashed #9FB8A5; background: transparent;
  color: var(--green); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%;
}
.btn-dashed svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; color: var(--green); cursor: pointer; text-decoration: none; font-size: inherit; }
.link-btn:hover { text-decoration: underline; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; }
.input, select.input, textarea.input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface);
  font-size: 16px; font-weight: 600; color: var(--ink); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; font-weight: 500; resize: vertical; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(20,127,60,.12); }
.input[readonly] { background: var(--line-2); color: var(--ink-2); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,24,.1); }
.hint { font-size: 12px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--danger); font-weight: 600; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.seg {
  height: 48px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.seg svg { width: 18px; height: 18px; }
.seg[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--field); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; font-weight: 700; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }

.option {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 14px;
  border: 1.5px solid var(--field); background: var(--surface); font-size: 14.5px; font-weight: 600; cursor: pointer; line-height: 1.35;
}
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }

.otp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-grid input {
  height: 58px; text-align: center; border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface);
  font-size: 24px; font-weight: 800; min-width: 0; width: 100%;
}
.otp-grid input:focus { outline: none; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(242,194,0,.25); }
.otp-grid input.filled { border-color: var(--green); }
.otp-grid.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Kartu (card) umum */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.card.flat { padding: 4px 16px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-weight: 700; text-align: right; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-icon.green { background: var(--green-soft); color: var(--green); }
.tile-icon.gold { background: var(--gold-soft); color: var(--gold-text); }
.notice { border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.notice.gold { background: var(--gold-soft); color: #4D4000; }
.notice.green { background: var(--green-soft); color: var(--green-deep); }
.notice.red { background: var(--danger-soft); color: #7A1A12; }

/* Welcome */
.hero {
  background: var(--green); border-radius: 0 0 36px 36px; padding: 48px 20px 44px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--gold); border-radius: 0 0 36px 36px; }
.emblem-xl {
  width: 168px; height: 168px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(242,194,0,.9), 0 18px 40px rgba(10,69,33,.35);
}
.emblem-xl img { width: 138px; height: auto; }
.brand-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--display); }
.brand-stack .l1 { font-weight: 600; font-size: 20px; letter-spacing: .04em; color: var(--gold); }
.brand-stack .l2 { font-weight: 700; font-size: 26px; letter-spacing: .12em; color: #fff; text-transform: uppercase; }
.brand-stack .l3 { font-weight: 600; font-size: 18px; letter-spacing: .22em; color: #E4F2E8; text-transform: uppercase; }
.benefit { display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.4; }
.benefit .tile-icon { width: 40px; height: 40px; }

/* Header beranda */
.home-head { background: var(--green); padding: 16px 20px 64px; display: flex; flex-direction: column; gap: 18px; }
.brand-mini { display: flex; align-items: center; gap: 10px; }
.brand-mini .logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mini .logo img { width: 32px; }
.brand-mini .t { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--display); }
.brand-mini .t span:first-child { font-weight: 600; font-size: 14px; color: var(--gold); }
.brand-mini .t span:last-child { font-weight: 700; font-size: 15px; letter-spacing: .08em; color: #fff; text-transform: uppercase; }
.home-head .icon-btn { background: rgba(255,255,255,.12); color: #fff; margin-left: auto; }
.home-head .icon-btn:hover { background: rgba(255,255,255,.2); }
.dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--green); }
.greet .hi { font-size: 14px; color: var(--green-on); }
.greet .name { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.greet .sub { font-size: 13px; color: var(--green-on); }
.home-body { margin-top: -48px; padding: 0 20px 24px; display: flex; flex-direction: column; gap: 22px; }

.mini-card {
  text-decoration: none; color: #fff; background: var(--green-deep); border-radius: 20px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; box-shadow: 0 14px 30px rgba(10,69,33,.28);
}
.mini-card:hover { color: #fff; }
.mini-card::before { content: ''; position: absolute; right: -36px; top: -30px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(242,194,0,.16); }
.mini-card > * { position: relative; }
.mini-card .k-title { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--gold); }
.mini-card .k-no { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--green-on); }
.badge-gold { font-size: 11px; font-weight: 800; color: var(--green-deep); background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.mini-card.pending { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.mini-card.pending::before { border-color: rgba(20,127,60,.07); }
.mini-card.pending .k-title { color: var(--gold-text); }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--surface);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 20;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none;
  color: var(--nav-muted); font-size: 11px; font-weight: 600; position: relative;
}
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--green); font-weight: 800; }
.bottom-nav a[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }

/* Profil */
.avatar {
  width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); box-shadow: 0 0 0 3px var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--green-dark);
  position: relative; flex-shrink: 0; background-size: cover; background-position: center;
}
.avatar .cam {
  position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ground);
  background: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
}
.avatar .cam svg { width: 16px; height: 16px; }
.locked-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.locked-grid div { display: flex; flex-direction: column; gap: 2px; }
.locked-grid span:first-child { font-size: 11.5px; color: var(--muted); }
.locked-grid span:last-child { font-size: 14px; font-weight: 700; }
.job { display: flex; gap: 14px; align-items: flex-start; }
.job .t1 { font-size: 14.5px; font-weight: 800; }
.job .t2 { font-size: 13px; color: var(--ink-2); }
.job .t3 { font-size: 12px; color: var(--muted); }
.checklist { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checklist div { display: flex; align-items: center; gap: 8px; }
.checklist svg { width: 16px; height: 16px; }

/* Tracer */
.tracer-head { background: var(--green); padding: 10px 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.tracer-head .icon-btn { color: #fff; }
.tracer-head .icon-btn:hover { background: rgba(255,255,255,.12); }
.tracer-head .meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #fff; padding: 0 12px; }
.tracer-head .track { margin: 0 12px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.tracer-head .track span { display: block; height: 100%; background: var(--gold); border-radius: 6px; transition: width .3s; }
.q-code { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--gold-text); text-transform: uppercase; }
.q-text { font-size: 17px; line-height: 1.35; font-weight: 800; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale label {
  position: relative; height: 44px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; cursor: pointer;
}
.scale input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scale label:has(input:checked) { border-color: var(--green); background: var(--green); color: #fff; }
.scale label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--ground) 80%, rgba(247,246,239,0)); padding: 16px 20px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }

/* Kartu alumni */
.alumni-card { border-radius: 24px; overflow: hidden; background: var(--green-deep); box-shadow: 0 20px 40px rgba(10,69,33,.3); position: relative; }
.alumni-card::before { content: ''; position: absolute; right: -70px; top: 40px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(242,194,0,.12); }
.alumni-card > * { position: relative; }
.alumni-card .stripe { height: 6px; background: var(--gold); }
.alumni-card .head { padding: 18px 20px 0; display: flex; align-items: center; gap: 12px; }
.alumni-card .head .logo { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alumni-card .head .logo img { width: 42px; }
.alumni-card .head .t { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--display); }
.alumni-card .head .t span:nth-child(1) { font-weight: 600; font-size: 16px; color: var(--gold); }
.alumni-card .head .t span:nth-child(2) { font-weight: 700; font-size: 16px; letter-spacing: .08em; color: #fff; }
.alumni-card .head .t span:nth-child(3) { font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--green-on); }
.alumni-card .who { padding: 20px 20px 22px; display: flex; gap: 16px; align-items: center; }
.photo {
  width: 84px; height: 104px; border-radius: 14px; background: var(--green-soft); box-shadow: 0 0 0 3px var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--green-dark);
  flex-shrink: 0; background-size: cover; background-position: center;
}
.alumni-card .who .nm { font-size: 19px; font-weight: 800; line-height: 1.2; color: #fff; }
.alumni-card .who .meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--green-on); margin-top: 8px; }
.alumni-card .qr-panel { margin: 0 12px 12px; background: #fff; border-radius: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; }
.alumni-card .qr-panel .qr { width: 112px; height: 112px; flex-shrink: 0; }
.alumni-card .qr-panel .qr svg { width: 100%; height: 100%; display: block; }
.alumni-card .no-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.alumni-card .no { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; word-break: break-all; }
.alumni-card .life { align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--green-deep); background: var(--gold); padding: 4px 8px; border-radius: 6px; }
.alumni-card.revoked { filter: grayscale(1); opacity: .7; }
.action-tile {
  height: 78px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; line-height: 1.2; padding: 0 6px;
}
.action-tile svg { width: 22px; height: 22px; color: var(--green); }
.action-tile:hover { border-color: #C9C4B0; }

/* Verifikasi */
.verify-head { padding: 18px 20px; display: flex; align-items: center; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.verify-head img { width: 46px; }
.verify-head .t { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); }
.verify-head .t span:first-child { font-weight: 600; font-size: 15px; color: var(--gold-text); }
.verify-head .t span:last-child { font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.result { border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.result .ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result .ic svg { width: 34px; height: 34px; }
.result .big { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: .12em; }
.result.valid { background: var(--green); color: #fff; }
.result.valid .ic { background: var(--gold); color: var(--green-deep); }
.result.valid p { color: #E4F2E8; font-size: 13.5px; }
.result.bad { background: var(--surface); border: 2px solid var(--danger); }
.result.bad .ic { background: var(--danger-soft); color: var(--danger); }
.result.bad .big { color: var(--danger); }
.result.bad p { color: var(--muted); font-size: 13.5px; }
.result.unknown { background: var(--surface); border: 2px solid var(--field); }
.result.unknown .ic { background: var(--line-2); color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Sheet / dialog */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,20,14,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 440px; max-height: 92dvh; overflow: auto; background: var(--ground); border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; animation: up .2s ease-out;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--field); align-self: center; margin-bottom: 4px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet .sheet-head h2 { font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }

/* Toast */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); top: 16px; z-index: 80; width: calc(100% - 32px); max-width: 408px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: flex-start; pointer-events: auto; animation: drop .2s ease-out;
}
.toast.demo { background: var(--gold); color: var(--green-deep); font-weight: 600; }
.toast.ok { background: var(--green-dark); }
.toast.bad { background: var(--danger); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

.demo-banner { background: var(--gold-soft); color: #4D4000; font-size: 12px; padding: 8px 16px; text-align: center; line-height: 1.4; }
.demo-banner button { background: none; border: 0; font-weight: 800; color: #4D4000; text-decoration: underline; cursor: pointer; padding: 0; font-size: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  .bottom-nav, .topbar, .no-print, .toast-wrap { display: none !important; }
}

/* --- Tambahan portal Laravel --- */
[x-cloak] { display: none !important; }
.list-reset { list-style: none; margin: 0; padding: 0; }

/* Desain kartu diatur admin: --kartu-latar dan --kartu-aksen dipasang di elemen .alumni-card */
.alumni-card { background: var(--kartu-latar, var(--green-deep)); }
.alumni-card::before { border-color: color-mix(in srgb, var(--kartu-aksen, var(--gold)) 12%, transparent); }
.alumni-card .stripe, .alumni-card .life { background: var(--kartu-aksen, var(--gold)); }
.alumni-card .life { color: var(--kartu-latar, var(--green-deep)); }
.alumni-card .head .t span:nth-child(1) { color: var(--kartu-aksen, var(--gold)); }
.alumni-card .photo { box-shadow: 0 0 0 3px var(--kartu-aksen, var(--gold)); }
a.action-tile { text-decoration: none; color: var(--ink); }
