/* ── Blok "Member" (page builder) ── */
.bk-member-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.bk-member-align-start  { justify-content: flex-start; }
.bk-member-align-center { justify-content: center; }
.bk-member-align-end    { justify-content: flex-end; }
.bk-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.bk-member-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.bk-member-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 2rem;
}
.bk-member-body { width: 100%; }
.bk-member-name { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 6px; line-height: 1.35; }
.bk-member-email {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 8px;
    word-break: break-all;
}
.bk-member-email:hover { text-decoration: underline; }
.bk-member-extra { margin-top: 8px; text-align: left; }
.bk-member-extra-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    padding: 4px 0;
    border-top: 1px solid #f1f2f4;
}
.bk-member-extra-label { color: #9ca3af; font-weight: 600; }
.bk-member-extra-value { color: #374151; text-align: right; }

/* ── Blok "Member" — gaya "Kartu ID" dengan rotate/flip ── */
.bk-idcard {
    position: relative;
    width: 240px;
    min-height: 380px;
    perspective: 1600px;
}
.bk-idcard-flippable { cursor: pointer; }
.bk-idcard-inner {
    position: relative;
    width: 100%;
    min-height: 380px;
    transition: transform .7s cubic-bezier(.4,.15,.2,1);
    transform-style: preserve-3d;
}
.bk-idcard-flippable:hover .bk-idcard-inner,
.bk-idcard-flippable:focus-within .bk-idcard-inner {
    transform: rotateY(180deg);
}
.bk-idcard-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.bk-idcard-front {
    position: relative;
    width: 100%;
    background: #e33a2e;
}
.bk-idcard-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    background: #16181d;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

/* — Bagian depan: atas hitam, wedge merah dekoratif di batas bawah —
   Wedge ada di pseudo-element TERPISAH (bukan clip-path pada box ini),
   supaya teks nama/jabatan tidak pernah ikut terpotong. */
.bk-idcard-top {
    position: relative;
    background: #14161a;
    padding: 28px 16px 46px;
    text-align: center;
}
.bk-idcard-top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    background: #e33a2e;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.bk-idcard-photo-wrap,
.bk-idcard-namebar {
    position: relative;
    z-index: 1;
}
.bk-idcard-photo-wrap {
    width: 108px;
    height: 108px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid #e33a2e;
    overflow: hidden;
    background: #d1d5db;
}
.bk-idcard-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bk-idcard-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 2.4rem;
}
.bk-idcard-namebar { padding: 0 8px; }
.bk-idcard-name {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0 0 4px;
    line-height: 1.25;
}
.bk-idcard-lname { color: #e33a2e; }
.bk-idcard-role {
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92;
    margin: 0;
}
.bk-idcard-bottom {
    padding: 8px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bk-idcard-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bk-idcard-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #14161a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.bk-idcard-contact-text {
    color: #fff;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    word-break: break-all;
}
.bk-idcard-contact-text:hover { text-decoration: underline; color: #fff; }

.bk-idcard-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px auto 0;
    padding: 8px 14px;
    border-radius: 50rem;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    width: fit-content;
}

/* — Bagian belakang: info tambahan — */
.bk-idcard-back-title {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 4px;
}
.bk-idcard-back-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: #e33a2e;
    border-radius: 2px;
    margin: 8px auto 0;
}
.bk-idcard-extra {
    flex: 1;
    overflow-y: auto;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bk-idcard-extra-row {
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding-bottom: 8px;
}
.bk-idcard-extra-label {
    display: block;
    color: #e33a2e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.bk-idcard-extra-value {
    display: block;
    color: #f3f4f6;
    font-size: 13px;
    line-height: 1.4;
}

/* ── Blok "Member" — gaya "Kartu Gradient" (foto atas, nama + email di depan,
     hover untuk membalik & menampilkan info tambahan) ── */
.bk-gradcard {
    position: relative;
    width: 220px;
    min-height: 300px;
    perspective: 1600px;
}
.bk-gradcard-flippable { cursor: pointer; }
.bk-gradcard-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
    transition: transform .7s cubic-bezier(.4,.15,.2,1);
    transform-style: preserve-3d;
}
.bk-gradcard-flippable:hover .bk-gradcard-inner,
.bk-gradcard-flippable:focus-within .bk-gradcard-inner {
    transform: rotateY(180deg);
}
.bk-gradcard-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(13,20,60,.3);
}
.bk-gradcard-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0c1547 0%, #16247a 45%, #2f6fed 100%);
    padding: 30px 20px 26px;
    text-align: center;
}
.bk-gradcard-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    background: #0c1547;
    padding: 26px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bk-gradcard-photo-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.12));
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.bk-gradcard-photo,
.bk-gradcard-photo-empty {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.bk-gradcard-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c7d2fe;
    color: #3730a3;
    font-size: 2.2rem;
}
.bk-gradcard-name {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .01em;
    margin: 0 0 14px;
}
.bk-gradcard-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.bk-gradcard-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.bk-gradcard-email {
    color: #bcd2ff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.bk-gradcard-email:hover { text-decoration: underline; color: #dbe7ff; }
.bk-gradcard-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px auto 0;
    padding: 7px 14px;
    border-radius: 50rem;
    background: rgba(255,255,255,.1);
    color: #dbe7ff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    width: fit-content;
}
.bk-gradcard-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 14px;
}
.bk-gradcard-back-title {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.bk-gradcard-back-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: #2f6fed;
    border-radius: 2px;
    margin: 8px auto 0;
}
.bk-gradcard-extra {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.bk-gradcard-extra-row {
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding-bottom: 8px;
}
.bk-gradcard-extra-label {
    display: block;
    color: #8fb1ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.bk-gradcard-extra-value {
    display: block;
    color: #f1f5ff;
    font-size: 13px;
    line-height: 1.4;
}
