/* =========================================================
   BioCard — Halaman publik (W-01 s/d W-05) & autentikasi (W-06 s/d W-08)
   ========================================================= */

.pub {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 32px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.pub-main { flex: 1; display: flex; flex-direction: column; gap: var(--sp-5); padding-top: var(--sp-5); }

/* Top bar publik */
.pub-top {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  z-index: 60;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 8px 8px 8px 12px;
  border-radius: var(--pill);
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(var(--primary-rgb), .6);
  flex: none;
}
.pub-top .spacer { flex: 1; }
.pub-top .lang, .pub-top .tgl { flex: none; }
@media (max-width: 459px) {
  .pub-top .demo-pill span, .pub-top .demo-pill { font-size: 0; gap: 0; padding: 6px; }
  .pub-top .demo-pill svg { width: 14px; height: 14px; }
}

.pub-foot {
  margin-top: var(--sp-7);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.pub-foot a { color: var(--muted); font-weight: 600; }

/* W-01 Profil */
.profile { text-align: center; padding: var(--sp-6) var(--sp-5) var(--sp-5); }
.profile-avatar { position: relative; width: 96px; height: 96px; margin: 0 auto var(--sp-4); }
.profile-avatar .avatar {
  --av: 96px;
  box-shadow: 0 0 0 4px var(--surface-solid), 0 0 0 6px rgba(var(--primary-rgb), .25), var(--shadow-2);
  font-size: 2rem;
}
.profile-avatar .verified {
  position: absolute; right: -2px; bottom: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border: 3px solid var(--surface-solid);
}
.profile h1 { font-size: 1.625rem; }
.profile .subtitle { margin-top: 4px; font-weight: 650; color: var(--primary-ink); font-size: var(--fs-md); }
.profile .intro { margin: var(--sp-3) auto 0; color: var(--muted); max-width: 40ch; font-size: var(--fs-md); line-height: 1.65; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: var(--sp-5); flex-wrap: wrap; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-bg); color: var(--primary-ink);
  transition: transform var(--dur) var(--ease), background-color var(--dur);
}
.social-btn:hover { transform: translateY(-2px); background: rgba(var(--primary-rgb), .18); text-decoration: none; }

/* Daftar rekening */
.acc-list { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.acc-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  transition: border-color var(--dur), transform var(--dur) var(--ease), background-color var(--dur);
}
.acc-row:hover { text-decoration: none; border-color: rgba(var(--primary-rgb), .25); transform: translateY(-1px); }
.acc-row .acc-name { font-weight: 700; font-size: var(--fs-body); line-height: 1.3; }
.acc-row .acc-num { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .02em; }
.acc-row .acc-go {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--surface-solid);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-pill);
  flex: none;
}
.acc-row:hover .acc-go { background: var(--primary); color: #fff; }
[data-theme="dark"] .acc-row:hover .acc-go { color: #0F0E1C; }

/* W-02 Detail */
.acc-hero { padding: var(--sp-5); min-height: 210px; display: flex; flex-direction: column; gap: var(--sp-5); }
.acc-hero .head { display: flex; align-items: center; gap: var(--sp-3); }
.acc-hero .head .tile { box-shadow: 0 6px 16px -6px rgba(20, 20, 80, .4); }
.acc-hero .prov { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.acc-hero .holder { font-size: var(--fs-md); color: rgba(255, 255, 255, .85); }
.acc-hero .number {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 7vw, 2.125rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
  word-break: break-all;
  text-shadow: 0 2px 10px rgba(20, 20, 80, .2);
}
.acc-hero .foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }
.btn-copy.copied { background: #DCFCE7; color: #15803D; }

.qr-card { text-align: center; }
.qr-frame {
  position: relative;
  width: min(240px, 72vw);
  margin: var(--sp-4) auto;
  padding: 14px;
}
.qr-frame::before, .qr-frame::after, .qr-frame .c1, .qr-frame .c2 {
  content: ""; position: absolute; width: 24px; height: 24px;
  border: 3px solid var(--primary);
}
.qr-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.qr-frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.qr-frame .c1 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.qr-frame .c2 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.qr-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 8px; }

.tabpanel { padding: var(--sp-5); }
.note-card { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--primary-bg); }
.note-card strong { display: block; font-size: var(--fs-md); }
.note-card p { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }

/* W-03 Form */
.page-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-2); }
.page-head h1 { font-size: var(--fs-h2); text-align: center; }
.form-card { display: flex; flex-direction: column; gap: var(--sp-5); }
.quick-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* W-04 Sukses */
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  background: var(--success-bg); color: var(--success-ink);
  box-shadow: 0 0 0 10px rgba(34, 197, 94, .07);
  animation: pop 420ms var(--ease) both;
}
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.ref-box { text-align: center; padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.ref-box .ref { font-family: var(--mono); font-size: clamp(1.25rem, 6vw, 1.625rem); font-weight: 600; letter-spacing: .04em; }

/* W-05 */
.na-card { text-align: center; padding: var(--sp-7) var(--sp-5); margin-top: var(--sp-5); }
.na-icon { position: relative; width: 80px; height: 80px; margin: 0 auto var(--sp-4); }
.na-icon .tile { --tile: 80px; border-radius: 24px; }
.na-icon .ban { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-solid); color: var(--danger-ink); display: grid; place-items: center; box-shadow: var(--shadow-pill); }

/* ---------- Autentikasi ---------- */
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px 32px;
}
.auth-card { width: min(100%, 440px); padding: var(--sp-6) var(--sp-5); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); text-align: center; }
.auth-brand .brand-mark { width: 52px; height: 52px; }
.auth h1 { font-size: 1.625rem; }
.auth .lead { color: var(--muted); font-size: var(--fs-md); margin-top: 6px; }
.auth form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-tools { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; display: flex; gap: 8px; align-items: center; z-index: 10; }

@media (min-width: 700px) {
  .pub { padding-top: 28px; }
  .auth-card { padding: var(--sp-7) var(--sp-6); }
}
