/* UI 3 Override: giữ nguyên bản dudoan247.me ở cv-1; biến thể sạch & tương phản cao cho cv-2..cv-8 */

body.ui-3 .ui-brand-logo { padding: 6px 0; white-space: nowrap; width: auto !important; height: auto !important; }
body.ui-3.cv-1 .ui-brand-name { color: #c81038; font-size: 22px; }
body.ui-3.cv-1 .ui-brand-badge { background: #f5922f; border-color: #c81038; color: #fff; }
body.ui-3.cv-1 .menu-pc > li.active > a { color: #111111 !important; }
body.ui-3 .lottery-nav-box .heading { color: #ffffff !important; }
body.ui-3 .box-h1 { background: #fff; border: 1px solid #e5e7eb; padding: 8px 10px; margin-bottom: 8px; }
body.ui-3 .box-h1 h1 { margin: 0; font-size: 15px; font-weight: 700; color: #c81038; }
body.ui-3 .dd-see-links { list-style: none; padding: 8px 10px; margin: 0; background: #fff; border: 1px solid #eee; margin-bottom: 10px; }
body.ui-3 .dd-see-links li { line-height: 1.75; font-size: 13.5px; }
body.ui-3 .dd-mega-wrap .data td i {
  display: inline-block; width: 32px; height: 32px; line-height: 32px; border-radius: 50%;
  background: var(--ui-primary, #c81038); color: #fff; font-style: normal; font-weight: 800; text-align: center;
}
body.ui-3 .mega645 .data { margin: 8px auto; }
body.ui-3 .mega645 .data2 { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
body.ui-3 .mega645 .data2 td { border: 1px solid #e5e7eb; padding: 6px; text-align: center; }
body.ui-3 .control-panel { display: flex !important; align-items: center; justify-content: flex-start; box-sizing: border-box !important; height: auto !important; padding: 6px 10px !important; }
body.ui-3 .control-panel .buttons-wrapper { display: none !important; }
body.ui-3 .firstlast-mb.fl,
body.ui-3 .firstlast-mb.fr { width: 49.2% !important; box-sizing: border-box; }
body.ui-3 .firstlast-mb th,
body.ui-3 .firstlast-mb td { padding: 4px 5px !important; font-size: 13px; }
body.ui-3 .category-title { display: block !important; width: 100% !important; box-sizing: border-box !important; padding: 6px 10px !important; }
body.ui-3 .category-title strong { background: transparent !important; padding: 0 !important; font-size: 14px !important; }
body.ui-3 .colgiai td:not(:first-child) { font-weight: 700; font-size: 15px; }
body.ui-3 .colgiai tr.g8 td:not(:first-child),
body.ui-3 .colgiai tr.gdb td:not(:first-child) { color: var(--ui-db, #c81038) !important; font-weight: 800 !important; font-size: 18px !important; }

@media (max-width: 1019px) {
  body.ui-3 header { height: auto !important; padding: 6px 10px !important; }
  body.ui-3 header .main { height: auto !important; display: flex; align-items: center; }
  body.ui-3 .ui-brand-name { font-size: 18px !important; }
  body.ui-3 .mobile-menu-list,
  body.ui-3 .menu-didong { scrollbar-width: none; -ms-overflow-style: none; overflow-x: auto; white-space: nowrap; }
  body.ui-3 .mobile-menu-list::-webkit-scrollbar,
  body.ui-3 .menu-didong::-webkit-scrollbar { display: none; }
  body.ui-3 .mobile-menu-list li a { color: #ffffff !important; }
  body.ui-3 #menu-mobile-backdrop { z-index: 10001 !important; }
  html.menu-active body.ui-3 #list-cate {
    display: block !important; position: fixed !important; top: 0; left: 0;
    width: 280px; max-width: 82vw; height: 100vh; overflow-x: hidden !important; overflow-y: auto;
    z-index: 10002 !important; background: #ffffff !important; scrollbar-width: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  }
  html.menu-active body.ui-3 #list-cate::-webkit-scrollbar { display: none; }
  body.ui-3 #list-cate { background: #ffffff !important; padding: 0 0 24px !important; }
  body.ui-3 #list-cate li.menu-header {
    background: var(--ui-primary, #c81038) !important; margin: 0 !important; padding: 12px 14px !important;
    display: flex !important; align-items: center; justify-content: space-between; border-bottom: none !important;
  }
  body.ui-3 #list-cate li.menu-header .ui3-drawer-brand { padding: 0 !important; margin: 0 !important; }
  body.ui-3 #list-cate li.menu-header .ui-brand-name { color: #ffffff !important; font-size: 16px !important; }
  body.ui-3 #list-cate li.menu-header .ui3-drawer-close {
    background: rgba(255, 255, 255, 0.18); color: #ffffff; border: none; border-radius: 6px;
    width: 32px; height: 32px; font-size: 16px; cursor: pointer; flex: none;
  }
  body.ui-3 #list-cate li.fl { float: none !important; width: 100% !important; height: auto !important; line-height: normal !important; position: relative; border-bottom: 1px solid #f1f5f9; background: #ffffff !important; }
  body.ui-3 #list-cate li.fl:hover { background: #ffffff !important; }
  body.ui-3 #list-cate li.fl > a { display: block !important; color: #1e293b !important; padding: 11px 44px 11px 16px !important; height: auto !important; line-height: 22px !important; }
  body.ui-3 #list-cate li.fl:hover > a { color: #1e293b !important; }
  body.ui-3 #list-cate li.fl.active > a { background: #fffbeb !important; color: var(--ui-primary, #c81038) !important; }
  body.ui-3 #list-cate li.fl ol { display: none; position: static !important; width: 100% !important; box-shadow: none !important; border: none !important; background: #f8fafc !important; }
  body.ui-3 #list-cate li.fl:hover ol { display: none; }
  body.ui-3 #list-cate li.fl ol li { float: none !important; width: 100% !important; height: auto !important; border-bottom: 1px solid #eef2f7; }
  body.ui-3 #list-cate li.fl ol li a { display: block !important; padding: 9px 16px 9px 26px !important; color: #334155 !important; font-size: 13.5px; }
  body.ui-3 #list-cate .ic-down-arrow { position: absolute !important; right: 0; top: 0; width: 42px; height: 42px; cursor: pointer; }
  body.ui-3 section.content .main { display: flex; flex-direction: column; }
  body.ui-3 section.content .col-l { order: 1; width: 100% !important; float: none !important; }
  body.ui-3 section.content aside.col-r { order: 2; width: 100% !important; float: none !important; margin-top: 10px; }
}

/* Biến thể màu & bố cục cv-2..cv-8 */
body.ui-3:not(.cv-1) { background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-font, Arial, sans-serif); }
body.ui-3:not(.cv-1) .ui-brand-name,
body.ui-3:not(.cv-1) .box-h1 h1 { color: var(--ui-primary); }
body.ui-3:not(.cv-1) .ui-brand-badge { background: var(--ui-primary); color: #fff; }
body.ui-3:not(.cv-1) .menu-pc,
body.ui-3:not(.cv-1) .menu-didong { background: var(--ui-primary) !important; }
body.ui-3:not(.cv-1) .menu-pc > li > a,
body.ui-3:not(.cv-1) .mobile-menu-list li a { color: var(--ui-nav-text, #fff) !important; }
@media (min-width: 1020px) {
  body.ui-3:not(.cv-1) .menu-pc > li.active > a,
  body.ui-3:not(.cv-1) .menu-pc > li:hover > a {
    background: var(--ui-primary-dark) !important;
    color: #ffffff !important;
  }
}
body.ui-3:not(.cv-1) .weekday-lotteries .title,
body.ui-3:not(.cv-1) .lottery-nav-box .heading,
body.ui-3:not(.cv-1) .title-r { background: var(--ui-primary) !important; color: #ffffff !important; }
body.ui-3:not(.cv-1) .lottery-nav-box .heading * { color: #ffffff !important; }
body.ui-3:not(.cv-1) .title-bor { background: var(--ui-title-bg) !important; color: var(--ui-title-text) !important; }
body.ui-3:not(.cv-1) .title-bor a { color: var(--ui-title-text) !important; }
body.ui-3:not(.cv-1) .db .v-gdb,
body.ui-3:not(.cv-1) .g7,
body.ui-3:not(.cv-1) .g8,
body.ui-3:not(.cv-1) .clnote { color: var(--ui-db) !important; }
body.ui-3:not(.cv-1) aside.col-r a,
body.ui-3:not(.cv-1) .box-html a { color: var(--ui-link) !important; }
body.ui-3:not(.cv-1) footer { background: var(--ui-footer-bg) !important; color: var(--ui-footer-text) !important; padding: 12px 0; }
body.ui-3:not(.cv-1) footer a { color: var(--ui-footer-link) !important; }

@media (min-width: 1020px) {
  body.ui-3.cv-2 section.content .main,
  body.ui-3.cv-4 section.content .main,
  body.ui-3.cv-7 section.content .main { display: flex; gap: 12px; }
  body.ui-3.cv-2 aside.col-r,
  body.ui-3.cv-4 aside.col-r,
  body.ui-3.cv-7 aside.col-r { order: 1; float: none; }
  body.ui-3.cv-2 .col-l,
  body.ui-3.cv-4 .col-l,
  body.ui-3.cv-7 .col-l { order: 2; float: none; flex: 1 1 auto; }
}
body.ui-3.cv-3 #desktop-top-bar .menu-pc { display: flex; justify-content: center; }
body.ui-3.cv-5 .kqmb tr:nth-child(even) td { background: var(--ui-stripe); }
body.ui-3.cv-6 .box { border-radius: 0 !important; }
body.ui-3.cv-8 .box { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06); border-radius: 8px; }

/* Biến thể bổ sung (preset 47–55) */
body.ui-3.cv-9 .ui-hdr-row { justify-content: center; }
body.ui-3.cv-9 .menu-pc { justify-content: center; }
