/* UI 4 Override: giữ nguyên bản ketquaveso.com ở cv-1; biến thể màu cho cv-2..cv-8 */

body.ui-4 .ui-brand-logo { padding: 2px 0; }
body.ui-4.cv-1 .ui-brand-name { color: #cc0000; font-size: 25px; }
body.ui-4.cv-1 .ui-brand-badge { background: #cc0000; border-color: #f5a730; color: #fff; }
body.ui-4 .kqmb .v-gdb a.de { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
body.ui-4 .box { border: 1px solid var(--ui-primary, #cc0000); border-radius: 5px; background: #fff; margin-bottom: 10px; overflow: hidden; }
body.ui-4 .title-bor { padding: 8px 10px; background: var(--ui-primary, #cc0000); color: #fff; text-align: center; font-size: 15.5px; margin: 0; }
body.ui-4 .title-bor a { color: #fff !important; }

/* Hộp lịch mở thưởng trên cùng của ketquaveso.com có viền xám nhạt và nền header xám nhẹ */
body.ui-4 .mo-thuong-ngay { border-color: #d4d4d4 !important; }
body.ui-4 .mo-thuong-ngay .section-title { background: #f2f2f2 !important; color: var(--ui-primary-dark, #990000) !important; border-bottom: 1px solid #d4d4d4; }

@media (max-width: 900px) {
  body.ui-4 .nav-mobi,
  body.ui-4 #nav-hozital-mobile { scrollbar-width: none; -ms-overflow-style: none; overflow-x: auto; }
  body.ui-4 .nav-mobi::-webkit-scrollbar,
  body.ui-4 #nav-hozital-mobile::-webkit-scrollbar { display: none; }
  body.ui-4 .content > .man-hinh-chinh { display: flex; flex-direction: column; }
  body.ui-4 .content .col-center { order: 1; width: 100% !important; padding: 0 !important; }
  body.ui-4 .content .col-left { order: 2; width: 100% !important; padding: 0 !important; margin-top: 10px; }
  body.ui-4 .content .col-right { order: 3; width: 100% !important; padding: 0 !important; margin-top: 10px; }
  body.ui-4 #menu-mobile-backdrop { z-index: 10001 !important; }
  html.menu-active body.ui-4 #nav-hozital {
    display: block !important; visibility: visible !important; position: fixed !important;
    top: 0; right: 0; bottom: 0; width: 280px; max-width: 82vw; height: 100vh;
    overflow-x: hidden !important; overflow-y: auto; scrollbar-width: none;
    z-index: 10002 !important; transform: translate(0) !important; background: #ffffff !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
  }
  html.menu-active body.ui-4 #nav-hozital::-webkit-scrollbar { display: none; }
  body.ui-4 #nav-hozital { background: #ffffff !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li { float: none !important; width: 100%; height: auto !important; line-height: normal !important; position: relative; border-bottom: 1px solid #eee; background: #ffffff !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li:hover { background: #ffffff !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li > a { display: block !important; color: #1e293b !important; padding: 10px 44px 10px 14px !important; height: auto !important; line-height: 22px !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li:hover > a { color: #1e293b !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li.active { background: #fff1f2 !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li.active > a { background: #fff1f2 !important; color: var(--ui-primary, #cc0000) !important; }
  body.ui-4 #nav-hozital li.nav-hozital_li:hover .menu-c2 { display: none; }
  body.ui-4 #nav-hozital .menu-c2 { display: none; position: static !important; width: 100% !important; box-shadow: none !important; border: none !important; background: #f8fafc !important; }
  body.ui-4 #nav-hozital .menu-c2_li { float: none !important; width: 100% !important; }
  body.ui-4 #nav-hozital .menu-c2_li a { display: block !important; padding: 8px 14px 8px 26px !important; color: #334155 !important; }
  body.ui-4 #nav-hozital .arr-d { position: absolute !important; right: 0; top: 0; width: 42px; height: 42px; cursor: pointer; }
}

/* Biến thể màu & bố cục cv-2..cv-8 */
body.ui-4:not(.cv-1) {
  --primary-color: var(--ui-primary);
  --selected-color: var(--ui-primary-dark);
  --text-red: var(--ui-db);
  --border-color: var(--ui-surface-alt);
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--ui-font, Arial, sans-serif);
}
body.ui-4:not(.cv-1) .ui-brand-name { color: var(--ui-primary); }
body.ui-4:not(.cv-1) .ui-brand-badge { background: var(--ui-primary); color: #fff; }
body.ui-4:not(.cv-1) #nav .nav,
body.ui-4:not(.cv-1) #nav .nav-mobi,
body.ui-4:not(.cv-1) .section-title,
body.ui-4:not(.cv-1) .mega645 .section-title { background: var(--ui-primary) !important; color: #ffffff !important; }
@media (min-width: 901px) {
  body.ui-4:not(.cv-1) .nav-hozital > li.active > a,
  body.ui-4:not(.cv-1) .nav-hozital > li:hover > a { background: var(--ui-primary-dark) !important; color: #fff !important; }
}
body.ui-4:not(.cv-1) .menu_ul li a { color: #ffffff !important; }
body.ui-4:not(.cv-1) .tieu-de-khung,
body.ui-4:not(.cv-1) .tieu-de-khung a { background: var(--ui-surface-alt) !important; color: var(--ui-primary-dark) !important; }
body.ui-4:not(.cv-1) .lottery-now li a,
body.ui-4:not(.cv-1) .footer-link a { color: var(--ui-link) !important; }
body.ui-4:not(.cv-1) .footer { background: var(--ui-primary) !important; color: #ffffff !important; }
body.ui-4:not(.cv-1) .footer a { color: #fef08a !important; }

@media (min-width: 901px) {
  body.ui-4.cv-2 .content > .man-hinh-chinh { display: flex; }
  body.ui-4.cv-2 .col-right { order: 1; }
  body.ui-4.cv-2 .col-center { order: 2; }
  body.ui-4.cv-2 .col-left { order: 3; }
  body.ui-4.cv-4 .content > .man-hinh-chinh { display: flex; }
  body.ui-4.cv-4 .col-center { order: 1; }
  body.ui-4.cv-4 .col-left { order: 2; }
  body.ui-4.cv-4 .col-right { order: 3; }
  body.ui-4.cv-8 .nav-hozital { display: flex; justify-content: center; }
}
body.ui-4.cv-3 .khung-vien { border-radius: 0 !important; }
body.ui-4.cv-5 .kqmb tr:nth-child(even) td { background: var(--ui-stripe); }
body.ui-4.cv-6 .tieu-de-khung,
body.ui-4.cv-6 .tieu-de-khung a { background: var(--ui-primary) !important; color: #ffffff !important; }
body.ui-4.cv-7 .section-title { text-align: left; padding-left: 14px; }

/* Biến thể bổ sung (preset 47–55) */
body.ui-4.cv-9 .title-bor { background: var(--ui-primary) !important; color: #fff !important; }
body.ui-4.cv-9 .title-bor a { color: #fff !important; }
body.ui-4.cv-9 .menu-pc { justify-content: center; }
body.ui-4.cv-10 .kqmb tbody tr:nth-child(even) td { background: var(--ui-stripe); }
body.ui-4.cv-10 .kqmb .v-gdb { font-size: 38px !important; }
