/*
Theme Name: Top Lô Đề - Soi Cầu Xổ Số
Theme URI: https://toplode.local
Author: Antigravity
Author URI: https://toplode.local
Description: Theme blog chuyên dùng để soi cầu lô đề và kết quả xổ số 3 miền, siêu tốc độ, chuẩn SEO Schema, mobile first.
Version: 1.2.5
Text Domain: toplode-soicau
*/

/* Reset & Base Variables */
html, :root {
  font-size: clamp(14px, 0.8vw + 11px, 16px) !important;
  --atr-font: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --bda-radius: 5px;
  --atr-radius: 5px;
  --atr-red: #ba0000;
  --atr-red-dark: #900000;
  --atr-red-bright: #dc3545;
  --atr-yellow: #fff3cd;
  --atr-yellow-border: #ffeeba;
  --atr-blue: #002581;
  --atr-blue-link: #0a21ef;
  --atr-dark: #212529;
  --atr-gray-bg: #f4f6f8;
  --atr-gray-border: #dee2e6;
  --atr-text-muted: #6c757d;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 100% !important;
  line-height: 1.5;
  color: var(--atr-dark);
  background-color: var(--atr-gray-bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: var(--atr-blue-link);
  text-decoration: none;
}
a:hover {
  color: var(--atr-red);
  text-decoration: underline;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.main-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 15px -10px;
}

.content-area {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 10px;
}

.sidebar-area {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 10px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .content-area {
    flex: 0 0 68%;
    max-width: 68%;
  }
  .sidebar-area {
    flex: 0 0 32%;
    max-width: 32%;
    margin-top: 0;
  }
}

/* Header */
#atr__header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: var(--atr-red);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0 !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.site-logo .custom-logo {
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 575px) {
  .site-logo .custom-logo {
    max-height: 36px;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.navbar-brand:hover {
  text-decoration: none;
  color: #fff;
}
.navbar-brand .logo-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--atr-red);
  border-radius: 50%;
  margin-right: 8px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.navbar-brand span.logo-text-bold {
  color: #fff;
  font-weight: 900;
}
.navbar-brand span.logo-text-tag {
  color: #ffe600;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
}

/* Nav Menu Desktop */
.nav-menu-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .nav-menu-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-menu-desktop > li {
  position: relative;
}

.nav-menu-desktop > li > a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.nav-menu-desktop > li:hover > a,
.nav-menu-desktop > li.active > a {
  background-color: var(--atr-red-dark);
}

.nav-menu-desktop .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 190px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  border-radius: 0 0 4px 4px;
  z-index: 1030;
}

.nav-menu-desktop > li:hover .sub-menu {
  display: block;
}

.nav-menu-desktop .sub-menu li a {
  display: block;
  padding: 7px 14px;
  color: var(--atr-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
}

.nav-menu-desktop .sub-menu li a:hover {
  background-color: #fce8e8;
  color: var(--atr-red);
}

/* Hamburger & Mobile Menu */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-content {
  width: 290px;
  max-width: 85%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 15px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--atr-red);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.mobile-menu-header h3 {
  margin: 0;
  color: var(--atr-red);
  font-size: 18px;
  font-weight: 800;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  border-bottom: 1px solid #eee;
}

.mobile-menu-list li a {
  display: block;
  padding: 10px 5px;
  color: var(--atr-dark);
  font-weight: 700;
  font-size: 14px;
}

.mobile-menu-list li a:hover {
  color: var(--atr-red);
}

/* Pulsing Badge for Live Lottery */
.xs-region-badge-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Alert Notification Banner */
.live-alert-banner {
  background-color: var(--atr-yellow);
  border: 1px solid #e0a800;
  border-left: 4px solid var(--atr-red);
  padding: 8px 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.live-alert-banner a {
  color: var(--atr-red);
  font-weight: 700;
}

/* Breadcrumbs */
.atr-breadcrumbs {
  margin: 10px 0 15px;
  font-size: 13px;
  color: var(--atr-text-muted);
}
.atr-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.atr-breadcrumbs li + li::before {
  content: "»";
  padding: 0 6px;
  color: #999;
}
.atr-breadcrumbs a {
  color: #555;
}
.atr-breadcrumbs a:hover {
  color: var(--atr-red);
}

/* Card Boxes */
.atr-box {
  background: #fff;
  border: 1px solid var(--atr-gray-border);
  border-radius: 4px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.atr-box-header {
  background-color: var(--atr-red);
  color: #fff;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--atr-red-dark);
}
.atr-box-header a {
  color: #fff;
  text-decoration: none;
}
.atr-box-header a:hover {
  text-decoration: underline;
}

.atr-box-body {
  padding: 14px;
}

/* Tabs Component for Homepage (3 Miền) */
.lottery-tabs-nav {
  display: flex;
  background: #eaeaea;
  border-bottom: 2px solid var(--atr-red);
}

.lottery-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  background: #eee;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #ddd;
}
.lottery-tab-btn:last-child {
  border-right: none;
}
.lottery-tab-btn:hover {
  background: #e2e2e2;
  color: var(--atr-red);
}
.lottery-tab-btn.active {
  background: var(--atr-red);
  color: #fff;
}

.lottery-tab-pane {
  display: none;
  padding: 14px;
}
.lottery-tab-pane.active {
  display: block;
}

/* Result Table Styling (A Trung Roi & Dai Phat Style) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
}

.kq-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--atr-font);
  background: #fff;
  font-size: 14px;
  border: 1px solid #ccc;
}

.kq-table th, .kq-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  vertical-align: middle;
  text-align: center;
}

.kq-table tr:nth-child(even) {
  background-color: #fafafa;
}

.kq-table .prize-name {
  width: 18%;
  font-weight: 700;
  color: #555;
  background-color: #f7f7f7;
}

.kq-table .special-prize {
  color: var(--atr-red-bright);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}
@media (min-width: 576px) {
  .kq-table .special-prize {
    font-size: 32px;
  }
}

.kq-table .number-black-bold {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
@media (min-width: 576px) {
  .kq-table .number-black-bold {
    font-size: 22px;
  }
}

.kq-table .prize-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 6px;
}

.kq-table .prize-cell {
  display: inline-block;
  padding: 2px 6px;
}

/* Loto Dau Duoi Table */
.table-loto-wrap {
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.table-loto {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
}
.table-loto th {
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  font-weight: 700;
}
.table-loto th.th-head {
  background: #ffeded;
  color: #c80000;
  width: 10%;
}
.table-loto th.th-tail {
  background: #eaf3ff;
  color: #0050b3;
  width: 10%;
}
.table-loto th.th-loto {
  background: #f7f7f7;
  color: #333;
  width: 40%;
}
.table-loto td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  vertical-align: middle;
}
.table-loto .col-head {
  width: 10%;
  text-align: center;
  font-weight: 800;
  color: #c80000;
  background: #fffafa;
  font-size: 15px;
}
.table-loto .col-tail {
  width: 10%;
  text-align: center;
  font-weight: 800;
  color: #0050b3;
  background: #f5f9ff;
  font-size: 15px;
}
.table-loto .col-nums {
  text-align: left;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: 0.5px;
  line-height: 1.5;
  font-size: 14px;
}
.table-loto .badge-cam {
  color: #e53e3e;
  font-style: italic;
  font-weight: normal;
  font-size: 13px;
  opacity: 0.85;
}

/* Article Listing */
.list__articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-item-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--atr-gray-border);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.article-item-card:hover {
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-color: #c9c9c9;
}

.article-thumb-wrapper {
  flex: 0 0 110px;
  width: 110px;
  height: 72px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 3px;
  background-color: #f0f0f0;
}
@media (min-width: 576px) {
  .article-thumb-wrapper {
    flex: 0 0 140px;
    width: 140px;
    height: 88px;
    margin-right: 12px;
  }
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.article-item-card:hover .article-thumb-img {
  transform: scale(1.04);
}

.article-meta-info {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 3px;
  color: var(--atr-blue);
}
@media (min-width: 576px) {
  .article-title {
    font-size: 15.5px;
  }
}
.article-item-card:hover .article-title {
  color: var(--atr-red);
}

.article-excerpt {
  font-size: 12.5px;
  color: #555;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.article-date-author {
  font-size: 11.5px;
  color: #777;
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}
.article-date-author .meta-item {
  display: inline-flex;
  align-items: center;
}
.article-date-author .toplode-icon {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  vertical-align: middle;
}
.article-date-author .meta-sep {
  color: #d8d8d8;
  font-weight: 300;
  font-size: 11px;
  user-select: none;
}

/* Prediction Chot So Table */
.table_dudoan_wrapper {
  background: #fff;
  border: 2px solid var(--atr-red);
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(186,0,0,0.1);
}

.table_dudoan_header {
  background: linear-gradient(135deg, var(--atr-red), #e62020);
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table_dudoan {
  width: 100%;
  border-collapse: collapse;
}

.table_dudoan td {
  padding: 10px 14px;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.table_dudoan tr:last-child td {
  border-bottom: none;
}

.conso_dudoan {
  font-weight: 800;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 3px;
}
.conso_dudoan.red {
  color: #fff;
  background-color: var(--atr-red-bright);
}
.conso_dudoan.vip {
  color: #ba0000;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
}

/* Statistics Table */
.table-stat {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid #ccc;
  margin: 12px 0;
}
.table-stat th {
  background-color: #f1f1f1;
  color: #333;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #ddd;
  text-align: center;
}
.table-stat td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
}
.table-stat tr:nth-child(even) {
  background-color: #fafafa;
}

.text-red {
  color: var(--atr-red-bright) !important;
  font-weight: 700;
}

/* Single Post Content Styling */
.the__article {
  background: #fff;
  border: 1px solid var(--atr-gray-border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.page__h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--atr-red);
  margin: 0 0 10px;
}
@media (min-width: 576px) {
  .page__h1 {
    font-size: 24px;
  }
}

.page__h2_summary {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.author-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  font-size: 12.5px;
  color: #555;
}
.author-meta-bar .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.author-meta-bar .meta-item .toplode-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
}
.author-meta-bar .meta-sep {
  color: #ccc;
  font-weight: 300;
  user-select: none;
}
.author-meta-bar strong {
  color: #333;
}
.author-meta-bar a {
  color: #ba0000;
  text-decoration: none;
}
.author-meta-bar a:hover {
  text-decoration: underline;
}

.box-trending {
  background-color: #e8f4fd;
  border-left: 4px solid #007bff;
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.box-trending-title {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  color: #0056b3;
  margin-bottom: 6px;
}
.box-trending ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.box-trending li {
  padding: 3px 0;
}
.box-trending a {
  font-size: 13px;
  font-weight: 700;
  color: var(--atr-red);
}

.article__content {
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}
.article__content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--atr-blue);
  margin-top: 22px;
  margin-bottom: 10px;
  border-left: 4px solid var(--atr-red);
  padding-left: 8px;
}
.article__content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 8px;
}
.article__content p {
  margin-bottom: 12px;
}

.disclaimer-box {
  background: #fff8f8;
  border: 1px solid #f5c6cb;
  border-left: 4px solid var(--atr-red);
  padding: 12px 14px;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 13px;
  font-style: italic;
  color: #721c24;
}

/* Sidebar Styling */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--atr-gray-border);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sidebar-widget-header {
  background-color: var(--atr-red);
  color: #fff;
  padding: 7px 12px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--atr-red-dark);
}
.sidebar-widget-header a {
  color: #fff;
}

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

.province-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.province-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px;
  font-size: 13px;
  color: #333;
  border-radius: 2px;
  transition: background 0.15s;
}
.province-grid li a:hover {
  background: #f1f1f1;
  color: var(--atr-red);
  text-decoration: none;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schedule-item {
  margin-bottom: 10px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-time {
  font-weight: 700;
  font-size: 13px;
  color: var(--atr-red);
}
.schedule-sublist {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 0;
  font-size: 13px;
}
.schedule-sublist li {
  padding: 2px 0;
}

/* Meaning 100 Numbers in Sidebar */
.table-100-numbers {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table-100-numbers td {
  border: 1px solid #e9ecef;
  padding: 4px 6px;
}
.table-100-numbers tr:nth-child(even) {
  background: #fbfbfb;
}

/* Pagination */
.atr-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}
.atr-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
}
.atr-pagination .page-numbers:hover,
.atr-pagination .page-numbers.current {
  background: var(--atr-red);
  color: #fff;
  border-color: var(--atr-red);
}

/* Footer */
#atr__footer {
  background-color: #262626;
  color: #bbb;
  padding: 30px 0 15px;
  margin-top: 40px;
  border-top: 4px solid var(--atr-red);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 15px;
}
.footer-nav a {
  color: #eee;
  font-weight: 600;
}
.footer-nav a:hover {
  color: #ffc107;
}

.footer-disclaimer {
  line-height: 1.6;
  color: #999;
}
.footer-copyright {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333;
  text-align: center;
  color: #777;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--atr-red);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 999;
  border: none;
}

/* ==========================================================================
   4 Thần Tài Images In Prediction Articles (Tone Đậm + Nét Căng)
   ========================================================================== */
.article-image-box {
  margin: 24px auto;
  text-align: center;
  max-width: 850px;
}
.article-image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #ffd700;
  box-shadow: 0 4px 16px rgba(138, 0, 0, 0.22);
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-image-box img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 0, 0, 0.35);
}
.article-image-box figcaption {
  font-size: 13px;
  color: #666;
  font-style: italic;
  font-weight: 600;
  margin-top: 8px;
}

/* ==========================================================================
   Sổ Mơ Lô Đề Toàn Tập Components
   ========================================================================== */
.somo-component {
  margin: 20px 0;
}
.somo-filter-box {
  background: #fbfbfb;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.somo-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.somo-search-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #ba0000;
}
.somo-search-field {
  width: 100%;
  padding: 11px 42px 11px 40px;
  border: 2px solid #ba0000;
  border-radius: 25px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.somo-search-field:focus {
  box-shadow: 0 0 0 3px rgba(186,0,0,0.18);
}
.somo-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.somo-clear-btn:hover {
  color: #ba0000;
}
.somo-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.somo-quick-tags .tag-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.somo-quick-tag {
  background: #f0f4f8;
  color: #0056b3;
  border: 1px solid #d0d7de;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.somo-quick-tag:hover {
  background: #ba0000;
  color: #fff;
  border-color: #ba0000;
  text-decoration: none;
}
.somo-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e1e4e8;
}
.somo-alpha-bar .alpha-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-right: 4px;
}
.somo-alpha-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  transition: all 0.15s ease;
}
.somo-alpha-btn:hover,
.somo-alpha-btn.active {
  background: #ba0000;
  color: #fff;
  border-color: #ba0000;
}
.somo-counter {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
}
.somo-table th {
  background: #ba0000;
  color: #fff;
  font-weight: 700;
  padding: 10px 8px;
}
.somo-table td {
  padding: 10px 8px;
  vertical-align: middle;
}
.somo-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.somo-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff5252, #ba0000 70%, #6e0000);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid #ffd700;
  box-shadow: 0 2px 6px rgba(186,0,0,0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.somo-ball:hover {
  transform: scale(1.18);
}
.somo-not-found {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed #ccd0d4;
  border-radius: 6px;
  color: #555;
}

.somo-pagination-info {
  text-align: center;
  font-size: 13.5px;
  color: #666;
  margin: 16px 0 8px;
  font-style: italic;
}
.somo-pagination-info strong {
  color: var(--atr-red);
  font-style: normal;
}
.somo-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 24px;
}
.somo-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #333;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.somo-pagination .page-numbers:hover {
  background: #fdf2f2;
  border-color: var(--atr-red);
  color: var(--atr-red);
}
.somo-pagination .page-numbers.current {
  background: var(--atr-red);
  color: #fff;
  border-color: var(--atr-red);
  cursor: default;
}
.somo-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: 20px;
  color: #888;
  cursor: default;
}

/* ==========================================================================
   Quay Thử & Thống Kê Interactive Buttons & Visuals
   ========================================================================== */
/* Quay Thu Action & Table Styling */
.quaythu-actions-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}
.btn-spin-green {
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(40,167,69,0.25);
}
.btn-spin-green:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40,167,69,0.35);
}
.btn-spin-blue {
  background: linear-gradient(135deg, #007bff, #0069d9);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 10px;
  box-shadow: 0 2px 4px rgba(0,123,255,0.25);
}
.btn-spin-blue:hover:not(:disabled) {
  background: #0069d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.35);
}
.btn-spin-green:disabled,
.btn-spin-blue:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.spin-status-text {
  margin-top: 10px;
  font-weight: 700;
  color: #ba0000;
  font-size: 14px;
  min-height: 20px;
}
.spin-slot {
  letter-spacing: 2px;
  font-family: 'Roboto Mono', Consolas, 'Courier New', monospace;
  display: inline-block;
}
.spin-slot.spinning {
  color: #ba0000 !important;
  font-weight: 800;
  animation: spinPulse 0.12s infinite;
}
@keyframes spinPulse {
  0% { opacity: 0.35; transform: scale(1.02); }
  50% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0.35; transform: scale(1.02); }
}

.kq-header {
  background: #ba0000 !important;
  color: #fff !important;
  font-size: 15px !important;
  padding: 9px 12px !important;
  text-align: center !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.dau-duoi-title {
  background: #ba0000;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.table-quaythu .prize-cell {
  display: inline-block;
  min-width: 65px;
  text-align: center;
  padding: 3px 6px;
}

.badge-number-red {
  display: inline-block;
  background: #ba0000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
}
.badge-number-gold {
  display: inline-block;
  background: #ffd700;
  color: #720000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #d4af37;
}
.stat-progress-bar {
  width: 100%;
  height: 14px;
  background: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}
.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ba0000);
  border-radius: 8px;
}

/* ==========================================================================
   Top Lô Đề Themed Transparent PNG Icons
   ========================================================================== */
.toplode-icon {
  display: inline-block;
  vertical-align: -2px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 4px;
}

.icon-calendar    { width: 18px; height: 18px; background-image: url('assets/images/icons/calendar.png'); }
.icon-arrow-left  { width: 14px; height: 14px; background-image: url('assets/images/icons/arrow-left.png'); margin-right: 2px; }
.icon-arrow-right { width: 14px; height: 14px; background-image: url('assets/images/icons/arrow-right.png'); margin-left: 2px; margin-right: 0; }
.icon-target      { width: 18px; height: 18px; background-image: url('assets/images/icons/target.png'); }
.icon-slot        { width: 18px; height: 18px; background-image: url('assets/images/icons/slot.png'); }
.icon-chart       { width: 18px; height: 18px; background-image: url('assets/images/icons/chart.png'); }
.icon-book        { width: 18px; height: 18px; background-image: url('assets/images/icons/book.png'); }
.icon-fire        { width: 18px; height: 18px; background-image: url('assets/images/icons/fire.png'); }
.icon-lightning   { width: 18px; height: 18px; background-image: url('assets/images/icons/lightning.png'); }
.icon-crown       { width: 18px; height: 18px; background-image: url('assets/images/icons/crown.png'); }
.icon-star        { width: 16px; height: 16px; background-image: url('assets/images/icons/star.png'); }
.icon-clock       { width: 18px; height: 18px; background-image: url('assets/images/icons/clock.png'); }
.icon-search      { width: 16px; height: 16px; background-image: url('assets/images/icons/search.png'); }
.icon-home        { width: 18px; height: 18px; background-image: url('assets/images/icons/home.png'); }
.icon-dice        { width: 18px; height: 18px; background-image: url('assets/images/icons/dice.png'); }
.icon-caret-down  { width: 11px; height: 11px; background-image: url('assets/images/icons/caret-down.png'); vertical-align: 0; margin-left: 2px; margin-right: 0; }
.icon-dot         { width: 9px; height: 9px; background-image: url('assets/images/icons/dot.png'); vertical-align: 0px; margin-right: 4px; }

.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }

/* ==========================================================================
   Lottery Date Picker Navigation Bar & Tabs
   ========================================================================== */
#kq-date-picker-bar-wrap {
  margin-bottom: 8px;
}

.kq-date-bar-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #ffd4d4;
  border-radius: 6px;
  padding: 5px 8px;
  box-shadow: 0 1px 3px rgba(186, 0, 0, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.kq-date-bar-minimal .btn-date-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ba0000;
  background: #fff8f8;
  border: 1px solid #ffd1d1;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}

.kq-date-bar-minimal .btn-date-nav:hover:not(.disabled) {
  background: #ba0000;
  color: #fff;
  border-color: #ba0000;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(186, 0, 0, 0.2);
}

.kq-date-bar-minimal .btn-date-nav.disabled {
  color: #9ca3af;
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.kq-date-bar-minimal .date-picker-center {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 14px;
  background: #fff1f1;
  border: 1px solid #fecaca;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 0 1 auto;
}

.kq-date-bar-minimal .date-picker-center:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.kq-date-bar-minimal .cal-icon {
  font-size: 14px;
  line-height: 1;
}

.kq-date-bar-minimal .date-display-text {
  font-size: 14px;
  font-weight: 700;
  color: #ba0000;
  white-space: nowrap;
  line-height: 1.2;
}

.kq-date-bar-minimal .dropdown-caret {
  font-size: 11px;
  color: #ba0000;
  margin-left: 2px;
  line-height: 1;
}

.kq-date-bar-minimal .date-picker-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  padding: 0;
  margin: 0;
}

.kq-date-bar-minimal .date-nav-right-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kq-date-bar-minimal .btn-today-quick {
  background: #ebf8ff;
  color: #0284c7;
  border-color: #bae6fd;
  font-size: 12px;
  padding: 5px 10px;
}

.kq-date-bar-minimal .btn-today-quick:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

.kq-date-bar-minimal .date-text-desktop {
  display: inline;
}

.kq-date-bar-minimal .date-text-mobile {
  display: none;
}

/* Responsive for Minimal Date Bar */
@media (max-width: 576px) {
  .kq-date-bar-minimal {
    padding: 4px 6px;
    gap: 4px;
  }
  .kq-date-bar-minimal .btn-date-nav {
    padding: 5px 8px;
    font-size: 12px;
  }
  .kq-date-bar-minimal .nav-text {
    display: none;
  }
  .kq-date-bar-minimal .date-picker-center {
    padding: 5px 8px;
    flex: 1;
  }
  .kq-date-bar-minimal .date-display-text {
    font-size: 12px;
  }
  .kq-date-bar-minimal .date-text-desktop {
    display: none;
  }
  .kq-date-bar-minimal .date-text-mobile {
    display: inline;
  }
  .kq-date-bar-minimal .btn-today-quick {
    padding: 5px 6px;
    font-size: 11px;
  }
}

/* Pending Lottery Notice Card */
.lottery-pending-box {
  padding: 35px 20px;
  background: #fffdf5;
  border: 1px dashed #d4af37;
  border-radius: 8px;
  margin: 15px 0;
}
.lottery-pending-box .pending-icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}
.lottery-pending-box .pending-title {
  color: #ba0000;
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.lottery-pending-box .pending-desc {
  color: #555;
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.lottery-pending-box .pending-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.lottery-pending-box .pending-actions a {
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 4px;
}

.kq-tabs-header {
  display: flex;
  gap: 4px;
  background: #ba0000;
  padding: 5px 5px 0 5px;
  border-radius: 6px 6px 0 0;
}
.kq-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.kq-tab-btn.active {
  background: #fff;
  color: #ba0000;
}
.kq-tab-content-wrapper {
  transition: opacity 0.2s ease;
}
.kq-tab-pane {
  display: none;
}
.kq-tab-pane.active {
  display: block;
}

/* Multi-city KQXS table styles for MT & MN */
.kq-table-multicity {
  width: 100%;
}
.kq-table-multicity th {
  padding: 9px 6px;
  font-size: 14px;
  white-space: nowrap;
}
.kq-table-multicity .multi-city-cell {
  padding: 8px 6px;
  vertical-align: middle;
}
.kq-table-multicity .special-prize {
  font-size: 20px;
  color: var(--atr-red-bright);
  font-weight: 800;
  letter-spacing: 1px;
}
@media (min-width: 576px) {
  .kq-table-multicity .special-prize {
    font-size: 24px;
  }
}
.kq-table-multicity .number-black-bold {
  font-size: 15px;
  font-weight: 700;
}
@media (min-width: 576px) {
  .kq-table-multicity .number-black-bold {
    font-size: 17px;
  }
}
.city-prize-subgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
}
.city-prize-subgrid .number-black-bold {
  display: inline-block;
  white-space: nowrap;
}

/* Multi-city Loto Dau Duoi Table */
.table-loto-multicity th {
  padding: 8px 4px;
  font-size: 13px;
}
.table-loto-multicity td.col-head {
  width: 10%;
  font-size: 15px;
}
.table-loto-multicity td.col-nums {
  text-align: center;
  font-size: 13px;
  padding: 6px 4px;
}

.post-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 15px 0 25px;
}
@media (max-width: 768px) {
  .post-cards-grid {
    grid-template-columns: 1fr;
  }
}
.post-card-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.post-card-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.post-card-thumb .thumb-fallback {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #ba0000, #700000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.post-card-thumb .thumb-badge {
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
}
.post-card-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
}
.post-card-title {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.4;
  font-weight: 700;
}
.post-card-title a {
  color: #222;
  text-decoration: none;
}
.post-card-title a:hover {
  color: #ba0000;
}
.post-card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   TOP LÔ ĐỀ SOI CẦU VIP SIGNATURE WIDGETS
   ========================================================================== */
.section-rbk-wrapper {
  margin: 25px 0;
}
.section-rbk-banner {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid #ffcc00;
  text-align: center;
}
.section-rbk-title {
  color: #fff;
  font-size: 18px;
  margin: 0 0 5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-rbk-title {
  background: #ffcc00;
  color: #8b0000;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 16px;
  font-weight: 900;
}
.section-rbk-desc {
  margin: 0;
  font-size: 13px;
  color: #e0e7ff;
}

/* Base RBK Card */
.rbk-module {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-top: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}
.rbk-header {
  background: #f4f6fa;
  padding: 10px 15px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rbk-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  flex: 1;
}
.rbk-badge-logo {
  background: #ba0000;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.rbk-date-nav {
  font-size: 12px;
  color: #666;
}
.rbk-date-nav span.active {
  color: #ba0000;
  font-weight: 700;
}
.rbk-date-nav span:hover {
  cursor: pointer;
  text-decoration: underline;
}
.rbk-body-box {
  padding: 15px;
}
.rbk-note {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px;
}

/* 1. Cầu Đẹp Grid */
.rbk-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  padding: 15px;
}
.rbk-subbox {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.rbk-subbox-header {
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.rbk-subbox-header.color-lotto { background: #e3f2fd; color: #1565c0; border-bottom: 1px solid #bbdefb; }
.rbk-subbox-header.color-2nhay { background: #fff3e0; color: #e65100; border-bottom: 1px solid #ffe0b2; }
.rbk-subbox-header.color-db { background: #fce4ec; color: #c2185b; border-bottom: 1px solid #f8bbd0; }
.rbk-subbox-header.color-search { background: #f3e5f5; color: #7b1fa2; border-bottom: 1px solid #e1bee7; }
.rbk-subbox-body {
  padding: 12px;
}
.rbk-pair-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rbk-pair-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.rbk-pair-btn:hover {
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(21,101,192,0.3);
}
.rbk-pair-btn.btn-2nhay:hover {
  background: #e65100;
  border-color: #e65100;
  box-shadow: 0 2px 4px rgba(230,81,0,0.3);
}
.rbk-pair-btn.btn-db:hover {
  background: #c2185b;
  border-color: #c2185b;
  box-shadow: 0 2px 4px rgba(194,24,91,0.3);
}

/* Search Cầu */
.rbk-search-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
}
.rbk-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.rbk-input-num {
  width: 90px;
  padding: 8px 12px;
  border: 2px solid #818cf8;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: #312e81;
}
.rbk-btn-submit {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rbk-btn-submit:hover {
  opacity: 0.9;
}
.rbk-bridge-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  padding: 10px 12px;
  border-radius: 4px;
  margin-top: 10px;
}
.bridge-detail-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #1e1b4b;
}
.bridge-detail-card p {
  margin: 3px 0;
  font-size: 13px;
  color: #334155;
}

/* 2. Lô Top Cloud */
.rbk-lotop-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0;
}
.rbk-lotop-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.rbk-lotop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}
.rbk-lotop-item.size-tier-1 {
  background: #fff5f5;
  border-color: #feb2b2;
}
.rbk-lotop-item.size-tier-1 .lotop-num {
  font-size: 32px;
  font-weight: 900;
  color: #c53030;
}
.rbk-lotop-item.size-tier-2 {
  background: #fffaf0;
  border-color: #fbd38d;
}
.rbk-lotop-item.size-tier-2 .lotop-num {
  font-size: 26px;
  font-weight: 800;
  color: #dd6b20;
}
.rbk-lotop-item.size-tier-3 .lotop-num {
  font-size: 22px;
  font-weight: 700;
  color: #2b6cb0;
}
.rbk-lotop-item.size-tier-4 .lotop-num {
  font-size: 18px;
  font-weight: 700;
  color: #4a5568;
}
.lotop-votes {
  font-size: 11px;
  color: #718096;
  margin-top: 2px;
  font-weight: 600;
}
.lotop-nhay {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #38a169;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 3. Thống Kê Nhanh (Lô Gan & Bar Charts) */
.rbk-sec-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #c53030;
}
.rbk-logan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.logan-card {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.logan-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #9b2c2c;
}
.logan-days {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #e53e3e;
  margin-top: 2px;
}

/* Bar Chart */
.rbk-barchart-container {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: 6px;
  padding: 15px;
}
.rbk-bars-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  border-bottom: 2px solid #cbd5e0;
  padding-bottom: 4px;
}
.rbk-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 9%;
}
.bar-pill-wrap {
  height: 90px;
  display: flex;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}
.bar-pill {
  width: 24px;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: height 0.4s ease;
  position: relative;
}
.tong-pill {
  background: linear-gradient(180deg, #9f7aea 0%, #6b46c1 100%);
}
.cham-pill {
  background: linear-gradient(180deg, #f687b3 0%, #b83280 100%);
}
.bar-val {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding-top: 2px;
  position: absolute;
  top: -18px;
  color: #4a5568;
}
.bar-label {
  font-size: 11px;
  font-weight: 700;
  color: #4a5568;
  margin-top: 6px;
  white-space: nowrap;
}
.rbk-chart-summary {
  margin-top: 12px;
  font-size: 13px;
  color: #4a5568;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.highlight-tong { color: #6b46c1; font-weight: 800; }
.highlight-cham { color: #b83280; font-weight: 800; }

/* 4. Chốt Số Giờ Vàng */
.rbk-chotso-table {
  width: 100%;
  border-collapse: collapse;
}
.rbk-chotso-table td {
  padding: 10px 14px;
  border: 1px solid #edf2f7;
  font-size: 14px;
}
.chotso-label {
  width: 35%;
  font-weight: 700;
  color: #2d3748;
  background: #f7fafc;
}
.chotso-val {
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: 0.5px;
}
.highlight-red { color: #e53e3e; }
.highlight-orange { color: #dd6b20; }
.highlight-purple { color: #805ad5; }
.rbk-expert-note {
  margin-top: 15px;
  background: #fffaf0;
  border-left: 4px solid #dd6b20;
  padding: 10px 14px;
  font-size: 13px;
  color: #744210;
  line-height: 1.5;
  border-radius: var(--bda-radius, 5px);
}

/* ==========================================================================
   GLOBAL DESIGN RULES ENFORCEMENT
   ========================================================================== */

/* 1. Bo góc đồng bộ 5px (System Radius 5px) cho component & card */
button,
input,
select,
textarea,
.lottery-card,
.atr-box,
.sidebar-widget,
.the__article,
.kq-tab-btn,
.lottery-tab-btn,
.article-item-card,
.disclaimer-box,
.btn,
.badge,
.pill,
.modal,
.drawer,
.table-responsive,
.toplode-card,
.toplode-badge {
  border-radius: var(--bda-radius, 5px) !important;
}

/* Header & Full-width Navigation - Tuyệt đối không bo góc */
header,
#atr__header,
.site-header,
.navbar,
.nav-menu-desktop,
.nav-menu-desktop > li,
.nav-menu-desktop > li > a,
.navbar-brand,
footer,
.site-footer {
  border-radius: 0 !important;
}

/* 2. Không dùng chữ in đậm (No bold text - font-weight max 500) */
b, strong, th, h1, h2, h3, h4, h5, h6, .bold,
.article-title, .lottery-card-header, .sidebar-widget-header,
.chotso-label, .chotso-val, .highlight-tong, .highlight-cham {
  font-weight: 500 !important;
}

/* 3. Tuyệt đối không dùng bóng đổ (No shadow) */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* 4. Tuyệt đối không dùng viền cứng nhắc (No border) */
.the__article,
.atr-box,
.sidebar-widget,
.lottery-card,
.post-cards-grid .article-item-card,
.rbk-card {
  border: none !important;
}

/* 5. Gradient buttons */
.btn-primary,
.lottery-tab-btn.active,
.kq-tab-btn.active,
.btn-somo-lookup,
.btn-spin-green {
  background: linear-gradient(135deg, #ba0000 0%, #dc3545 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--bda-radius, 5px) !important;
  font-weight: 500 !important;
}

/* 6. Semantic Utility Classes */
.cat-header-box {
  margin-bottom: 12px;
  padding: 14px;
  background: #ffffff;
}
.cat-main-title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 500;
  color: var(--atr-red);
}
.cat-seo-bottom-box {
  margin-top: 15px;
  background: #ffffff;
  padding: 15px;
}
.home-posts-box {
  margin-top: 15px;
}
.sidebar-single-col {
  grid-template-columns: 1fr !important;
}
.sidebar-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #ffffff;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--atr-dark);
}
.sidebar-link-item:hover {
  background: #f0f2f5;
  color: var(--atr-red);
}
.schedule-detail {
  font-size: 13px;
  font-weight: 400;
  color: var(--atr-dark);
  margin-top: 2px;
}
.badge-text-green {
  color: #137333;
  font-size: 12px;
  font-weight: 500;
  background: #e6f4ea;
  padding: 2px 6px;
}
.badge-text-red {
  color: #c5221f;
  font-size: 12px;
  font-weight: 500;
  background: #fce8e6;
  padding: 2px 6px;
}
.badge-text-blue {
  color: #002581;
  font-size: 12px;
  font-weight: 500;
  background: #e8f0fe;
  padding: 2px 6px;
}
.sidebar-intro-text {
  font-size: 13px;
  color: var(--atr-text-muted);
  margin-bottom: 8px;
}
.sidebar-btn-wrapper {
  margin-top: 10px;
  text-align: center;
}
.btn-somo-lookup {
  display: block;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  background: linear-gradient(135deg, #28a745 0%, #208637 100%) !important;
  color: #ffffff !important;
  text-decoration: none;
}
.scrollable-widget {
  max-height: 250px;
  overflow-y: auto;
}
.disclaimer-lead {
  color: var(--atr-red);
  font-weight: 500;
}

