/* =========================
   KARTU PAGE
========================= */

:root{

    --km-blue:#1d4ed8;
    --km-green:#22c55e;
    --km-bg:
        linear-gradient(
            145deg,
            #0a2540,
            #102f57
        );

}

/* page */

.km-kartu-page{

    padding:16px;

}

/* grid */

.km-kartu-grid{

    display:grid;

    grid-template-columns:
        320px 1fr;

    gap:20px;

    align-items:start;

}

/* =========================
   BIO
========================= */

.km-kartu-bio{

    padding:24px;

    text-align:center;

}

/* avatar */

.km-avatar-box{

    width:100px;

    height:100px;

    margin:0 auto 14px;

    border-radius:999px;

    overflow:hidden;

    background:#e2e8f0;

    display:flex;

    align-items:center;

    justify-content:center;

    border:4px solid white;

    box-shadow:
        0 4px 12px
        rgba(0,0,0,.12);

}

/* avatar image */

.km-avatar-box img{

    width:100%;

    height:100%;

    object-fit:cover;

}

/* fallback */

.km-avatar-box span{

    font-size:42px;

    font-weight:800;

    color:#475569;

}

/* name */

.km-kartu-name{

    font-size:20px;

    font-weight:800;

    color:#1e293b;

}

/* status */

.km-kartu-status{

    display:inline-block;

    margin-top:10px;

    background:#22c55e;

    color:white;

    padding:6px 16px;

    border-radius:999px;

    font-size:11px;

    font-weight:800;

    letter-spacing:.5px;

}

/* nip */

.km-kartu-nip{

    margin-top:10px;

    color:#64748b;

    font-size:13px;

}

/* =========================
   RENDER
========================= */

.km-kartu-render{

    position:relative;

    overflow:hidden;

    background:
        var(--km-bg);

    padding:32px 20px;

    display:flex;

    flex-direction:column;

    align-items:center;

    border-radius:24px;

}

/* particles */

.km-bg-canvas{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    opacity:.2;

    z-index:1;

}

/* =========================
   CARD
========================= */

.km-id-card{

    width:85.6mm;

    height:54mm;

    position:relative;

    overflow:hidden;

    border-radius:3.5mm;

    background:white;

    box-shadow:
        0 20px 40px
        rgba(0,0,0,.35);

    margin-bottom:20px;

    z-index:5;

    flex-shrink:0;

}

/* bg */

.km-id-bg{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

/* content */

.km-id-content{

    position:relative;

    z-index:2;

    height:100%;

    padding:18px;

    display:flex;

    flex-direction:column;

    box-sizing:border-box;

}

/* logo */

.km-id-logo{

    width:30mm;

    margin-bottom:4px;

}

/* header */

.km-id-header{

    font-size:8px;

    font-weight:800;

    color:#1e293b;

    text-transform:uppercase;

}

/* name */

.km-id-name{

    margin-top:12px;

    font-size:15px;

    font-weight:800;

    color:#16295c;

    text-transform:uppercase;

}

/* nip */

.km-id-nip{

    margin-top:3px;

    font-size:11px;

    font-weight:700;

    color:#34a853;

}

/* bottom */

.km-id-bottom{

    margin-top:auto;

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

}

/* contact */

.km-id-contact{

    font-size:8px;

    color:#334155;

    line-height:1.5;

}

/* qr */

.km-id-qr img{

    width:18mm;

    height:18mm;

    background:white;

    padding:2px;

    border-radius:3px;

}

/* =========================
   BUTTON
========================= */

.km-btn-cetak{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:10px;

    background:#f59e0b;

    color:white;

    text-decoration:none;

    padding:12px 26px;

    border-radius:999px;

    font-size:14px;

    font-weight:800;

    box-shadow:
        0 10px 20px
        rgba(0,0,0,.2);

    transition:.2s;

    z-index:5;

}

/* hover */

.km-btn-cetak:hover{

    transform:translateY(-2px);

    background:#d97706;

}

/* note */

.km-kartu-note{

    margin-top:8px;

    color:white;

    font-size:12px;

    z-index:5;

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .km-kartu-grid{

        grid-template-columns:1fr;

    }

    .km-id-card{

        transform:scale(.9);

        margin:-6px 0;

    }

}