.popup-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

#popup-load {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    left: 50%;
    overflow-y: hidden;
}

.popup-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 70vh;
    overflow-y: auto;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #337c9d #f1f1f1;
    /* Firefox */
    display: flex;
    flex-direction: row;
}

/* Chrome, Edge, Safari */
.popup-content::-webkit-scrollbar {
    width: 8px;
    border-radius: 8px;
    background: #f1f1f1;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #337c9d 60%, #337c9d 100%);
    border-radius: 8px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #337c9d 60%, #337c9d 100%);
}

.popup-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.popup-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222;
    padding: 0 32px 16px 32px;
    text-align: left;
    line-height: 1.7;
    font-family: 'Roboto', Arial, sans-serif;
}

.popup-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #337c9d;
    margin-bottom: 12px;
    margin-top: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

.popup-text .highlight {
    color: #337c9d;
    font-weight: 600;
    background: #fff7e6;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.popup-text .steps {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.04);
}

.popup-text .steps-title {
    font-weight: 600;
    color: #337c9d;
    margin-bottom: 8px;
}

.popup-text ol {
    padding-left: 22px;
    margin: 0 0 0 0;
}

.popup-text ol li {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.5;
}

.popup-text .download-links {
    margin: 18px 0 10px 0;
    padding: 10px 18px;
    background: #f1f8ff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.04);
}

.popup-text .download-title {
    font-weight: 600;
    color: #0077ff;
    margin-bottom: 8px;
}

.popup-text .download-btn {
    color: #fff;
    background: linear-gradient(90deg, #337c9d 60%, #337c9d 100%);
    padding: 4px 16px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-left: 6px;
}

.popup-text .download-btn:hover {
    background: linear-gradient(90deg, #337c9d 60%, #337c9d 100%);
    color: #fff200;
}

.popup-text .slogan {
    font-size: 16px;
    color: #337c9d;
    font-style: italic;
    margin-top: 18px;
    text-align: center;
    display: block;
}

.popup-close {
    background: #337c9d;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-close:hover {
    background: #337c9d;
}

.popup-title {
    background: linear-gradient(270deg, #337c9d, #2e6680, #337c9d, #3882a5);
    background-size: 600% 600%;
    animation: popupTitleGradient 4s ease infinite;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.08);
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.popup-title .popup-close {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: normal;
    padding: 12px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.popup-title .popup-close i {
    background: none;
    border: none
}

.popup-text .download-links ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.popup-text .download-links ul li {
    margin: 0;
    padding: 0;
    display: inline-block;
    text-align: center;
}

.popup-sitebar {
    width: 30%;
    min-width: 160px;
    background: #fff7e6;
    border-bottom-left-radius: 12px;
    border-right: 1px solid #ffe0b2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(255, 136, 0, 0.04);
}

.popup-sitebar .popup-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-sitebar .popup-menu li {
    padding: 12px 24px;
    font-size: 16px;
    color: #337c9d;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.popup-sitebar .popup-menu li.active,
.popup-sitebar .popup-menu li:hover {
    background: #fff3e0;
    color: #337c9d;
    border-left: 4px solid #337c9d;
    font-weight: 600;
}

.popup-content-area {
    width: 70%;
    overflow-y: auto;
}

.popup-item.active {
    display: block !important;
}

.popup-item {
    display: none;
}

.popup-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;

}

.popup-text ul li {
    font-size: 16px;
    margin-bottom: 5px;
}

@keyframes popupTitleGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 768px) {
    #popup-load {
        width: 95%;
        height: 100vh;
    }

    .popup-text {
        padding: 0px 10px;
        font-size: 16px;
        line-height: 1.5;
    }

    .popup-text a {
        margin: auto;
    }

    .popup-text h3 {
        font-size: 18px;
        font-weight: 700;
    }

    .popup-text .highlight {
        font-size: 16px;
    }

    .popup-text ul li {
        font-size: 14px;
        display: flex;
        flex-direction: co;
        align-items: center;
        justify-content: center;
    }

    .popup-text .slogan {
        font-size: 14px;
    }

    .popup-text .download-btn {
        padding: 4px 10px;
        font-size: 14px;
    }

    .popup-content {
        flex-direction: column;
    }

    .popup-sitebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-bottom-left-radius: 0;
        border-right: none;
        border-bottom: 1px solid #ffe0b2;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
    }

    .popup-sitebar .popup-menu li {
        padding: 10px 8px;
        font-size: 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .popup-sitebar .popup-menu li.active,
    .popup-sitebar .popup-menu li:hover {
        border-left: none;
        border-bottom: 3px solid #337c9d;
    }

    .popup-content-area {
        width: 100%;
        padding: 10px 0;
    }

    /* POPUP THÔNG BÁO MỚI NHẤT THEO MẪU ẢNH */
    .popup-notify-overlay,
    #popup-notify-overlay {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .popup-notify-box {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        width: 350px;
        max-width: 95vw;
        margin: 0 auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }

    .popup-notify-title {
        background: linear-gradient(180deg, #337c9d 80%, #3781a3 100%);
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        padding: 12px;
        position: relative;
        letter-spacing: 1px;
    }

    .popup-notify-close {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
    }

    .popup-notify-close i {
        background: none;
        border: none;
        color: #ffffff;
    }

    .popup-notify-list {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #fff;
        max-height: 320px;
        overflow-y: auto;
        min-height: 320px;
    }

    .popup-notify-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 18px 13px 14px;
        font-size: 15px;
        color: #337c9d;
        border-bottom: 1px solid #f3f3f3;
        cursor: pointer;
        transition: background 0.18s;
        background: #fff;
    }

    .popup-notify-list i {
        color: #337c9d;
        background: none;
        border: none;
    }

    .popup-notify-list li:last-child {
        border-bottom: none;
    }

    .popup-notify-list li .icon {
        margin-right: 10px;
        color: #337c9d;
        font-size: 17px;
        flex-shrink: 0;
    }

    .popup-notify-list li .arrow {
        margin-left: 10px;
        color: #337c9d;
        font-size: 15px;
        flex-shrink: 0;
    }

    .popup-notify-list li b {
        color: #d32f2f;
    }

    .popup-notify-list li:hover {
        background: #fff3e0;
    }

    .popup-notify-btn-close {
        width: 100%;
        background: linear-gradient(90deg, #3c8cb1 00 60%, #337c9d 100%);
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        border: none;
        border-radius: 0 0 12px 12px;
        padding: 12px 0px;
        margin-top: 0;
        cursor: pointer;
        letter-spacing: 1px;
        transition: background 0.2s;
    }

    .popup-notify-btn-close:hover {
        background: linear-gradient(90deg, #337c9d 60%, #3c87aa 100%);
    }

    .popup-notify-hide {
        text-align: right;
        padding: 8px 18px 10px 0;
        font-size: 13px;
        color: #888;
    }

    .popup-notify-hide label {
        margin-left: 4px;
        cursor: pointer;
        user-select: none;
    }

    .popup-list {
        list-style: none;
        padding-left: 0;
        margin: 0 0 12px 0;
    }

    .popup-list li {
        font-size: 16px;
        margin-bottom: 14px;
        line-height: 1.7;
        display: flex;
        align-items: flex-start;
    }

    .popup-icon {
        font-size: 20px;
        margin-right: 10px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .popup-list li strong {
        color: #337c9d;
    }

    .popup-list .highlight {
        background: #fff7e6;
        color: #337c9d;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 600;
    }

    .popup-cta {
        margin-top: 22px;
        text-align: center;
    }

    .popup-cta .download-btn {
        background: linear-gradient(90deg, #337c9d 60%, #337c9d 100%);
        color: #fff;
        padding: 10px 28px;
        border-radius: 6px;
        font-size: 17px;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        display: inline-block;
        margin: 0 auto;
        box-shadow: 0 2px 8px rgba(255, 136, 0, 0.12);
    }

    .popup-cta .download-btn:hover {
        background: linear-gradient(90deg, #337c9d 60%, #337c9d 100%);
        color: #fff200;
    }
}