/* =========================================================
   PREMIUM.CSS — Xổ Số Theme Override
   Phong cách: Trắng sáng + Vàng nhạt + Hiện đại & Chuyên nghiệp
   ========================================================= */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
    --color-primary: #e8a000;
    --color-primary-dark: #c87d00;
    --color-primary-light: #fff3cc;
    --color-accent: #f59e0b;
    --color-red: #dc2626;
    --color-red-soft: #fee2e2;
    --color-bg: #ffffff;
    --color-bg-soft: #fafaf8;
    --color-surface: #ffffff;
    --color-heading-bg: #fff5d0;
    --color-heading-border: #e8c84a;
    --color-border: #e8e4dc;
    --color-border-light: #f0ece4;
    --color-text: #2d2d2d;
    --color-text-secondary: #6b6b6b;
    --color-text-muted: #999;
    --color-nav-bg: #1a1a2e;
    --color-nav-text: #ffffff;
    --color-nav-hover-bg: #e8a000;

    --font-main: 'Be Vietnam Pro', 'Nunito', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
    --transition: 0.22s ease;
}

/* === GLOBAL RESET OVERRIDES === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    background: var(--color-bg-soft);
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 .5em;
}

img {
    max-width: 100%;
    height: auto;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-border-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 100px;
}

/* ===========================================================
   HEADER
   =========================================================== */
header,
header.slim-header {
    background: var(--color-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
    transition: box-shadow var(--transition), background var(--transition);
}

header.scrolled {
    background: rgba(26, 26, 46, .97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    backdrop-filter: saturate(180%) blur(8px);
}

.header-container.main {
    max-width: 1090px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 56px;
    gap: 12px;
}

/* Logo */
.logo-group a.txtlogo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-main);
    text-decoration: none;
    white-space: nowrap;
}

.logo-group a.txtlogo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* === DESKTOP NAV === */
/* Hiện ở desktop (≥1024px), ẩn ở mobile */
@media (min-width: 1024px) {
    #nav-desktop.nav-desktop-only {
        flex: 1;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    .menu-toggle-pill {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    #nav-desktop.nav-desktop-only {
        display: none !important;
    }

    .menu-toggle-pill {
        display: flex !important;
    }
}

.modern-nav-wrapper ul,
#nav-desktop ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    background: transparent;
}

.modern-nav-wrapper ul li,
#nav-desktop ul li {
    position: relative;
}

.modern-nav-wrapper ul li a,
#nav-desktop ul li>a {
    display: block;
    padding: 6px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.modern-nav-wrapper ul li a:hover,
#nav-desktop ul li:hover>a,
.modern-nav-wrapper ul li.active>a,
#nav-desktop ul li.active>a {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Submenu */
.modern-nav-wrapper .menu-c2,
#nav-desktop .menu-c2 {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 8px 0;
    z-index: 9999;
    animation: dropFade .18s ease;
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-nav-wrapper ul li:hover .menu-c2,
#nav-desktop ul li:hover .menu-c2 {
    display: block;
}

.modern-nav-wrapper .menu-c2 li,
#nav-desktop .menu-c2 li {
    border-bottom: 1px solid var(--color-border-light);
    padding: 0;
}

.modern-nav-wrapper .menu-c2 li:last-child,
#nav-desktop .menu-c2 li:last-child {
    border-bottom: none;
}

.modern-nav-wrapper .menu-c2 li a,
#nav-desktop .menu-c2 li a {
    display: block;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
    background: transparent;
    transition: background var(--transition), color var(--transition), padding var(--transition);
}

.modern-nav-wrapper .menu-c2 li a:hover,
#nav-desktop .menu-c2 li a:hover {
    background: var(--color-heading-bg);
    color: var(--color-primary-dark);
    padding-left: 22px;
}

/* Menu toggle pill (mobile) */
.menu-toggle-pill {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 100px;
    padding: 7px 14px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    transition: background var(--transition);
}

.menu-toggle-pill:hover {
    background: rgba(255, 255, 255, .22);
}

.hamburger-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .2s;
}

.pill-text {
    letter-spacing: .5px;
}

/* ===========================================================
   MOBILE DRAWER NAV
   =========================================================== */
#menu-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 200;
    backdrop-filter: blur(3px);
}

html.menu-active #menu-mobile-backdrop {
    display: block;
}

/* #nav-horizontal => .nav-pc drawer
   showmnc2() toggles element.style.visibility ('hidden'|'visible')
   Chúng ta dùng visibility + transform để có hiệu ứng slide */
#nav-horizontal.nav-pc {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 310px;
    background: #fff;
    z-index: 300;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s;
    box-shadow: 4px 0 32px rgba(0, 0, 0, .18);
}

/* Khi JS set visibility=visible qua showmnc2() */
#nav-horizontal.nav-pc[style*="visible"] {
    transform: translateX(0);
}

/* Khi html.menu-active (do classList.toggle trong showDrawerMenu) */
html.menu-active #nav-horizontal.nav-pc {
    visibility: visible;
    transform: translateX(0);
}

.nav-horizontal.main {
    margin-bottom: 0;
}

.nav-horizontal li {
    float: none;
    border-bottom: 1px solid var(--color-border-light);
}

.nav-horizontal li>a {
    color: var(--color-text);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.nav-horizontal li.active>a,
.nav-horizontal li:hover>a {
    background: var(--color-heading-bg);
    color: var(--color-primary-dark);
}

.nav-horizontal li.menu-header {
    background: var(--color-nav-bg);
    padding: 14px 18px;
    color: #fff;
    border-bottom: none;
    min-height: 54px;
}

.menu-c2 {
    display: none;
}

.nav-horizontal li:hover .menu-c2,
.nav-horizontal li .arr-d.active~.menu-c2 {
    display: block;
}

.nav-horizontal .menu-c2 {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.nav-horizontal .menu-c2 li {
    background: var(--color-bg-soft);
}

.nav-horizontal .menu-c2 li a {
    padding-left: 32px;
    color: var(--color-text-secondary);
    text-transform: none;
    font-size: 13.5px;
}

/* ===========================================================
   MAIN LAYOUT — DASHBOARD GRID
   =========================================================== */
.content.main,
section.content.main,
.content.main.premium-dashboard {
    max-width: 1090px;
    margin: 18px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 220px 1fr 290px;
    grid-template-areas: "left center right";
    gap: 14px;
    align-items: start;
}

.db-left {
    grid-area: left;
    position: sticky;
    top: 64px; /* header height (56px) + 8px gap */
    align-self: start;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    /* Ẩn scrollbar nhưng vẫn cuộn được */
    scrollbar-width: thin;
    scrollbar-color: var(--color-heading-border) transparent;
}

.db-center {
    grid-area: center;
}

.db-right {
    grid-area: right;
    position: sticky;
    top: 64px; /* header height (56px) + 8px gap */
    align-self: start;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-heading-border) transparent;
}

/* Scrollbar webkit cho sidebar */
.db-left::-webkit-scrollbar,
.db-right::-webkit-scrollbar {
    width: 4px;
}
.db-left::-webkit-scrollbar-track,
.db-right::-webkit-scrollbar-track {
    background: transparent;
}
.db-left::-webkit-scrollbar-thumb,
.db-right::-webkit-scrollbar-thumb {
    background: var(--color-heading-border);
    border-radius: 100px;
}

/* Tắt sticky trên tablet/mobile (grid 1 cột) */
@media (max-width: 1089px) {
    .db-left,
    .db-right {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* ===========================================================
   CARD CONTAINER (shared)
   =========================================================== */
.card-inner,
.db-left .card-inner,
.db-center .card-inner,
.db-right .card-inner {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ===========================================================
   SIDEBAR — LEFT & RIGHT
   =========================================================== */
.sidebar-modern {
    /* no extra style needed; .card-inner handles it */
}

/* ===========================================================
   CONTENT — CENTER (premium-card)
   =========================================================== */
.premium-card {
    background: transparent;
}

.premium-card>.card-inner>.col-l,
.premium-card .col-l {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ===========================================================
   BOX (card blocks inside columns)
   =========================================================== */
.box {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

.box:hover {
    box-shadow: var(--shadow-md);
}

.box:last-child {
    margin-bottom: 0;
}

/* ===========================================================
   TITE / HEADINGS — Yellow background banner
   =========================================================== */
.tit-mien,
.title-bor,
.kq-title,
.box .kq-title,
.content-right .title-r,
.tit-mien h2,
.tit-mien a,
.title-bor h2 {
    background: var(--color-heading-bg) !important;
    color: var(--color-text) !important;
    border-bottom: 2px solid var(--color-heading-border);
    padding: 9px 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: center;
    border-radius: 0;
    line-height: 1.4 !important;
}

.tit-mien h2 {
    margin: 0;
}

.content-right .title-r {
    background: var(--color-heading-bg) !important;
    color: var(--color-text) !important;
    border-radius: 0;
    font-size: 13px !important;
    padding: 8px 10px !important;
}

.content-right .title-r a {
    color: var(--color-text) !important;
}

/* Section headings */
h2.section-heading,
.box h2:first-child,
.box>h3:first-child {
    background: var(--color-heading-bg);
    border-bottom: 2px solid var(--color-heading-border);
    margin: 0;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ===========================================================
   TABLE STYLES
   =========================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main);
}

table th {
    background: var(--color-heading-bg);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 6px;
    border: 1px solid var(--color-heading-border);
    text-align: center;
}

table td {
    padding: 7px 6px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    text-align: center;
    color: var(--color-text);
    background: #fff;
}

/* Stripped rows */
.colgiai tbody>tr:nth-of-type(odd) td {
    background: #fafaf6;
}

.colgiai tbody>tr:hover td {
    background: #fffbe8;
}

/* Prize numbers */
.colgiai td div {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-red);
    line-height: 1.2;
    padding: 5px 2px;
}

.colgiai .gdb div,
.colgiai .g8 div {
    font-size: 28px;
    color: var(--color-red);
}

table.kqmb td.number {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-red);
}

.kqmb .g7 .number,
table.kqmb .db td.number,
table.kqmb .g8 .number {
    font-size: 28px;
}

/* ===========================================================
   TAB PANEL
   =========================================================== */
.tab-panel {
    background: transparent;
    border-bottom: 2px solid var(--color-heading-border);
    margin-bottom: 0;
}

.tab-panel li {
    background: #f5f5f0;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    line-height: 22px;
    transition: background var(--transition);
}

.tab-panel li a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.tab-panel li:hover {
    background: var(--color-heading-bg);
}

.tab-panel li:hover a {
    color: var(--color-text);
}

.tab-panel li.active {
    background: var(--color-heading-bg) !important;
    border-color: var(--color-heading-border);
}

.tab-panel li.active a {
    color: var(--color-text);
    font-weight: 700;
}

.tab-panel li.active::after {
    background: var(--color-heading-bg);
}

.tab-panel::after {
    background: var(--color-heading-bg);
}

/* ===========================================================
   CONTENT RIGHT (sidebar widget cards)
   =========================================================== */
.content-right {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.content-right li {
    padding: 7px 10px;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--color-border);
    transition: background var(--transition);
}

.content-right li:last-child {
    border-bottom: none;
}

.content-right li:hover {
    background: var(--color-heading-bg);
}

.content-right a {
    color: #0505a7;
    font-weight: 500;
    font-size: 13.5px;
}

.content-right a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===========================================================
   OPT DATE CONTROLS (date navigation)
   =========================================================== */
.opt_date_full {
    background: var(--color-heading-bg);
    border: 1px solid var(--color-heading-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}

.opt_date_full input {
    color: var(--color-text);
    font-weight: 600;
}

/* ===========================================================
   PAGINATION
   =========================================================== */
.paging a {
    background: #f0ece2;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 13px;
    padding: 6px 12px;
    transition: background var(--transition);
}

.paging a:hover,
.paging a.active {
    background: var(--color-primary);
    color: #fff;
}

/* ===========================================================
   BREADCRUMB
   =========================================================== */
.breadcrumb {
    font-size: 13px;
    padding: 6px 0;
    color: var(--color-text-secondary);
}

.breadcrumb ol li a {
    color: var(--color-primary-dark);
}

.breadcrumb ol li a:hover {
    text-decoration: underline;
}

/* ===========================================================
   LINKWAY NAV (secondary category nav)
   =========================================================== */
.linkway {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.linkway .main {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
}

.linkway .main a {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: #f7f5f0;
    transition: all var(--transition);
    text-decoration: none;
}

.linkway .main a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===========================================================
   ANNOUNCEMENTS (alert/thông báo)
   =========================================================== */
.announcement {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    margin-bottom: 12px;
}

.announcement .announcement-title {
    color: var(--color-text);
    font-weight: 700;
}

/* ===========================================================
   ALERT BANNER
   =========================================================== */
.alert {
    background: #fffbe6;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 15px;
    color: var(--color-text);
}

.alert.blink {
    animation: 3s colorchange;
}

@keyframes colorchange {
    0% {
        background: #ffd77a;
    }

    100% {
        background: #fffbe6;
    }
}

/* ===========================================================
   SINGLE HERO BANNER
   =========================================================== */
.single-hero-banner {
    background: linear-gradient(135deg, var(--color-heading-bg) 0%, #ffe98a 60%, var(--color-heading-bg) 100%);
    border-bottom: 3px solid var(--color-heading-border);
    padding: 22px 20px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.single-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8a000' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.single-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.3;
    position: relative;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    position: relative;
}

.meta-item {
    font-weight: 500;
}

.meta-divider {
    color: var(--color-primary);
    font-weight: 700;
}

/* ===========================================================
   SINGLE BLOG LAYOUT
   =========================================================== */
.single-blog-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "center" !important;
}

.single-blog-layout .db-center,
.blog-article-card {
    grid-area: center !important;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.blog-content-wrapper {
    padding: 0;
}

.box-detail {
    padding: 20px 24px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--color-text);
}

.box-detail h2,
.box-detail h3 {
    color: var(--color-text);
}

.box-detail img {
    border-radius: var(--radius-sm);
    margin: 12px auto;
}

.cont-detail a {
    color: #1a56da;
}

.cont-detail a:hover {
    color: var(--color-primary-dark);
}

/* ===========================================================
   SINGLE HEADER (single.php)
   =========================================================== */
header:not(.slim-header) {
    background: var(--color-nav-bg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .20);
}

header:not(.slim-header) .main.header-inner {
    max-width: 1090px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 10px;
}

header:not(.slim-header) h1.taskbar {
    display: none;
    /* hidden – duplicate info; title in hero banner */
}

header:not(.slim-header) .top-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

header:not(.slim-header) .logo .txtlogo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

header:not(.slim-header) .logo .txtlogo img {
    height: 36px;
    width: auto;
}

/* hamburger in single */
.navbar-toggle.collapsed {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: var(--radius-sm);
    padding: 9px;
    float: none;
    position: static;
    margin-right: 6px;
}

.navbar-toggle.collapsed .icon-bar {
    background: #fff;
}

/* nav in single */
header:not(.slim-header) nav#nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

header:not(.slim-header) nav#nav>ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

header:not(.slim-header) nav#nav ul li>a {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

header:not(.slim-header) nav#nav ul li:hover>a,
header:not(.slim-header) nav#nav ul li.active>a {
    background: var(--color-primary);
    color: #fff;
}

/* ===========================================================
   GO-TOP BUTTON
   =========================================================== */
#go-top,
#scrollToTopBtn {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(232, 160, 0, .4);
    cursor: pointer;
    border: none;
    font-size: 22px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}

#scrollToTopBtn.show,
#go-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover,
#go-top:hover {
    background: var(--color-primary-dark);
}

#scrollToTopBtn svg {
    width: 20px;
    height: 20px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
/* ===========================================================
   FOOTER — Premium Redesign
   =========================================================== */

/* Wrapper */
footer.footer.premium-footer,
footer.premium-footer {
    background: #13132a;
    color: rgba(255, 255, 255, .75);
    padding: 0;
    margin-top: 0;
    position: relative;
}

/* ── Wave Divider ─ */
.footer-wave {
    display: block;
    line-height: 0;
    overflow: hidden;
    background: var(--color-bg-soft); /* màu phần trên wave */
}
.footer-wave svg {
    display: block;
    width: 100%;
    height: 56px;
}

/* ── Footer Body ─ */
.footer-body {
    padding: 40px 0 28px;
}

/* 4-cột grid */
.footer-grid-new {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* ── Cột 1: Brand ─ */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.brand-icon { font-size: 26px; line-height: 1; }
.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}

.footer-tagline {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
    margin: 0 0 12px;
}

.footer-desc-new {
    color: rgba(255, 255, 255, .55);
    font-size: 13.5px;
    line-height: 1.75;
    margin: 0 0 18px;
}

.footer-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    background: rgba(232, 160, 0, .12);
    border: 1px solid rgba(232, 160, 0, .28);
    border-radius: 100px;
    padding: 4px 10px;
    letter-spacing: .2px;
}

/* ── Cột 2: Lịch quay ─ */
.footer-heading-new {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(232, 160, 0, .25);
    display: flex;
    align-items: center;
    gap: 7px;
}
.heading-icon { font-size: 15px; }

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    gap: 10px;
}
.schedule-region {
    font-size: 12.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: .2px;
}
.schedule-mb { background: rgba(59,130,246,.25); color: #93c5fd; }
.schedule-mt { background: rgba(16,185,129,.22); color: #6ee7b7; }
.schedule-mn { background: rgba(239,68,68,.22); color: #fca5a5; }
.schedule-vl { background: rgba(139,92,246,.22); color: #c4b5fd; }

.schedule-time {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
}

.footer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    line-height: 1.5;
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

/* ── Cột 3 & 4: Links ─ */
.footer-links-new {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.footer-links-new li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: color var(--transition), gap var(--transition);
}
.footer-links-new li:last-child a { border-bottom: none; }
.footer-links-new li a:hover {
    color: var(--color-primary);
    gap: 12px;
}

/* Colored dots cho links */
.link-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .2);
    transition: background var(--transition);
}
.dot-mb { background: #60a5fa; }
.dot-mt { background: #34d399; }
.dot-mn { background: #f87171; }
.dot-vl { background: #a78bfa; }
.footer-links-new li a:hover .link-dot { background: var(--color-primary); }

/* ── Bottom Bar ─ */
.footer-bottom-new {
    background: rgba(0, 0, 0, .25);
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 14px 0 12px;
}
.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.copyright-new {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}
.copyright-new strong { color: rgba(255, 255, 255, .75); }

.footer-policy-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-policy-links a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-policy-links a:hover { color: var(--color-primary); }
.footer-policy-links .sep {
    color: rgba(255, 255, 255, .2);
    font-size: 11px;
}

.disclaimer-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .25);
    margin: 0;
    font-style: italic;
    max-width: 500px;
    line-height: 1.5;
    text-align: center;
}

/* ── Responsive ─ */
@media (max-width: 1023px) {
    .footer-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .branding-col {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .footer-grid-new {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .branding-col { grid-column: auto; }
    .footer-body { padding: 28px 0 20px; }
    .footer-badge-row { gap: 6px; }
}



/* ===========================================================
   MEGA645 / Vietlott styles
   =========================================================== */
.mega645 .results li .data td i {
    font-size: 1.3rem;
    font-weight: 800;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
}

/* ===========================================================
   SEE MORE BUTTON
   =========================================================== */
.btn-see-more {
    display: block;
    margin: 10px auto;
    background: var(--color-heading-bg);
    border: 2px solid var(--color-heading-border);
    color: var(--color-text);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 24px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.btn-see-more:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    color: #fff;
}

/* ===========================================================
   ITEM SUBLINKS (category pills)
   =========================================================== */
a.item_sublink {
    display: inline-block;
    border-radius: 100px;
    background: var(--color-heading-bg);
    border: 1px solid var(--color-heading-border);
    color: var(--color-text) !important;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    margin: 2px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none !important;
}

a.item_sublink:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    color: #fff !important;
}

/* ===========================================================
   SMALL UTILITY OVERRIDES
   =========================================================== */
.bg_ef,
.bg_f6 {
    background: #f9f8f4 !important;
}

.bg-orange,
#result-book th {
    background: var(--color-heading-bg) !important;
}

.bg_gray {
    background: var(--color-bg-soft) !important;
    border-color: var(--color-border) !important;
}

.cbx:checked~label,
.paging a.active,
.paging a:hover,
nav {
    background: var(--color-nav-bg);
}

/* Strip old red nav bg */
nav {
    background: transparent !important;
}

/* hide box-search and conect_out (legacy) */
.box-search,
.conect_out {
    display: none !important;
}

/* Taskbar (mobile title bar) */
.taskbar {
    background: var(--color-heading-bg);
    border-bottom: 2px solid var(--color-heading-border);
    color: var(--color-text);
    font-size: 13px;
    padding: 7px 10px;
}

/* ===========================================================
   RESPONSIVE — Tablet (≤1089px)
   =========================================================== */
@media (max-width: 1089px) {

    .content.main,
    section.content.main,
    .content.main.premium-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
        margin: 10px auto;
        gap: 10px;
    }
}

/* ===========================================================
   RESPONSIVE — Mobile (≤1023px)
   =========================================================== */
@media (max-width: 1023px) {
    .header-container.main {
        height: 52px;
    }

    .single-hero-banner {
        padding: 18px 14px 14px;
    }

    .single-title {
        font-size: clamp(16px, 4vw, 20px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 0 18px;
    }
}

/* ===========================================================
   RESPONSIVE — Small Mobile (≤600px)
   =========================================================== */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .header-container.main {
        padding: 0 10px;
    }

    .logo-group a.txtlogo {
        font-size: 18px;
    }

    .logo-group a.txtlogo img {
        height: 32px;
    }

    .colgiai td div {
        font-size: 20px;
    }

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

    .tab-panel li {
        flex: 0 1 25% !important;
    }

    .tab-panel li a {
        font-size: 12px;
        padding: 5px 2px !important;
        text-align: center;
    }

    .single-hero-banner {
        padding: 16px 12px 12px;
    }

    .box-detail {
        padding: 14px 14px;
        font-size: 14.5px;
    }

    .footer-grid {
        gap: 16px;
        padding: 20px 0 12px;
    }

    .footer-logo-text {
        font-size: 18px !important;
    }
}

/* ===========================================================
   ANIMATION HELPERS
   =========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: fadeInUp .3s ease both;
}

.db-left .box,
.db-left .content-right {
    animation-delay: .05s;
}

.db-right .box,
.db-right .content-right {
    animation-delay: .1s;
}

/* ===========================================================
   SITE NAME TEXT (in logo group)
   =========================================================== */
.site-name-text {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
    display: none;
    /* Show via desktop query */
}

@media (min-width: 768px) {
    .site-name-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .site-name-text {
        display: none;
    }
}

/* ===========================================================
   PAGE TITLE STRIP (below header on homepage)
   =========================================================== */
.page-title-strip {
    background: var(--color-heading-bg);
    border-bottom: 2px solid var(--color-heading-border);
    padding: 0;
}

.page-title-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
}

.page-title-icon {
    font-size: 18px;
    line-height: 1;
}

h1.page-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
    flex: 1;
}

.page-title-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--color-heading-border);
    border-radius: 100px;
    padding: 3px 12px;
}

@media (max-width: 480px) {
    .page-title-text {
        font-size: 13.5px;
    }

    .page-title-date {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* ===========================================================
   NAV SCRAPED ITEMS — Normalize & Style
   Cấu trúc từ trang nguồn:
     li.fl.clearfix > img(base64) + a.fl + span.arr-d + ul.menu-c2
   =========================================================== */

/* ── DESKTOP NAV ─────────────────────────────────────────── */

/* Reset float/clearfix từ source site */
#nav-desktop .modern-nav-wrapper li.fl,
#nav-desktop .modern-nav-wrapper li.clearfix {
    float: none !important;
    position: relative;
}

/* Ẩn icon base64 trong desktop nav */
#nav-desktop .modern-nav-wrapper li>img {
    display: none !important;
}

/* Link chính */
#nav-desktop .modern-nav-wrapper li>a,
#nav-desktop .modern-nav-wrapper li>a.fl {
    float: none !important;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
    text-transform: uppercase;
    letter-spacing: .3px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

#nav-desktop .modern-nav-wrapper li:hover>a,
#nav-desktop .modern-nav-wrapper li.active>a {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Ẩn mũi tên dropdown ở desktop (dùng :hover CSS thay) */
#nav-desktop .modern-nav-wrapper li .arr-d {
    display: none !important;
}

/* Dropdown submenu */
#nav-desktop .modern-nav-wrapper li .menu-c2 {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 175px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 6px 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    animation: dropFade .16s ease;
}

#nav-desktop .modern-nav-wrapper li:hover .menu-c2 {
    display: block;
}

#nav-desktop .modern-nav-wrapper .menu-c2>li {
    float: none !important;
    border-bottom: 1px solid var(--color-border-light);
    padding: 0;
}

#nav-desktop .modern-nav-wrapper .menu-c2>li:last-child {
    border-bottom: none;
}

#nav-desktop .modern-nav-wrapper .menu-c2 li a,
#nav-desktop .modern-nav-wrapper .menu-c2 li a.fl {
    float: none !important;
    display: block !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--color-text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: background var(--transition), color var(--transition), padding-left var(--transition) !important;
}

#nav-desktop .modern-nav-wrapper .menu-c2 li a:hover {
    background: var(--color-heading-bg) !important;
    color: var(--color-primary-dark) !important;
    padding-left: 22px !important;
}

#nav-desktop .modern-nav-wrapper .menu-c2 li a strong {
    font-weight: 500;
}

/* ── MOBILE DRAWER ───────────────────────────────────────── */

.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-nav-list>li,
.drawer-nav-list li.fl,
.drawer-nav-list li.clearfix {
    float: none !important;
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
}

/* Ẩn icon base64 trong drawer */
.drawer-nav-list li>img {
    display: none !important;
}

/* Link chính trong drawer */
.drawer-nav-list li>a,
.drawer-nav-list li>a.fl {
    float: none !important;
    display: block;
    padding: 13px 48px 13px 18px;
    /* right padding cho mũi tên */
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: .3px;
    text-decoration: none;
    line-height: 1.4;
    transition: background var(--transition), color var(--transition);
}

.drawer-nav-list li:hover>a,
.drawer-nav-list li.active>a {
    background: var(--color-heading-bg);
    color: var(--color-primary-dark);
}

/* Mũi tên dropdown trong drawer */
.drawer-nav-list li .arr-d {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-image: none !important;
    background: rgba(0, 0, 0, .05);
    border-radius: 50%;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .65;
    transition: transform .22s, opacity .2s, background .2s;
    z-index: 1;
}

.drawer-nav-list li .arr-d::after {
    content: '▾';
    font-size: 13px;
    color: var(--color-text);
    line-height: 1;
    transform: translateY(-50%) rotate(0);
    /* nếu arr-d.active thì sẽ được override bởi JS inline style */
}

.drawer-nav-list li .arr-d.active {
    opacity: 1;
    background: var(--color-heading-bg);
}

/* Submenu .menu-c2 trong drawer — JS dùng style.display='block' để mở */
.drawer-nav-list li .menu-c2 {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f8f2;
    border-top: 1px solid var(--color-border-light);
    position: static !important;
    box-shadow: none;
    border-radius: 0;
    min-width: unset;
}

.drawer-nav-list li .menu-c2>li {
    float: none !important;
    border-bottom: 1px solid var(--color-border-light);
    background: transparent;
    padding: 0;
}

.drawer-nav-list li .menu-c2>li:last-child {
    border-bottom: none;
}

.drawer-nav-list li .menu-c2 li a,
.drawer-nav-list li .menu-c2 li a.fl {
    float: none !important;
    display: block !important;
    padding: 11px 18px 11px 32px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--color-text-secondary) !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: background var(--transition), color var(--transition) !important;
}

.drawer-nav-list li .menu-c2 li a:hover {
    background: var(--color-heading-bg) !important;
    color: var(--color-primary-dark) !important;
}

.drawer-nav-list li .menu-c2 li a strong {
    font-weight: 500;
    display: inline;
}

/* Ẩn .dsp-mobile nếu còn sót trong drawer */
.drawer-nav-list .dsp-mobile {
    display: none !important;
}

/* Header bar trong drawer nav */
#nav-horizontal .nav-horizontal-list {
    border-bottom: 2px solid var(--color-heading-border);
    margin-bottom: 0;
}

#nav-horizontal .menu-header {
    background: var(--color-nav-bg) !important;
    border-bottom: none !important;
}

#nav-horizontal .menu-header .home-logo img {
    height: 36px;
    width: auto;
}

#nav-horizontal .close-button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#nav-horizontal .close-button:hover {
    background: rgba(255, 255, 255, .28);
}

/* ===========================================================
   FAQ ACCORDION
   =========================================================== */

/* Heading của box FAQ */
.box h2.regional-title {
    background: var(--color-heading-bg);
    border-bottom: 2px solid var(--color-heading-border);
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
    color: var(--color-text);
    line-height: 1.4;
}

/* Container */
.faq-accordion {
    padding: 0 !important;
    margin: 0;
}

/* Mỗi câu hỏi/trả lời */
.faq-item {
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition);
}

.faq-item:last-child {
    border-bottom: none;
}

/* Dòng câu hỏi — clickable */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    gap: 12px;
    user-select: none;
    transition: background var(--transition);
}

.faq-question:hover {
    background: #fffdf0;
}

.faq-item.active > .faq-question {
    background: var(--color-heading-bg);
}

/* Text câu hỏi */
.question-text {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

/* Icon +/× */
.toggle-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-heading-border);
    position: relative;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

/* Dấu + bằng pseudo-elements */
.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.toggle-icon::before {
    width: 10px;
    height: 2px;
}

.toggle-icon::after {
    width: 2px;
    height: 10px;
}

/* Trạng thái active → dấu × */
.faq-item.active > .faq-question .toggle-icon {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    transform: rotate(45deg);
}

.faq-item.active > .faq-question .toggle-icon::before,
.faq-item.active > .faq-question .toggle-icon::after {
    background: #fff;
}

/* Phần trả lời — animation bằng max-height */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JS sẽ set max-height inline khi active */

/* Nội dung bên trong */
.answer-content {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--color-border-light);
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    background: #fffefb;
}

.answer-content p {
    margin: 0 0 8px;
}

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

.answer-content ul {
    margin: 6px 0 8px;
    padding-left: 22px;
    list-style: disc;
}

.answer-content ul li {
    padding: 3px 0;
    color: var(--color-text-secondary);
}

/* Mobile */
@media (max-width: 600px) {
    .faq-question {
        padding: 11px 12px;
    }

    .question-text {
        font-size: 13.5px;
    }

    .answer-content {
        padding: 10px 12px 14px;
        font-size: 13.5px;
    }
}

/* ===========================================================
   404 ERROR PAGE
   =========================================================== */
.error-404-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    padding: 48px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp .4s ease both;
}

.error-404-icon {
    font-size: 56px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(232, 160, 0, .3));
}

.error-404-code {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.error-404-msg {
    font-size: 15px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

.btn-404-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(232, 160, 0, .35);
    letter-spacing: .3px;
    margin-top: 4px;
}

.btn-404-home:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 160, 0, .4);
}

.error-404-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    width: 100%;
}

.error-404-links p {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.error-404-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--color-heading-bg);
    border: 1px solid var(--color-heading-border);
    transition: background var(--transition), color var(--transition);
}

.error-404-links a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-dark);
}

.error-404-links span {
    color: var(--color-border);
    font-size: 12px;
}

@media (max-width: 600px) {
    .error-404-card {
        padding: 36px 20px 28px;
    }
    .error-404-code {
        font-size: 72px;
    }
    .error-404-icon {
        font-size: 44px;
    }
}