/* ============================================================
   8XBET — XÔ SỐ PAGE STYLES  (xoso.html)
   All shared styles (header/nav/footer/ticker) → shared.css
   ============================================================ */

/* ── Xô Số accent palette ── */
:root {
  --red:        #e53935;
  --red-dark:   #b71c1c;
  --red-light:  #ffebee;
  --green:      #2e7d32;
  --green-light:#e8f5e9;
  --orange:     #e65100;
}

/* ════ SECTION UTILITY (mirrors home.css) ════ */
.section       { padding: 56px 32px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt   { background: var(--light); }

.section-head          { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: inline-block; color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2       { font-size: 1.9rem; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.section-head p        { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: .97rem; }
.underline-bar         { width: 64px; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 2px; margin: 14px auto 0; }

/* ════ HERO ════ */
.page-hero {
  background: linear-gradient(135deg, #1a0505 0%, #7b1717 35%, #e53935 70%, #ff7043 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px; padding: 64px 32px;
}
.hero-content { color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.4);
  color: var(--gold); padding: 6px 16px; border-radius: 20px;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-content h1     { font-size: 2.6rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero-content h1 .hl { color: var(--gold); }
.hero-content p      { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 480px; line-height: 1.75; }
.hero-cta            { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-hero-primary {
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  color: var(--dark); padding: 14px 32px; border-radius: 8px;
  font-weight: 800; font-size: 1rem; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px;
  box-shadow: 0 4px 20px rgba(245,197,24,.4); transition: all .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,197,24,.5); text-decoration: none; }
.btn-hero-secondary {
  background: rgba(255,255,255,.15); color: #fff; padding: 14px 28px;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid rgba(255,255,255,.4); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); text-decoration: none; }

.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 14px; color: #fff;
  font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.pill i { color: var(--gold); }

/* Hero right – live result card */
.hero-result-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 28px; color: #fff;
}
.hrc-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; font-weight: 700; opacity: .8;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px;
}
.live-badge {
  background: var(--red); color: #fff; padding: 3px 10px;
  border-radius: 4px; font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.live-badge i { font-size: .4rem; animation: blink 1.2s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hrc-special-label { font-size: .72rem; text-align: center; opacity: .7; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hrc-jackpot { font-size: 2.4rem; font-weight: 900; color: var(--gold); letter-spacing: 8px; text-align: center; margin-bottom: 20px; text-shadow: 0 2px 16px rgba(245,197,24,.4); }
.hrc-prizes  { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.hrc-row     { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .82rem; }
.hrc-row:last-child { border-bottom: none; }
.hrc-val     { color: rgba(255,255,255,.85); font-weight: 600; }
.hrc-footer  { text-align: center; margin-top: 14px; font-size: .75rem; color: rgba(255,255,255,.55); }
.hrc-footer strong { color: var(--gold); }

/* ════ STATS BANNER ════ */
.stats-banner { background: linear-gradient(135deg, #7b0000 0%, var(--red-dark) 50%, var(--red) 100%); padding: 52px 32px; }
.stats-grid   { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item .s-num { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-item .s-lbl { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ════ REGION TABS ════ */
.region-tabs {
  display: flex; border-radius: 12px; overflow: hidden;
  margin-bottom: 0; box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.rtab {
  flex: 1; padding: 15px 12px; text-align: center; cursor: pointer;
  font-size: .84rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  border: none; background: #f0f0f0; color: var(--muted); transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-right: 1px solid #ddd;
}
.rtab:last-child { border-right: none; }
.rtab.active     { background: var(--red); color: #fff; }
.rtab:hover:not(.active) { background: var(--red-light); color: var(--red); }

/* ════ RESULTS PANELS ════ */
.results-panel        { display: none; }
.results-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.results-date-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark); color: #fff; padding: 12px 20px;
  border-radius: 0 0 0 0; /* sharp top to connect to tabs */
}
.region-tabs + .results-panel .results-date-bar { border-radius: 0; }
.results-panel:first-of-type .results-date-bar { border-radius: 0; }
.rdb-left { font-size: .83rem; display: flex; align-items: center; gap: 8px; }
.rdb-left i { color: var(--gold); }
.rdb-right { display: flex; gap: 8px; }
.rdb-btn { background: rgba(255,255,255,.12); border: none; color: #fff; padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: .76rem; font-weight: 700; transition: background .2s; }
.rdb-btn:hover { background: rgba(255,255,255,.25); }
.rdb-btn.today { background: var(--red); }

.province-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 8px; }
.ptab { padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: .78rem; font-weight: 700; border: 1.5px solid var(--border); color: var(--muted); background: #fff; transition: all .2s; }
.ptab.active { background: var(--red); color: #fff; border-color: var(--red); }
.ptab:hover:not(.active) { border-color: var(--red); color: var(--red); }

.results-table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; }
table.result-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.result-table th { background: var(--red); color: #fff; padding: 10px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-align: center; }
table.result-table td { padding: 9px 14px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.result-table tr:last-child td { border-bottom: none; }
table.result-table tr:hover td { background: var(--red-light); }
table.result-table .pname { font-weight: 700; color: var(--dark); font-size: .82rem; white-space: nowrap; text-align: left; }
table.result-table .special-row td { background: #fff8e1; }
.num-box { display: inline-block; background: #fff; border: 1.5px solid var(--border); border-radius: 4px; padding: 3px 6px; font-weight: 700; color: var(--dark); font-size: .88rem; min-width: 38px; margin: 1px; }
.num-box.special { background: var(--red); color: #fff; border-color: var(--red); font-size: 1rem; padding: 5px 12px; }

/* CTA buttons (inside page) */
.btn-cta-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  color: var(--dark); padding: 12px 28px; border-radius: 8px;
  font-weight: 800; font-size: .92rem; text-decoration: none; transition: all .2s;
  box-shadow: 0 4px 16px rgba(245,197,24,.35);
}
.btn-cta-red:hover { transform: translateY(-2px); text-decoration: none; }
.btn-cta-gold { @extend .btn-cta-red; }

/* ════ LOTTERY TYPE CARDS ════ */
.lotto-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.lotto-card {
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  padding: 28px 22px; color: #fff;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
}
.lotto-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.2); text-decoration: none; }
.lc-icon  { font-size: 2rem; }
.lc-name  { font-size: 1rem; font-weight: 800; }
.lc-desc  { font-size: .78rem; opacity: .85; line-height: 1.55; }
.lc-badge { display: inline-block; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 10px; font-size: .68rem; font-weight: 700; width: fit-content; }
.lc1 { background: linear-gradient(135deg, #b71c1c, #e53935); }
.lc2 { background: linear-gradient(135deg, #1a237e, #1a73e8); }
.lc3 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.lc4 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }

/* ════ PRIZE TABLE ════ */
.prize-table-wrap { overflow-x: auto; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.07); }
table.prize-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.prize-table th { background: var(--dark); color: #fff; padding: 12px 16px; font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-align: center; }
table.prize-table td { padding: 11px 16px; text-align: center; border-bottom: 1px solid var(--border); }
table.prize-table tr:hover td { background: var(--red-light); }
table.prize-table tr:last-child td { border-bottom: none; }
.ptag       { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: .75rem; font-weight: 700; }
.pt-special { background: #fff8e1; color: var(--gold2); }
.pt-1       { background: #ffebee; color: #c62828; }
.pt-2       { background: var(--green-light); color: var(--green); }
.pt-3       { background: #e3f2fd; color: #1565c0; }
.pt-other   { background: #f3e5f5; color: #6a1b9a; }
.prize-amount { font-weight: 800; color: var(--red); font-size: .95rem; }
.prize-ratio  { font-weight: 800; color: var(--dark); }

/* ════ SCHEDULE ════ */
.schedule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.schedule-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.sc-header { padding: 15px 20px; font-weight: 800; color: #fff; font-size: .92rem; display: flex; align-items: center; gap: 9px; }
.sc-north   { background: linear-gradient(90deg, #b71c1c, #e53935); }
.sc-central { background: linear-gradient(90deg, #e65100, #ff7043); }
.sc-south   { background: linear-gradient(90deg, #1b5e20, #388e3c); }
.sc-row { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.sc-row:last-child { border-bottom: none; }
.sc-row .day  { font-weight: 700; color: var(--dark); min-width: 72px; flex-shrink: 0; }
.sc-row .prov { color: var(--muted); flex: 1; }
.sc-row .time { font-size: .74rem; background: var(--light); padding: 2px 8px; border-radius: 10px; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ════ HOW TO PLAY ════ */
.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.how-card {
  text-align: center; padding: 32px 20px; background: #fff;
  border-radius: 16px; border: 1.5px solid var(--border);
  transition: all .25s; position: relative; overflow: hidden;
}
.how-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 16px 16px 0 0; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.how-card:hover { box-shadow: 0 12px 40px rgba(229,57,53,.12); transform: translateY(-4px); }
.how-card:hover::before { transform: scaleX(1); }
.how-num  { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 6px 20px rgba(229,57,53,.35); }
.how-card h3 { font-size: .97rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.how-card p  { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ════ PROMO BANNER ════ */
.promo-banner-xs {
  background: linear-gradient(135deg, var(--dark), #1a3080);
  border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; gap: 32px; color: #fff;
  box-shadow: 0 8px 32px rgba(13,27,92,.3);
}
.pbx-icon    { font-size: 3.5rem; flex-shrink: 0; }
.pbx-content h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.pbx-content p  { font-size: .88rem; opacity: .85; line-height: 1.65; margin-bottom: 16px; }
.btn-cta-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  color: var(--dark); padding: 12px 26px; border-radius: 8px;
  font-weight: 800; font-size: .92rem; text-decoration: none; transition: all .2s;
  box-shadow: 0 4px 16px rgba(245,197,24,.35);
}
.btn-cta-gold:hover { transform: translateY(-2px); text-decoration: none; }

/* ════ ARTICLE ════ */
.article     { max-width: 900px; margin: 0 auto; }
.article h2  { font-size: 1.5rem; font-weight: 900; color: var(--dark); margin: 32px 0 14px; }
.article h3  { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin: 22px 0 10px; }
.article p   { font-size: .95rem; color: #333; line-height: 1.85; margin-bottom: 14px; }
.article ul  { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.article li  { font-size: .94rem; color: #333; line-height: 1.8; margin-bottom: 4px; }
.article a   { color: var(--red); }
.article .info-box { background: var(--red-light); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 18px 0; font-size: .93rem; color: #333; }

/* ════ FAQ ════ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q    { padding: 18px 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--dark); font-size: .97rem; background: #fff; transition: background .2s; user-select: none; }
.faq-q:hover { background: var(--red-light); }
.faq-q i  { transition: transform .3s; color: var(--red); flex-shrink: 0; margin-left: 12px; }
.faq-a    { display: none; padding: 0 20px 18px; font-size: .92rem; color: var(--muted); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: var(--red-light); }
.faq-item.open .faq-q i { transform: rotate(180deg); }

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-result-card { display: none; }
  .lotto-grid   { grid-template-columns: repeat(2,1fr); }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .how-grid     { grid-template-columns: repeat(2,1fr); }
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section       { padding: 40px 20px; }
  .hero-inner    { padding: 44px 20px; }
  .hero-content h1 { font-size: 1.9rem; }
  .lotto-grid    { grid-template-columns: 1fr 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .how-grid      { grid-template-columns: 1fr 1fr; }
  .promo-banner-xs { flex-direction: column; text-align: center; }
  .region-tabs   { flex-direction: column; border-radius: 10px; }
  .rtab          { border-right: none; border-bottom: 1px solid #ddd; }
  .rtab:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .lotto-grid { grid-template-columns: 1fr; }
  .how-grid   { grid-template-columns: 1fr; }
}
