/* Theme kubet789 — bố cục trang tin Kubet nền trắng (khung Flatsome), viết lại gọn. */

/* ---------- Font Roboto tự host (biến thiên wght 100–900) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url(../fonts/roboto-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url(../fonts/roboto-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url(../fonts/roboto-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --kb-blue: #1a6ef5;
  --kb-blue-2: #0b4fc4;
  --kb-blue-soft: #eef4ff;
  --kb-orange: #ff8a00;
  --kb-red: #e3151b;
  --kb-link: #e02424;
  --kb-text: #0d0d0d;
  --kb-muted: #5b6475;
  --kb-line: #dde5f2;
  --kb-cta: linear-gradient(180deg, #ff9a1f 0%, #f0541c 55%, #e3151b 100%);
  --kb-bar: linear-gradient(90deg, var(--kb-blue) 0%, #4aa3ff 55%, var(--kb-orange) 100%);
  --kb-radius: 10px;
  --kb-w: 1080px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #050d22; }
html.kb-lock { overflow: hidden; }
body { margin: 0; background: #fff; color: var(--kb-text); font: 400 16px/1.6 Roboto, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--kb-link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.3em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.4em; }
li { margin-bottom: .6em; }
h1, h2, h3, h4, h5, h6 { color: var(--kb-blue); font-weight: 800; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.005em; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: #fff; color: #000; padding: 10px 16px; }
.kb-container { width: 100%; max-width: var(--kb-w); margin: 0 auto; padding: 0 15px; }
.kb-center { text-align: center; }
#wrapper { background: #fff; }

/* ---------- Nút ---------- */
.kb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border-radius: 8px; background: var(--kb-cta); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; white-space: nowrap; box-shadow: 0 3px 10px rgba(227, 21, 27, .28), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s, filter .15s; }
.kb-btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.kb-btn--login { background: linear-gradient(180deg, #3d8bff 0%, var(--kb-blue) 60%, var(--kb-blue-2) 100%); box-shadow: 0 3px 10px rgba(26, 110, 245, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.kb-btn--lg { min-height: 44px; padding: 0 24px; font-size: 14.5px; }
.kb-btn--ghost { background: #fff; color: var(--kb-blue); border: 2px solid var(--kb-blue); box-shadow: none; }
.kb-btn--ghost:hover { color: var(--kb-blue); }

/* ---------- Header ---------- */
.kb-header { position: relative; z-index: 30; background: #fff; box-shadow: 0 2px 12px rgba(10, 40, 100, .08); }
.kb-header__inner { display: flex; align-items: center; height: 90px; gap: 26px; }
.kb-logo { display: block; flex: 0 0 auto; width: 237px; }
.kb-logo__img { display: block; width: 237px; height: auto; max-height: 79px; }
.kb-nav { flex: 1 1 auto; }
.kb-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.kb-nav li { margin: 0; }
.kb-nav a { display: block; padding: 8px 10px; color: #1c2b4a; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; border-radius: 6px; }
.kb-nav a:hover, .kb-nav a[aria-current] { color: var(--kb-blue); background: var(--kb-blue-soft); text-decoration: none; }
.kb-header__btns { display: flex; gap: 12px; align-items: center; justify-content: center; margin-left: auto; }
.kb-menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #1c2b4a; }
.kb-show-m { display: none; }
.kb-header__bar { background: var(--kb-blue-soft); border-top: 1px solid var(--kb-line); }
.kb-header__bar .kb-header__btns { height: 55px; margin: 0 auto; gap: 18px; }

/* ---------- Banner trượt ---------- */
.kb-slider { position: relative; }
.kb-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.kb-slider__track::-webkit-scrollbar { display: none; }
.kb-slider__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; line-height: 0; }
.kb-slider__slide img { width: 100%; height: auto; display: block; }
.kb-slider--hero .kb-slider__slide img { aspect-ratio: 1920 / 600; object-fit: cover; }
.kb-slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.kb-slider__dot { pointer-events: auto; width: 26px; height: 8px; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: width .2s, background .2s; }
.kb-slider__dot[aria-current="true"] { width: 38px; background: #fff; }
.kb-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--kb-blue); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .2s; }
.kb-slider:hover .kb-slider__arrow, .kb-slider__arrow:focus-visible { opacity: 1; }
.kb-slider__arrow--prev { left: 18px; }
.kb-slider__arrow--next { right: 18px; }

/* ---------- 6 sảnh game ---------- */
.kb-games { padding-top: 64px; padding-bottom: 6px; }
.kb-games__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.kb-games__grid li { margin: 0; }
.kb-games__item { display: block; border-radius: 14px; overflow: hidden; line-height: 0; transition: transform .2s, box-shadow .2s; }
.kb-games__item img { width: 100%; aspect-ratio: 1; }
.kb-games__item:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(227, 21, 27, .22); }

/* ---------- Tiêu đề khối (2 vạch) ---------- */
.kb-stitle-wrap { margin: 0; }
.kb-stitle { display: flex; align-items: center; width: 100%; margin: 0 0 .6em; font-size: 25px; line-height: 1.3; }
.kb-stitle b { display: block; flex: 1; height: 3px; border-radius: 3px; background: var(--kb-bar); opacity: .9; }
.kb-stitle b:last-child { background: linear-gradient(90deg, var(--kb-orange) 0%, #4aa3ff 45%, var(--kb-blue) 100%); }
.kb-stitle__main { margin: 0 16px; text-align: center; text-transform: uppercase; }
.kb-stitle--left b:first-child { display: none; }
.kb-stitle--left .kb-stitle__main { margin-left: 0; text-align: left; }
.kb-stitle--h1 { font-size: 26px; }

/* ---------- Trang / bài ---------- */
.kb-main { display: block; }
.kb-page { padding-top: 34px; padding-bottom: 40px; }
.kb-main--home .kb-page { padding-top: 30px; }
.kb-breadcrumb { padding-top: 16px; font-size: 14px; color: var(--kb-muted); }
.kb-breadcrumb a { color: var(--kb-blue); font-weight: 600; }
.kb-breadcrumb__sep { margin: 0 8px; color: #9aa4b5; }
.kb-breadcrumb + .kb-page { padding-top: 14px; }
.kb-entry-title { text-align: center; font-size: 30px; margin-bottom: .7em; }
.kb-entry-content { overflow-wrap: break-word; }
.kb-entry-content h2 { position: relative; font-size: 25px; margin: 1.5em 0 .55em; padding-left: 14px; }
.kb-entry-content h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--kb-blue), var(--kb-orange)); }
.kb-entry-content h3 { font-size: 20px; margin: 1.2em 0 .5em; }
.kb-entry-content h4 { font-size: 18px; margin: 1.1em 0 .45em; }
.kb-entry-content > h2:first-child, .kb-entry-content > h3:first-child { margin-top: 0; }
.kb-entry-content strong, .kb-entry-content b { font-weight: 700; }
.kb-entry-content ul li::marker { color: var(--kb-blue); }
.kb-entry-content ol li::marker { color: var(--kb-blue); font-weight: 700; }
.kb-entry-content h2[id], .kb-entry-content h3[id] { scroll-margin-top: 16px; }
.kb-sapo { margin: 0 0 1.4em; padding: 14px 18px; background: var(--kb-blue-soft); border-left: 4px solid var(--kb-blue); border-radius: 0 var(--kb-radius) var(--kb-radius) 0; font-size: 16.5px; font-weight: 500; color: #142445; }

/* Ảnh trong bài (0 ảnh hoặc 3–5 ảnh sau H2): giữa, bo góc, chú thích nền xanh nhạt */
.kb-entry-content figure, .kb-entry-content .wp-caption { display: table; max-width: 100% !important; margin: 1.6em auto 2em; text-align: center; }
.kb-entry-content figure img, .kb-entry-content p > img:only-child { display: block; margin: 0 auto; border-radius: var(--kb-radius); box-shadow: 0 6px 20px rgba(13, 40, 90, .12); }
.kb-entry-content figcaption, .kb-entry-content .wp-caption-text { display: table-caption; caption-side: bottom; margin-top: 8px; padding: 6px 12px; background: var(--kb-blue-soft); border-radius: 6px; color: #3a4660; font-size: 13.5px; font-style: italic; line-height: 1.5; }
.kb-entry-content p > img:only-child { margin: 1.2em auto; }
.kb-cover { margin: 0 auto 1.6em; text-align: center; }
.kb-cover img { border-radius: var(--kb-radius); }

/* Bảng */
.kb-entry-content table { width: 100%; margin: 0 0 1.6em; border-collapse: separate; border-spacing: 0; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); overflow: hidden; font-size: 15px; line-height: 1.5; }
.kb-entry-content th, .kb-entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--kb-line); border-right: 1px solid var(--kb-line); text-align: left; vertical-align: top; }
.kb-entry-content tr > :last-child { border-right: 0; }
.kb-entry-content tbody tr:last-child > * { border-bottom: 0; }
.kb-entry-content thead th, .kb-entry-content thead td { background: var(--kb-blue); color: #fff; font-weight: 700; border-color: rgba(255, 255, 255, .25); }
.kb-entry-content tbody tr:nth-child(even) { background: #f7faff; }
.kb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; }
.kb-table-scroll table { margin: 0; min-width: 520px; }

/* Mục lục */
.kb-toc { margin: 0 0 1.8em; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: #fbfdff; }
.kb-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; font-weight: 700; color: #142445; }
.kb-toc__head::-webkit-details-marker { display: none; }
.kb-toc__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border-radius: 6px; background: var(--kb-blue-soft); color: var(--kb-blue); }
.kb-toc[open] .kb-toc__btn { background: var(--kb-blue); color: #fff; }
.kb-toc__list { margin: 0; padding: 4px 16px 14px 38px; border-top: 1px solid var(--kb-line); }
.kb-toc__list li { margin: 8px 0 0; }
.kb-toc__list a { color: #1c2b4a; }
.kb-toc__list a:hover { color: var(--kb-blue); }

/* FAQ accordion */
.kb-faq { margin-top: 2em; }
.kb-accordion { border-radius: var(--kb-radius); }
.kb-accordion__item { border: 1px solid var(--kb-line); border-radius: var(--kb-radius); margin-bottom: 10px; background: #fff; overflow: hidden; }
.kb-accordion__item > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; color: #111; }
.kb-accordion__item > summary::-webkit-details-marker { display: none; }
.kb-accordion__icon { position: relative; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--kb-blue-soft); }
.kb-accordion__icon::before, .kb-accordion__icon::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; border-radius: 2px; background: var(--kb-blue); transition: transform .2s; }
.kb-accordion__icon::after { transform: rotate(90deg); }
.kb-accordion__item[open] > summary { color: var(--kb-blue); }
.kb-accordion__item[open] .kb-accordion__icon { background: var(--kb-blue); }
.kb-accordion__item[open] .kb-accordion__icon::before, .kb-accordion__item[open] .kb-accordion__icon::after { background: #fff; }
.kb-accordion__item[open] .kb-accordion__icon::after { transform: rotate(0); }
.kb-accordion__body { padding: 0 18px 6px 52px; }

/* ---------- Khối phụ trang chủ ---------- */
.kb-block { margin-top: 44px; }
.kb-ticks { list-style: none; padding: 0; }
.kb-ticks li { position: relative; padding-left: 28px; }
.kb-ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--kb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kb-app__row { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 360px); justify-content: center; align-items: center; gap: 30px; }
.kb-app__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
.kb-store { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 16px; border-radius: 10px; background: #0e1a33; color: #fff; line-height: 1.15; font-weight: 700; font-size: 15px; }
.kb-store small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; }
.kb-store:hover { text-decoration: none; background: var(--kb-blue); color: #fff; }
.kb-app__more { font-size: 15px; }
.kb-app__img { text-align: center; }
.kb-promo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.kb-slider--promo { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(13, 40, 90, .15); }
.kb-slider--promo .kb-slider__dots { bottom: 10px; }
.kb-slider--promo .kb-slider__dot { width: 16px; height: 6px; }
.kb-slider--promo .kb-slider__dot[aria-current="true"] { width: 26px; }
.kb-slider--promo .kb-slider__arrow { width: 36px; height: 36px; }
.kb-promo__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.kb-guide__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.kb-guide__grid li { margin: 0; }
.kb-guide__card { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 22px 12px 18px; border: 1px solid var(--kb-line); border-radius: 14px; background: linear-gradient(180deg, #fff 0%, var(--kb-blue-soft) 100%); text-align: center; color: var(--kb-muted); font-size: 14px; transition: transform .2s, box-shadow .2s; }
.kb-guide__card strong { color: var(--kb-blue); font-size: 17px; }
.kb-guide__card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(26, 110, 245, .15); }
.kb-guide__icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 8px; border-radius: 16px; background: var(--kb-cta); color: #fff; box-shadow: 0 6px 14px rgba(227, 21, 27, .25); }

/* ---------- Footer ---------- */
.kb-footer { background: linear-gradient(180deg, #071637 0%, #040c22 100%); color: #e9eefb; font-size: 15.5px; }
.kb-footer__section { padding: 40px 0 10px; }
.kb-footer__grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.25fr .75fr; gap: 28px; }
.kb-footer a { color: #e9eefb; }
.kb-footer a:hover { color: var(--kb-orange); text-decoration: none; }
.kb-footer__logo { display: block; width: 260px; max-width: 100%; margin-bottom: 14px; }
.kb-footer__logo-img { width: 100%; }
.kb-footer__col--brand p { margin-bottom: 1em; color: #c9d3ea; }
.kb-footer__info { margin: 0 0 1em; padding-left: 1.1em; color: #c9d3ea; }
.kb-footer__info li { margin-bottom: .45em; overflow-wrap: anywhere; }
.kb-footer__title { margin: 0 0 12px; padding-bottom: 8px; color: #ffb02e; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid rgba(255, 176, 46, .45); }
.kb-footer__links { margin: 0; padding: 0; list-style: none; }
.kb-footer__links li { margin: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.kb-footer__links li:first-child { border-top: 0; }
.kb-footer__links a { position: relative; display: block; padding: 7px 0 7px 18px; }
.kb-footer__links a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 2px solid var(--kb-orange); border-right: 2px solid var(--kb-orange); transform: rotate(45deg); }
.kb-footer__col--ku { text-align: center; }
.kb-footer__col--ku a { display: inline-block; border-radius: 50%; }
.kb-ku { display: block; width: 150px; height: auto; filter: drop-shadow(0 0 10px rgba(79, 195, 255, .45)); }
.kb-footer__dmca { margin: 0; }

/* Hàng script traffic (y khung): một hàng ngang giữa, hiện tự do (không ẩn ô nào). */
.traffic-slots {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
  max-width: 1210px;
  margin: 0 auto;
  padding: 22px 15px;
  border-top: 1px solid rgba(255, 176, 46, 0.25);
  text-align: center;
}
.traffic-slot {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  flex: 0 1 auto;
  max-width: 100%;
  color: #fff;
  font-size: 14.5px;
}
.traffic-slot > * {
  margin: 0 !important;
}
.traffic-slot a,
.traffic-slot button {
  max-width: 100%;
}
.traffic-slot img,
.traffic-slot iframe {
  max-width: 100%;
  height: auto;
}

.kb-copyright { padding: 12px 0 14px; background: #0c1f47; color: rgba(255, 255, 255, .6); font-size: 14px; text-align: center; }
.kb-copyright strong { font-weight: 600; color: rgba(255, 255, 255, .75); }
.kb-top { position: fixed; right: 20px; bottom: 96px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--kb-blue); color: #fff; box-shadow: 0 4px 14px rgba(26, 110, 245, .4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.kb-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.kb-top:hover { color: #fff; background: var(--kb-blue-2); }

/* ---------- Ngăn kéo menu ---------- */
.kb-drawer { position: fixed; inset: 0; z-index: 2147483100; }
.kb-drawer[hidden] { display: none; }
.kb-drawer__backdrop { position: absolute; inset: 0; background: rgba(4, 12, 34, .55); opacity: 0; transition: opacity .25s; }
.kb-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: 14px 16px 24px; overflow-y: auto; background: #fff; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); transform: translateX(-100%); transition: transform .25s; }
.kb-drawer.is-open .kb-drawer__backdrop { opacity: 1; }
.kb-drawer.is-open .kb-drawer__panel { transform: none; }
.kb-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--kb-line); }
.kb-drawer__logo { width: 150px; }
.kb-drawer__close { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: var(--kb-blue-soft); color: #1c2b4a; }
.kb-drawer__nav { margin: 8px 0 16px; padding: 0; list-style: none; }
.kb-drawer__nav > li { margin: 0; border-bottom: 1px solid #eef1f6; }
.kb-drawer__nav a, .kb-drawer__nav summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; color: #1c2b4a; font-weight: 700; font-size: 15px; text-transform: uppercase; cursor: pointer; list-style: none; }
.kb-drawer__nav summary::-webkit-details-marker { display: none; }
.kb-drawer__nav details[open] summary svg { transform: rotate(180deg); }
.kb-drawer__nav ul { margin: 0 0 8px; padding: 0 0 0 12px; list-style: none; }
.kb-drawer__nav ul li { margin: 0; }
.kb-drawer__nav ul a { padding: 8px 4px; font-weight: 500; text-transform: none; font-size: 15px; }
.kb-drawer__nav a[aria-current] { color: var(--kb-blue); }
.kb-drawer__btns { display: flex; gap: 10px; }
.kb-drawer__btns .kb-btn { flex: 1; }

/* ---------- Dải banner đáy ---------- */
.kb-dock { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147483000; width: min(100%, 1100px); padding: 0 12px; }
.kb-dock.is-hidden { display: none; }
.kb-dock__list { display: flex; gap: 10px; }
.kb-dock__item { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 10px; color: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25); background: var(--kb-cta); line-height: 1.15; }
.kb-dock__item:hover { text-decoration: none; color: #fff; filter: brightness(1.06); }
.kb-dock__item--app { background: linear-gradient(180deg, #3d8bff 0%, var(--kb-blue) 55%, #0a3fa6 100%); }
.kb-dock__item--gift { background: linear-gradient(180deg, #2a1d05 0%, #4a3207 100%); border: 1px solid #f5c04a; }
.kb-dock__item--gift .kb-dock__icon { background: linear-gradient(180deg, #ffd66b, #f0a000); color: #3b2604; }
.kb-dock__icon { flex: 0 0 38px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.kb-dock__txt { min-width: 0; }
.kb-dock__txt strong { display: block; font-size: 16px; font-weight: 800; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-dock__txt small { display: block; font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-dock__close { position: absolute; right: 12px; top: -32px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #0e1a33; color: #fff; font-size: 22px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
html.kb-has-dock .kb-copyright { padding-bottom: 96px; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
  .kb-nav a { padding: 8px 6px; font-size: 13px; }
  .kb-header__inner { gap: 14px; }
}
@media (max-width: 849px) {
  .kb-hide-m, .kb-nav { display: none; }
  .kb-show-m { display: block; }
  .kb-menu-btn { display: inline-flex; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
  .kb-header__main { position: relative; }
  .kb-header__inner { position: relative; height: 70px; justify-content: center; }
  .kb-logo { width: 210px; }
  .kb-logo__img { width: 210px; max-height: 70px; }
  .kb-header { box-shadow: none; }
  .kb-slider__arrow { display: none; }
  .kb-slider__dots { bottom: 8px; }
  .kb-slider__dot { width: 16px; height: 6px; }
  .kb-slider__dot[aria-current="true"] { width: 24px; }
  .kb-games { padding-top: 26px; }
  .kb-games__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .kb-stitle { font-size: 20px; }
  .kb-stitle--h1 { font-size: 21px; }
  .kb-stitle__main { margin: 0 10px; }
  .kb-entry-title { font-size: 24px; }
  .kb-entry-content h2 { font-size: 20px; }
  .kb-entry-content h3 { font-size: 17px; }
  .kb-page { padding-top: 24px; }
  .kb-app__row, .kb-promo__row { grid-template-columns: 1fr; gap: 18px; }
  .kb-app__img { order: -1; }
  .kb-app__img img { max-width: 300px; }
  .kb-guide__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kb-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .kb-footer__col--brand { grid-column: 1 / -1; }
  .kb-footer__col--ku { grid-column: 1 / -1; }
  .kb-ku { width: 110px; }
  .kb-dock { padding: 0 8px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .kb-dock__list { gap: 6px; }
  .kb-dock__item { flex-direction: column; justify-content: center; gap: 2px; height: 58px; padding: 0 6px; text-align: center; }
  .kb-dock__icon { flex: 0 0 auto; width: 24px; height: 24px; background: none !important; }
  .kb-dock__icon svg { width: 20px; height: 20px; }
  .kb-dock__item--gift .kb-dock__icon { color: #ffd66b; }
  .kb-dock__txt strong { font-size: 12px; }
  .kb-dock__txt small { display: none; }
  .kb-dock__close { right: 8px; }
  html.kb-has-dock .kb-copyright { padding-bottom: 84px; }
  .kb-top { right: 12px; bottom: 82px; width: 38px; height: 38px; }
}
@media (max-width: 549px) {
  body { font-size: 16px; }
  .kb-entry-content table { font-size: 14px; }
  .kb-sapo { font-size: 16px; padding: 12px 14px; }
  .kb-accordion__item > summary { font-size: 16px; padding: 11px 12px; }
  .kb-accordion__body { padding: 0 12px 4px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
