/* === BỐ CỤC CHÍNH CỦA MODAL === */
.gplx-hub-modal {
    display: none;
    position: fixed;
    z-index: 10000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.gplx-hub-modal-content-wrapper {
    background-color: #fff;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #888;
    width: 95%;
    max-width: 680px;
    font-size: 16px;
    border-radius: 8px;
    position: relative;
}
.gplx-hub-modal-inner {
    text-align: left;
}
.gplx-hub-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.gplx-hub-modal-close:hover,
.gplx-hub-modal-close:focus {
    color: black;
}

/* === CÁC THÀNH PHẦN NỘI DUNG === */
.gplx-hub-txt-highlight {
    color: #c40000;
    font-size: 1.1em;
    text-align: center;
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}
.gplx-hub-txt-step {
    font-weight: bold;
}
.gplx-hub-txt-danger {
    color: #c40000;
    font-weight: bold;
}
.gplx-hub-step-container a {
    color: #007bff;
    text-decoration: none;
}
.gplx-hub-form-input {
    display: flex;
    margin: 15px auto;
    gap: 10px;
}
.gplx-hub-keypass-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
}
.gplx-hub-submit-btn {
    background-color: #0073aa;
    color: #ffffff;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    border: none;
    white-space: nowrap;
}
.gplx-hub-image-demo-search,
.gplx-hub-image-view-more,
.gplx-hub-box-img-result img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border: 1px solid #ddd;
}
.gplx-hub-image-demo-search {
    position: relative;
    text-align: center;
}
.gplx-hub-keyword-overlay {
    position: absolute;
    left: 26.5%; /* Tinh chỉnh vị trí */
    top: 59%;   /* Tinh chỉnh vị trí */
    font-size: 15px;
    background: white;
    padding: 0 5px;
}
.gplx-hub-box-img-result .gplx-hub-image-wrapper {
    display: inline-block;
    border: 2px solid red;
    margin-top: 5px;
    margin-bottom: 10px;
    line-height: 0;
}
.gplx-hub-note-find-txt {
    color: #0073aa;
    text-align: center;
    margin: 0 0 10px;
}
.gplx-hub-danger-mask-txt {
    margin-top: 5px;
    display: block;
    text-align: center;
}
.gplx-hub-box-danger-mask {
    background-color: red;
    border-radius: 7px;
    display: inline-block;
    width: 35px;
    height: 18px;
    vertical-align: sub;
    margin-left: -2px;
}
#gplx-hub-copy-keyword,
#gplx-hub-change-task {
    font-size: 12px;
    color: #555;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 2px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-left: 5px;
    background: #f7f7f7;
}
#gplx-hub-change-task {
    padding: 5px 23px;
}
#gplx-hub-copy-keyword:hover,
#gplx-hub-change-task:hover {
    background-color: #e9e9e9;
    border-color: #999;
}
.gplx-hub-change-task-container {
    text-align: center;
    margin: 15px 0;
}
.gplx-hub-iframe-tutorials {
    width: 100%;
    height: 350px;
    margin-top: 10px;
    border: none;
}
.gplx-hub-input-warning {
    margin-top: 10px;
    color: red !important;
    text-align: center;
    display: block;
}

/* === CÁC LỚP TIỆN ÍCH === */
.gplx-hub-notification { position: fixed; top: 20px; right: 20px; background-color: #4caf50; color: white; padding: 10px 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); font-size: 14px; z-index: 10000001; display: none; }
.gplx-hub-loading-spinner { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid #3498db; border-radius: 50%; animation: gplx-spin 1s linear infinite; z-index: 10000002; }
.gplx-hub-loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10000001; }
.gplx-body-no-scroll { overflow: hidden !important; }
@keyframes gplx-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media screen and (max-width: 600px) {
    .gplx-hub-modal-content-wrapper { margin: 10px auto; padding: 15px; height: 95vh; overflow-y: auto; }
    .gplx-hub-form-input { flex-direction: column; }
    .gplx-hub-iframe-tutorials { height: calc( (100vw - 40px) * 9 / 16 ); /* Giữ tỷ lệ 16:9 */ }
    .gplx-hub-keyword-overlay { left: 18%; top: 70%; }
}