/*
Theme Name: Xổ Số 3 Miền
Theme URI: https://xoso3m.thuc.app/
Author: Antigravity Team
Author URI: https://xoso3m.thuc.app/
Description: Standalone theme tốc độ cao, siêu nhẹ dành riêng cho website Xổ Số 3 Miền (XSMB, XSMN, XSMT, Vietlott, Trực tiếp). Hoàn toàn độc lập, không phụ thuộc Flatsome.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: xoso3m
*/

@import url("assets/css/grid-compat.css");

@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..900&display=swap");

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ===== GLOBAL TYPOGRAPHY: GOOGLE SANS FLEX ===== */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.banner h1,
.banner h2,
.nav > li > a,
.header-nav,
.header-bottom-nav,
.mobile-sidebar,
.footer,
.footer-xoso-wrapper,
.absolute-footer,
button,
input,
select,
textarea,
p,
span,
a,
label {
  font-family:
    "Google Sans Flex",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif !important;
}

/* ===== HEADER MAIN (LOGO CÄ‚N GIá»®A) ===== */
.header-main {
  background-color: #ffffff;
  border-bottom: none !important;
}

#logo img,
.header-main #logo img {
  max-height: 48px;
  width: auto;
  height: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

/* ===== HEADER BOTTOM (THANH MENU Xá»” Sá» THEO MáºªU) ===== */
#wide-nav.header-bottom {
  background-color: #cf4f01 !important;
  border-top: none !important;
  border-bottom: none !important;
  min-height: 40px;
  height: 40px;
}

#wide-nav .flex-row.container {
  height: 40px;
  min-height: 40px;
}

.header-bottom-nav.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 40px;
  margin: 0 auto;
}

.header-bottom-nav.nav > li {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header-bottom-nav.nav > li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-bottom-nav.nav > li > a {
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  padding: 0 13px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 40px;
  text-transform: uppercase !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

/* Hiá»‡u á»©ng Active vÃ  Hover cho Menu Items (MÃ u cam sÃ¡ng nhÆ° máº«u) */
.header-bottom-nav.nav > li > a:hover,
.header-bottom-nav.nav > li.current-menu-item > a,
.header-bottom-nav.nav > li.current_page_item > a,
.header-bottom-nav.nav > li.active > a {
  background-color: #ff8a2c !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* XoÃ¡ cÃ¡c gáº¡ch chÃ¢n máº·c Ä‘á»‹nh cá»§a Flatsome */
.header-bottom-nav.nav > li > a:before,
.header-bottom-nav.nav > li > a:after {
  display: none !important;
}

/* ===== FOOTER LINKS (6 Cá»˜T THEO MáºªU) ===== */
.footer-xoso-wrapper {
  background-color: #f7f9fa;
  border-top: 1px solid #e9ecef;
  padding: 30px 0 20px;
}

.footer-col-title {
  color: #0b57a4 !important;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Bá» toÃ n bá»™ dot/bullet á»Ÿ ul vÃ  li */
.footer-xoso-wrapper ul,
.footer-xoso-wrapper ol,
.footer-link-list {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-xoso-wrapper li,
.footer-link-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Loáº¡i bá» pseudo-element náº¿u cÃ³ icon hoáº·c dot tá»± Ä‘á»™ng chÃ¨n */
.footer-xoso-wrapper li:before,
.footer-xoso-wrapper li:after,
.footer-link-list li:before,
.footer-link-list li:after {
  display: none !important;
  content: none !important;
}

.footer-link-list li a {
  color: #495057 !important;
  font-size: 13.5px;
  line-height: 2.05;
  display: block;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.footer-link-list li a:hover {
  color: #cf4f01 !important;
}

/* ===== ABSOLUTE FOOTER (THANH MÃ€U CAM DÆ¯á»šI CÃ™NG) ===== */
.absolute-footer {
  background-color: #cf4f01 !important;
  padding: 16px 0 14px;
  color: #ffffff !important;
  font-size: 13.5px;
}

.absolute-footer .footer-primary {
  max-width: 55%;
}

.absolute-footer .footer-secondary {
  max-width: 45%;
}

.absolute-footer a {
  color: #ffffff !important;
}

.absolute-footer a:hover {
  text-decoration: underline !important;
}

/* ========================================================
   ===== HOMEPAGE: Báº¢NG Káº¾T QUáº¢ & SIDEBAR Xá»” Sá» MáºªU =====
   ======================================================== */

.xoso-home-row,
.xoso-home-container {
  padding-top: 15px;
  padding-bottom: 25px;
}

/* ===== SIDEBAR WIDGETS (THEO áº¢NH MáºªU XSMN.MOBI) ===== */
.xoso-sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xoso-widget-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.xoso-widget-header {
  background: #cf4f01;
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xoso-widget-header .coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.xoso-widget-title {
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.xoso-widget-body {
  padding: 10px 14px 12px;
}

.province-grid.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.province-grid.col-2 li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px;
  position: relative;
  padding-left: 12px !important;
}

.province-grid.col-2 li:before {
  content: "•" !important;
  display: inline-block !important;
  position: absolute;
  left: 0;
  color: #cf4f01;
  font-size: 14px;
  line-height: 1.4;
}

.province-grid.col-2 li a {
  color: #2d3748;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.province-grid.col-2 li a:hover {
  color: #cf4f01;
}

.spin-dot {
  font-size: 11px;
  display: inline-block;
  animation: pulseSpin 2s infinite ease-in-out;
}

@keyframes pulseSpin {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

.schedule-body .schedule-item {
  font-size: 13px;
  line-height: 1.6;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #4a5568;
}

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

.schedule-body .schedule-item.active-day {
  background: #fffbeb;
  color: #b45309;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  margin: 2px 0;
}

/* ===== MAIN CONTENT: THANH TAB NGÃ€Y & KHá»I Káº¾T QUáº¢ ===== */
.quick-nav-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quick-nav-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.quick-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.quick-nav-tabs .tab-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: #edf2f7;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.15s ease;
}

.quick-nav-tabs .tab-btn:hover {
  background: #e2e8f0;
  color: #1a202c;
}

.quick-nav-tabs .tab-btn.active {
  background: #cf4f01;
  color: #ffffff;
}

.date-picker-wrap {
  margin-left: auto;
}

.date-select-input {
  font-size: 12.5px;
  padding: 4px 8px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  color: #4a5568;
}

/* Khá»‘i káº¿t quáº£ (Result Box) */
.result-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.result-header {
  background: linear-gradient(135deg, #cf4f01 0%, #e65100 100%);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.result-title a {
  color: #ffffff !important;
  text-decoration: none;
}

.result-nav-links a {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  margin-left: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
  transition: background 0.15s;
}

.result-nav-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Báº£ng káº¿t quáº£ xá»• sá»‘ (Table Result) */
.table-result {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  text-align: center;
}

.table-result th,
.table-result td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  vertical-align: middle;
}

.table-result thead tr.header-province {
  background: #f7fafc;
}

.table-result thead th.col-prize {
  width: 60px;
  color: #4a5568;
  font-weight: 700;
  font-size: 13.5px;
}

.table-result thead th.col-prov a {
  color: #0b57a4;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.table-result td.prize-name {
  background: #f7fafc;
  font-weight: 700;
  color: #4a5568;
  font-size: 13px;
  width: 60px;
}

.table-result td.prize-db {
  color: #d32f2f;
  font-weight: 800;
}

.table-result td.number-cell {
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 1px;
}

.table-result td.font-g8 {
  color: #d32f2f;
  font-size: 18px;
}

.table-result td.font-db {
  color: #d32f2f !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  background: #fff5f5;
}

.table-result td.font-g1 {
  color: #0b57a4;
  font-size: 18px;
}

/* Báº£ng Äáº§u - ÄuÃ´i LÃ´ TÃ´ */
.lotto-table-wrap {
  padding: 12px 14px 16px;
  background: #fafafa;
  border-top: 1px solid #e2e8f0;
}

.lotto-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  margin-bottom: 10px;
}

.lotto-flex-row {
  display: flex;
  gap: 12px;
}

.lotto-col {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.lotto-col-header {
  background: #edf2f7;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 8px;
  text-align: center;
  color: #0b57a4;
}

.table-lotto {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 12.5px;
}

.table-lotto th,
.table-lotto td {
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
}

.table-lotto th {
  background: #f7fafc;
  font-weight: 700;
  text-align: center;
  color: #4a5568;
}

.table-lotto td:first-child {
  font-weight: 700;
  color: #d32f2f;
  text-align: center;
  width: 38px;
  background: #f7fafc;
}

.table-lotto td:last-child {
  color: #2d3748;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.xsmb-lotto-row .half-col {
  flex: 1;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================
   ===== GIAO DIá»†N Báº¢NG Káº¾T QUáº¢ CHUáº¨N THEO áº¢NH MáºªU XSMN.MOBI =====
   ======================================================== */

.xoso-box-wrapper {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 1. Header Tabs ngÃ y trÃªn cÃ¹ng */
.top-day-tabs {
  display: flex;
  align-items: stretch;
  height: 33px;
  background: #ffffff;
  border-bottom: 1px solid #d0d7de;
}

.tab-badge-region {
  background: #cf4f01;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}

.tab-badge-region:hover {
  background: #a83d00;
  color: #ffffff;
}

.tab-day-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-left: 1px solid #e2e8f0;
  transition:
    background 0.15s,
    color 0.15s;
}

.tab-day-item:hover {
  background: #fff7ed;
  color: #cf4f01;
}

.tab-day-item.active-day-tab {
  background: #cf4f01 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* 2. TiÃªu Ä‘á» cam chÃ­nh */
.box-main-title {
  background: #cf4f01;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.3px;
}

/* 3. Sub-header Breadcrumb ngÃ y vÃ ng kem */
.box-sub-breadcrumb {
  background: #fffaea;
  border-bottom: 1px solid #fef08a;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  color: #b45309;
}

.box-sub-breadcrumb a {
  color: #b45309 !important;
  text-decoration: none;
}

.box-sub-breadcrumb a:hover {
  text-decoration: underline;
}

/* 4. Báº£ng káº¿t quáº£ xá»• sá»‘ (Table Grid) */
.table-xoso-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  text-align: center !important;
}

.table-xoso-grid th,
.table-xoso-grid td {
  border: 1px solid #d0d7de;
  vertical-align: middle !important;
  padding: 5px 6px;
  text-align: center !important;
}

.table-xoso-grid tr.row-provinces th {
  background: #f0f4f8;
  height: 34px;
  text-align: center !important;
}

.table-xoso-grid .col-prize-name,
.table-xoso-grid .cell-prize-code {
  width: 52px !important;
  max-width: 52px !important;
  min-width: 48px !important;
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
  font-size: 13px;
  text-align: center !important;
}

.table-xoso-grid .col-prov-name {
  text-align: center !important;
}

.table-xoso-grid .col-prov-name a {
  color: #0b57a4 !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center !important;
}

.table-xoso-grid .cell-number,
.table-xoso-grid .cell-number-mb {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.5px;
  text-align: center !important;
}

.table-xoso-grid .cell-number div,
.table-xoso-grid .cell-number-mb div {
  line-height: 1.4;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.table-xoso-grid .cell-number.prize-g8 {
  color: #d32f2f;
  font-size: 24px;
  font-weight: 800;
}

.table-xoso-grid .cell-number.prize-db,
.table-xoso-grid .cell-number-mb.prize-db {
  color: #d32f2f !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  padding: 10px 4px !important;
}

.table-xoso-grid tr.row-prize-db,
.table-xoso-grid tr.row-db {
  background: #ffffff;
}

.table-xoso-grid .cell-ma-db,
.table-xoso-grid .cell-number-mb.text-madb {
  color: #0b57a4 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  background: #f8fafc !important;
  text-align: center !important;
}

/* Äá»‹nh dáº¡ng chuyÃªn sÃ¢u cho Báº£ng Miá»n Báº¯c (XSMB) */
.xsmb-grid {
  table-layout: fixed !important;
}

.xsmb-grid td {
  vertical-align: middle !important;
  padding: 8px 4px !important;
  text-align: center !important;
}

.xsmb-grid .prize-db-code {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-weight: 800 !important;
}

.xsmb-grid .prize-g7-code {
  background: #fff7ed !important;
  color: #c2410c !important;
  font-weight: 800 !important;
}

.xsmb-grid .cell-number-mb.prize-g1 {
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  padding: 8px 4px !important;
}

.xsmb-grid .cell-number-mb.prize-g2 {
  color: #111827 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  padding: 7px 4px !important;
}

.xsmb-grid .cell-number-mb.prize-g3,
.xsmb-grid .cell-number-mb.prize-g4,
.xsmb-grid .cell-number-mb.prize-g5,
.xsmb-grid .cell-number-mb.prize-g6 {
  color: #1f2937 !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  padding: 7px 4px !important;
}

.xsmb-grid .cell-number-mb.prize-g7,
.table-xoso-grid .prize-g7,
.table-xoso-grid .prize-g7-mb {
  color: #d32f2f !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  padding: 8px 4px !important;
}

/* 5. Thanh cÃ´ng cá»¥ lá»c 2 sá»‘ / 3 sá»‘ & Ã¢m thanh */
.xoso-filter-bar,
.xoso-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  padding: 6px 14px !important;
  background: #ffffff !important;
  border-top: 1px solid #d0d7de !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.filter-radio-group,
.filter-options-group {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

.radio-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  user-select: none;
  white-space: nowrap !important;
}

.radio-label input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.radio-label span {
  display: inline-block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.sound-toggle-btn {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* VÃ²ng quay trÃ²n chá» káº¿t quáº£ má»Ÿ thÆ°á»Ÿng */
.waiting-spin-circle {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  border: 2.5px solid #fed7aa !important;
  border-top: 2.5px solid #ea580c !important;
  border-right: 2.5px solid #ea580c !important;
  border-radius: 50% !important;
  animation: xoso-spin 0.75s linear infinite !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  margin: 2px auto !important;
}

.waiting-spin-circle.prize-db-spin {
  width: 22px !important;
  height: 22px !important;
  border: 3px solid #fee2e2 !important;
  border-top: 3px solid #dc2626 !important;
  border-right: 3px solid #dc2626 !important;
}

@keyframes xoso-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 6. Thanh dÃ£y sá»‘ 0-9 */
.quick-digits-bar {
  display: flex;
  border-top: 1px solid #d0d7de;
  border-bottom: 1px solid #d0d7de;
  background: #f8fafc;
}

.digit-cell {
  flex: 1;
  text-align: center;
  padding: 3px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
  border-right: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s;
}

.digit-cell:last-child {
  border-right: none;
}

.digit-cell:hover {
  background: #e2e8f0;
  color: #111827;
}

/* 7. Báº£ng Thá»‘ng kÃª Äáº§u ÄuÃ´i LÃ´ TÃ´ */
.table-lotto-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
  text-align: center !important;
}

.table-lotto-grid th,
.table-lotto-grid td {
  border: 1px solid #d0d7de;
  padding: 4px 8px;
  vertical-align: middle !important;
  text-align: center !important;
}

.table-lotto-grid tr.row-lotto-header th {
  background: #fffaea;
  color: #374151;
  font-weight: 700;
  text-align: center !important;
  border-bottom: 1px solid #d0d7de;
  height: 30px;
}

.table-lotto-grid tr.row-lotto-header th:not(:first-child) {
  color: #0b57a4;
}

.table-lotto-grid th:first-child,
.table-lotto-grid .lotto-head-num {
  color: #d32f2f;
  font-weight: 700;
  text-align: center !important;
  background: #fefefe;
  font-size: 13.5px;
  width: 52px !important;
  max-width: 52px !important;
  min-width: 48px !important;
}

.table-lotto-grid td {
  text-align: center !important;
  color: #1f2937;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.table-lotto-xsmb tr.row-lotto-header th:last-child {
  color: #374151;
}

/* Highlight sá»‘ tÆ°Æ¡ng tÃ¡c */
.digit-highlight {
  background-color: #fef08a !important;
  color: #b45309 !important;
  border-radius: 3px;
  padding: 1px 3px;
  display: inline-block;
}

.digit-cell.active-digit {
  background-color: #cf4f01 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ========================================================
   ===== Tá»I Æ¯U HÃ“A RESPONSIVE (MOBILE & TABLET) =====
   ======================================================== */

@media only screen and (max-width: 849px) {
  /* 1. Header trÃªn Mobile & Tablet */
  #masthead.header-main {
    height: 55px !important;
  }

  #logo img {
    max-height: 44px !important;
  }

  /* Hiá»ƒn thá»‹ thanh menu mÃ u cam cuá»™n ngang mÆ°á»£t mÃ  */
  #wide-nav.header-bottom {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  #wide-nav.header-bottom::-webkit-scrollbar {
    display: none !important;
  }

  #wide-nav .flex-row.container {
    width: max-content !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 6px !important;
  }

  .header-bottom-nav.nav {
    flex-wrap: nowrap !important;
    height: 38px !important;
  }

  .header-bottom-nav.nav > li > a {
    padding: 0 10px !important;
    font-size: 12.5px !important;
    height: 38px !important;
    line-height: 38px !important;
    white-space: nowrap !important;
  }

  /* 2. Container & Khoáº£ng cÃ¡ch Trang chá»§ */
  .xoso-home-container {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .xoso-main-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .xoso-sidebar-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 20px !important;
  }

  .xoso-box-wrapper {
    margin-bottom: 16px !important;
  }

  /* 3. Thanh Tab Thá»© cuá»™n ngang mÆ°á»£t mÃ  */
  .top-day-tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    white-space: nowrap !important;
    height: 32px !important;
  }

  .top-day-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .tab-badge-region {
    flex-shrink: 0 !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }

  .tab-day-item {
    flex-shrink: 0 !important;
    padding: 0 10px !important;
    min-width: 44px !important;
    font-size: 12.5px !important;
  }

  /* 4. TiÃªu Ä‘á» khá»‘i & Breadcrumb */
  .box-main-title {
    font-size: 13.5px !important;
    padding: 6px 8px !important;
    line-height: 1.35 !important;
  }

  .box-sub-breadcrumb {
    font-size: 12px !important;
    padding: 5px 6px !important;
    line-height: 1.35 !important;
  }

  /* 5. Tinh chá»‰nh Báº£ng káº¿t quáº£ xá»• sá»‘ */
  .table-xoso-grid th,
  .table-xoso-grid td {
    padding: 4px 2px !important;
  }

  .table-xoso-grid .col-prize-name,
  .table-xoso-grid .cell-prize-code {
    width: 38px !important;
    max-width: 38px !important;
    min-width: 34px !important;
    font-size: 11.5px !important;
    padding: 3px 1px !important;
  }

  .table-xoso-grid tr.row-provinces th {
    height: 30px !important;
  }

  .table-xoso-grid .col-prov-name a {
    font-size: 13px !important;
  }

  .table-xoso-grid .cell-number,
  .table-xoso-grid .cell-number-mb {
    font-size: 15.5px !important;
    letter-spacing: 0.3px !important;
    line-height: 1.35 !important;
    padding: 5px 2px !important;
  }

  .table-xoso-grid .cell-number div,
  .table-xoso-grid .cell-number-mb div {
    line-height: 1.35 !important;
  }

  .table-xoso-grid .cell-number.prize-g8 {
    font-size: 19px !important;
  }

  .table-xoso-grid .cell-number.prize-db,
  .xsmb-grid .cell-number-mb.prize-db {
    font-size: 22px !important;
    padding: 6px 2px !important;
  }

  .xsmb-grid .cell-number-mb.prize-g1 {
    font-size: 18px !important;
  }

  .xsmb-grid .cell-number-mb.prize-g2 {
    font-size: 16.5px !important;
  }

  .xsmb-grid .cell-number-mb.prize-g3,
  .xsmb-grid .cell-number-mb.prize-g4,
  .xsmb-grid .cell-number-mb.prize-g5,
  .xsmb-grid .cell-number-mb.prize-g6 {
    font-size: 15px !important;
  }

  .xsmb-grid .cell-number-mb.prize-g7,
  .table-xoso-grid .prize-g7,
  .table-xoso-grid .prize-g7-mb {
    font-size: 18px !important;
  }

  .table-xoso-grid .cell-ma-db,
  .xsmb-grid .text-madb {
    font-size: 12px !important;
    padding: 4px 2px !important;
    word-break: break-all !important;
  }

  /* 6. Thanh cÃ´ng cá»¥ lá»c & DÃ£y sá»‘ 0-9 */
  .xoso-filter-bar,
  .xoso-action-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 5px 8px !important;
  }

  .filter-radio-group,
  .filter-options-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .radio-label {
    font-size: 12.5px !important;
    gap: 4px !important;
  }

  .radio-label input[type="radio"] {
    width: 14px !important;
    height: 14px !important;
  }

  .digit-cell {
    font-size: 11.5px !important;
    padding: 3px 0 !important;
  }

  /* 7. Báº£ng Thá»‘ng kÃª Äáº§u ÄuÃ´i LÃ´ TÃ´ */
  .table-lotto-grid th,
  .table-lotto-grid td {
    padding: 3px 2px !important;
    font-size: 11.5px !important;
  }

  .table-lotto-grid tr.row-lotto-header th {
    height: 26px !important;
    font-size: 12px !important;
  }

  .table-lotto-grid th:first-child,
  .table-lotto-grid .lotto-head-num {
    width: 38px !important;
    max-width: 38px !important;
    min-width: 34px !important;
    font-size: 12px !important;
  }

  /* 8. Footer trÃªn Mobile */
  .footer-col-title {
    margin-top: 14px !important;
    font-size: 14px !important;
  }

  .footer-link-list li a {
    font-size: 13px !important;
    line-height: 1.9 !important;
  }

  .absolute-footer {
    padding: 14px 8px !important;
  }

  .absolute-footer .footer-primary,
  .absolute-footer .footer-secondary {
    max-width: 100% !important;
    float: none !important;
    text-align: center !important;
  }

  .footer-right-content {
    text-align: center !important;
    margin-top: 8px !important;
  }

  .footer-badges {
    justify-content: center !important;
    margin-bottom: 10px !important;
  }
}

/* Tinh chá»‰nh cho cÃ¡c mÃ n hÃ¬nh cá»±c nhá» (< 375px) */
@media only screen and (max-width: 374px) {
  .table-xoso-grid .cell-number {
    font-size: 14px !important;
  }

  .table-xoso-grid .cell-number.prize-db {
    font-size: 18px !important;
  }

  .filter-radio-group {
    gap: 6px !important;
  }

  .radio-label {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   CHUáº¨N HÃ“A FORM Lá»ŒC & BUTTONS (Äá»’NG Bá»˜ CHIá»€U CAO 38PX CHUáº¨N Äáº¸P)
   ========================================================================== */
.xoso-filter-form,
.xoso-box-wrapper form,
.xoso-quaythu-controls {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.xoso-filter-form label,
.xoso-box-wrapper form label,
.xoso-quaythu-controls label {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 38px !important;
}

.xoso-filter-form select,
.xoso-filter-form input[type="text"],
.xoso-filter-form input[type="date"],
.xoso-box-wrapper form select,
.xoso-box-wrapper form input[type="text"],
.xoso-box-wrapper form input[type="date"],
#quaythu-select {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 36px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

.xoso-filter-form select:focus,
.xoso-filter-form input:focus,
.xoso-box-wrapper form select:focus,
.xoso-box-wrapper form input:focus,
#quaythu-select:focus {
  border-color: #cf4f01 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(207, 79, 1, 0.2) !important;
}

.xoso-filter-form .button,
.xoso-filter-form button[type="submit"],
.xoso-filter-form input[type="submit"],
.xoso-box-wrapper form .button,
.xoso-box-wrapper form button[type="submit"],
.xoso-box-wrapper form input[type="submit"],
#btn-start-quaythu,
#btn-quick-quaythu {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 38px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
  border: none !important;
  background: #cf4f01 !important;
  background-color: #cf4f01 !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}

.xoso-filter-form .button:hover,
.xoso-filter-form button[type="submit"]:hover,
.xoso-box-wrapper form .button:hover,
.xoso-box-wrapper form button[type="submit"]:hover,
#btn-start-quaythu:hover {
  background: #a83d00 !important;
  background-color: #a83d00 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

#btn-quick-quaythu {
  background: #475569 !important;
  background-color: #475569 !important;
}

#btn-quick-quaythu:hover {
  background: #334155 !important;
  background-color: #334155 !important;
}

/* ==========================================================================
   Báº¢NG THá»NG KÃŠ TOP 10 LÃ” TÃ” & LÃ” GAN (CÄ‚N CHá»ˆNH 1 HÃ€NG CHUáº¨N Äáº¸P)
   ========================================================================== */
.thong-ke-card-title {
  color: #ffffff !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.2px !important;
}

.thong-ke-card-title.thong-ke-top-freq {
  background: linear-gradient(135deg, #cf4f01 0%, #b84400 100%) !important;
}

.thong-ke-card-title.thong-ke-top-gan {
  background: linear-gradient(135deg, #943600 0%, #6b2600 100%) !important;
}

.table-thong-ke-top10 {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 13px !important;
  text-align: center !important;
}

.table-thong-ke-top10 th,
.table-thong-ke-top10 td {
  border: 1px solid #d0d7de !important;
  padding: 6px 6px !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.table-thong-ke-top10 tr.row-lotto-header th {
  background: #fffaea !important;
  color: #0b57a4 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  height: 32px !important;
  text-align: center !important;
}

.table-thong-ke-top10 th:first-child,
.table-thong-ke-top10 td:first-child {
  width: 25% !important;
  min-width: 65px !important;
  max-width: none !important;
  white-space: nowrap !important;
}

@media only screen and (max-width: 1200px) and (min-width: 850px) {
  .thong-ke-card-title {
    font-size: 11.5px !important;
    padding: 8px 8px !important;
  }
  .table-thong-ke-top10 tr.row-lotto-header th {
    font-size: 11px !important;
    padding: 4px 2px !important;
  }
}

/* ==========================================================================
   STANDALONE THEME ENHANCEMENTS (HEADER, MOBILE DRAWER, FOOTER & CORE WP)
   ========================================================================== */

/* ===== SITE WRAPPER ===== */
body {
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}

#site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1 0 auto;
}

/* ===== TOP BAR ===== */
.site-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
  color: #718096;
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar-date svg {
  color: #cf4f01;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-links a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.topbar-links a:hover {
  color: #cf4f01;
}

/* ===== MAIN HEADER ===== */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 15px;
  padding-right: 15px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  max-height: 52px;
}

.site-logo a,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-logo img,
.custom-logo,
.custom-logo-link img {
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.site-logo a:hover img,
.custom-logo-link:hover img {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .site-logo img,
  .custom-logo,
  .custom-logo-link img {
    max-height: 38px !important;
    max-width: 170px !important;
  }
}

.site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.site-title a {
  color: #cf4f01;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-description {
  margin: 2px 0 0;
  font-size: 12px;
  color: #718096;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #e53e3e;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(229, 62, 62, 0);
  }
}

.header-badge-live .live-dot {
  width: 8px;
  height: 8px;
  background-color: #e53e3e;
  border-radius: 50%;
  display: inline-block;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #cf4f01;
}

.mobile-menu-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* ===== MAIN NAVIGATION BAR ===== */
.site-navigation {
  background-color: #cf4f01;
  position: relative;
  z-index: 99;
}

.site-navigation-inner {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-menu::-webkit-scrollbar {
  display: none;
}

.main-menu > li {
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.main-menu > li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.main-menu > li > a {
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  padding: 0 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  line-height: 42px;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current_page_item > a,
.main-menu > li.active > a {
  background-color: #ff8a2c !important;
  color: #ffffff !important;
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85%;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #cf4f01;
  color: #ffffff;
}

.mobile-drawer-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-close svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 0;
}

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

.mobile-drawer-nav li {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: #2d3748;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-drawer-nav li a:hover,
.mobile-drawer-nav li.current-menu-item > a {
  color: #cf4f01;
  background: #fffaf0;
}

/* Submenu in Mobile */
.mobile-drawer-nav .sub-menu {
  display: none;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f8fafc;
}

.mobile-drawer-nav li.is-expanded > .sub-menu {
  display: block;
}

.mobile-drawer-nav .sub-menu li a {
  padding-left: 32px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  background: #cf4f01;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(207, 79, 1, 0.35);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.25s ease;
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #ff8a2c;
  box-shadow: 0 4px 14px rgba(255, 138, 44, 0.45);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== STANDARD CONTENT & POSTS ===== */
.xoso-page-content,
.xoso-single-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.xoso-page-title,
.xoso-single-title {
  font-size: 24px;
  font-weight: 800;
  color: #cf4f01;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}

.xoso-post-meta {
  font-size: 13px;
  color: #718096;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  gap: 15px;
}

.xoso-entry-content {
  line-height: 1.8;
  color: #2d3748;
  font-size: 15px;
}

.xoso-entry-content h2,
.xoso-entry-content h3 {
  color: #0b57a4;
  margin-top: 24px;
  margin-bottom: 12px;
}

.xoso-entry-content p {
  margin-bottom: 16px;
}

.xoso-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Media Queries for Header */
@media (max-width: 991px) {
  .site-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .topbar-links {
    display: none;
  }
}
