/*
Theme Name: XOSO66 Loto Pro
Theme URI: https://www.xosolocthien.com/
Author: SEO Admin Studio
Description: Bespoke Royal Sapphire & Crimson Gold Vietnamese Lottery & Sportsbook SEO Theme for XOSO66. Ultra-lightweight, Core Web Vitals 99+, Interactive Lottery Payout Calculator & Sticky Left-Rail TOC Layout.
Version: 2.0.0
Text Domain: xoso66-loto-pro
*/

:root {
  --xs-bg: #050e21;
  --xs-surface: #0b1b3a;
  --xs-surface-2: #112652;
  --xs-border: rgba(251, 191, 36, 0.22);
  --xs-gold: #fbbf24;
  --xs-gold-light: #fde68a;
  --xs-crimson: #e11d48;
  --xs-crimson-dark: #9f1239;
  --xs-text: #f1f5f9;
  --xs-muted: #94a3b8;
  --xs-green: #10b981;
  --xs-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 15% 0%, #0f295c 0%, var(--xs-bg) 55%);
  color: var(--xs-text);
  line-height: 1.72;
  overflow-x: hidden;
}
a { color: var(--xs-gold); text-decoration: none; transition: all .2s ease; }
a:hover { color: var(--xs-gold-light); }
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

.xs66-wrap { width: min(1240px, 94%); margin: 0 auto; }

/* Live Lottery Ticker Topbar */
.xs66-ticker {
  background: linear-gradient(90deg, #7f1d1d, #be123c, #7f1d1d);
  border-bottom: 1px solid rgba(251,191,36,.35);
  font-size: 13px;
  padding: 7px 0;
}
.xs66-ticker-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.xs66-balls { display: inline-flex; gap: 5px; align-items: center; margin-left: 6px; }
.xs66-ball {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a, #d97706);
  color: #050e21; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.xs66-md5-pill {
  background: rgba(5,14,33,.55); border: 1px solid rgba(251,191,36,.45);
  padding: 2px 10px; border-radius: 99px; font-family: monospace; font-size: 12px; color: #fde68a;
}

/* Header */
.xs66-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(6, 17, 40, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xs-border);
}
.xs66-header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px;
}
.xs66-logo {
  display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 25px; letter-spacing: .5px;
  background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 55%, #d97706 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.xs66-logo-badge {
  background: var(--xs-crimson); color: #fff; -webkit-text-fill-color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 700;
}
.xs66-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.xs66-nav a {
  color: #e2e8f0; font-weight: 600; font-size: 14px; padding: 8px 11px; border-radius: 8px;
}
.xs66-nav a:hover, .xs66-nav a.active {
  background: rgba(251,191,36,.14); color: var(--xs-gold);
}
.xs66-cta-group { display: flex; align-items: center; gap: 10px; }
.xs66-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 99px; font-weight: 800; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .4px; cursor: pointer; border: none;
}
.xs66-btn-gold {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #050e21 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.xs66-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6); }
.xs66-btn-crimson {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}
.xs66-menu-toggle { display: none; background: transparent; border: 1px solid var(--xs-gold); color: var(--xs-gold); padding: 6px 10px; border-radius: 8px; font-size: 18px; }

/* Asymmetric Split Hero */
.xs66-hero { padding: 34px 0 26px; }
.xs66-hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: center;
  background: linear-gradient(135deg, rgba(15,37,78,.92), rgba(7,18,42,.96));
  border: 1px solid var(--xs-border); border-radius: 20px; padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.xs66-trust-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.xs66-pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px;
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7;
}
.xs66-hero h1 {
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; font-weight: 900; margin-bottom: 14px;
  color: #fff;
}
.xs66-hero h1 span { color: var(--xs-gold); }
.xs66-hero-desc { color: #cbd5e1; font-size: 15.5px; margin-bottom: 20px; }
.xs66-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.xs66-ping-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: rgba(5,14,33,.65); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
}
.xs66-ping-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(17,38,82,.75); padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 700;
}
.xs66-ping-ms { color: #34d399; font-size: 12px; font-family: monospace; }
.xs66-rebate-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px;
}
.xs66-rebate-card {
  background: linear-gradient(160deg, #10244d, #081530);
  border: 1px solid var(--xs-border); border-radius: 12px; padding: 14px; text-align: center;
}
.xs66-rebate-val { font-size: 24px; font-weight: 900; color: var(--xs-gold); line-height: 1.1; }
.xs66-rebate-lbl { font-size: 12.5px; color: var(--xs-muted); margin-top: 4px; font-weight: 600; }

/* Interactive Lottery Odds Calculator */
.xs66-calc-box {
  margin: 10px 0 28px;
  background: linear-gradient(135deg, #0d2149, #191036);
  border: 1px solid rgba(251,191,36,.35); border-radius: 16px; padding: 22px 26px;
}
.xs66-calc-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.xs66-calc-head h2 { font-size: 19px; color: var(--xs-gold); margin: 0; }
.xs66-calc-controls { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 14px; align-items: end; }
.xs66-field label { display: block; font-size: 12.5px; color: #cbd5e1; margin-bottom: 6px; font-weight: 600; }
.xs66-field select, .xs66-field input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(251,191,36,.35);
  background: #061024; color: #fff; font-size: 14.5px; font-weight: 700;
}
.xs66-calc-result {
  background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.45);
  border-radius: 10px; padding: 10px 16px; text-align: right;
}
.xs66-calc-result small { display: block; font-size: 11.5px; color: #a7f3d0; }
.xs66-calc-result strong { font-size: 21px; color: #34d399; font-weight: 900; }

/* 2-Column Left Sticky Rail + Right Main Content */
.xs66-main-grid {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 44px;
}
.xs66-left-rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.xs66-rail-card {
  background: var(--xs-surface); border: 1px solid var(--xs-border); border-radius: var(--xs-radius); padding: 18px;
}
.xs66-rail-title { font-size: 15px; font-weight: 800; color: var(--xs-gold); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.xs66-rail-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.xs66-rail-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: 8px; background: rgba(255,255,255,.03); color: #e2e8f0; font-size: 13.5px; font-weight: 600;
}
.xs66-rail-links a:hover { background: rgba(251,191,36,.15); color: var(--xs-gold); }

/* Content Article Typography & Elements */
.xs66-article {
  background: var(--xs-surface); border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: 32px 36px;
}
.xs66-article h1 { font-size: clamp(24px, 3vw, 33px); color: #fff; margin-bottom: 16px; line-height: 1.3; }
.xs66-article h2 {
  font-size: clamp(20px, 2.3vw, 25px); color: var(--xs-gold);
  margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--xs-crimson); line-height: 1.35;
}
.xs66-article h3 { font-size: 18px; color: #fde68a; margin: 22px 0 10px; }
.xs66-article p { margin-bottom: 15px; color: #dbeafe; font-size: 15.8px; }
.xs66-article ul, .xs66-article ol { margin: 0 0 18px 22px; color: #dbeafe; }
.xs66-article li { margin-bottom: 8px; }
.xs66-article figure, .vn-article-figure { margin: 22px 0; text-align: center; }
.xs66-article figcaption { font-size: 13px; color: var(--xs-muted); margin-top: 8px; font-style: italic; }

/* TOC & Tables & FAQs */
.vn-toc-container {
  background: rgba(5, 14, 33, 0.72); border: 1px solid var(--xs-border);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0 26px;
}
.vn-toc-summary { cursor: pointer; color: var(--xs-gold); font-size: 15.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
.vn-toc-toggle-hint { margin-left: auto; font-size: 12px; color: var(--xs-muted); }
.vn-toc-list { list-style: none !important; margin: 12px 0 0 0 !important; display: grid; gap: 6px; }
.vn-toc-list li a { color: #e2e8f0; font-size: 14px; display: block; padding: 4px 6px; border-radius: 6px; }
.vn-toc-list li a:hover { background: rgba(251,191,36,.12); color: var(--xs-gold); }
.vn-toc-h3 { padding-left: 18px; font-size: 13.5px; }
.vn-toc-num { color: var(--xs-gold); font-weight: 700; margin-right: 4px; }

.vn-table-scroll { overflow-x: auto; margin: 18px 0 24px; border-radius: 12px; border: 1px solid var(--xs-border); }
.xs66-article table { width: 100%; border-collapse: collapse; min-width: 560px; background: #07132c; }
.xs66-article th {
  background: linear-gradient(90deg, #9f1239, #1e3a8a); color: #fde68a;
  text-align: left; padding: 12px 15px; font-size: 14px; font-weight: 800;
}
.xs66-article td { padding: 11px 15px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14.2px; color: #e2e8f0; }
.xs66-article tr:nth-child(even) td { background: rgba(255,255,255,.025); }

.vn-faq-wrap { display: grid; gap: 12px; margin: 18px 0 24px; }
.vn-faq-item {
  background: #07142e; border: 1px solid rgba(251,191,36,.25); border-radius: 11px; overflow: hidden;
}
.vn-faq-item summary {
  padding: 14px 18px; font-weight: 700; color: #fff; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.vn-faq-item summary::after { content: "＋"; color: var(--xs-gold); font-weight: 900; }
.vn-faq-item[open] summary::after { content: "－"; }
.vn-faq-ans { padding: 0 18px 15px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; }

.vn-article-cta-box {
  background: linear-gradient(135deg, rgba(225,29,72,.18), rgba(251,191,36,.12));
  border: 1px solid var(--xs-gold); border-radius: 12px; padding: 18px 22px; margin-top: 26px;
}

/* Breadcrumbs & Author Box & Post Grid */
.xs66-crumbs { font-size: 13px; color: var(--xs-muted); margin: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.xs66-author-box {
  margin-top: 30px; padding: 20px; border-radius: 14px; background: #07132c; border: 1px solid var(--xs-border);
  display: flex; gap: 16px; align-items: center;
}
.xs66-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--xs-crimson), var(--xs-gold));
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: #fff;
}
.xs66-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 44px; }
.xs66-post-card {
  background: var(--xs-surface); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.xs66-post-card:hover { transform: translateY(-4px); border-color: var(--xs-gold); }
.xs66-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.xs66-post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.xs66-post-cat { font-size: 11.5px; color: var(--xs-gold); font-weight: 700; text-transform: uppercase; }
.xs66-post-title { font-size: 16px; font-weight: 800; line-height: 1.4; color: #fff; }

/* Footer */
.xs66-footer {
  background: #030917; border-top: 2px solid var(--xs-border); padding: 48px 0 28px; margin-top: 40px;
}
.xs66-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.xs66-footer h4 { color: var(--xs-gold); font-size: 15px; margin-bottom: 14px; text-transform: uppercase; }
.xs66-footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.xs66-footer ul a { color: #94a3b8; }
.xs66-footer ul a:hover { color: var(--xs-gold); }
.xs66-copy {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #64748b;
}

@media (max-width: 980px) {
  .xs66-hero-grid, .xs66-main-grid, .xs66-calc-controls { grid-template-columns: 1fr; }
  .xs66-left-rail { position: static; order: 2; }
  .xs66-rebate-strip { grid-template-columns: repeat(2, 1fr); }
  .xs66-post-grid { grid-template-columns: repeat(2, 1fr); }
  .xs66-footer-grid { grid-template-columns: 1fr 1fr; }
  .xs66-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 12px 0; }
  .xs66-nav.open { display: flex; }
  .xs66-header-row { flex-wrap: wrap; padding: 10px 0; }
  .xs66-menu-toggle { display: inline-block; }
}
@media (max-width: 600px) {
  .xs66-post-grid, .xs66-footer-grid, .xs66-ping-bar { grid-template-columns: 1fr; }
  .xs66-article { padding: 20px 16px; }
}
