/* --- css Login --- */
/* --- FIX LỖI NỀN ĐEN --- */

.overlay {
    position: relative;
    z-index: 1; /* Để nội dung nổi lên trên nền */
    min-height: 100vh;
}

/* --- GIỮ NGUYÊN TOÀN BỘ CSS CỦA ÔNG --- */
/* --- AUTH TRIGGER ICON --- */
.auth-trigger {
    position: fixed; top: 20px; right: 20px; z-index: 1000; cursor: pointer;
}
.auth-icon-circle {
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.admin-glow { color: var(--pink-main) !important; animation: pulse-glow 2s infinite alternate; }
@keyframes pulse-glow { from { opacity: 0.7; } to { opacity: 1; filter: drop-shadow(0 0 8px var(--pink-main)); } }

/* --- SIDEBAR USER (TỐI ƯU GỌN GÀNG) --- */
.user-sidebar {
    position: fixed; top: 0; right: -320px; width: 280px; height: 100%;
    background: rgba(18, 18, 18, 0.98); backdrop-filter: blur(25px);
    z-index: 9999; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); padding: 15px 20px;
    display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,0.1);
}
.user-sidebar.active { right: 0; }
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9998; display: none; backdrop-filter: blur(3px);
}
.sidebar-overlay.active { display: block; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.btn-close-sidebar { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.5; }

.avatar-section { text-align: center; margin-bottom: 15px; }
.avatar-wrapper { position: relative; width: 85px; height: 85px; margin: 0 auto 8px; }
.avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink-main); }
.btn-edit-avatar {
    position: absolute; bottom: 2px; right: 2px; background: var(--pink-main);
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 11px; cursor: pointer; border: 2px solid #121212;
}

.user-uid { font-size: 10px; color: var(--pink-main); opacity: 0.8; letter-spacing: 1px; font-weight: bold; margin-top: 3px; }

.info-group { margin-bottom: 12px; text-align: left; }
.info-group label { display: block; font-size: 10px; text-transform: uppercase; opacity: 0.4; margin-bottom: 4px; margin-left: 4px; }
.input-readonly {
    background: rgba(255,255,255,0.05); padding: 10px 14px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.08);
    font-size: 13.5px;
}

.sidebar-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.btn-sidebar {
    width: 100%; padding: 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03); color: #fff; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500;
}
.btn-sidebar:hover { background: rgba(255,255,255,0.08); border-color: var(--pink-main); }
.btn-logout-sidebar { background: rgba(255, 71, 87, 0.15); border-color: rgba(255, 71, 87, 0.3); color: #ff4757; margin-top: 5px; }

.auth-form-box { display: none; width: 100%; }
.auth-form-box.active { display: block; }