.btn-signOut {
    color: var(--primary-color);
    background: #fff;
}

    .btn-signOut:hover {
        background: var(--primary-color);
        color: #fff;
    }
    .btn-signOut .svg {
        width: 17px;
        height: 17px;
        stroke: white;
        padding-bottom: 1px;
    }
    .btn-signOut .svg {
        width: 15px;
        height: 15px;
    }
.btn-userId {
    color: var(--primary-color);
    background: #fff;
}

    .btn-userId:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .btn-userId .svg {
        width: 17px;
        height: 17px;
        stroke: white;
        padding-bottom: 1px;
    }

    .btn-userId .svg {
        width: 15px;
        height: 15px;
    }
/* Overlay */
.modalMessage-overlay {
    max-height: calc(100% - 100px);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 99998;
}

/* Modal */
.modalMessage {
    max-height: calc(100% - 100px);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

/* Header */
.modalMessage-header {
    display: flex;
    align-items: center !important; /* canh giữa theo chiều dọc */
    justify-content: center !important;
    text-align:center;
    color: var(--primary-color);
}

    .modalMessage-header h2 {
        font-size: 18px;
        text-align: center !important;        
        margin: 0;
    }

.modalMessage-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Form */
.modalMessage form input, .modalMessage form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 12px;
}

.modalMessage form button {
    width: 25%; /* chỉ 1/4 chiều rộng modal */
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #f4511e;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: block; /* để margin auto có tác dụng */
    margin: 15px auto 0; /* canh giữa ngang */
    text-align: center;
}

    .modalMessage form button:hover {
        background: #e0400f;
    }

/* Footer (buttons) */
.modalMessage-footer {
    display: flex;
    justify-content: space-between; /* chia khoảng cách đều */
    gap: 10px; /* khoảng cách giữa 2 nút */
    width: 90%;
    margin: 20px auto 0; /* căn giữa trong popup */
}

    .modalMessage-footer button {
        flex: 1;
        padding: 12px;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
        border: 1px solid transparent;
        transition: all 0.2s ease-in-out;
    }

        .modalMessage-footer button:hover {
            background: #e0400f; /* màu cam đậm khi hover */
        }

        /* Nút mặc định */
        .modalMessage-footer button:first-child {
            background: #f4511e;
            color: #fff;
        }

            .modalMessage-footer button:first-child:hover {
                background: #e0400f;
            }

        /* Nếu có 2 nút thì nút thứ 2 là "Bỏ qua" */
        .modalMessage-footer button:last-child {
            background: #ddd;
            color: #333;
        }

            .modalMessage-footer button:last-child:hover {
                background: #bbb;
            }

/* Animation */
@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-disable, btn-disable:hover:disabled {
    background-color: #898989;
    color: #FFF;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid transparent;
    outline: none;
    pointer-events: none;
}
/* Overlay phủ toàn màn hình */
#modalMessageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    #modalMessageOverlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Hộp modal */
.modalMessage {
    background: #1c1f4a;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.modalMessage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .modalMessage-header h2 {
        font-size: 18px;
        margin: 0;
    }

.modalMessage-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

/* Nội dung login */
.login-box label {
    display: block;
    margin-bottom: 5px;
}

.login-box .form-group {
    margin-bottom: 15px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.login-box .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ff6a00, #ff9500);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-box .forgot {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #fff;
}

/* Hiệu ứng */
@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* overlay cho login */
#myModalLogin {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 99998;
}

/* overlay cho message */
.modalMessage-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 99998;
}

    .modalMessage-overlay.show {
        display: flex;
    }

.modalMessage {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    color: #333;
}

.modalMessage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modalMessage-close {
    border: none;
    background: #eee;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.modalMessage-footer {
    text-align: right;
    margin-top: 15px;
}

    .modalMessage-footer button {
        padding: 6px 12px;
        border: none;
        border-radius: 4px;
        background: #f26f21;
        color: #fff;
        cursor: pointer;
    }

        .modalMessage-footer button:hover {
            background: #d95e15;
        }/* Overlay login */
#myModalLogin {
    padding: 70px 30px;
    z-index: 99998; /* thấp hơn modalMessageOverlay */
}

    /* khi mở */
    #myModalLogin.show {
        display: flex;
    }

    /* Box login */
    #myModalLogin .modal-login {
        max-height: calc(100% - 100px);
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
        #myModalLogin .modal-login img {
            margin: 0 auto 50px;
            display: block;
            width: 150px;
        }
    /* Nút đóng */
    #myModalLogin .close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        border: none;
        background: #eee;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    /* Input */
    #myModalLogin input {
        width: 100%;
        padding: 10px;
        margin: 8px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    /* Nút login */
    #myModalLogin .login-btn {
        width: 100%;
        padding: 10px;
        background: #f26f21;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        #myModalLogin .login-btn:hover {
            background: #d95e15;
        }

/* 2 nut */
/* Nut dong */
#modalCloseBtn {
    background: #fff;
    border: 1px solid #E5E5E5;
    color: var(--secondary-color);
    font-weight: bold;
}
    #modalCloseBtn:hover {
        background: var(--primary-color) !important;
        color: #fff !important;
        font-weight: bold;
    }
/* Nut xac nhan */
#modalConfirmBtn {
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    border: 1px solid transparent; /* giữ không gian sẵn */
}
    #modalConfirmBtn:hover {
        background: #fff !important;
        color: var(--primary-color) !important;
        border: 1px solid #E5E5E5 !important;
        font-weight: bold;
    }
/*Nut đóng khi chỉ có 1 nút xác nhận*/
#modalCloseSingleBtn {
    background: var(--primary-color) !important;
    color: #fff !important;
    margin-top: 20px;
    border: 1px solid transparent; /* giữ không gian sẵn */
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    height: 60px;
    font-family: "Stavian", sans-serif;
    font-weight: 700; /* để dùng đúng file bold */
}
    #modalCloseSingleBtn:hover {
        background-color: #fff !important;
        color: var(--primary-color) !important;
        border: 1px solid #E5E5E5 !important;
        font-weight: bold;
    }




.orange {
    background-color: var(--primary-color);
    color: #fff;
}

    .orange:hover {
        background-color: #fff;
        color: var(--primary-color);
    }

.dark {
    background-color: var(--secondary-color);
    color: #fff;
    margin: 0 auto;
}

    .dark:hover {
        background-color: #33417a;
        color: #fff;
    }

.popup-template {
    padding: 70px 30px;
}

    .popup-template img {
        margin: 0 auto 50px;
        display: block;
        width: 150px;
    }

.btn-modal {
    width: 100%;
    height: 50px;
    font-size: 16px;
}

.btn-forget {
    cursor: pointer;
    text-align: right;
    margin-bottom: 20px;
}

    .btn-forget:hover {
        color: #b0aeae;
    }

.input-line {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 4px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #222;
    margin-bottom: 20px;
}

    .input-line:focus {
        border-bottom: 2px solid var(--primary-color);
    }
.app-info {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 2 cột cao bằng nhau */
    gap: 40px;
    margin: 30px 0;
}

    .app-info p {
        width: 230px;
        font-size: 16px;
    }

    .app-info img {
        width: 130px;
        margin: 0;
    }
.app-links {
    display: flex;
    gap: 10px;
}
.app-download {
    display: flex;
    align-items: center;
    gap: 20px; /* logo cách app links */
}
    .app-links img {
        width: 130px;
        margin: 30px 0 0 0;
    }
.app-info > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* text lên trên, nút xuống dưới */
}
.app-logo {
    width: 130px;
}
.modalMessage-body {
    color: var(--secondary-color);
}
@media (max-width: 768px) {
    .btn-login, .btn-register {
        padding: 14px 20px; /* tăng vùng bấm */
        font-size: 13px; /* chữ lớn hơn */
        min-width: 120px; /* đảm bảo không quá hẹp */
    }
    .header-logo img {
        height: 50px; /* tăng size trên mobile */
        max-width: none; /* tránh bị ép co */
    }
    #myModalLogin .modal-login {
        width: 90%; /* form chiếm 90% màn hình, chừa lề 5% mỗi bên */
        max-width: none; /* bỏ giới hạn */
        border-radius: 6px;
        padding: 16px;
    }

    #myModalLogin .login-btn {
        padding: 14px; /* nút bấm dễ hơn */
        font-size: 16px;
    }
    .app-info {
        gap: 0;
        margin: 30px 0;
    }

        .app-info div {
            flex: 1;
        }

        .app-info p {
            width: 160px;
            font-size: 14px;
        }

        .app-info img {
            width: 100px;
            margin: 0;
        }

    .app-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

        .app-links img {
            max-width: 45%; /* chiếm ~nửa màn hình, tự co */
            height: auto;
        }
    .app-info > div {
        align-items: center;
        justify-content: flex-start; /* không đẩy xuống dưới nữa */
        gap: 20px;
        text-align: center;
    }

    #vfs-template .section h2 {
        font-size: 16px;
        color: #e8591c;
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        text-transform: uppercase;
    }
    .app-download {
        flex-direction: column; /* logo trên, links dưới */
        align-items: center;
        gap: 15px;
    }
    .app-logo {
        max-width: 100px; /* logo thu nhỏ */
        height: auto;
    }
    .popup-template {
        padding: 40px 20px;
        width: 100%;
    }

        .popup-template img {
            margin: 0 auto 40px;
            display: block;
            width: 120px;
        }
}