/* VERTEX YY — Tahap 5B: foto profil / inisial bundar, tombol profil di header HP, kartu Profil, lembar bawah "Foto profil", pemotong bundar.
   Token: latar #0D0906/#14100C, amber #F2A33A/#F2B261/#D79B5E, krem #F4E9DA, sekunder #A8967F, Sora (judul) + Inter. Murni tampilan. */

/* ---------- foto bundar (semua layar) ---------- */
.fp { position: relative; display: inline-block; flex: none; width: var(--fp-u, 40px); height: var(--fp-u, 40px); border-radius: 50%; vertical-align: middle; }
.fp-isi { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, var(--fp-a, #4A3022), var(--fp-b, #1F140D)); }
.fp-ini { font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: var(--fp-f, 16px); line-height: 1; color: var(--fp-t, #F4E3D0); letter-spacing: .01em; user-select: none; }
.fp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #14100C; }
.fp-cincin { background: #14100C; }
.fp-cincin::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
    background: conic-gradient(from 0deg, #F2B261, #B97B45, #5A3A22, #F2A33A, #F2B261); animation: fp-putar 9s linear infinite;
}
.fp-cincin .fp-isi { inset: var(--fp-tb, 3px); z-index: 1; background-clip: padding-box; }
.fp-cincin .fp-isi::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20, 16, 12, .6); pointer-events: none; }
@keyframes fp-putar { to { transform: rotate(360deg); } }

/* ---------- header: tombol profil (HP gelap); lonceng + foto, lencana di pojok lonceng ---------- */
.vy-profil-link { display: none; }
@media screen and (max-width: 767px) {
    html.dark .vy-profil-link { display: inline-flex; margin-left: 7px; width: 48px; height: 48px; border-radius: 50%; flex: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
    html.dark .vy-profil-link:active { transform: scale(.95); }
    html.dark .vy-profil-link:focus-visible { outline: 3px solid #FFF3E0; outline-offset: 3px; }
    html.dark .fi-topbar .fi-user-menu { display: none !important; }
    /* halaman sederhana (mis. "Cek email Anda") tidak punya topbar panel: menu pengguna Filament-nya (yang memuat Keluar) tetap dipakai, jadi tombol foto kita disembunyikan agar avatar tidak dobel */
    html.dark .fi-simple-layout .vy-profil-link { display: none !important; }   /* keluar + mode terang dipindah ke halaman Profil di HP gelap */
    html.dark .fi-topbar > nav > div { gap: 12px; align-items: center; }
    /* lencana lonceng: pojok kanan-atas lonceng sendiri, menjorok keluar paling banyak 6 px */
    html.dark .fi-topbar .fi-icon-btn { overflow: visible; }
    html.dark .fi-topbar .fi-icon-btn-badge-ctn { left: auto !important; right: -6px !important; top: -6px !important; transform: none !important; background: transparent; border-radius: 9px; z-index: 2; }
    html.dark .fi-topbar .fi-icon-btn-badge-ctn .fi-badge { min-width: 20px; justify-content: center; padding: 1px 5px; font-size: 11px; line-height: 1.2; font-weight: 700; color: #2A1706; background: #F2B261; --tw-ring-color: #14100C; box-shadow: 0 0 0 2px #14100C; }
    html.dark .fi-header > div:first-child { padding-right: 118px; }
    html.dark.d5-ai .d5-judul { padding-right: 118px; }
}

/* ---------- halaman Profil ---------- */
.pf-kartu, .pf-daftar { max-width: 560px; margin-inline: auto; width: 100%; box-sizing: border-box; }
.pf-kartu { text-align: center; padding: 28px 20px 24px; border-radius: 30px; border: 1px solid rgba(128, 128, 128, .25); }
.pf-foto { position: relative; width: 128px; height: 128px; margin: 0 auto 14px; }
.pf-foto .fp { width: 128px; height: 128px; }
.pf-kamera {
    position: absolute; right: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1C140E; padding: 0; cursor: pointer; z-index: 3;
    display: grid; place-items: center; color: #2A1706; background: linear-gradient(160deg, #F2B261, #D79B5E); box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.pf-kamera:active { transform: scale(.94); }
.pf-kamera:focus-visible, .pf-aksi:focus-visible, .pf-baris:focus-visible, .pf-btn:focus-visible { outline: 3px solid #FFF3E0; outline-offset: 2px; }
.pf-nama { margin: 0; font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 600; word-break: break-word; }
.pf-email { margin: 4px 0 0; font-size: 14px; opacity: .72; word-break: break-all; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pf-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(128, 128, 128, .3); }
.pf-daftar { margin-top: 14px; display: grid; gap: 10px; }
.pf-daftar form { margin: 0; }
.pf-baris { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 16px; border-radius: 22px; text-align: left; text-decoration: none; cursor: pointer; font-family: inherit; color: inherit; border: 1px solid rgba(128, 128, 128, .25); background: transparent; }
.pf-mati { cursor: default; opacity: .8; }
.pf-ik { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 163, 58, .16); color: #D79B5E; }
.pf-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-teks b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.pf-teks small { font-size: 12.5px; line-height: 1.3; opacity: .72; }
.pf-panah { flex: none; opacity: .55; }
.pf-bahaya .pf-ik { background: rgba(232, 112, 92, .16); color: #E88A78; }
.pf-bahaya b { color: #E88A78; }
html:not(.dark) .pf-bahaya b, html:not(.dark) .pf-bahaya .pf-ik { color: #A33A28; }   /* mode terang: kontras >= 4,5:1 */

html.dark .pf-kartu, html.dark .pf-baris {
    border-color: rgba(255, 222, 185, .18); background-color: rgba(22, 15, 10, .5); background-image: linear-gradient(160deg, rgba(255, 232, 205, .13), rgba(255, 232, 205, .04));
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 240, 220, .24);
}
html.dark .pf-nama { color: #F4E9DA; }
html.dark .pf-email, html.dark .pf-teks small { color: #A8967F; opacity: 1; }
html.dark .pf-teks b { color: #F4E9DA; }
html.dark .pf-bahaya .pf-teks b { color: #F0A090; }
html.dark .pf-chip { color: #F2B261; background: rgba(242, 163, 58, .13); border-color: rgba(242, 178, 97, .38); }
html.dark .pf-chip-sumber { color: #D9CBB7; background: rgba(255, 232, 205, .07); border-color: rgba(255, 222, 185, .2); }
html.dark .pf-ik { color: #F2B261; }
html.dark .pf-panah { color: #A8967F; }

/* ---------- lembar bawah "Foto profil" ---------- */
.pf-tirai { position: fixed; inset: 0; z-index: 80; background: rgba(8, 5, 3, .66); opacity: 0; transition: opacity .35s ease; }
.pf-tirai.is-buka { opacity: 1; }
.pf-lembar {
    position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-width: 560px; margin-inline: auto; box-sizing: border-box; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 30px 30px 0 0;
    transform: translateY(104%); transition: transform .55s cubic-bezier(.34, 1.45, .64, 1); touch-action: none; color: #F4E9DA;
    background-color: #1C140E; background-image: linear-gradient(160deg, rgba(255, 232, 205, .16), rgba(255, 232, 205, .05)); border: 1px solid rgba(255, 222, 185, .22); border-bottom: 0;
    -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); box-shadow: 0 -18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 240, 220, .3);
}
.pf-lembar.is-buka { transform: none; }
.pf-lembar.is-tarik { transition: none; }
.pf-pegangan { width: 44px; height: 5px; border-radius: 3px; margin: 2px auto 12px; background: rgba(255, 232, 205, .3); }
.pf-lembar-judul { margin: 0; font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-size: 20px; font-weight: 600; color: #F4E9DA; text-align: center; }
.pf-lembar-sub { margin: 4px 0 12px; font-size: 13px; line-height: 1.4; text-align: center; color: #A8967F; }
.pf-aksi { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; min-height: 60px; height: 60px; margin-top: 8px; padding: 0 14px 0 10px; border: 1px solid rgba(255, 222, 185, .14); border-radius: 20px; background: rgba(255, 232, 205, .06); color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.pf-aksi:active { background: rgba(255, 232, 205, .12); }
.pf-aksi[hidden] { display: none; }
.pf-aksi .pf-teks b { color: #F4E9DA; }
.pf-aksi.pf-bahaya .pf-teks b { color: #F0A090; }
.pf-aksi .pf-teks small { color: #A8967F; opacity: 1; }
.pf-aksi.is-yakin { border-color: rgba(240, 160, 144, .6); background: rgba(232, 112, 92, .14); }

/* ---------- pemotong bundar ---------- */
.pf-potong { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px 16px; box-sizing: border-box; background: #0D0906; opacity: 0; transition: opacity .25s ease; color: #F4E9DA; overflow: auto; }
.pf-potong.is-buka { opacity: 1; }
.pf-potong[hidden], .pf-lembar[hidden], .pf-tirai[hidden], .pf-toast[hidden] { display: none; }
.pf-potong-isi { width: min(100%, 340px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-panggung { position: relative; width: 280px; height: 280px; margin: 10px 0 16px; border-radius: 50%; overflow: hidden; touch-action: none; cursor: grab; background: #14100C; box-shadow: 0 0 0 5px rgba(242, 178, 97, .35), 0 20px 50px rgba(0, 0, 0, .6); }
.pf-panggung img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pf-cincin-potong { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 243, 224, .5); pointer-events: none; }
#pf-zoom { width: 100%; max-width: 280px; accent-color: #F2A33A; height: 36px; }
.pf-galat { margin: 6px 0 0; color: #F0A090; font-size: 13.5px; text-align: center; }
.pf-tombol { display: flex; gap: 12px; width: 100%; margin-top: 14px; }
.pf-btn { flex: 1; min-height: 52px; border-radius: 26px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; color: #F4E9DA; border: 1px solid rgba(255, 222, 185, .25); background: rgba(255, 232, 205, .08); }
.pf-btn-utama { color: #2A1706; border: 0; background: linear-gradient(160deg, #F2B261, #D79B5E); box-shadow: 0 10px 24px rgba(242, 163, 58, .28); }
.pf-btn[disabled] { opacity: .55; cursor: default; }
.pf-toast { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); max-width: 420px; margin-inline: auto; padding: 12px 16px; border-radius: 18px; text-align: center; font-size: 14px; font-weight: 600; color: #F4E9DA; background: #2A1D13; border: 1px solid rgba(255, 222, 185, .25); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.pf-toast.is-galat { color: #F0A090; border-color: rgba(240, 160, 144, .5); }

@media (prefers-reduced-motion: reduce) {
    .fp-cincin::before { animation: none; }
    .pf-tirai, .pf-lembar, .pf-potong { transition-duration: .01ms !important; }
    .vy-profil-link:active, .pf-kamera:active { transform: none; }
}
