:root {
    --primary-color: #1a2e4a;
    --secondary-color: #00aaff;
    --accent-color: #ffd700;
    --text-color: #ffffff;
    --text-secondary: #ecf0f1;
    --background-color: #f8f9fa;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 68px;
    --transition: all 0.3s ease;
}
.login-btn {
    background-color: var(--secondary-color);
    color: white;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.loginn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(90deg, #2e82dc 0%, #342bd8 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.12);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-top: 16px;
}

.loginn-btn:hover, .loginn-btn:focus {
    background: linear-gradient(90deg, #1a4a6e 0%, #00aaff 100%);
    box-shadow: 0 6px 24px rgba(0,170,255,0.22);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}
/* Header bottom container */
.header-bottom-container {
    background-color: #ffffff;
    color: #ffffff;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgb(255 255 255 / 20%);
}

.header-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

/* Hot news section (60%) */
.hot-news-wrapper {
    flex: 0 0 60%;
    padding-right: 15px;
}

.hot-news-layer {
    display: flex;
    align-items: center;
    background-color: rgb(252 252 252 / 20%);
    border-radius: 4px;
    padding: 5px 10px;
    height: 40px;
}

.news-title {
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    color: var(--accent-color);
    font-size: 14px;
}

.hot-news {
    overflow: hidden;
    flex-grow: 1;
    position: relative;
    height: 100%;
}

.marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-item {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    font-size: 14px;
    color: #0c0c0c;
}

.news-item.active {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom menu (40%) */
.bottom-menu {
    flex: 0 0 40%;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-menu li {
    flex: 1;
    text-align: center;
}

.bottom-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 0;
    transition: color 0.3s;
}

.bottom-menu a:hover {
    color: var(--accent-color);
}

.bottom-menu i {
    font-size: 16px;
    margin-bottom: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px; /* hoáº·c chiá»u cao báº¡n muá»‘n */
        width: 100%;
        text-align: center;
    }

    .logo img {
        display: block;
    }

    .header-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .header-right {
        display: none;
    }
}

html, body {
    /* width: 100%; */
    /* height: 100%; */
    /* overflow-x: hidden; */
    /* background-color: var(--background-color); */
    /* color: #333; */
    line-height: 1.6;
}

.login-btn:hover {
    background-color: #163d5a;
}
/* Header Styles */
.header {
    background-color: #732929;
    color: var(--text-color);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: -2px 12px;
    height: 91px;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.logo img {
    /* height: 50px; */
    width: 153px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Auth Buttons for PC */
.auth-buttons-pc {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Unified Auth Button Styles */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 17px;
    border: none;
    /* background: linear-gradient(to top, #af0c0c, #c89f6b); */
    text-transform: uppercase;
    /* color: #fff; */
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn.login-btn {
    background-color: #f9f9f9;
    color: #a80000;
}
.auth-btn.login-btn:hover {
    background-color: #bf0a0a;
}

.auth-btn.register-btn {
    background-color: #a7d618;
    color: #870202;
}
.auth-btn.register-btn:hover {
    background-color: #e6c200;
}

/* Auth Buttons for Mobile */
.auth-section {
    background: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        height: 69px;
        padding: 0 10px;
    }
    .logo {
        height: 30px;
    }
    .auth-btn {
        padding: 8px 10px;
        min-width: 120px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .auth-btn {
        width: 100%;
    }
}

/* Show/hide header buttons depending on device */
.auth-buttons-pc {
    display: none;
}

@media (min-width: 768px) {
    .auth-buttons-pc {
        display: flex;
    }
    .auth-section {
        display: none;
    }
}

@media (max-width: 767px) {
    .auth-buttons-pc {
        display: none;
    }
    .auth-section {
        display: block;
    }
    .header-right {
        display: none;
    }
}

/* For demonstration, example of iframe/content styles */
.content-section {
    /* padding: 30px 0; */
    /* background-color: white; */
}
.iframe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 0PX);
    overflow: hidden;
    background-color: #f0f2f5;
}
#iframe-demo {
    width: 100%;
    height: 950px;
    border: none;
}
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1; /* â— Ä‘áº£m báº£o iframe tháº¥p hÆ¡n overlay */
}
.iframe-overlay {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 5%;
    background: rgb(0 0 0 / 0%);
    z-index: 9999;
    /* display: block; */
    border-radius: 12px;
}

@media (max-width: 767px) {
    .iframe-overlay {
        top: 0%;
        left: 0%;
        width: 100%;
        height: 33%;
    }
}

/* Ã„ÂiÃ¡Â»Âu chÃ¡Â»â€°nh transform: translateY cho PC (mÃƒÂ n hÃƒÂ¬nh >= 768px) */
@media (min-width: 768px) {
    #mainIframe {
        /* transform: translateY(-79px); */ /* ChÃ¡Â»â€°nh giÃƒÂ¡ trÃ¡Â»â€¹ nÃƒÂ y cho PC */
    }
}

/* Ã„ÂiÃ¡Â»Âu chÃ¡Â»â€°nh transform: translateY cho Ã„â€˜iÃ¡Â»â€¡n thoÃ¡ÂºÂ¡i (mÃƒÂ n hÃƒÂ¬nh < 768px) */
@media (max-width: 767px) {
    #mainIframe {
        /* transform: translateY(-107px); */ /* ChÃ¡Â»â€°nh giÃƒÂ¡ trÃ¡Â»â€¹ nÃƒÂ y cho Ã„â€˜iÃ¡Â»â€¡n thoÃ¡ÂºÂ¡i */
    }
}
.iframe-container {
    /* position: relative; */
    /* width: 100%; */
    /* height: calc(100vh - 60px); */
    /* overflow: hidden; */
    /* background-color: #f0f2f5; */
}
#mainIframe {
    width: 100%;
    height: 100%;
    border: none;
    /* clip-path: inset(50px 0 0 0); */
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(220 220 220 / 0%);
    z-index: 1999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #657fb8;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 100%;
    height: 92%;
    max-height: 647px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0%);
    animation: modalFadeIn 0.3s ease;
    position: relative;
    padding: 18px;
    background-image: url('bg-mobile.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* hoáº·c 'top center' */
}


@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: url('https://gwfd.qatgwawm.net/system-requirement/Web.PortalNew/UK254-01/a64730518b/images/close-icon.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.modal-header-content {
    text-align: center;
    margin-bottom: 20px;
}

.modal-logo {
    margin: 0 auto;
}

.modal-logo img {
    width: 182px;
    height: auto;
    display: none;
}

.modal-sign {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.modal-sign h2 {
    font-size: 18px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0;
}

.modal-sign p {
    font-size: 14px;
    color: #fbfbfb;
    margin: 0;
}

.modal-sign img {
    width: 50px;
    height: auto;
}

.modal-body {
    padding: 0;
}

.tabs {
    display: inline-block;
    gap: 10px;
    margin-bottom: 28px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: rgb(13 13 13 / 28%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    color: #000000;
    box-shadow: 0 4px 19px rgb(245 245 245);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

/* Hiệu ứng sóng khi click */
.tab-btn:active {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.4);
    }
    to {
        box-shadow: 0 0 0 12px rgba(0, 170, 255, 0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
        /* gap: 8px; */
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-wrapper i {
    margin-right: 10px;
}

.input-wrapper i img {
    width: 20px;
    height: 20px;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: transparent;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.form-info {
    text-align: center;
    font-size: 12px;
    color: #e74c3c;
    margin: 15px 0;
    display: none;
    line-height: 1.4;
}
.login-btn:hover {
    background-color: #163d5a;
}

.form-reg {
    text-align: center;
    font-size: 14px;
    color: #ececec;
    margin-top: 15px;
}

.form-reg a {
    color: #00ff2b;
    text-decoration: none;
    font-weight: 600;
}

.form-reg a:hover {
    text-decoration: underline;
}

.bottom-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 12px;
}

.bottom-btns a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.bottom-btns a:hover {
    color: var(--secondary-color);
}
.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}
.custom-login-modal {
    display: none; /* â— Ráº¤T QUAN TRá»ŒNG: khÃ´ng hiá»‡n sáºµn khi load */
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-modal-content {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: customFadeIn 0.3s ease;
    position: relative;
}

@keyframes customFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-modal-content h2 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #1a2e4a;
}

.custom-modal-content p {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
}

.custom-modal-content button {
    padding: 10px 24px;
    background: #00aaff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-modal-content button:hover {
    background-color: #008ecc;
}

.custom-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.custom-close-btn:hover {
    color: #000;
}
