.vitace-members-modern {
    max-width: 980px;
    margin: 30px auto;
}
.vitace-members-toolbar {
    background: #f3f7fa;
    border: 1px solid #e4edf3;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 28px;
}
.vitace-search-field input[type=text]{
    border-radius: 10px;
    box-shadow: none;
    height: 38px;
}
.vitace-members-filter-form {
    margin-bottom: 14px;
}

.vitace-members-filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 14px;
    align-items: center;
}

.vitace-field input,
.vitace-field select {
    width: 100%;
    height: 38px;
    border: 1px solid #d8e4eb;
    border-radius: 10px;
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.vitace-field input:focus,
.vitace-field select:focus {
    border-color: #1780a6;
}

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

.vitace-btn-filter,
.vitace-btn-reset {
    height: 38px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-style: normal;
    text-transform: none;
}

.vitace-btn-filter {
    background: #147b8f;
    color: #fff;
}

.vitace-btn-filter:hover {
    background: #0f6678;
    color: #fff;
}

.vitace-btn-reset {
    background: #fff;
    color: #1a4f67;
    border: 1px solid #d7e1e8;
}

.vitace-btn-reset:hover {
    background: #f6fbfd;
    color: #1a4f67;
}

.vitace-members-count {
    font-size: 15px;
    color: #5d7280;
}

.vitace-members-heading {
    margin-bottom: 22px;
}

.vitace-members-heading h2 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.1;
    color: #0c5475;
    font-weight: 800;
}

.vitace-members-heading p {
    margin: 0;
    font-size: 17px;
    color: #6f7f88;
}

.vitace-members-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vitace-member-item {
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(19, 64, 88, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vitace-member-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(19, 64, 88, 0.08);
}

.vitace-member-name {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.15;
    color: #0f5477;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vitace-member-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vitace-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #364b56;
}

.vitace-meta-label {
    font-weight: 800;
    color: #233f4f;
}

.vitace-meta-value {
    color: #495f6a;
}

.vitace-empty-state {
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    color: #6e7d87;
    font-size: 14px;
}

.vitace-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.vitace-page-number,
.vitace-page-arrow {
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid #d8e4eb;
    background: #fff;
    color: #244f63;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s ease;
    font-size: 12px;
}

.vitace-page-number:hover,
.vitace-page-arrow:hover {
    background: #f2f9fc;
    color: #0d6f90;
}

.vitace-page-number.is-active {
    background: #147b8f;
    border-color: #147b8f;
    color: #fff;
}

@media (max-width: 991px) {
    .vitace-members-filter-grid {
        grid-template-columns: 1fr;
    }

    .vitace-filter-actions {
        flex-wrap: wrap;
    }

    .vitace-members-heading h2 {
        font-size: 34px;
    }

    .vitace-member-name {
        font-size: 28px;
    }

    .vitace-meta-row {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .vitace-members-modern {
        padding: 0 12px;
        margin: 20px auto;
    }

    .vitace-members-toolbar {
        padding: 16px;
        border-radius: 16px;
    }

    .vitace-members-heading h2 {
        font-size: 28px;
    }

    .vitace-members-heading p {
        font-size: 15px;
    }

    .vitace-member-item {
        padding: 18px 18px;
        border-radius: 16px;
    }

    .vitace-member-name {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .vitace-meta-row {
        font-size: 16px;
        gap: 6px;
    }

    .vitace-page-number,
    .vitace-page-arrow {
        min-width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}
.vitace-experts-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(19, 64, 88, 0.05);
}

.vitace-experts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.vitace-experts-table th,
.vitace-experts-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e7edf2;
    text-align: left;
    font-size: 15px;
    color: #364b56;
    vertical-align: top;
}

.vitace-experts-table thead th {
    background: #f6fafc;
    color: #213d4c;
    font-weight: 800;
}

.vitace-experts-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 767px) {
    .vitace-experts-table th,
    .vitace-experts-table td {
        padding: 14px;
        font-size: 14px;
    }
}


.vitace-members-topbar {
    display:flex;
    justify-content:flex-end;
    margin-bottom:18px;
}
.vitace-btn-apply {
    height: 40px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(180deg, #e8d3a4 0%, #d5b170 100%);
    color: #183b54;
    font-weight: 700;
    cursor: pointer;
}
.vitace-form-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}
.vitace-form-notice.is-success { background:#e9f7ee; color:#1f6b3a; border:1px solid #cce9d5; }
.vitace-form-notice.is-error { background:#fff1f0; color:#a33a32; border:1px solid #ffd2cf; }
.vitace-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Tăng thêm số 9 cho chắc chắn */
    display: none;
}
.vitace-modal.is-open { 
    display: flex !important; /* Dùng flex để căn giữa dialog bên trong */
    align-items: center;
    justify-content: center;
 }
.vitace-modal__backdrop {
    position:absolute;
    inset:0;
    background: rgba(9, 27, 39, 0.6);
}
.vitace-modal__dialog {
    position: relative; /* Đổi từ absolute sang relative để flex cha điều khiển */
    background: #fff;
    padding: 30px; /* Thêm padding vì trong file cũ của bạn đang thiếu */
    width: min(920px, calc(100vw - 32px));
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); /* Thêm bóng đổ để tách biệt với nền */
    margin: auto; /* Căn giữa */
}
.vitace-modal__close {
    position:absolute;
    top:12px; right:14px;
    width:20px; height:20px;
    border:none; border-radius:50%;
    background:#eef5f8; color:#244f63;cursor:pointer;
}
.vitace-modal__dialog h3 { margin:0 0 8px; font-size:28px; color:#0f5477; }
.vitace-modal__desc { margin:0 0 20px; color:#5d7280; font-size:14px; }
.vitace-application-form .vitace-form-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:14px;
}
.vitace-form-field { display:flex; flex-direction:column; gap:8px; }
.vitace-form-field label { font-weight:700; color:#233f4f; font-size:14px; }
.vitace-form-field input, .vitace-form-field textarea {
    width:100%; border:1px solid #d8e4eb; border-radius:12px; padding:12px 14px; font-size:14px; box-sizing:border-box;
}
.vitace-form-field--full { grid-column: 1 / -1; }
.vitace-form-actions { margin-top:18px; display:flex; justify-content:flex-end; }
body.vitace-modal-open { overflow:hidden; }

@media (max-width: 767px) {
    .vitace-members-topbar { justify-content:stretch; }
    .vitace-btn-apply { width:100%; }
    .vitace-application-form .vitace-form-grid { grid-template-columns: 1fr; }
    .vitace-modal__dialog { padding:18px; border-radius:18px; margin:12px auto; max-height: calc(100vh - 24px); }
    .vitace-modal__dialog h3 { font-size:22px; padding-right:40px; }
}
