/* Kartu Santri — panel "Masuk dengan Kartu", modal PIN, bilah sesi kartu. Semua kelas berawalan kk-. */
.kk-wadah { --kk-aksen:#0b57d0; --kk-aksen-lembut:#d3e3fd; --kk-teks:#1f1f1f; --kk-redup:#5f6368; --kk-garis:#dadce0;
            --kk-latar:#fff; --kk-ok:#137333; --kk-galat:#b3261e; --kk-kuning:#b06000; }
.kk-grid { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:32px; align-items:center; margin:8px 0 24px; }
.kk-kiri { min-width:0; }
.kk-atau { display:flex; flex-direction:column; align-items:center; align-self:stretch; color:#80868b; font-size:13px; }
.kk-atau::before, .kk-atau::after { content:""; flex:1; width:1px; background:var(--kk-garis); }
.kk-atau span { padding:10px 0; }
@media (max-width: 900px) {
  .kk-grid { grid-template-columns:1fr; gap:18px; }
  .kk-atau { flex-direction:row; align-self:auto; }
  .kk-atau::before, .kk-atau::after { height:1px; width:auto; }
  .kk-atau span { padding:0 12px; }
}

.kk-panel { position:relative; text-align:center; padding:32px 28px 26px; background:var(--kk-latar); border:1px solid var(--kk-garis);
            border-radius:24px; box-shadow:0 1px 3px rgba(60,64,67,.15), 0 4px 16px rgba(60,64,67,.08); color:var(--kk-teks); }
.kk-panel h3 { font-size:22px; font-weight:500; margin:18px 0 6px; letter-spacing:0; }
.kk-panel p { color:var(--kk-redup); font-size:14.5px; line-height:1.55; margin:0 auto; max-width:330px; }
.kk-ilustrasi { position:relative; width:132px; height:132px; margin:0 auto; display:flex; align-items:center; justify-content:center; }
.kk-ilustrasi .kk-cincin { position:absolute; inset:0; border-radius:50%; background:var(--kk-aksen-lembut); }
.kk-siap .kk-cincin { animation:kk-denyut 2.4s ease-out infinite; }
.kk-siap .kk-cincin:nth-child(2) { animation-delay:1.2s; }
.kk-ilustrasi svg { position:relative; width:84px; height:84px; }
@keyframes kk-denyut { 0% { transform:scale(.62); opacity:.9; } 100% { transform:scale(1.08); opacity:0; } }
.kk-status { display:inline-flex; align-items:center; gap:8px; margin-top:18px; padding:6px 14px; border-radius:999px; font-size:13px;
             background:#f1f3f4; color:var(--kk-redup); min-height:32px; }
.kk-status i { width:8px; height:8px; border-radius:50%; background:#9aa0a6; flex:none; }
.kk-siap .kk-status i { background:#1e8e3e; box-shadow:0 0 0 3px rgba(30,142,62,.18); }
.kk-status.kk-baca { background:var(--kk-aksen-lembut); color:#041e49; }
.kk-status.kk-salah { background:#fce8e6; color:var(--kk-galat); }
.kk-status.kk-salah i { background:var(--kk-galat); box-shadow:none; }
.kk-putar { width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:kk-putar .7s linear infinite; flex:none; }
@keyframes kk-putar { to { transform:rotate(360deg); } }
.kk-mati .kk-ilustrasi .kk-cincin { background:#f1f3f4; }
.kk-mati .kk-ilustrasi svg { opacity:.45; filter:grayscale(1); }
.kk-perangkat { margin-top:10px; font-size:12px; color:#80868b; }

/* Modal PIN */
.kk-latar { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; padding:16px;
            background:rgba(32,33,36,.45); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); animation:kk-pudar .18s ease; }
@keyframes kk-pudar { from { opacity:0; } }
.kk-modal { position:relative; width:400px; max-width:100%; background:#fff; color:var(--kk-teks); border-radius:28px; overflow:hidden;
            padding:36px 28px 22px; text-align:center; box-shadow:0 24px 48px rgba(0,0,0,.25); animation:kk-naik .24s cubic-bezier(.2,.8,.2,1); }
@keyframes kk-naik { from { transform:translateY(16px) scale(.98); opacity:0; } }
.kk-modal .kk-garis-muat { position:absolute; top:0; left:0; right:0; height:4px; overflow:hidden; opacity:0; transition:opacity .2s; }
.kk-modal.kk-memuat .kk-garis-muat { opacity:1; }
.kk-garis-muat::before { content:""; position:absolute; top:0; bottom:0; width:40%; background:var(--kk-aksen); animation:kk-geser 1s ease-in-out infinite; }
@keyframes kk-geser { from { left:-40%; } to { left:100%; } }
.kk-avatar { width:76px; height:76px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center;
             font-size:30px; font-weight:500; color:#fff; background:#1a73e8; object-fit:cover; }
.kk-modal h4 { font-size:24px; font-weight:400; margin:0 0 8px; }
.kk-chip { display:inline-block; padding:4px 12px; border:1px solid var(--kk-garis); border-radius:999px; font-size:13px; color:var(--kk-redup); max-width:100%;
           overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kk-label { margin:22px 0 12px; font-size:14px; color:var(--kk-redup); }
.kk-pin { position:relative; display:flex; gap:12px; justify-content:center; }
.kk-pin input { position:absolute; inset:0; opacity:0; width:100%; height:100%; font-size:16px; caret-color:transparent; }
.kk-kotak { width:56px; height:64px; border:1.5px solid #747775; border-radius:14px; display:flex; align-items:center; justify-content:center; transition:.15s; }
.kk-kotak.kk-isi::after { content:""; width:14px; height:14px; border-radius:50%; background:var(--kk-teks); }
.kk-pin.kk-fokus .kk-kotak.kk-kini { border-color:var(--kk-aksen); border-width:2px; box-shadow:0 0 0 3px var(--kk-aksen-lembut); }
.kk-pin.kk-goyang { animation:kk-goyang .42s; }
.kk-pin.kk-goyang .kk-kotak { border-color:var(--kk-galat); }
@keyframes kk-goyang { 20%,60% { transform:translateX(-8px); } 40%,80% { transform:translateX(8px); } }
.kk-pesan { min-height:22px; margin-top:14px; font-size:13.5px; color:var(--kk-galat); }
.kk-pesan.kk-info { color:var(--kk-redup); }
.kk-isian { width:100%; height:56px; border:1.5px solid #747775; border-radius:12px; padding:0 16px; font-size:16px; margin-top:4px; }
.kk-isian:focus { outline:none; border-color:var(--kk-aksen); border-width:2px; }
.kk-aksi { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:22px; }
.kk-tombol { appearance:none; border:0; border-radius:999px; padding:10px 24px; font-size:14px; font-weight:500; cursor:pointer; min-height:40px; }
.kk-tombol:focus-visible { outline:3px solid var(--kk-aksen-lembut); outline-offset:2px; }
.kk-teks-saja { background:transparent; color:var(--kk-aksen); padding:10px 12px; }
.kk-teks-saja:hover { background:#f0f4fc; }
.kk-penuh { background:var(--kk-aksen); color:#fff; }
.kk-penuh:hover { background:#0842a0; }
.kk-penuh:disabled { background:#e3e3e3; color:#9aa0a6; cursor:default; }
.kk-centang { width:76px; height:76px; margin:4px auto 14px; border-radius:50%; background:#e6f4ea; display:flex; align-items:center; justify-content:center; }
.kk-centang svg { width:40px; height:40px; stroke:var(--kk-ok); stroke-dasharray:30; stroke-dashoffset:30; animation:kk-gores .45s .1s ease forwards; }
@keyframes kk-gores { to { stroke-dashoffset:0; } }
.kk-langkah { font-size:12px; letter-spacing:.4px; color:var(--kk-aksen); margin-bottom:6px; font-weight:500; }

/* Bilah sesi kartu anggota */
.kk-bilah { position:fixed; right:20px; bottom:20px; z-index:99990; display:flex; align-items:center; gap:12px; flex-wrap:wrap; max-width:calc(100vw - 32px);
            padding:10px 12px 10px 16px; border-radius:18px; color:#fff; font-size:14px; text-shadow:0 1px 2px rgba(0,0,0,.25);
            background:linear-gradient(125deg, rgba(245,158,11,.62), rgba(250,204,21,.28) 50%, rgba(255,255,255,.05) 75%), rgba(17,24,39,.5);
            -webkit-backdrop-filter:blur(24px) saturate(190%); backdrop-filter:blur(24px) saturate(190%);
            border:1px solid rgba(255,255,255,.34); box-shadow:0 16px 38px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.48);
            transition:transform .45s cubic-bezier(.2,.9,.25,1.1), opacity .35s, background .4s; }
.kk-bilah.kk-sembunyi { transform:translateY(calc(100% + 32px)); opacity:0; pointer-events:none; }
.kk-bilah b { font-variant-numeric:tabular-nums; }
.kk-bilah.kk-hampir { background:linear-gradient(125deg, rgba(239,68,68,.66), rgba(244,63,94,.3) 50%, rgba(255,255,255,.05) 75%), rgba(17,24,39,.5); }
.kk-bilah .kk-tombol { padding:7px 14px; min-height:34px; }
.kk-bilah .kk-teks-saja { color:#fff; background:rgba(255,255,255,.14); }
.kk-bilah .kk-teks-saja:hover { background:rgba(255,255,255,.26); }
.kk-bilah .kk-penuh { background:#fff; color:#1f1f1f; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .kk-bilah { background-color:rgba(17,24,39,.94); } }
.kk-sambut { position:fixed; left:50%; top:24px; transform:translateX(-50%); z-index:100001; background:#202124; color:#fff; padding:12px 20px;
             border-radius:14px; font-size:15px; box-shadow:0 8px 24px rgba(0,0,0,.3); animation:kk-naik .24s ease; }
.kk-catatan-sandi { padding:14px 16px; border-radius:12px; background:#fef7e0; color:#5f370e; font-size:14px; line-height:1.5; }

@media (prefers-reduced-motion: reduce) {
  .kk-siap .kk-cincin, .kk-putar, .kk-garis-muat::before, .kk-pin.kk-goyang, .kk-modal, .kk-latar, .kk-centang svg { animation:none !important; }
  .kk-centang svg { stroke-dashoffset:0; }
}
