/* XSHN visual refresh — 2026-09-18 */
:root {
    --xshn-navy-950: #071426;
    --xshn-navy-900: #0b1f3a;
    --xshn-navy-800: #12345b;
    --xshn-blue-700: #1d4ed8;
    --xshn-blue-600: #2563eb;
    --xshn-blue-100: #dbeafe;
    --xshn-blue-50: #eff6ff;
    --xshn-red-700: #b91c1c;
    --xshn-red-600: #dc2626;
    --xshn-red-50: #fef2f2;
    --xshn-gold: #f59e0b;
    --xshn-ink: #152033;
    --xshn-muted: #64748b;
    --xshn-line: #e2e8f0;
    --xshn-surface: #ffffff;
    --xshn-canvas: #f3f6fb;
    --xshn-radius: 12px;
    --xshn-shadow: 0 8px 24px rgba(15, 35, 65, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--xshn-ink);
    background:
        radial-gradient(circle at 12% 0, rgba(37, 99, 235, .09), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0, var(--xshn-canvas) 420px) !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    line-height: 1.45;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.main,
.container {
    width: calc(100% - 32px);
    max-width: 1180px !important;
}

/* Header and wordmark */
header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

header > .main {
    margin-top: 0;
    margin-bottom: 0;
}

.taskbar {
    min-height: 30px;
    padding: 7px 2px 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--xshn-muted);
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
}

.top-info {
    position: relative;
    min-height: 86px;
    margin: 0;
    padding: 14px 2px 16px !important;
    display: flex;
    align-items: center;
    background: transparent !important;
}

.brand-lockup {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.txtlogo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    color: var(--xshn-navy-900) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.brand-mark {
    position: relative;
    width: 54px;
    height: 54px;
    display: inline-flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--xshn-blue-600), var(--xshn-navy-900));
    box-shadow: 0 9px 22px rgba(29, 78, 216, .25);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 23px;
    height: 23px;
    border: 5px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    background: var(--xshn-red-600);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-name {
    color: var(--xshn-navy-900);
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -.055em;
}

.brand-name > span {
    color: var(--xshn-red-600);
}

.brand-tagline {
    color: var(--xshn-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .015em;
}

.header-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--xshn-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 35, 65, .06);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-dot,
.icon1 {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
    animation: xshn-pulse 1.8s ease-in-out infinite;
}

@keyframes xshn-pulse {
    50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

/* Navigation */
#nav {
    position: sticky;
    top: 0;
    z-index: 90;
    margin: 0;
    background: linear-gradient(105deg, var(--xshn-navy-950), var(--xshn-navy-800) 62%, #174b82) !important;
    box-shadow: 0 7px 20px rgba(7, 20, 38, .16);
}

#nav .main {
    margin-top: 0;
    margin-bottom: 0;
}

nav li > a {
    min-height: 44px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .91);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .015em;
    text-transform: uppercase;
}

nav li.active > a,
nav li:hover > a {
    color: #fff !important;
    background: rgba(255, 255, 255, .12) !important;
}

nav li.active > a::after {
    content: "";
    position: absolute;
    right: 9px;
    bottom: 0;
    left: 9px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--xshn-red-600);
}

@media (min-width: 1024px) {
    .menu-c2 {
        top: 44px !important;
        padding: 7px !important;
        border: 1px solid var(--xshn-line) !important;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 16px 36px rgba(15, 35, 65, .16);
    }

    .menu-c2 li {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 7px;
    }

    .menu-c2 li a {
        min-height: 36px;
        padding: 8px 10px !important;
        color: #334155 !important;
        font-size: 13px;
        text-transform: none;
    }

    .menu-c2 li:hover a {
        color: var(--xshn-blue-700) !important;
        background: var(--xshn-blue-50) !important;
    }
}

/* Page layout */
.content.main {
    margin-top: 14px;
    margin-bottom: 22px;
}

@media (min-width: 1190px) {
    .content.main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px 326px;
        align-items: start;
        gap: 12px;
    }

    .content.main > .col-l,
    .content.main > .col-center,
    .content.main > .col-right {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
}

.box,
.vb,
.content-wr,
.content-right {
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: var(--xshn-radius);
    background: var(--xshn-surface) !important;
    box-shadow: var(--xshn-shadow);
}

.box,
.vb,
.content-right {
    margin-bottom: 12px !important;
}

.vb {
    padding: 14px 16px !important;
    color: #334155;
    line-height: 1.65;
}

.vb p:first-child {
    margin-top: 0;
}

.vb p:last-child {
    margin-bottom: 0;
}

.vb a,
.box-html a,
.cont-detail a {
    color: var(--xshn-blue-700) !important;
    text-decoration: none !important;
}

.vb h2,
.cont-detail h2,
#article-content h2 {
    color: var(--xshn-navy-900) !important;
    font-weight: 800 !important;
    letter-spacing: -.015em;
}

.vb h3,
.cont-detail h3 {
    color: var(--xshn-blue-700) !important;
    font-weight: 750 !important;
}

.bg_gray {
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--xshn-line) !important;
    background: linear-gradient(90deg, #f8fafc, var(--xshn-blue-50)) !important;
}

.opt_date_full {
    color: #334155;
    text-align: center;
}

.opt_date_full input {
    width: 112px;
    padding: 4px 6px;
    border: 0 !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, .84) !important;
    color: var(--xshn-red-600);
    font-weight: 750;
    text-align: center;
}

.tab-panel {
    margin: 4px 0 12px;
    padding: 0;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.tab-panel::after,
.tab-panel li::after {
    display: none !important;
}

.tab-panel li {
    flex: 0 0 auto;
    margin: 0 !important;
    border: 1px solid var(--xshn-line);
    border-radius: 8px !important;
    background: #fff !important;
    color: #475569;
}

.tab-panel li a {
    padding: 7px 10px;
    text-decoration: none;
}

.tab-panel li.active {
    border-color: var(--xshn-blue-600);
    background: var(--xshn-blue-600) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .22);
}

.tit-mien,
.la,
.content-right .title-r,
.control-panel,
.pascal .pascal-header,
.fe {
    border: 0 !important;
    background: linear-gradient(105deg, var(--xshn-navy-900), var(--xshn-blue-700)) !important;
    color: #fff !important;
}

.tit-mien,
.la {
    padding: 11px 14px !important;
    font-weight: 800;
    letter-spacing: -.01em;
}

.tit-mien a,
.tit-mien a span,
.la a,
.fe a {
    color: #fff !important;
    text-decoration: none !important;
}

.content-right .title-r {
    padding: 11px 13px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    letter-spacing: .035em;
}

.content-right .title-r a {
    color: #fff !important;
}

.content-right li {
    margin: 0 !important;
    padding: 9px 12px !important;
    border-bottom: 1px solid #edf1f6 !important;
    line-height: 1.35;
}

.content-right li:last-child {
    border-bottom: 0 !important;
}

.content-right li::before {
    color: var(--xshn-blue-600) !important;
}

.content-right li.active,
.content-right li:hover {
    background: var(--xshn-blue-50) !important;
}

.content-right li.active a,
.content-right li:hover a {
    color: var(--xshn-blue-700) !important;
}

/* Results, forms and actions */
table td,
table th {
    border-color: var(--xshn-line) !important;
}

table th,
.table-shadow {
    background: #f8fafc !important;
    color: #334155 !important;
}

.table-shadow td {
    color: #334155 !important;
}

.kqmb tr:nth-child(even),
.colgiai tr:nth-child(even) {
    background: rgba(248, 250, 252, .72);
}

.kqmb td.txt-giai,
.one-city td.txt-giai {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.kqmb td.v-giai span[class^="v-g"],
table.kqmb td.number,
.colgiai td div {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

.kqmb .db td.number,
.kqmb td.v-giai span.v-gdb,
.colgiai .gdb div,
.kqmb .g7 .number,
.colgiai .g8 div {
    color: var(--xshn-red-600) !important;
}

.control-panel {
    padding: 8px 10px !important;
    font-size: 13px;
}

.digits-form label.radio input + b {
    border: 2px solid rgba(255, 255, 255, .82);
}

.digits-form label.radio input:checked + b {
    background-color: #22c55e;
}

.form-doveso {
    padding: 12px;
}

input,
select,
textarea {
    min-height: 38px;
    border-color: #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #fff;
    color: #1e293b;
}

.btn,
.btn-see-more,
.form-doveso button,
#xem_them,
.home_link li a,
ul .hi a,
.mus {
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(105deg, var(--xshn-blue-600), var(--xshn-blue-700)) !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
    color: #fff !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}

.btn:hover,
.btn-see-more:hover,
.form-doveso button:hover,
#xem_them:hover,
.home_link li a:hover,
ul .hi a:hover,
.mus:hover {
    background: linear-gradient(105deg, var(--xshn-blue-700), var(--xshn-navy-800)) !important;
    transform: translateY(-1px);
}

.btn-see-more {
    min-height: 38px;
}

.mega645 .results li .data td i,
.dientoan-ball li span {
    border-color: rgba(37, 99, 235, .32) !important;
    background: linear-gradient(180deg, #fff, var(--xshn-blue-100)) !important;
    color: var(--xshn-blue-700) !important;
    box-shadow: inset 0 -2px 5px rgba(37, 99, 235, .08);
}

.sp,
blockquote {
    border: 1px solid #fed7aa !important;
    border-left: 4px solid var(--xshn-gold) !important;
    border-radius: 9px;
    background: #fffaf0 !important;
}

/* Footer */
.site-footer {
    margin-top: 28px;
    overflow: hidden;
    border-top: 4px solid var(--xshn-blue-600);
    background:
        radial-gradient(circle at 92% 0, rgba(37, 99, 235, .24), transparent 30rem),
        var(--xshn-navy-950) !important;
    color: #cbd5e1;
}

.footer-inner {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr .75fr 1fr;
    gap: 40px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.footer-brand-link .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
    font-size: 15px;
}

.footer-intro {
    max-width: 470px;
    margin: 15px 0 18px;
    color: #a9b8ca;
    line-height: 1.65;
}

.site-footer h2 {
    margin: 3px 0 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-contact,
.footer-nav {
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fff;
}

.footer-contact a,
.footer-contact-item,
.footer-nav a,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
}

.site-footer nav {
    position: static;
    margin: 0;
    background: transparent !important;
    box-shadow: none;
}

.site-footer nav li > a {
    min-height: 0;
    padding: 0;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.site-footer nav li > a:hover {
    background: transparent !important;
    color: #fff !important;
}

.footer-contact i,
.footer-address i {
    width: 16px;
    margin-top: 3px;
    color: #60a5fa;
    text-align: center;
}

.footer-address {
    margin: 0 0 14px;
    color: #a9b8ca;
    font-style: normal;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    font-weight: 700;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.footer-social a:hover {
    border-color: rgba(96, 165, 250, .6);
    background: rgba(37, 99, 235, .28);
    transform: translateY(-2px);
}

.footer-partners {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.footer-partners h2 {
    margin-bottom: 12px;
}

.footer-partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-partner-links a {
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
    color: #b9c7d8;
    font-size: 12px;
    line-height: 1.35;
}

.footer-partner-links a:hover {
    border-color: rgba(96, 165, 250, .55);
    background: rgba(37, 99, 235, .2);
    color: #fff;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: #8394aa;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

#go-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--xshn-blue-600);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
    color: #fff;
}

/* Mobile */
@media (max-width: 1023px) {
    .main,
    .container,
    .footer-inner {
        width: 100%;
    }

    .taskbar {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .top-info {
        min-height: 68px;
        justify-content: center;
        padding: 10px 52px !important;
    }

    .brand-lockup {
        width: auto;
    }

    .header-trust {
        display: none;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        font-size: 16px;
    }

    .brand-name {
        font-size: 25px;
    }

    .brand-tagline {
        font-size: 10px;
    }

    .navbar-toggle {
        top: 50%;
        left: 12px !important;
        padding: 10px !important;
        transform: translateY(-50%);
        border: 1px solid var(--xshn-line);
        border-radius: 9px !important;
        background: var(--xshn-blue-50);
    }

    .navbar-toggle .icon-bar {
        width: 20px;
        height: 2px;
        background: var(--xshn-navy-900) !important;
    }

    div.scrollmenu {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        background: transparent !important;
        scrollbar-width: none;
    }

    div.scrollmenu::-webkit-scrollbar {
        display: none;
    }

    div.scrollmenu a {
        flex: 0 0 auto;
        padding: 12px 14px !important;
        font-size: 12px;
        color: rgba(255, 255, 255, .9) !important;
    }

    div.scrollmenu a.active {
        background: rgba(255, 255, 255, .12) !important;
        color: #fff !important;
        box-shadow: inset 0 -3px var(--xshn-red-600);
    }

    .nav-pc {
        background: #fff !important;
    }

    .nav-horizontal li.menu-header {
        background: var(--xshn-navy-900) !important;
    }

    .nav-horizontal li.active,
    .nav-horizontal li:hover,
    .nav-horizontal li.active > a,
    .nav-horizontal li:hover > a {
        background: var(--xshn-blue-50) !important;
        color: var(--xshn-blue-700) !important;
    }

    .nav-horizontal li > a {
        color: #1e293b;
    }

    #menu-mobile-backdrop {
        background: rgba(7, 20, 38, .58) !important;
        backdrop-filter: blur(3px);
    }

    .content.main {
        margin: 8px 0 18px;
        padding: 0 8px;
    }

    .box,
    .vb,
    .content-right {
        border-radius: 10px;
    }

    .content-right li {
        padding: 10px 12px !important;
    }

    .footer-inner {
        padding: 30px 18px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 640px) {
    .taskbar {
        min-height: 27px;
        padding-top: 6px !important;
        font-size: 10px !important;
    }

    .brand-tagline {
        display: none;
    }

    .top-info {
        min-height: 60px;
    }

    .brand-name {
        font-size: 24px;
    }

    .content.main {
        padding: 0 6px;
    }

    .vb {
        padding: 12px !important;
    }

    .tit-mien,
    .la {
        padding: 10px 8px !important;
        font-size: 14px !important;
    }

    .kqmb td.txt-giai,
    .one-city td.txt-giai {
        width: 48px;
    }

    .kqmb td.v-giai span[class^="v-g"] {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    table.kqmb td.number,
    .colgiai td div {
        font-size: 20px;
    }

    .kqmb .db td.number,
    .kqmb td.v-giai span.v-gdb,
    .colgiai .gdb div,
    .kqmb .g7 .number,
    .colgiai .g8 div {
        font-size: 26px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand-block {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
