#tree-container2 {

        position: relative; width: 100%; height: 90vh; min-height: 800px;

        /*max-height: 1200px;*/ margin-top: 20px; background-color: #f0f0f1;

        border: 1px solid #ddd; overflow: hidden;

    }

    #gp-pro-chart-options{
        margin-top: 230px;
        padding: 30px;
    }

    #fit-to-view-btn {

        padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 14px;

    }

    #gp-pro-reset-to-default {

            padding: 5px 10px;

            border-radius: 4px;

            cursor: pointer;

            font-size: 13px;

            background: #c70101;

            color: white;

            font-weight: bold;

            line-height: 1.6;

    }

    #fit-to-view-btn { background-color: #2271b1; color: white; border: none; }

    #fit-to-view-btn:hover { background-color: #1e639a; }

    #gp-pro-fixed-panel {
        position: absolute;
        right: 50px;
        z-index: 99999;
        display: flex    ;
        gap: 10px;
        align-items: center;
        top: 5px;
    }

    #fit-to-view-btn-m{
        width: auto; 
    }

    #fit-to-view-btn-m, #gp-pro-options-wrapper {
        margin: 0 !important;
        background: white;
        border:none;
        box-shadow:none;
    }

    /* ================= BẮT ĐẦU MÃ MỚI ================= */
    #gp-pro-options-wrapper {
        max-height: 90vh; /* Giới hạn chiều cao tối đa là 80% chiều cao màn hình */
        overflow-y: auto; /* Tự động hiển thị thanh cuộn dọc khi nội dung dài hơn */
    }
    /* ================= KẾT THÚC MÃ MỚI ================= */
    #gp-pro-options-wrapper {

        width: auto;

    }

    /* --- THÊM ĐOẠN CSS MỚI NÀY --- */

    /* 1. Thiết lập cho thẻ cha chứa toàn bộ nội dung */
    .content-area {
    display: flex;
    flex-direction: column;
    /* Chiều cao của .content-area sẽ bằng chiều cao màn hình trừ đi chiều cao header chính của trang (nếu có) */
    /* Bạn có thể cần điều chỉnh giá trị 60px này cho phù hợp với chiều cao header của bạn */
    height: calc(100vh - 60px); 
    }

    /* 2. Thiết lập cho container của sơ đồ */
    #tree-container {
    flex-grow: 1; /* Đây là thuộc tính quan trọng nhất, nó ra lệnh cho #tree-container chiếm hết không gian dọc còn lại */
    position: relative;
    width: 100%;
    background-color: #e9e9e9;
    /* Dòng min-height: 0 rất quan trọng để tránh lỗi co giãn của flexbox trên một số trình duyệt */
    min-height: 0;
    }

    /* 3. Đảm bảo SVG bên trong cũng co giãn theo */
    #tree-container .genealogy-svg {
        width: 100%;
        height: 100%;
        display: block;
    }



    #gp-toolbar-fixed {

        /*flex-shrink: 0;*/

         /*background: white;*/

         /*padding: 10px 15px;*/

        z-index: 10;

         /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/

        display: flex;

        position: fixed;

    }



    #tree {

        flex: 1;

    }



    /** * THAY ĐỔI CSS CHO DI ĐỘNG (MOBILE)

     * Các quy tắc cũ đã được thay thế bằng quy tắc mới bên dưới

     * để sắp xếp các nút theo chiều dọc và ở bên phải.

    **/
#genealogy-search-input{
        padding: 0 5px;
        width: 250px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin: 0;
    }
    
#gp-pro-fixed-panel-sub{
    display: flex;
    align-items: center;
    gap: 10px;
}
.gp-pro-options-toggle ,#btn-export-corel, #btn-clear-sys-cache{
    background: #03817c;
    color: white;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gp-pro-options-toggle, #btn-export-corel {
    background: #03817c;
    color: #fff;
    height: 40px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}



#fit-to-view-btn ,.gp-pro-options-toggle{
    margin: 0;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 40px;
}
#genealogy-search-button{
    padding: 0px 12px; 
    border: none; 
    background: #0073aa; 
    color: white; 
    border-radius: 4px; 
    cursor: pointer;
    width: auto;
    height: 40px;
    margin: 0;
}
.shortcode-home-section{
    min-height: unset !important;
}
#genealogy-search-container{
        text-align: center; 
        border-bottom: 1px solid #ddd;
    }
#genealogy-search-input{
    margin-top: 0px;
}
#gp-toggle-announcements-top{
    margin: 0;
    /* padding: 0 !important; */
    height: 40px !important;
}
/* Chân popup (Footer) */
.gp-popup-footer {
    /*position: absolute;*/
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    padding: 5px 20px;
}
@media (orientation: landscape) and (max-height: 800px){    
    #gp-toggle-announcements-top{
        height: 30px !important;
        top: 5px;
    }
    .footer-wrapper{
    display: none !important;
    }
    #header{
    display: none !important;
    }
    #footer{
    display: none !important;
    }
    #genealogy-search-input {
        width: auto;
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 8px !important; /* canh giữa nội dung */
        box-sizing: border-box;
    }
    
    #gp-pro-fixed-panel{
        display: flex;
        flex-direction: row !important;
        top: 0px !important;
        position: unset;
       
    }
    #fit-to-view-btn-m{
        background: none;
        border: none;
        box-shadow: none;
    }
    #fit-to-view-btn-m,#gp-pro-fixed-panel,#genealogy-search-button,#gp-pro-fixed-panel-sub,#fit-to-view-btn, .gp-pro-options-toggle{
        height: 30px !important;
        min-height: 30px !important;
        font-size: 0.7rem;
        top: 5px !important;
        float: right;
        z-index: 99999;
    }
   #genealogy-search-button{
        width:80px;
    }
    .search-input-main{
        display: flex;
        gap: 10px;
    }
    #genealogy-search-container{
        display: none;
        padding: 0px;
    }
    .gp-popup-overlay {
        top: 90px !important;
        height: calc(100vh - 140px) !important;
    }
}
#btn-reset-tree-full {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9999;
    background: #d63031;
    color: white;
    border: 2px solid #fff;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-weight: bold;
    font-size: 14px;
}
.show_on_mobile{
    display:none;
    padding: 5px 0 0 !important;
    text-align: center; 
    color: #fff !important; 
    margin: 0 !important; 
    font-weight: bold;
    font-size: 14px;
}
.hide_on_mobile{
    display:block;
    font-size: 14px;
}
@media (max-width: 768px) {
    #genealogy-search-container{
        padding: 10px;
    }    
    .gp-popup-content {
        max-width: 650px !important;
        /*height: calc(100vh - 150px);*/
        max-height: 85vh !important; 
        height: auto !important; /* Tự động theo nội dung nhưng không quá 85vh */
        padding: 10px 10px 0 !important;
    }
    .gp-pro-options-toggle ,#btn-export-corel, #btn-clear-sys-cache{
        height: 30px;
        margin: 10px 0 -10px;
    }
    .gp-popup-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99999 !important;
        background: rgba(0,0,0,0.5); /* Làm mờ nền nếu cần */
        padding: 0 !important;
    }
}

@media (max-width: 500px) {
    .show_on_mobile{
        display:block;
        color: #006d95 !important;
    }
    .hide_on_mobile{
        display:none;
    }
    .gp-popup-footer {
        padding: 5px 0 5px;
    }   
    #btn-reset-tree-full {
        top: 100px;
        padding: 5px 10px;
        margin: 0;
    }
    #gp-pro-fixed-panel {        
        width: 100% !important;
    }
    .gp-popup-overlay {
        padding: 0px !important;
        top: 10px !important;
    }
}
@media (max-width: 600px) {
    #genealogy-search-container{
        padding: 0px;
    }
}
@media (max-width: 1050px) {    
    #gp-pro-fixed-panel {
        top: 0px;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 15px;
        margin: 0;
        width: auto;
    }
}
@media (max-width: 820px) {
    #gp-toggle-announcements-top{
        height: 30px !important;
        font-size: 0.7rem !important;
    }
    #gp-pro-fixed-panel {
        padding: 0 0 5px;
    }
    .death-anniversary-box{
        display: none !important;
    }
    #fit-to-view-btn, .gp-pro-options-toggle, #genealogy-search-button{
        height: 30px !important;
        min-height: 30px !important;
        font-size: 0.7rem;
    }
    /* === KIỂU DÁNG ĐỒNG BỘ CHO CẢ 2 NÚT === */
    #fit-to-view-btn-m, #gp-pro-options-wrapper {
        margin: 0 !important;
        background: white;
        border:none;
        box-shadow:none;
    }
    #gp-pro-option-group input[type=checkbox], input[type=radio]{
        height: 20px;
        width: 20px;
    }
    #fit-to-view-btn-m,.gp-pro-options-toggle {
        display: flex; /* Dùng Flexbox để căn chỉnh nội dung */
        align-items: center; /* Căn giữa theo chiều dọc */
        justify-content: center; /* Căn giữa theo chiều ngang */
        box-sizing: border-box; /* Giúp padding không làm nút to ra */
        height: 30px;
        padding: 0 15px; /* Khoảng cách trái/phải cho chữ */
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 500;
        color: white;
        cursor: pointer;
        white-space: nowrap;
        margin: 0; /* Xóa bỏ mọi khoảng cách thừa */

    }

    /* Màu nền cho nút Zoom */

    #fit-to-view-btn-m p {

        background-color: #2271b1;

        border: none;

    }
    /* Căn chỉnh lại icon mũi tên bên trong nút Cài đặt */

    .gp-pro-options-toggle .dashicons {

        font-size: 16px;
        height: auto;

    }
    /* === DÙNG 'order' ĐỂ SẮP XẾP LẠI VỊ TRÍ === */

    .search-input-main{
        margin: 0;
        padding: 0 0 0 5px !important;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    /* Đặt nút "Cài đặt" ở vị trí số 1 (bên trên) */
    
    #gp-pro-fixed-panel-sub {
        order: 2;
        margin: 0 !important;
        display: flex;
        gap: 5px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    #fit-to-view-btn-m {
        order: 3;
        flex-direction: column;
        margin: 0px 0 !important;
        padding: 5px 0;
        width: 100%;
        gap: 10px;
        display: flex;
    }    
    #genealogy-search-input {
    width: 50%;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 8px !important; /* canh giữa nội dung */
    box-sizing: border-box;        
    min-height: 30px !important;
}

}
/* ===== CSS TÙY CHỈNH CHO VIỆC IN ẤN SƠ ĐỒ ===== */
@media print {
/* Ẩn tất cả các thành phần trên trang theo mặc định */
body * {
    visibility: hidden;
}

/* Chỉ hiển thị khu vực chứa sơ đồ và các thành phần con bên trong nó */
#tree-container, #tree-container * {
    visibility: visible;
}

/* Đặt sơ đồ vào góc trên cùng bên trái của trang in */
#tree-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none; /* Bỏ đường viền khi in */
}

/* Đảm bảo SVG lấp đầy toàn bộ không gian */
#tree-container .genealogy-svg {
    width: 100vw;
    height: 100vh;
}
}
.gp-popup-overlay {
    max-width: unset !important;
    position: fixed; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    justify-content: center;
    z-index: 99999999999;
    align-items: center;

}

.gp-popup-content {
    background: #fff;
    z-index: 9999999999 !important;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gp-popup-close,.gp-popup-close-set {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: red;
    cursor: pointer;
}
#tree{
    width:100%; 
    height:85vh;
}
/* === FILE: assets/css/member-profile.css === */

/* --- 1. CÁC STYLE DÙNG CHUNG CHO CẢ HAI --- */
.profile-container { font-family: sans-serif; color: #333; }
.profile-top-row { display: flex; gap: 25px; padding-bottom: 15px; }
.profile-col { flex: 1; }
.profile-middle-row, .profile-bottom-row { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e0e0e0; }
.section-title { font-size: 16px; font-weight: bold; color: #005a9c; margin: 0 0 10px 0; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table td { padding: 6px 0; border-bottom: 1px solid #f5f5f5; text-align: left; font-size: 14px; line-height: 1.6; }
.profile-table tr:last-child td { border-bottom: none; }
.children-list { margin: 0; padding-left: 20px; }
.scrollable-content { max-height: 150px; overflow-y: auto; padding: 10px; background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 4px; line-height: 1.6; font-size: 14px; }
.profile-avatar-placeholder { width: 120px; height: 120px; border-radius: 50%; background: #f0f0f0; display: inline-flex; align-items: center; justify-content: center; }
.profile-avatar-placeholder .dashicons { font-size: 70px; color: #aaa; }

/* --- 2. STYLE RIÊNG CHO POPUP --- */
.gp-context-popup .profile-col-avatar { flex: 0 0 130px; text-align: center; }
.gp-context-popup .profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.gp-context-popup .profile-name { font-size: 1.3em; font-weight: bold; margin: 10px 0 0; }
.gp-context-popup .profile-table td:first-child { width: 80px; }

/* --- 3. STYLE RIÊNG CHO TRANG HỒ SƠ --- */
.gp-context-page .profile-col-avatar { flex: 0 0 250px; text-align: center; }
.gp-context-page .profile-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #f0f0f0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.gp-context-page .profile-name { font-size: 1.8em; font-weight: bold; margin: 10px 0 0; color: #005a9c; }
.gp-context-page .profile-table td:first-child { width: 100px; }
.gp-context-page .profile-col-family { background-color: #f9f9f9; padding: 15px; border-radius: 5px; 
}
.hidden{
    visibility: hidden;
}
.gp-password-modal-overlay {
    position: fixed; /* Luôn cố định trên màn hình, dù cuộn trang */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Lớp phủ màu đen mờ */
    z-index: 1001; /* Luôn nằm trên các phần tử khác */
    
    /* === Các thuộc tính quan trọng để căn giữa === */
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center;   /* Căn giữa theo chiều dọc */
    /* ======================================= */

    /* Các thuộc tính để tạo hiệu ứng ẩn/hiện */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Class này được thêm/xóa bằng JavaScript để điều khiển popup */
.gp-password-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.gp-password-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s;
}

.gp-password-modal-overlay.is-visible .gp-password-modal-content {
    transform: translateY(0); /* Hiệu ứng trồi lên */
}

.gp-password-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.gp-password-modal-close:hover {
    color: #333;
}
/* Thêm vào cuối file assets/css/member-profile.css */

.password-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 25em; /* Giới hạn chiều rộng giống class .regular-text */
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 30px; /* Tạo khoảng trống cho icon */
}

.show-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.show-password-toggle:hover {
    color: #333;
}

/* THONOG BAO SU KIEN*/
.gp-announcement-toggle-wrapper { margin: 0px; text-align: right; }
.gp-toggle-button {
    font-size: 13px !important; padding: 5px 12px !important; height: auto !important;
    line-height: 1.5 !important; background: #ffffff; border: 1px solid #ccd0d4;
    color: #2c3338; cursor: pointer; border-radius: 3px;
    transition: all 0.2s ease-in-out; box-shadow: 0 1px 1px rgba(0,0,0,.04);
    display: inline-flex; align-items: center; gap: 5px;
}
.gp-toggle-button:hover { background: #f6f7f7; border-color: #8c8f94; }
#gp-events-popup-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999; justify-content: center; align-items: center;
}
.theme-default {
    background: #000000d4;
    animation: background-move 20s linear infinite;
}
.theme-funeral {
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(43, 43, 43, 0.9)),
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.1"/></svg>');
    background-color: #1a1a1a;
}
.theme-wedding {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 192, 203, 0.95) 0%, rgba(255, 105, 180, 0.8) 100%);
}
@keyframes background-move {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 100px 100px, 200px 100px, 150px 50px, 0 0; }
}
#gp-events-popup-content {
    background: rgba(255, 255, 255, 0.98); 
    border-radius: 12px;
    width: 850px; 
    max-width: 95%; 
    max-height: 90vh;
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(0,0,0,0.1);
}
#gp-events-popup-header {
    padding: 10px 10px 0; 
    border-bottom: 1px solid #ddd;
    background-color: #f7f7f7; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-shrink: 0;
}
.gp-events-popup-title { margin: 0; font-size: 1.2em; font-weight: 600; }
.gp-popup-close-events-x { font-size: 2.5rem; font-weight: bold; color: #ff0000; cursor: pointer; line-height: 1; padding: 0 5px; }
#gp-announcements-content-wrapper { 
    padding: 20px; 
    overflow-y: auto; 
    flex: 1; /* THÊM: Tự động chiếm khoảng trống còn lại */
    min-height: 0; /* THÊM: Fix lỗi flexbox trên một số trình duyệt */
}
.admin-announcement-box, .event-notification-box { 
    padding: 15px; 
    margin: 0 0 20px; 
    border-radius: 5px; 
    width: 100%; 
    box-sizing: border-box; 
}
.admin-announcement-box { border: 2px solid #d31010ff; background-color: #fff8f8; }
.event-notification-box { border: 1px solid #ddd; border-left: 5px solid #1e90ff; background-color: #f9f9f9; }
ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }
li { padding-left: 10px; margin-bottom: 10px; white-space: normal; word-wrap: break-word; word-break: break-word; }
.gp-col-90{ width: 90%; text-align: center; }
@media (max-width: 786px) {
    #gp-events-popup-content { 
        width: 95% !important; /* Rộng 95% màn hình */
        height: auto !important; 
        max-height: 90vh !important; /* QUAN TRỌNG: Chỉ cao tối đa 90% màn hình */        
        border-radius: 8px !important; /* Bo tròn nhẹ cho đẹp */
        margin: 0 !important; /* QUAN TRỌNG: Xóa margin-top 80px gây lỗi tụt */
        padding-bottom: 0 !important; /* Footer đã lo phần padding */
    }
    #gp-events-popup-overlay {
        align-items: flex-start !important; /* Đổi thành flex-start để căn từ trên xuống */
        padding-top: 60px !important; /* Chừa chỗ cho Header + Admin Bar (khoảng 46 + 50) */
        box-sizing: border-box !important;
    }
    #gp-announcements-content-wrapper { 
        padding: 10px 15px !important; 
        overflow-y: auto !important; 
    }

    /* Ẩn bớt nút 'Xem chi tiết' nếu cần để footer gọn hơn */
    .gp-popup-details-btn {
        display: none !important;
    }
    /* Kiểm tra nếu class admin-bar đang tồn tại ở thẻ body */
    .admin-bar .gp-popup-overlay {
        top: 130px !important; /* Đẩy overlay xuống dưới thanh admin bar mobile */
        height: calc(100% - 150px) !important;
    }

    .admin-bar #gp-events-popup-content {
        /* Đảm bảo popup không bị dính sát mép thanh admin bar */
        margin-top: 40px !important;
        max-height: calc(100vh - 150px) !important;
    }
}
@media (max-width: 600px) {
    #wpadminbar {
        position: fixed !important; /* Đảm bảo thanh admin bar không trôi */
    }
}
/*POPUP MEMBER */
/* Tổng quan */
    .gp-popup-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 80vh; /* Giới hạn chiều cao popup */
    }
    .gp-popup-main-content {
        flex-grow: 1;
        overflow-y: auto; /* Thêm thanh cuộn nếu nội dung dài */
        padding: 15px 10px 0;
    }
    .section-title {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 16px;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    /* Layout hàng và cột */
    .gp-popup-row-top {
        display: flex;
        flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
        gap: 0px;
        margin-bottom: 15px;
    }
    .gp-popup-col {
        flex: 1;
        min-width: 250px; /* Chiều rộng tối thiểu cho mỗi cột */
    }
    .gp-popup-col-avatar {
        /*flex-basis: 200px;  Chiều rộng cố định cho cột avatar */
        flex-grow: 0;
        text-align: center;
    }
    .profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
    .profile-avatar-placeholder { width: 120px; height: 120px; background-color: #e0e0e0; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto; }
    .profile-avatar-placeholder .dashicons { font-size: 60px; color: #888; }
    .profile-name { font-size: 20px; margin-top: 10px; margin-bottom: 5px; }
    
    .profile-basic-mobile { display: none; } /* Ẩn trên desktop */

    
    .children-list-popup{
        margin: 0 0 25px 10px;
        padding-left: 20px;
    }
    .gp-popup-footer-thongbao {
        flex-shrink: 0;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 5px 10px;
        background: #f7f7f7; /* Thêm màu nền nhẹ cho footer để tách biệt */
        border-top: 1px solid #eee;
    }
    .gp-popup-button {
        display: inline-block;
        padding: 8px 16px;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
        text-decoration: none; /* xóa gạch chân của <a> */
        color: #fff;
        display: flex;
        align-items: center;
        font-weight: bold;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
        text-transform: none !important;
    }

    /* Nếu là button, cần đảm bảo hiển thị giống <a> */
    .gp-popup-button:focus {
        outline: none;
    }

    /* Hover effect */
    .gp-popup-button:hover {
        background-color:rgb(235, 56, 11);
        color:#fff;
    }


    .gp-popup-close-btn { background-color:rgb(172, 215, 243); color:red;margin: 0;}
    .gp-popup-details-btn { background-color: #2271b1; color: white; border-color: #2271b1; }
    /* Style cho tuổi thọ */
    .lifespan-value {
        color: #d63600;
        font-weight: bold;
        background-color: #fff5f5;
        padding: 2px 6px;
        border-radius: 3px;
        border-left: 3px solid #d63600;
    }
    
    /* Responsive cho mobile */
    @media (max-width: 768px) {
        .lifespan-value {
            font-size: 14px;
            padding: 1px 4px;
        }
    }
    /* CSS cho Responsive (Điện thoại) */
    @media (max-width: 768px) {
        .gp-desktop-only {
            display: none; /* Ẩn các phần tử chỉ dành cho desktop */
        }
        .profile-basic-mobile {
            display: block; /* Hiện các thông tin cơ bản cho mobile */
            text-align: center;
            font-size: 14px;
        }
        .profile-basic-mobile p {
            margin: 5px 0;
        }
        .gp-popup-row-top {
            flex-direction: column; /* Xếp các cột theo chiều dọc */
            align-items: center; /* Căn giữa */
        }
        .gp-popup-col-family {
            width: 100%;
            text-align: left;
            margin-top: 0px;
        }
        .section-title {
            text-align: left;
        }
    }
    .family-grid {
    display: flex;
    gap: 20px;
    }
    .family-subcol {
        flex: 1;
    }
    .family-item {
        margin-bottom: 15px;
    }
    /* Trên mobile, các cột sẽ tự xếp chồng lên nhau */
    @media (max-width: 768px) {
        .family-grid {
            flex-direction: column;
            gap: 0;
        }
    }