/* Self-contained responsive layout: no Bootstrap or remote font required. */
:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #15334c;
    background: #f6fcff;
    --blue: #009fe8;
    --border: #d9eaf4;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; background: url('../img/headerbg.png') no-repeat top center / 1920px auto; }
body.noscroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input { min-width: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #0078c7; outline-offset: 3px; }
a { color: inherit; }
p { margin: 0; }
[hidden], .d-none { display: none !important; }
.d-block { display: block; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.page-main { position: relative; }
header { padding: 48px 48px 32px; }
.noidung { width: 100%; margin-inline: auto; }
.noidung.header img { width: min(640px, 100%); margin-inline: auto; }
.nutback { position: absolute; top: 28px; left: 0; z-index: 2; }
.nutback button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: #078cd2; box-shadow: 0 3px 10px #0069a82b; }
.nutback button:hover { background: #006eae; }
.nutback img { width: 100%; height: 100%; object-fit: contain; }
.form-container { margin: 0 auto; padding: 28px; border: 1px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px #26578018; }
.form-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-group { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.account-field, .bank-field { grid-column: span 3; }
.promo-field { grid-column: span 6; }
.captcha-field { grid-column: span 8; }
.action-field { grid-column: span 4; padding-top: 40px; }
.bet-field { grid-column: span 6; }
.bet-order .captcha-field { grid-column: span 4; }
.bet-order .action-field { grid-column: span 2; }
.form-group .box-title { display: flex; align-items: center; gap: 9px; min-height: 30px; }
.form-group .box-title img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.form-group label { font-size: 15px; font-weight: 700; }
input[type='text'] { width: 100%; height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #f5f9fc; font-size: 16px; color: #15334c; transition: border-color .15s; }
input[type='text']:focus { border-color: var(--blue); }
input::placeholder { color: #718397; opacity: 1; }
.promo-wrapper { position: relative; width: 100%; }
#promo-info { padding-right: 48px; text-overflow: ellipsis; cursor: pointer; }
.add-btn { position: absolute; inset: 2px 2px 2px auto; width: 44px; border: 0; border-radius: 8px; color: var(--blue); background: transparent; font-size: 29px; line-height: 1; }
.add-btn:hover { background: #e0f3ff; }
.verify-code { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 260px; }
.verify-code input { padding: 8px 0; text-align: center; font-size: 20px; font-weight: 600; }
.captcha-row { display: flex; align-items: stretch; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-refresh { display: grid; place-items: center; align-self: center; flex: 0 0 100px; aspect-ratio: 20 / 7; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: #edf7fc; color: #347093; font-size: 13px; line-height: 1.2; }
.captcha-refresh img { width: 100%; height: 100%; object-fit: fill; transition: opacity 160ms ease-out; }
.captcha-refresh:disabled { opacity: 1; }
.captcha-refresh.is-loading img { opacity: .78; }
#captcha-placeholder { grid-area: 1 / 1; font-size: 12px; }
.field-hint { font-size: 12px; color: #667e90; line-height: 1.4; }
.submit-btn { display: grid; place-items: center; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #00b8f3, #0876ec); box-shadow: 0 4px 12px #0078e52b; color: #fff; font-size: 16px; font-weight: 700; }
.submit-btn:hover { background: linear-gradient(135deg, #00a5e0, #0564d3); }
.khuyenmai { margin-top: 48px; }
.title-promo { margin: 0 auto 24px; text-align: center; }
.titlez { width: min(347px, 85%); margin-inline: auto; }
.banner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.banner-detail { min-width: 0; }
.banner-detail:not(.active) { display: none; }
.banner-detail a { display: flex; justify-content: center; align-items: center; width: 100%; border-radius: 14px; }
.banner-detail img { width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.readmore { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin: 22px auto 0; padding: 8px 22px; border: 1px solid #b4e2f8; border-radius: 99px; background: #fff; color: #008bcf; font-size: 16px; font-weight: 600; }
.readmore img { width: 15px; }
.readmore[aria-expanded='true'] img { transform: rotate(180deg); }
.noscript-note { padding: 16px; text-align: center; }
/* Native dialogs keep the backdrop, focus and centering consistent on MB/PC. */
dialog { margin: auto; color: inherit; border: 0; }
dialog::backdrop { background: #082332a8; backdrop-filter: blur(5px); }
.welcome-overlay { width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; background: transparent; border-radius: 16px; overflow: visible; }
.welcome-box { position: relative; }
.welcome-box picture { display: block; }
.welcome-img { width: auto; max-width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin-inline: auto; object-fit: contain; border-radius: 16px; }
.welcome-close, .close-btn { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #ffffffa0; border-radius: 50%; background: #103a58cc; color: #fff; font-size: 21px; line-height: 1; }
.popup { width: 680px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 18px; background: #e3f2fd url('../img/popup.png') no-repeat top center / cover; }
.popup-content { display: flex; flex-direction: column; max-height: calc(100dvh - 36px); padding: 20px; }
.popup-content .box-logo { flex-shrink: 0; padding: 0 44px 18px; }
.popup-content .box-logo img { width: auto; max-height: 72px; margin-inline: auto; }
.table-wrapper { min-height: 0; overflow: auto; border-radius: 10px; overscroll-behavior: contain; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th { position: sticky; top: 0; z-index: 1; background: #009fe8; color: #fff; font-size: 17px; font-weight: 600; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #dcecf4; }
th:first-child, td:first-child { width: 31%; text-align: center; }
td { font-size: 15px; }
.code-btn { width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 6px; background: #009fe8; color: white; font-size: 14px; font-weight: 600; }
.code-btn:hover { background: #007fcb; }
/* Footer grid is local; Bootstrap utility classes below are explicitly supported. */
footer.index-ui { margin-top: 48px; padding-top: 32px; background: linear-gradient(#fff, #d6f2ff); }
.full-app .row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
.full-app .row > div { min-width: 0; }
.full-app .box-title { margin-bottom: 22px; }
.full-app .box-title img { width: min(510px, 100%); margin-inline: auto; }
.full-app .box-intro { font-size: 15px; line-height: 1.7; text-align: justify; }
.full-app .box-app { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.full-app .box-app .box-item { min-width: 0; text-align: center; }
.full-app .box-app .box-item + .box-item { border-left: 1px solid #cfe4ef; padding-left: 24px; }
.full-app .box-app a { display: block; max-width: 200px; margin-inline: auto; text-decoration: none; }
.full-app .box-app img { max-height: 52px; width: auto; margin-inline: auto; object-fit: contain; }
.full-app .box-app p { margin-top: 12px; font-size: 11px; color: #426177; }
.full-app .box-app p.title-app { width: 124px; max-width: 100%; margin: 12px auto; padding: 8px 12px; border-radius: 99px; background: #00a6f3; color: #fff; font-size: 14px; font-weight: 700; }
.full-intro-content .section { margin-top: 40px; }
.box-desktop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: center; }
.box-desktop .box-item { display: flex; justify-content: center; align-items: center; gap: 12px; min-width: 0; }
.box-desktop .box-item > div:first-child { flex: 0 0 80px; }
.box-desktop .content { text-align: center; font-size: 13px; }
.box-desktop .content img { max-height: 52px; width: auto; margin: 0 auto 10px; }
.box-desktop .content span { color: #577185; }
.box-social { grid-column: 1 / -1; }
.box-social img { width: min(380px, 100%); margin-inline: auto; }
.box-mobile .box-title { margin: 20px 0 12px; padding: 8px 16px; border-radius: 8px; background: #009fe8; color: white; text-align: center; font-size: 16px; font-weight: 700; }
.box-mobile > .content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 18px; padding: 16px 8px; border-bottom: 1px solid #d2e8f4; }
.box-mobile > .content > img { max-height: 64px; width: auto; margin-inline: auto; }
.box-mobile > .content p { font-size: 13px; text-align: right; }
.box-news ul { list-style: none; margin: 0; padding: 0 14px; background: #008ed6; border-radius: 12px; }
.box-news .box-li-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ffffff5e; }
.box-news li:last-child .box-li-inner { border-bottom: 0; }
.box-news img { width: 100%; margin-inline: auto; border-radius: 6px; }
.box-news p.title { margin-bottom: 6px; color: #fff58b; font-size: 14px; font-weight: 700; }
.box-news p.title-child { color: #fff; font-size: 12px; line-height: 1.5; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-top: 28px; text-align: center; }
.info .box-item { min-width: 0; }
.info p { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.info img { max-width: min(150px, 100%); max-height: 48px; width: auto; margin: 8px auto; }
.footer-menu { text-align: center; }
.full-menu-social > .container { padding-top: 30px; }
.footer-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { border-left: 1px solid #a6c5d6; }
.footer-menu a { display: block; padding: 0 12px; font-size: 13px; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.copyright { padding: 22px 16px; text-align: center; font-size: 13px; color: #557185; }
@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
    /* PC: titles above, every input and the submit button on one shared row. */
    .form-container { padding: 40px 30px 44px; }
    .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.5fr) 132px; gap: 20px; align-items: end; }
    .form-row.bet-order { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.45fr) 132px; gap: 16px; }
    .form-row > .form-group { position: relative; grid-column: auto; display: grid; grid-template-rows: 88px 44px; row-gap: 22px; }
    .form-row > .action-field { display: block; padding-top: 0; }
    .form-group .box-title { flex-direction: column; justify-content: flex-start; gap: 8px; text-align: center; }
    .form-group .box-title img { width: 50px; height: 50px; }
    .form-group label { font-size: 17px; line-height: 1.3; }
    .form-row input[type='text'] { height: 44px; padding: 9px 10px; font-size: 14px; }
    .form-row #promo-info { padding-right: 40px; }
    .form-row .verify-code { gap: 10px; max-width: none; }
    .form-row .verify-code input { padding-inline: 0; font-size: 19px; }
    .form-row .captcha-row { gap: 6px; }
    .form-row .captcha-refresh { flex-basis: 100px; }
    .form-row .field-hint { position: absolute; top: calc(100% + 5px); inset-inline: 0; font-size: 11px; }
    .form-row .submit-btn { min-height: 44px; padding: 8px; font-size: 18px; white-space: nowrap; }
    .form-row .add-btn { width: 36px; }
    .form-row.bet-order label { font-size: 15px; }
    .form-row.bet-order .captcha-refresh { flex-basis: 82px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .form-container { padding-inline: 22px; }
    .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.5fr) 112px; gap: 12px; }
    .form-row.bet-order { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.45fr) 112px; gap: 12px; }
    .form-group label, .form-row.bet-order label { font-size: 14px; }
    .form-row .submit-btn { font-size: 16px; }
    .form-row .verify-code { gap: 6px; }
    .form-row .captcha-refresh, .form-row.bet-order .captcha-refresh { flex-basis: 76px; }
}
@media (max-width: 991px) {
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .account-field, .bank-field { grid-column: span 1; }
    .promo-field, .captcha-field, .bet-field, .action-field,
    .bet-order .captcha-field, .bet-order .action-field { grid-column: 1 / -1; }
    .action-field { padding-top: 0; }
    .full-app .row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .full-app .box-title { margin-bottom: 0; }
    .full-app .box-app { width: min(480px, 100%); margin-inline: auto; }
    .full-intro-content .section { margin-top: 28px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 28px); }
    header { padding: 56px 8px 24px; }
    .nutback { top: 10px; }
    .nutback button { width: 44px; height: 44px; }
    .form-container { padding: 20px 16px; border-radius: 16px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .form-group { grid-column: 1 / -1; gap: 9px; }
    .form-group .box-title img { width: 26px; height: 26px; }
    .form-group label { font-size: 14px; }
    .verify-code { max-width: none; }
    .captcha-refresh { flex-basis: 98px; }
    .captcha-row { gap: 8px; }
    .captcha-row input { padding-inline: 10px; }
    .khuyenmai { margin-top: 32px; }
    .title-promo { margin-bottom: 20px; }
    .banner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .readmore { margin-top: 18px; }
    .popup { max-width: calc(100vw - 20px); }
    .popup-content { padding: 14px 10px; }
    .popup-content .box-logo { padding: 4px 46px 16px; }
    .popup-content .box-logo img { max-height: 54px; }
    th, td { padding: 10px 8px; font-size: 13px; }
    th:first-child, td:first-child { width: 38%; }
    .code-btn { font-size: 12px; padding-inline: 5px; }
    .welcome-close, .close-btn { top: 6px; right: 6px; width: 36px; height: 36px; }
    footer.index-ui { margin-top: 32px; padding-top: 24px; }
    .full-app .box-app { gap: 16px; }
    .full-app .box-app .box-item + .box-item { padding-left: 16px; }
    .full-menu-social > .container { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
