/* ===== GLOBAL ===== */
body {
    background: radial-gradient(circle at top, #12001f, #050008);
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ===== PAGE ===== */
.anggota-page {
    padding: 120px 80px 80px;
}

/* ===== TITLE ===== */
.anggota-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.title-line {
    width: 140px;
    height: 4px;
    background: #8a2be2;
    margin: 0 auto 40px;
}

/* ===== TOTAL BOX ===== */
.total-box {
    margin: 0 auto 60px;
    background: linear-gradient(135deg, #2a004f, #12001f);
    width: 240px;
    padding: 25px;
    border-radius: 14px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 0 25px rgba(138,43,226,.6);
}

.total-box i {
    font-size: 30px;
    color: #b266ff;
}

.total-box small {
    color: #ccc;
}

.total-box h2 {
    margin: 0;
    font-size: 32px;
}

/* ===== GRID ===== */
.anggota-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== CARD ===== */
.anggota-card {
    background: linear-gradient(145deg, #160022, #09000f);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 0 25px rgba(138,43,226,.35);
    transition: .3s;
    cursor: pointer;
}

.anggota-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(155,92,255,.7);
}

/* ===== AVATAR ===== */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2be2, #b266ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 32px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INFO ===== */
.info h3 {
    margin: 0;
    font-size: 18px;
}

.nickname {
    display: block;
    font-size: 13px;
    color: #b78cff;
    margin: 4px 0 6px;
}

.info p {
    margin-top: 8px;
    font-size: 13px;
    color: #aaa;
}

.join-date {
    font-size: 12px;
    opacity: .75;
}

/* ===== ROLE ===== */
.role {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
}

.role i {
    margin-right: 6px;
}

.boss { color: gold; }
.underboss { color: #ffb347; }
.captain { color: #c084ff; }
.soldier { color: #4da6ff; }

/* ===== ROLE COLUMN ===== */
.anggota-role-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.role-column {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 12px;
}

.role-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    color: #a855f7;
}

.real-og .role-title { color: gold; }
.og .role-title { color: #22c55e; }
.rg .role-title { color: #38bdf8; }

/* ===== MODAL ===== */
#anggotaModal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
}

#anggotaModal:not([open]) {
    display: none;
}

#anggotaModal::backdrop {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
}

/* ===== MODAL CONTAINER ===== */
.anggota-modal-container {
    width: 320px;
    max-width: 90%;
    background: radial-gradient(circle at top, #3a005f, #120016);
    border-radius: 18px;
    padding: 26px 22px;
    text-align: center;
    color: #fff;
    position: relative;
    animation: modalPop .35s ease;
}

@keyframes modalPop {
    from {
        transform: scale(.85) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ===== CLOSE ===== */
.anggota-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,.1);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* ===== MODAL AVATAR ===== */
.anggota-modal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #8a2be2, #b266ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.anggota-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anggota-modal-avatar span {
    font-size: 52px;
    font-weight: bold;
}

/* ===== MODAL TEXT ===== */
#modalNama {
    font-size: 20px;
    margin: 6px 0 2px;
}

#modalNickname {
    font-size: 14px;
    color: #b78cff;
    margin-bottom: 10px;
}

.modal-role {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 12px;
    background: rgba(138,43,226,.25);
}

.modal-join {
    font-size: 13px;
    opacity: .8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .anggota-page {
        padding: 100px 40px 60px;
    }

    .anggota-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .anggota-role-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .anggota-page {
        padding: 90px 16px 50px;
    }

    .anggota-title {
        font-size: 32px;
    }

    .anggota-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .anggota-card {
        padding: 18px;
        gap: 14px;
    }

    .avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}
