
/* ── Modal wrap ── */
.profile-modal-wrap {
    display: flex;
    width: 100%;
    max-width: 820px;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-border);
    animation: gcAuthSlideUp .25s ease;
    position: relative;
}

/* ── Tombol tutup ── */
.profile-close-x {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text3);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.profile-close-x:hover {
    color: var(--text);
    border-color: var(--gold-border);
}

/* ════════════════
   PANEL KIRI
   ════════════════ */
.profile-panel-left {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(165deg, var(--bg2) 0%, #110e06 100%);
    border-right: 1px solid var(--gold-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
}

/* Dekorasi gold radial */
.profile-panel-left::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 200, 66, .08) 0%, transparent 70%);
    top: -60px;
    right: -70px;
    pointer-events: none;
}

.profile-panel-left::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 200, 66, .05) 0%, transparent 70%);
    bottom: -30px;
    left: -40px;
    pointer-events: none;
}

/* Avatar */
.profile-avatar-wrap {
    position: relative;
    width: 88px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #c9a200);
    border: 3px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg2);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.profile-avatar-upload-btn:hover {
    transform: scale(1.1);
}

/* Nama & badge */
.profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.profile-badge {
    margin-bottom: 20px;
}

/* Info list */
.profile-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-info-icon {
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.profile-info-text {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.5;
    word-break: break-all;
}

/* Divider */
.profile-left-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
    margin-bottom: 20px;
}

/* Verse */
.profile-verse {
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}

.profile-verse-text {
    font-size: 11.5px;
    color: var(--text2);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 5px;
}

.profile-verse-ref {
    font-size: 10.5px;
    color: var(--gold);
    font-weight: 600;
}

/* ════════════════
   PANEL KANAN
   ════════════════ */
.profile-panel-right {
    flex: 1;
    background: var(--bg2);
    padding: 32px 32px 28px;
    overflow-y: auto;
    max-height: 88vh;
}

.profile-panel-right::-webkit-scrollbar {
    width: 4px;
}

.profile-panel-right::-webkit-scrollbar-track {
    background: transparent;
}

.profile-panel-right::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* Tab switcher */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.profile-tab {
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 8px 8px 0 0;
    transition: all .2s;
}

.profile-tab:hover {
    color: var(--text);
    background: var(--bg3);
}

.profile-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: var(--bg3);
}

/* Tab content */
.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Section title */
.profile-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* Detail grid */
.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.profile-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.profile-detail-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    word-break: break-all;
}

.profile-status-badge {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(39, 174, 96, .12);
    border: 1px solid rgba(39, 174, 96, .25);
    color: #5fd98a;
    font-size: 12px;
    font-weight: 600;
}

/* Shortcut ke edit */
.profile-edit-shortcut {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    background: var(--gold-dim);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.profile-edit-shortcut:hover {
    background: var(--gold);
    color: #000;
}

/* Alert pakai class dari auth (.auth-alert--success / error) */
.auth-alert--success {
    background: rgba(39, 174, 96, .12);
    border: 1px solid rgba(39, 174, 96, .3);
    color: #5fd98a;
}

.auth-alert--error {
    background: rgba(220, 53, 69, .12);
    border: 1px solid rgba(220, 53, 69, .3);
    color: #ff7070;
}

/* ── Navbar: avatar klik untuk buka profil modal ── */
.nav-user-avatar {
    cursor: pointer;
    transition: box-shadow .2s;
}

.nav-user-avatar:hover {
    box-shadow: 0 0 0 2px var(--gold);
}

.nav-user-name {
    cursor: pointer;
}

.nav-user-name:hover {
    color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .profile-panel-left {
        display: none;
    }

    .profile-modal-wrap {
        max-width: 420px;
        min-height: auto;
        border-radius: 20px;
    }

    .profile-panel-right {
        padding: 24px 20px;
    }

    .profile-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) and (min-width: 641px) {
    .profile-panel-left {
        width: 220px;
        padding: 24px 18px;
    }

    .profile-name {
        font-size: 15px;
    }
}

/* ════════════════════════════════════════════════════════════
   PROFILE MODAL — GBI Slawi
   Tambahkan ke bagian bawah style.css
   ════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.profile-overlay.open {
    display: flex;
    animation: gcAuthFadeIn .2s ease;
    /* pakai keyframe yang sudah ada */
}

/* ── Modal wrap ── */
.profile-modal-wrap {
    display: flex;
    width: 100%;
    max-width: 820px;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-border);
    animation: gcAuthSlideUp .25s ease;
    position: relative;
}

/* ── Tombol tutup ── */
.profile-close-x {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text3);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.profile-close-x:hover {
    color: var(--text);
    border-color: var(--gold-border);
}

/* ════════════════
   PANEL KIRI
   ════════════════ */
.profile-panel-left {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(165deg, var(--bg2) 0%, #110e06 100%);
    border-right: 1px solid var(--gold-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
}

/* Dekorasi gold radial */
.profile-panel-left::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 200, 66, .08) 0%, transparent 70%);
    top: -60px;
    right: -70px;
    pointer-events: none;
}

.profile-panel-left::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 200, 66, .05) 0%, transparent 70%);
    bottom: -30px;
    left: -40px;
    pointer-events: none;
}

/* Avatar */
.profile-avatar-wrap {
    position: relative;
    width: 88px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #c9a200);
    border: 3px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg2);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.profile-avatar-upload-btn:hover {
    transform: scale(1.1);
}

/* Nama & badge */
.profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.profile-badge {
    margin-bottom: 20px;
}

/* Info list */
.profile-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-info-icon {
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.profile-info-text {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.5;
    word-break: break-all;
}

/* Divider */
.profile-left-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
    margin-bottom: 20px;
}

/* Verse */
.profile-verse {
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}

.profile-verse-text {
    font-size: 11.5px;
    color: var(--text2);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 5px;
}

.profile-verse-ref {
    font-size: 10.5px;
    color: var(--gold);
    font-weight: 600;
}

/* ════════════════
   PANEL KANAN
   ════════════════ */
.profile-panel-right {
    flex: 1;
    background: var(--bg2);
    padding: 32px 32px 28px;
    overflow-y: auto;
    max-height: 88vh;
}

.profile-panel-right::-webkit-scrollbar {
    width: 4px;
}

.profile-panel-right::-webkit-scrollbar-track {
    background: transparent;
}

.profile-panel-right::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* Tab switcher */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.profile-tab {
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 8px 8px 0 0;
    transition: all .2s;
}

.profile-tab:hover {
    color: var(--text);
    background: var(--bg3);
}

.profile-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: var(--bg3);
}

/* Tab content */
.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Section title */
.profile-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* Detail grid */
.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.profile-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.profile-detail-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    word-break: break-all;
}

.profile-status-badge {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(39, 174, 96, .12);
    border: 1px solid rgba(39, 174, 96, .25);
    color: #5fd98a;
    font-size: 12px;
    font-weight: 600;
}

/* Shortcut ke edit */
.profile-edit-shortcut {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    background: var(--gold-dim);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.profile-edit-shortcut:hover {
    background: var(--gold);
    color: #000;
}

/* Alert pakai class dari auth (.auth-alert--success / error) */
.auth-alert--success {
    background: rgba(39, 174, 96, .12);
    border: 1px solid rgba(39, 174, 96, .3);
    color: #5fd98a;
}

.auth-alert--error {
    background: rgba(220, 53, 69, .12);
    border: 1px solid rgba(220, 53, 69, .3);
    color: #ff7070;
}

/* ── Navbar: avatar klik untuk buka profil modal ── */
.nav-user-avatar {
    cursor: pointer;
    transition: box-shadow .2s;
}

.nav-user-avatar:hover {
    box-shadow: 0 0 0 2px var(--gold);
}

.nav-user-name {
    cursor: pointer;
}

.nav-user-name:hover {
    color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .profile-panel-left {
        display: none;
    }

    .profile-modal-wrap {
        max-width: 420px;
        min-height: auto;
        border-radius: 20px;
    }

    .profile-panel-right {
        padding: 24px 20px;
    }

    .profile-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) and (min-width: 641px) {
    .profile-panel-left {
        width: 220px;
        padding: 24px 18px;
    }

    .profile-name {
        font-size: 15px;
    }
}

.logout-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.logout-overlay.open {
    display: flex;
    animation: gcAuthFadeIn .18s ease;
}

.logout-dialog {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-border);
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    animation: gcAuthSlideUp .22s ease;
}

.logout-icon {
    font-size: 40px;
    margin-bottom: 14px;
    display: block;
}

.logout-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
}

.logout-sub {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 24px;
}

.logout-actions {
    display: flex;
    gap: 10px;
}

.logout-btn-cancel {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.logout-btn-cancel:hover {
    border-color: var(--gold-border);
    color: var(--text);
}

.logout-btn-confirm {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(220, 53, 69, .4);
    background: rgba(220, 53, 69, .1);
    color: #ff7070;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.logout-btn-confirm:hover {
    background: rgba(220, 53, 69, .2);
    border-color: rgba(220, 53, 69, .7);
    color: #ff4d4d;
}

