/* ===== VuaSoiCau.mobi – giao diện wap nhiều màu ===== */
:root {
  --violet: #7c3aed; --violet-d: #4c1d95; --pink: #db2777; --rose: #e11d48; --orange: #f97316;
  --yellow: #facc15; --cyan: #0891b2; --green: #16a34a;
  --ink: #1f1235; --muted: #6b5b86; --line: #e7dcfb; --bg: #f5f0ff; --card: #fff; --soft: #faf5ff;
  --grad: linear-gradient(90deg, #6d28d9, #c026d3 55%, #f43f5e);
  --grad2: linear-gradient(90deg, #f43f5e, #f97316);
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #ece3ff; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; }
.wap { max-width: 760px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 40px rgba(76, 29, 149, .15); }
main { padding: 0 0 8px; }

/* Header */
.hd { background: var(--grad); line-height: 0; }
.hd .logo { display: block; }
.hd img { width: 100%; height: auto; display: block; }
.nav { background: linear-gradient(90deg, #312e81, #5b21b6); position: sticky; top: 0; z-index: 20; box-shadow: 0 3px 10px rgba(49, 46, 129, .35); }
.nav-in { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
/*.nav-in a {font-size:14px;}*/
.nav-in::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; color: #fff; font-weight: 700; padding: 12px 10px; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { text-decoration: none; background: rgba(255, 255, 255, .1); }
.nav a.on { border-bottom-color: var(--yellow); color: #fef08a; }
.clock { text-align: center; padding: 9px 10px; background: linear-gradient(90deg, #ede9fe, #fce7f3); color: #3b2a5c; font-size: 15px; border-bottom: 1px solid var(--line); }
.clock-ic { font-size: 18px; }
.clock b { font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 8px; background: linear-gradient(135deg, #1e1b4b, #581c87 50%, #9d174d); }
.q { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.q:hover { text-decoration: none; }
.q i { font-style: normal; font-size: 24px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #fde68a; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.q1 i { background: linear-gradient(135deg, #f43f5e, #f97316); }
.q2 i { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.q3 i { background: linear-gradient(135deg, #22c55e, #0d9488); }
.q4 i { background: linear-gradient(135deg, #facc15, #f97316); }
.crumb { font-size: 13.5px; padding: 8px 12px 0; color: var(--muted); }
.crumb span { margin: 0 5px; }
.crumb b { font-weight: 600; color: var(--ink); }

/* Tiêu đề trang & hộp */
.pt { margin: 10px 8px; padding: 14px; text-align: center; color: #fff; font-size: 21px; background: var(--grad); border-radius: var(--r); box-shadow: 0 6px 18px rgba(192, 38, 211, .3); }
.box { background: var(--card); margin: 10px 8px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(76, 29, 149, .06); }
.bh { margin: -12px -12px 12px; padding: 10px 14px; font-size: 18px; color: #fff; background: var(--grad2); border-radius: var(--r) var(--r) 0 0; }
.box:nth-of-type(3n+1) .bh { background: linear-gradient(90deg, #7c3aed, #db2777); }
.box:nth-of-type(3n+2) .bh { background: linear-gradient(90deg, #0891b2, #7c3aed); }
.sh { font-size: 16px; margin: 14px 0 8px; color: var(--violet-d); }
.muted { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.ad:empty { display: none; }
.intro p { margin: 0 0 10px; text-align: justify; }
.intro p:last-child { margin-bottom: 0; }
.hl { color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips a { padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.chips a:nth-child(2n) { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.chips a:nth-child(3n) { background: linear-gradient(90deg, #f97316, #f43f5e); }
.chips a:nth-child(4n) { background: linear-gradient(90deg, #16a34a, #0d9488); }
.chips a:hover { text-decoration: none; filter: brightness(1.08); }

/* Tabs */
.tab-btns { display: flex; gap: 6px; margin-bottom: 10px; }
.tab-btns button { flex: 1; border: 0; padding: 9px 6px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--violet-d); background: #ede9fe; cursor: pointer; }
.tab-btns button.on { color: #3b0764; background: linear-gradient(180deg, #fde68a, #facc15); box-shadow: 0 2px 6px rgba(250, 204, 21, .5); }

/* Bóng số */
.balls { display: flex; flex-wrap: wrap; gap: 8px; }
.ball { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; box-shadow: inset -4px -5px 8px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .15); }
.ball.b0 { background: radial-gradient(circle at 35% 30%, #fda4af, #e11d48 60%); }
.ball.b1 { background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 60%); }
.ball.b2 { background: radial-gradient(circle at 35% 30%, #67e8f9, #0891b2 60%); }
.ball.b3 { background: radial-gradient(circle at 35% 30%, #fde68a, #ea580c 60%); }
.ball.b4 { background: radial-gradient(circle at 35% 30%, #bef264, #16a34a 60%); }
.balls.sm .ball { width: 38px; height: 38px; font-size: 16px; opacity: .55; }
.balls.sm .ball.hl { opacity: 1; outline: 3px solid var(--yellow); }

/* Thẻ bộ số VIP */
.vip { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 12px; border: 2px solid #c084fc; border-radius: 10px; overflow: hidden; }
.vip th { background: linear-gradient(90deg, #4c1d95, #9333ea); color: #fff; padding: 9px 10px; text-align: left; font-size: 16px; }
.vip-d { float: right; font-weight: 600; font-size: 13.5px; color: #fde68a; padding-top: 2px; }
.vip td { padding: 8px 10px; border-top: 1px solid #f1e8ff; vertical-align: middle; }
.vip td:first-child { width: 42%; font-weight: 600; color: #3b2a5c; white-space: nowrap; }
.vip tbody tr:nth-child(2n) td { background: var(--soft); }
.vip tfoot td { text-align: right; background: #fdf4ff; font-weight: 700; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.d1 { background: #e11d48; } .d2 { background: #f97316; } .d3 { background: #7c3aed; } .d4 { background: #0891b2; } .d5 { background: #db2777; } .d6 { background: #16a34a; } .d7 { background: #64748b; }
.n { color: var(--rose); font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.n.xi { font-size: 16px; white-space: nowrap; display: inline-block; }
.n2 { color: #c026d3; font-weight: 800; }
.n3 { color: #1e3a8a; font-weight: 700; }

/* Dàn */
.dan2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dan-box { border-radius: 10px; padding: 10px; text-align: center; background: linear-gradient(135deg, #ecfeff, #e0e7ff); border: 1px solid #a5f3fc; }
.dan-box.db { background: linear-gradient(135deg, #fff7ed, #fce7f3); border-color: #fdba74; }
.dan-box b { color: var(--violet-d); }
.dan-box p { margin: 6px 0 0; font-weight: 800; color: var(--rose); letter-spacing: 1px; word-spacing: 4px; }

/* Bảng chung */
.tbl-wrap { overflow-x: auto; }
.cau, .hist, .dd, .week, .cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cau th, .hist th, .dd th { background: #ede9fe; color: var(--violet-d); padding: 8px 6px; font-size: 14px; }
.cau td, .hist td, .dd td, .week td, .week th, .cmp td { padding: 7px 6px; border-bottom: 1px solid #f1e8ff; text-align: center; }
.cau tbody tr:nth-child(2n), .hist tbody tr:nth-child(2n) { background: var(--soft); }
.hist b { margin: 0 1px; font-weight: 700; color: #475569; }
.hist .hit { color: #fff; background: var(--green); padding: 0 5px; border-radius: 5px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 13px; font-weight: 700; margin: 1px 0; }
.tag.ok { color: #fff; background: linear-gradient(90deg, #16a34a, #65a30d); }
.tag.no { color: #9f1239; background: #ffe4e6; }
.cmp td:first-child { text-align: left; font-weight: 600; }
.cmp td:last-child { text-align: left; }
.dd td { text-align: left; }
.dd td:first-child { text-align: center; width: 50px; }
.bar { display: inline-block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #a855f7, #ec4899); margin-right: 6px; max-width: 75%; }
.bar.b2 { background: linear-gradient(90deg, #22d3ee, #3b82f6); }
.week th { width: 90px; text-align: left; color: var(--violet-d); }
.week td { text-align: left; }
.week td a { display: inline-block; margin: 2px 8px 2px 0; font-weight: 600; }
.week tr.today { background: #fef9c3; }

/* Thống kê */
.st2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st2 .sh { margin-top: 0; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.nums span { text-align: center; border-radius: 8px; padding: 5px 2px; background: linear-gradient(180deg, #fff1f2, #ffe4e6); border: 1px solid #fecdd3; }
.nums.cold span { background: linear-gradient(180deg, #ecfeff, #cffafe); border-color: #a5f3fc; }
.nums b { display: block; font-size: 18px; color: var(--rose); }
.nums.cold b { color: var(--cyan); }
.nums small { color: var(--muted); font-size: 12px; }

/* Chốt số */
.chot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.chot div { text-align: center; padding: 10px 4px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #f43f5e, #c026d3); box-shadow: 0 4px 12px rgba(225, 29, 72, .25); }
.chot div:nth-child(2) { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.chot div:nth-child(3) { background: linear-gradient(135deg, #f97316, #eab308); }
.chot small { display: block; font-size: 13px; opacity: .9; }
.chot b { font-size: 24px; letter-spacing: 1px; }

/* Lưới đài */
.dai-g { margin-bottom: 12px; }
.dai-h { display: inline-block; padding: 3px 12px; border-radius: 99px; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.dai-mb { background: linear-gradient(90deg, #e11d48, #f97316); }
.dai-mn { background: linear-gradient(90deg, #16a34a, #0891b2); }
.dai-mt { background: linear-gradient(90deg, #7c3aed, #db2777); }
.dai { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dai a { padding: 8px 10px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); line-height: 1.3; }
.dai a:hover { text-decoration: none; border-color: #c084fc; background: #f3e8ff; }
.dai b { display: block; color: var(--ink); font-size: 15px; }
.dai small { color: var(--muted); font-size: 12px; }

/* Bài viết & SEO */
.prose { font-size: 16px; position: relative; }
.prose h2 { font-size: 19px; color: var(--violet-d); margin: 18px 0 8px; padding-left: 10px; border-left: 5px solid var(--pink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: #9d174d; margin: 14px 0 6px; }
.prose p { margin: 0 0 10px; text-align: justify; }
.prose ul { padding-left: 20px; margin: 0 0 10px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px; }
.seo-wrap.clip .prose { max-height: 340px; overflow: hidden; }
.seo-wrap.clip .prose::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.seo-more { display: block; margin: 10px auto 0; border: 0; padding: 8px 22px; border-radius: 99px; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; background: var(--grad); cursor: pointer; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--soft); }
.faq summary { padding: 10px 12px; font-weight: 700; cursor: pointer; color: var(--violet-d); }
.faq details p { margin: 0; padding: 0 12px 12px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.post-list h3 { margin: 0 0 4px; font-size: 16px; }
.meta { font-size: 13px; color: var(--muted); }
.post-list p { margin: 4px 0 0; font-size: 14.5px; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.sapo { font-weight: 600; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 99px; background: #ede9fe; font-size: 13px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; justify-content: center; }
.pager a, .pager span { display: block; min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 8px; background: #ede9fe; }
.pager .on span { color: #fff; background: var(--violet); }
.pager .off span { opacity: .5; }
.pn { display: flex; justify-content: space-between; gap: 6px; margin: 10px 8px; font-size: 14px; }
.pn a { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; text-align: center; }
.pn a.mid { color: #fff; background: var(--grad); border: 0; }

/* Footer */
.ft { margin-top: 12px; padding: 16px 12px 22px; color: #e9d5ff; background: linear-gradient(160deg, #1e1b4b, #4c1d95 60%, #831843); font-size: 14px; }
.ft b { color: #fde68a; }
.ft-dai p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 14px; }
.ft a { color: #f5d0fe; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ft-links a { color: #fff; font-weight: 600; }
.ft-note { font-size: 13px; opacity: .85; text-align: justify; }
.ft-copy { text-align: center; margin: 10px 0 0; font-weight: 700; color: #fde68a; }
#to-top { position: fixed; right: 14px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; font-size: 20px; background: var(--grad); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .2s; cursor: pointer; z-index: 30; }
#to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .pt { font-size: 18.5px; padding: 12px 10px; margin: 8px 6px; }
  .box { margin: 8px 6px; padding: 10px; }
  .bh { margin: -10px -10px 10px; font-size: 16.5px; }
  .nav a { font-size: 15.5px; padding: 11px; }
  .st2 { grid-template-columns: 1fr; }
  .vip td:first-child { width: 36%; }
  .n { font-size: 17px; }
  .vip td { padding: 7px 8px; }
  .ball { width: 40px; height: 40px; font-size: 17px; }
  .dai { grid-template-columns: 1fr 1fr; }
  .hist { font-size: 14px; }
}
@media (max-width: 360px) { .quick { gap: 2px; } .q { font-size: 11.5px; } .q i { width: 46px; height: 46px; font-size: 21px; } }
