/* =========================================================
 * Proofy Verify — tampilan selaras dengan proofy.id (2026)
 * Hanya gaya visual; tidak ada logika di sini.
 * ======================================================= */
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --bg: #F7F7FB; --card: #fff; --tint: #F3F2FF;
    --ink: #0F1020; --ink-2: #3A3C52; --muted: #6B6E85; --line: #E7E7F0; --line-2: #DCDCE8;
    --brand: #4E46DD; --brand-2: #6D5BFF; --brand-deep: #3730B8; --brand-soft: #EEEDFD;
    --ok: #16A34A; --ok-soft: #E8F7EE; --del: #E5484D; --del-soft: #FFF0F1; --warn: #B45309; --warn-soft: #FFF7E6;
    --jakarta: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --serif: var(--jakarta);              /* teks deskripsi kini sans-serif */
    --ui: var(--jakarta);
    --head: var(--jakarta);
    --mono: var(--jakarta);               /* label kecil berhuruf kapital */
    --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;  /* nomor sertifikat */
    --title-serif: "Source Serif 4", Georgia, "Times New Roman", serif;  /* khusus judul manuscript */
    --r-sm: 10px; --r: 16px; --r-lg: 24px;
    --sh: 0 1px 2px rgba(15,16,32,.04), 0 8px 24px -8px rgba(15,16,32,.10);
    --sh-lg: 0 2px 4px rgba(15,16,32,.03), 0 24px 60px -16px rgba(42,36,140,.22);
    --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; font-family: var(--ui); font-size: 16px; line-height: 1.55; color: var(--ink);
    background: var(--bg); -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
/* latar kisi samar + cahaya lavender, khas proofy.id */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(rgba(78,70,221,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(78,70,221,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
body::after {
    content: ""; position: fixed; z-index: -1; pointer-events: none; width: 900px; height: 900px; top: -520px; right: -260px;
    background: radial-gradient(circle, rgba(123,97,255,.20), rgba(123,97,255,0) 62%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0; }
.mono, code { font-family: var(--code) !important; letter-spacing: .01em; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
[data-lucide] { width: 16px; height: 16px; stroke-width: 2.1; flex-shrink: 0; }

/* ---------- topbar ---------- */
.v-top { max-width: 1120px; margin: 0 auto; padding: 22px clamp(18px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v-logo img { height: 30px; width: auto; }
.v-top-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); transition: .2s var(--ease); }
.v-top-link:hover { color: var(--brand); border-color: #C9C3FF; }
.v-top-link [data-lucide] { width: 15px; height: 15px; }

/* ---------- tata letak ---------- */
.v-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 24px) 48px; }
.v-wrap.wide { max-width: 880px; }
.v-center { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; }

.v-hero { text-align: center; margin: 8px 0 26px; }
.v-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 1px solid #DCD9FB; padding: 6px 12px; border-radius: 999px; }
.v-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(78,70,221,.5); animation: vping 2s infinite; }
@keyframes vping { 0% { box-shadow: 0 0 0 0 rgba(78,70,221,.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(78,70,221,0); } }
.v-hero h1 { font-size: clamp(30px, 6.4vw, 44px); font-weight: 800; margin-top: 16px; }
.v-hero h1 em { font-style: normal; background: linear-gradient(100deg, #4E46DD, #7B61FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-hero p { font-family: var(--serif); color: var(--muted); font-size: 17px; margin-top: 10px; }

/* mata maskot Proofy */
.v-eyes { display: inline-flex; gap: 5px; }
.v-eyes i { width: 15px; height: 17px; border-radius: 50%; background: var(--brand); position: relative; display: block; }
.v-eyes i::before { content: ""; position: absolute; left: 3px; top: 2px; width: 9px; height: 13px; border-radius: 50%; background: #fff; }
.v-eyes i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 4px; height: 6px; border-radius: 50%; background: var(--brand); animation: vlook 6s infinite var(--ease); }
@keyframes vlook { 0%, 40%, 100% { transform: translate(0,0); } 50%, 70% { transform: translate(-4px, 3px); } }
.v-eyes.lg i { width: 30px; height: 34px; } .v-eyes.lg { gap: 9px; }
.v-eyes.lg i::before { left: 6px; top: 4px; width: 18px; height: 26px; }
.v-eyes.lg i::after { left: 14px; top: 6px; width: 8px; height: 11px; }
.v-eyes.white i { background: #fff; } .v-eyes.white i::before { background: var(--brand); } .v-eyes.white i::after { background: #fff; }

/* ---------- kartu ---------- */
.v-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: clamp(22px, 5vw, 34px); position: relative; }
.v-card + .v-card { margin-top: 18px; }
.v-card-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1; border: 1px solid transparent; border-radius: 12px; padding: 13px 20px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(78,70,221,.7); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--brand); border-color: #C9C3FF; background: var(--tint); }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); border-color: #DCD9FB; }
.btn-soft:hover { background: #E3E1FC; color: var(--brand-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24264A; color: #fff; }
.btn-danger { background: #fff; color: var(--del); border-color: #F6C9CB; }
.btn-danger:hover { background: var(--del-soft); color: #B42318; }
.btn-sm { font-size: 13.5px; padding: 9px 14px; border-radius: 10px; }
.btn-xs { font-size: 12.5px; padding: 7px 10px; border-radius: 9px; gap: 6px; }
.btn-xs [data-lucide] { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 180px; }

/* ---------- form ---------- */
.field { display: block; }
.field + .field, .grid-2 + .field, .field + .grid-2 { margin-top: 18px; }
.label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .01em; }
.label .req { color: var(--del); }
.input { width: 100%; font: 500 15.5px/1.4 var(--ui); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.input::placeholder { color: #A3A5B8; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(78,70,221,.14); }
.input.mono { font-family: var(--code); font-size: 15px; letter-spacing: .04em; }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2 > .field { margin-top: 0 !important; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.v-input-wrap { position: relative; }
.v-input-wrap [data-lucide] { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.v-input-wrap .input { padding-left: 44px; font-size: 16px; padding-top: 15px; padding-bottom: 15px; }

.v-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 20px 0; }
.v-or::before, .v-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.v-scan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-scan-row .btn { width: 100%; }
#reader { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }

/* ---------- notifikasi ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 13px 15px; border-radius: 12px; margin-bottom: 18px; }
.alert [data-lucide] { margin-top: 2px; }
.alert-error { background: var(--del-soft); color: #B42318; border: 1px solid #F6C9CB; }

/* ---------- hasil verifikasi ---------- */
.v-status { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* stempel: jatuh + memantul, lalu mengambang & berkilau */
.v-seal-wrap { position: relative; width: 132px; height: 132px; margin: -6px auto 8px; display: grid; place-items: center; }
.v-seal-wrap::before, .v-seal-wrap::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid rgba(22,163,74,.35); opacity: 0; animation: vring 2.6s 1s infinite var(--ease); }
.v-seal-wrap::after { animation-delay: 2.3s; }
@keyframes vring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
.v-seal { width: 112px; height: 112px; position: relative; z-index: 1; filter: drop-shadow(0 14px 24px rgba(46,40,153,.22));
    animation: vstamp .8s cubic-bezier(.2,1.4,.4,1) both, vfloat 4s 1.2s ease-in-out infinite; }
@keyframes vstamp { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes vfloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(3deg); } }
.v-seal-shine { position: absolute; z-index: 2; inset: 10px; border-radius: 50%; overflow: hidden; pointer-events: none; }
.v-seal-shine::before { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; transform: rotate(25deg);
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0)); animation: vshine 3.2s 1.1s infinite; }
@keyframes vshine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
/* percikan bintang di sekitar stempel */
.v-spark { position: absolute; z-index: 3; width: 14px; height: 14px; opacity: 0; color: #F5B700; animation: vspark 2.4s infinite; }
.v-spark svg { width: 100%; height: 100%; display: block; }
.v-spark.s1 { top: 6px; left: 2px; animation-delay: 1s; } .v-spark.s2 { top: 18px; right: -2px; width: 10px; height: 10px; animation-delay: 1.5s; color: var(--brand-2); }
.v-spark.s3 { bottom: 12px; left: -4px; width: 9px; height: 9px; animation-delay: 1.9s; color: var(--ok); } .v-spark.s4 { bottom: 2px; right: 8px; animation-delay: 2.3s; }
@keyframes vspark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 15% { opacity: 1; transform: scale(1.1) rotate(45deg); } 35% { opacity: 0; transform: scale(.4) rotate(90deg); } }
.v-badge-ok { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 27px; letter-spacing: .06em; color: var(--ok); }
/* huruf VERIFIED muncul satu per satu, lalu kilau lewat */
.v-word { display: inline-flex; position: relative; }
.v-word b { display: inline-block; font-weight: 800; opacity: 0; transform: translateY(14px) scale(.7); animation: vletter .5s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes vletter { to { opacity: 1; transform: none; } }
.v-word::after { content: ""; position: absolute; inset: -2px -6px; background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 70%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: soft-light; animation: vsweep 3.2s 1.6s infinite; pointer-events: none; }
@keyframes vsweep { 0% { background-position: 150% 0; } 40%, 100% { background-position: -60% 0; } }
.v-badge-ok .tick { width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(22,163,74,.6); transform: scale(0); animation: vpop .5s .45s cubic-bezier(.2,1.6,.4,1) forwards, vglow 2.6s 1.4s infinite; }
.v-badge-ok .tick svg { width: 18px; height: 18px; }
.v-badge-ok .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: vdraw .45s .8s ease-out forwards; }
@keyframes vpop { to { transform: scale(1); } }
@keyframes vdraw { to { stroke-dashoffset: 0; } }
@keyframes vglow { 0%, 100% { box-shadow: 0 6px 14px -4px rgba(22,163,74,.6), 0 0 0 0 rgba(22,163,74,.35); } 50% { box-shadow: 0 6px 14px -4px rgba(22,163,74,.6), 0 0 0 9px rgba(22,163,74,0); } }
/* isi kartu masuk bertahap */
.v-reveal { opacity: 0; transform: translateY(12px); animation: vup .6s var(--ease) forwards; }
@keyframes vup { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v-seal, .v-word b, .v-badge-ok .tick, .v-badge-ok .tick path, .v-reveal, .v-spark, .v-seal-shine::before, .v-seal-wrap::before, .v-seal-wrap::after, .v-word::after { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } .v-spark { display: none; } }
.v-status p { font-family: var(--serif); color: var(--ink-2); font-size: 16.5px; margin-top: 10px; max-width: 400px; }
.v-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.v-data { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.v-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.v-row:first-child { border-top: 0; }
.v-row dt { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; white-space: nowrap; }
.v-row dd { margin: 0; font-weight: 700; font-size: 15px; text-align: right; }
.v-row dd.mono { font-size: 14px; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 9px; border-radius: 8px; }
.v-row.stack { display: block; }
.v-row.stack dd { text-align: left; margin-top: 4px; font-size: 16px; }
.v-row.stack dd.title { font-family: var(--title-serif); font-style: italic; font-weight: 400; font-size: 17px; line-height: 1.45; color: var(--ink); }
.v-row.link { justify-content: center; background: var(--tint); }
.v-row.link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

.v-note { margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--tint); border: 1px solid #E2E0FA; font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.v-note p + p { margin-top: 8px; }
.v-note strong { color: var(--ink); }
.v-foot-links { display: flex; justify-content: center; margin-top: 18px; }
.v-foot-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.v-disclaimer { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }

.v-brandline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; }
.v-brandline > div b { display: block; font-family: var(--head); font-size: 14px; }
.v-brandline > div span { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }

.v-bottom { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.v-bottom a { color: var(--muted); font-weight: 600; }
.v-bottom a:hover { color: var(--brand); }

/* ---------- director sign ---------- */
.ds-banner { margin: calc(-1 * clamp(22px, 5vw, 34px)); margin-bottom: 28px; padding: clamp(28px, 6vw, 44px) 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; text-align: center; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(circle at 85% 0%, rgba(123,97,255,.9), rgba(123,97,255,0) 55%), linear-gradient(135deg, #4E46DD, #2E2899); }
.ds-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; }
.ds-banner > * { position: relative; }
.ds-banner h1 { color: #fff; font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; margin-top: 16px; }
.ds-banner p { color: #D9D5FF; font-size: 14.5px; margin-top: 6px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ds-serial { text-align: center; }
.ds-serial .chip { display: inline-block; padding: 10px 18px; border-radius: 14px; background: var(--tint); border: 1px solid #E2E0FA; }
.ds-serial .chip small { display: block; font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.ds-serial .chip b { font-family: var(--code); font-size: 18px; color: var(--brand-deep); }
.ds-serial p { font-family: var(--serif); color: var(--ink-2); margin: 14px auto 0; max-width: 460px; font-size: 16px; }
.ds-qr { display: flex; flex-direction: column; align-items: center; margin: 28px 0 32px; }
.ds-qr-frame { position: relative; padding: 14px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.ds-qr-frame::before { content: ""; position: absolute; inset: -10px; border-radius: 32px; border: 1.5px dashed #C9C3FF; }
.ds-qr-frame img { width: min(280px, 64vw); height: auto; border-radius: 16px; }
.ds-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 26px; }
@media (max-width: 640px) { .ds-cols { grid-template-columns: 1fr; } }
.ds-h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.ds-h::after { content: ""; flex: 1; height: 1px; background: #E2E0FA; }
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ds-steps li { display: flex; gap: 12px; font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); }
.ds-steps .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 13px/26px var(--ui); text-align: center; }
.ds-stores { display: flex; gap: 8px; margin: 2px 0 2px 38px; flex-wrap: wrap; }
.ds-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: .2s var(--ease); color: var(--ink); }
.ds-link + .ds-link { margin-top: 10px; }
.ds-link:hover { border-color: #C9C3FF; box-shadow: var(--sh); transform: translateY(-1px); color: var(--ink); }
.ds-link .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.ds-link b { display: block; font-size: 15px; }
.ds-link span { display: block; font-size: 13px; color: var(--muted); }
.ds-notice { padding: 18px 20px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid #F5DDB0; }
.ds-notice h4 { font-family: var(--ui); font-size: 15px; color: #92400E; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.ds-notice p { font-family: var(--serif); font-size: 14.5px; color: #92400E; margin: 6px 0 14px; }
.btn-warn { background: #B45309; color: #fff; }
.btn-warn:hover { background: #92400E; color: #fff; }
.ds-copy { margin: 26px calc(-1 * clamp(22px, 5vw, 34px)) calc(-1 * clamp(22px, 5vw, 34px)); padding: 16px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--r-lg) var(--r-lg); text-align: center; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }

.v-restrict { text-align: center; }
.v-restrict .ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.v-restrict .ic [data-lucide] { width: 30px; height: 30px; }
.v-restrict h2 { font-size: 24px; }
.v-restrict p { font-family: var(--serif); color: var(--ink-2); margin: 10px auto 22px; max-width: 380px; }
.v-restrict .btn + .btn { margin-top: 10px; }

/* ---------- native editor ---------- */
.ne-ok { width: 52px; height: 52px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.ne-ok [data-lucide] { width: 26px; height: 26px; }
.ne-intro { text-align: center; }
.ne-intro h2 { font-size: 22px; }
.ne-intro p { font-family: var(--serif); color: var(--ink-2); margin: 10px auto 16px; max-width: 620px; font-size: 16.5px; }
.ne-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--tint); border: 1px solid #E2E0FA; font-size: 13px; color: var(--muted); }
.ne-chip b { font-family: var(--code); color: var(--brand-deep); font-size: 14px; }
.ne-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 720px) { .ne-grid { grid-template-columns: 1fr; } }
.ne-ed { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: linear-gradient(180deg, #fff, #FBFBFF); display: flex; flex-direction: column; }
.ne-ed-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ne-av { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #4E46DD, #7B61FF); color: #fff; display: grid; place-items: center; font: 800 17px var(--head); letter-spacing: 0; flex-shrink: 0; }
.ne-ed h3 { font-size: 19px; }
.ne-role { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.ne-loc { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border: 1px solid #BFE8CD; padding: 4px 9px; border-radius: 999px; }
.ne-loc [data-lucide] { width: 12px; height: 12px; }
.ne-where { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ne-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; flex: 1; }
.ne-list li { display: flex; gap: 8px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.ne-list [data-lucide] { color: var(--ok); margin-top: 3px; width: 15px; height: 15px; }
.ne-mail { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.ne-mean { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r); background: var(--tint); border: 1px solid #E2E0FA; font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); }
.ne-mean [data-lucide] { color: var(--brand); margin-top: 3px; }
.ne-cta { text-align: center; margin: 22px 0 4px; }
/* isi popup portofolio */
.pf-list { text-align: left; font-family: var(--ui); }
.pf-list > p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-row a { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row span { font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; background: var(--brand-soft); padding: 3px 8px; border-radius: 8px; }
.pf-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.pf-foot.em { font-style: italic; }
.pf-foot.strong { color: var(--ink-2); font-weight: 600; font-size: 14px; }

/* ---------- SweetAlert selaras ---------- */
.swal2-popup { font-family: var(--ui) !important; border-radius: 22px !important; }
.swal2-title { font-family: var(--head) !important; letter-spacing: -.02em; color: var(--ink) !important; }
.swal2-html-container { font-family: var(--serif) !important; }
.swal2-confirm { border-radius: 12px !important; font-weight: 700 !important; background: var(--brand) !important; }

/* =========================================================
 * Admin
 * ======================================================= */
.a-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.a-nav-in { max-width: 1200px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.a-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.a-brand img { height: 26px; width: auto; }
.a-brand .sep { width: 1px; height: 22px; background: var(--line-2); }
.a-brand b { font-family: var(--head); font-size: 16px; letter-spacing: -.01em; }
.a-nav-r { display: flex; align-items: center; gap: 8px; }
.a-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); border: 1px solid var(--line); background: #fff; transition: .2s; }
.a-icon-btn:hover { color: var(--brand); border-color: #C9C3FF; }
.a-main { max-width: 1200px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 28px) 60px; }
.a-main.narrow { max-width: 760px; }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.a-head h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.a-head p { color: var(--muted); font-size: 15px; margin-top: 6px; font-family: var(--serif); }
.a-head .kick { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 8px; display: block; }

.a-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .a-stats { grid-template-columns: repeat(2, 1fr); } }
.a-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh); }
.a-stat small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.a-stat b { display: block; font-family: var(--head); font-size: 28px; letter-spacing: -.02em; margin-top: 4px; }
.a-stat.brand { background: linear-gradient(135deg, #4E46DD, #3730B8); border-color: transparent; color: #fff; }
.a-stat.brand small { color: #D9D5FF; } .a-stat.brand b { color: #fff; }

.a-tools { display: flex; gap: 10px; margin-bottom: 14px; }
.a-search { position: relative; flex: 1; max-width: 380px; }
.a-search [data-lucide] { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.a-search .input { padding: 11px 14px 11px 40px; font-size: 14.5px; }

.a-table-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-lg); overflow: hidden; }
.a-table-wrap { overflow-x: auto; }
table.a-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.a-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #FAFAFD; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table th.c, .a-table td.c { text-align: center; }
.a-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table tbody tr { transition: background .15s; }
.a-table tbody tr:hover { background: #FBFBFF; }
.a-no { font-family: var(--head); font-weight: 800; font-size: 18px; color: #B9BBCC; }
.a-holder { font-weight: 700; color: var(--ink); }
.a-ms { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--muted); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.a-serial { display: inline-flex; align-items: center; gap: 6px; }
.a-serial code { font-family: var(--code); font-size: 12.5px; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid #E2E0FA; padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.a-copy { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.a-copy:hover { color: var(--brand); background: var(--brand-soft); }
.a-copy [data-lucide] { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.tag [data-lucide] { width: 13px; height: 13px; }
.tag-pro { color: #5B21B6; background: #F3EEFF; border-color: #DDD0FF; }
.tag-basic { color: var(--brand-deep); background: var(--brand-soft); border-color: #DCD9FB; }
.tag-senior { color: var(--ink-2); background: #F3F3F8; border-color: var(--line-2); }
.pdf-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--ui); padding: 7px 11px; border-radius: 9px; cursor: pointer; border: 1px solid; background: #fff; transition: .2s; }
.pdf-btn [data-lucide] { width: 14px; height: 14px; }
.pdf-btn.ok { color: var(--ok); border-color: #BFE8CD; background: var(--ok-soft); }
.pdf-btn.ok:hover { background: #DDF3E5; }
.pdf-btn.up { color: var(--muted); border-style: dashed; border-color: var(--line-2); }
.pdf-btn.up:hover { color: var(--brand); border-color: var(--brand); background: var(--tint); }
.a-acts { display: flex; justify-content: center; gap: 4px; }
.a-act { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: .15s; }
.a-act [data-lucide] { width: 16px; height: 16px; }
.a-act:hover { background: var(--brand-soft); color: var(--brand); }
.a-act.del:hover { background: var(--del-soft); color: var(--del); }
.a-empty { text-align: center; padding: 56px 20px !important; color: var(--muted); font-family: var(--serif); }
.a-empty .v-eyes { margin-bottom: 12px; }

.a-serial-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--tint); border: 1px solid #E2E0FA; margin-bottom: 20px; }
.a-serial-box small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.a-serial-box b { display: block; font-family: var(--code); font-size: 17px; color: var(--brand-deep); margin-top: 3px; }
.a-form-actions { margin-top: 24px; }

/* login */
.a-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.a-login .box { width: 100%; max-width: 400px; }
.a-login-head { text-align: center; margin-bottom: 22px; }
.a-login-head img { height: 32px; width: auto; margin: 0 auto 18px; }
.a-login-head h1 { font-size: 28px; font-weight: 800; margin-top: 14px; }
.a-login-head p { color: var(--muted); font-family: var(--serif); margin-top: 6px; }

@media (max-width: 560px) {
    .a-brand .sep, .a-brand b { display: none; }
    .a-nav-r .btn-sm { padding: 9px 11px; }
    .v-row { padding: 13px 15px; }
    .v-row dd { font-size: 14px; }
    .a-head .btn { width: 100%; }
}
.grid-2 .input { height: 50px; }

/* ---------- progres upload PDF (admin) ---------- */
.up-ov { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15,16,32,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: upfade .2s ease; }
.up-ov.hidden { display: none !important; }
@keyframes upfade { from { opacity: 0; } }
.up-box { width: 100%; max-width: 360px; background: #fff; border-radius: 24px; padding: 30px 26px 24px; text-align: center; box-shadow: 0 30px 80px -20px rgba(30,26,110,.45); animation: uppop .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes uppop { from { transform: scale(.9); opacity: 0; } }
.up-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 16px; }
.up-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); max-width: none; }
.up-ring circle { fill: none; stroke-width: 9; }
.up-ring .bg { stroke: var(--brand-soft); }
.up-ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .25s ease, stroke .3s; }
.up-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-box h3 { font-size: 19px; }
.up-file { font-size: 13.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-bar { height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; margin: 18px 0 8px; }
.up-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #4E46DD, #7B61FF); transition: width .25s ease; }
.up-size { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.up-ov.done .fg { stroke: var(--ok); }
.up-ov.done .up-bar span { background: var(--ok); }
.up-ov.done h3 { color: var(--ok); }

/* status membaca file */
.btn.is-busy { pointer-events: none; color: var(--brand); border-color: #C9C3FF; background: var(--tint); }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #C9C3FF; border-top-color: var(--brand); animation: vspin .7s linear infinite; display: inline-block; }
@keyframes vspin { to { transform: rotate(360deg); } }

/* tombol Download + e-Sign selalu satu baris */
.v-actions { flex-wrap: nowrap; width: 100%; }
@media (max-width: 480px) {
    .v-actions { gap: 6px; }
    .v-actions .btn { font-size: 13px; padding: 9px 12px; gap: 6px; }
    .v-actions .btn [data-lucide] { width: 14px; height: 14px; }
}
@media (max-width: 340px) { .v-actions .btn { font-size: 12px; padding: 8px 9px; } }

/* judul manuscript di halaman e-Sign */
.ds-title { margin: 16px auto 0; max-width: 520px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.ds-title small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ds-serial .ds-title p { margin: 6px 0 0; max-width: none; font-family: var(--title-serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink); }

/* ---------- Logo & favicon bermata hidup (proofy-eyes.js) ---------- */
.pf-eyes { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.pf-eyes > img { display: block; }
.pf-eyes-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; opacity: 0; overflow: visible; }
.pf-eyes.is-live .pf-eyes-svg { opacity: 1; }

/* ---------- tombol kembali ke atas ---------- */
.v-totop { position: fixed; right: 20px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), color .2s, border-color .2s; }
.v-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.v-totop:hover { color: var(--brand); border-color: #C9C3FF; transform: translateY(-2px); }
.v-totop svg { width: 18px; height: 18px; }
.v-totop .ring { position: absolute; inset: -4px; width: 54px; height: 54px; transform: rotate(-90deg); pointer-events: none; }
.v-totop .ring circle { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }

/* perbaikan: logo bermata di halaman login & semua logo */
.pf-eyes > img { margin: 0 !important; }
.a-login-head .pf-eyes { display: block; width: fit-content; margin: 0 auto 18px; }
.a-login-head .pf-eyes > img { height: 32px; width: auto; }
.v-logo .pf-eyes > img { height: 30px; width: auto; }
.a-brand .pf-eyes > img { height: 26px; width: auto; }
