/* ==========================================================================
 * ui-inner.css — Styles dùng chung cho preview bar & các trang phụ/tiện ích
 * trên cả 6 giao diện chuẩn gốc (ui1..ui6). KHÔNG chứa rule phá bố cục trang chủ.
 * ========================================================================== */

/* Preview switcher bar */
.ui-preview-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  padding: 7px 12px;
  border-bottom: 2px solid var(--ui-primary, #cf2328);
  line-height: 1.4;
}
.ui-preview-bar .ui-pv-in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ui-preview-bar strong { color: #fbbf24; }
.ui-preview-bar code { background: rgba(255,255,255,0.12); padding: 1px 5px; border-radius: 3px; color: #f8fafc; font-size: 11.5px; }
.ui-preview-bar .ui-pv-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ui-preview-bar .ui-pv-links a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}
.ui-preview-bar .ui-pv-links a:hover { background: var(--ui-primary, #cf2328); }
.ui-preview-bar .ui-pv-links a.is-active { background: var(--ui-primary, #cf2328); outline: 1px solid #fbbf24; }
.pv-wrap { max-width: 1220px; margin: 14px auto; padding: 0 10px 28px; }
.pv-hero { background: #0f172a; color: #f8fafc; border-radius: 10px; padding: 16px; margin-bottom: 16px; border: 1px solid #1e293b; }
.pv-hero h2 { margin: 0 0 6px; color: #fbbf24; font-size: 18px; }
.pv-hero p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.pv-group { background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.pv-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
.pv-group-head h2 { margin: 0; font-size: 16px; color: #0f172a; }
.pv-meta { font-size: 12.5px; color: #475569; }
.pv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-card { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 6px; }
.pv-card.is-clone { background: #fffbeb; border-color: #f59e0b; }
.pv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 800; font-size: 12.5px; }
.pv-swatches { display: flex; gap: 4px; flex: none; }
.pv-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.25); }
.pv-badges { font-size: 11.5px; color: #475569; line-height: 1.45; }
.pv-actions { margin-top: auto; display: flex; gap: 6px; padding-top: 4px; }
.pv-actions a { flex: 1 1 auto; text-align: center; padding: 6px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; color: #fff !important; text-decoration: none; }
.pv-actions a.sec { background: #334155 !important; }
/* End preview switcher bar */

/* Brand logo badge thống nhất, sắc nét cho 46 site */
.ui-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  font-weight: 900;
  line-height: 1.1;
}
.ui-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe066, #d97706);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff3bf;
  flex: none;
}
.ui-brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--ui-primary, #cf2328);
  text-transform: uppercase;
}

/* Breadcrumb & Tab bar các trang con */
ol.breadcrumb {
  list-style: none;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  font-size: 12.5px;
  line-height: 1.5;
}
ol.breadcrumb li { display: inline; color: #555; }
ol.breadcrumb li + li::before { content: " / "; color: #9ca3af; padding: 0 4px; }
ol.breadcrumb li a { color: var(--ui-link, #007aee); text-decoration: none; font-weight: 600; }
ol.breadcrumb li a:hover { text-decoration: underline; }

ul.tab-panel {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px;
  border-radius: 4px;
}
ul.tab-panel li { flex: 1 1 auto; text-align: center; }
ul.tab-panel li a {
  display: block;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
ul.tab-panel li.active a,
ul.tab-panel li a:hover {
  background: var(--ui-primary, #cf2328);
  border-color: var(--ui-primary, #cf2328);
  color: #ffffff !important;
}

/* Form thống kê, quay thử, dò vé số, sổ mơ */
.stat-form, .trial-form, .ui-tool-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}
.stat-form .form-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; margin: 0; }
.stat-form label, .ui-tool-form label { font-size: 13px; font-weight: 700; color: #334155; margin: 0; }
.stat-form select, .stat-form input, .trial-form select, .ui-tool-form select, .ui-tool-form input {
  padding: 6px 9px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  min-height: 34px;
}
.ui-tool-form input[type="text"] { flex: 1 1 170px; min-width: 140px; }
.stat-form button, .trial-button, .ui-tool-form button {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: var(--ui-primary, #cf2328);
  color: #ffffff;
}
.stat-form button:hover, .trial-button:hover, .ui-tool-form button:hover { opacity: 0.92; }
.trial-form p { width: 100%; margin: 4px 0 0; font-size: 13px; text-align: center; }

.ui-check-res {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.ui-check-res.is-win { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.ui-check-res.is-miss { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.ui-check-res ul { margin: 6px 0 4px 18px; }

.ui-home-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.ui-home-table th, .ui-home-table td { padding: 6px 8px; text-align: center; border: 1px solid #e2e8f0; }
.ui-home-table th { background: #f8fafc; font-weight: 700; color: #1e293b; }

.draw-notice {
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #78350f;
  text-align: center;
}
.draw-notice.live { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* Bài viết dự đoán, sổ kết quả, FAQ */
.box-html { padding: 10px 12px; font-size: 13.5px; line-height: 1.65; color: #1f2937; }
.box-html h2 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; color: #111827; }
.box-html h3 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.box-html p { margin: 0 0 8px; }
.box-html a { color: var(--ui-link, #007aee); font-weight: 600; }

.list-news-thumb { list-style: none; margin: 0; padding: 8px 10px; }
.list-news-thumb li { border-bottom: 1px solid #eeeeee; padding: 10px 0; }
.list-news-thumb li:last-child { border-bottom: none; }
.list-news-thumb .title-news { margin: 0 0 6px; font-size: 15px; }
.list-news-thumb .news-row { display: flex; gap: 12px; align-items: flex-start; }
.list-news-thumb .news-thumb img { width: 160px; height: auto; border-radius: 4px; display: block; }
.list-news-thumb .desc { margin: 0; font-size: 13px; color: #4b5563; line-height: 1.5; }
@media (max-width: 600px) {
  .list-news-thumb .news-row { flex-direction: column; }
  .list-news-thumb .news-thumb img { width: 100%; max-width: 300px; }
}
.du-doan-article .news-thumb-lg img { max-width: 100%; height: auto; border-radius: 6px; }
.du-doan-article .toc { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 5px; padding: 10px 14px; margin: 10px 0; }
.du-doan-article .toc-title { font-weight: 800; margin: 0 0 6px; }
.du-doan-article .toc ul { margin: 0; padding-left: 16px; line-height: 1.7; }
.loading-page { display: flex; justify-content: space-between; padding: 10px; font-size: 13.5px; }

.book-day { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; }
.book-day .sub-col-l { flex: 1 1 65%; min-width: 0; }
.book-day .sub-col-r { flex: 0 0 33%; min-width: 120px; }
@media (max-width: 640px) {
  .book-day { flex-direction: column; }
  .book-day .sub-col-l, .book-day .sub-col-r { width: 100%; flex: none; }
}
.scoll { overflow-x: auto; }
.btn-see-more {
  display: inline-block;
  margin: 6px auto;
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--ui-primary, #cf2328);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}
.de-ve-links { padding: 10px; font-size: 13px; line-height: 1.8; }
.de-ve-links a { font-weight: 700; }
.hl-loto { background: #fef08a !important; color: #b91c1c !important; font-weight: 900; border-radius: 3px; padding: 0 3px; }
.faq-accordion .faq-answer { display: none; }
.faq-accordion .faq-answer.is-open { display: block !important; }
.faq-accordion .faq-question { cursor: pointer; }
.faq-accordion .faq-question .toggle-icon::after { content: "▾"; font-size: 14px; color: #64748b; }
.faq-accordion .faq-question.active .toggle-icon::after { content: "▴"; }
.keno-nums { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.keno-nums i { font-style: normal; display: inline-block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: var(--ui-primary, #cf2328); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.max3d-nums span { display: inline-block; min-width: 44px; padding: 2px 5px; font-weight: 700; }
.pad10-5 { padding: 8px 10px; margin: 0; font-size: 13.5px; }
.list-dau-db { list-style: none; margin: 0; padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tbl50 { width: 50%; float: left; }
@media (max-width: 600px) { .tbl50 { width: 100%; float: none; } }
.nav-mobi, .nav-mobile, .mobile-menu-list, #nav-hozital-mobile { cursor: grab; user-select: none; }
.nav-mobi:active, .nav-mobile:active, .mobile-menu-list:active, #nav-hozital-mobile:active { cursor: grabbing; }
.col-firstlast::after { content: ""; display: table; clear: both; }
.see-more { clear: both !important; width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 10px; }
.see-more ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) {
  html:has(body.ui-enabled), body.ui-enabled { overflow-x: hidden !important; max-width: 100% !important; }
  body.ui-enabled nav, body.ui-enabled .box { max-width: 100%; overflow-x: hidden; }
}
