/* ═══════════════════════════════════════════════════════════
   SOICAUDACBIET.COM — Premium Light Mode Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: .5rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 1rem; flex-shrink: 0;
}
.logo-icon { font-size: 1.75rem; }
.logo-icon-img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.logo-text strong { display: block; font-size: 1.05rem; color: var(--primary-dark); letter-spacing: -.3px; }
.logo-text small { font-size: .7rem; color: var(--text-light); }

/* ── NAV LINKS ─────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; color: var(--text);
  transition: var(--transition); cursor: pointer;
  background: none; border: none; font-family: var(--font);
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-alt); color: var(--primary); }
.nav-link.active { background: var(--primary); color: #fff; }
.nav-link.active:hover { background: var(--primary-dark); color: #fff; }
.nav-icon { font-size: .95rem; }
.chevron { margin-left: 2px; transition: transform .2s; flex-shrink: 0; }

/* ── LIVE DOT ──────────────────────────────────────────── */
.nav-live { color: #ef4444; font-weight: 600; }
.nav-live:hover { background: #fef2f2; color: #dc2626; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ── DROPDOWN ──────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 20px; min-width: 420px; z-index: 1100;
  margin-top: 4px;
}
.dropdown-panel::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.dropdown-col { display: flex; flex-direction: column; gap: 1px; }
.dropdown-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: .8px;
  padding: 4px 10px; margin-bottom: 4px;
}
.dropdown-panel a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 6px;
  font-size: .88rem; color: var(--text); font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.dropdown-panel a:hover { background: var(--bg-alt); color: var(--primary); }
[x-cloak] { display: none !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 8px; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--bg-hero);
  padding: 60px 0; color: #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 500; margin-bottom: 16px;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 24px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.btn-primary {
  background: var(--accent); color: #1a1a1a; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); color: #1a1a1a; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* ── PREDICTION HERO CARD ───────────────────────────────── */
.prediction-hero-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 28px;
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-weight: 600;
}
.card-header small { opacity: .7; font-weight: 400; }
.predicted-numbers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.number-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #1a1a1a;
  font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
  animation: pulse-badge 2s ease infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.prediction-note { font-size: .85rem; opacity: .8; margin-bottom: 12px; }
.card-link {
  display: block; text-align: center; padding: 10px;
  background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
  color: #fff; font-weight: 500; font-size: .85rem;
}
.card-link:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { text-align: center; margin-bottom: 32px; }

/* ── RESULT CARD ────────────────────────────────────────── */
.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); max-width: 600px; margin: 0 auto;
}
/* KQXS 3 Miền Grid — Homepage (Desktop: 3-col | Mobile: 1-col) */
.kqxs-3mien-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
  margin-top: 24px;
}
.kqxs-3mien-grid > .result-card {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kqxs-3mien-grid > .result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kqxs-3mien-grid .result-header {
  padding: 14px 20px;
  font-size: .88rem;
  letter-spacing: .3px;
}
.kqxs-3mien-grid .kqxs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.kqxs-3mien-grid .kqxs-footer {
  margin-top: auto;
  text-align: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.kqxs-3mien-grid .kqxs-footer a {
  font-weight: 600;
  font-size: .85rem;
}
.kqxs-3mien-grid .kqxs-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.kqxs-3mien-grid .kqxs-row:last-child { border-bottom: none; }
.kqxs-3mien-grid .kqxs-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kqxs-3mien-grid .kqxs-row-top .kqxs-province {
  font-weight: 700;
  font-size: .88rem;
}
.kqxs-3mien-grid .kqxs-row-top .kqxs-gdb {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}
.kqxs-3mien-grid .kqxs-row-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.kqxs-3mien-grid .kqxs-row-sub b { color: var(--primary); }
.result-header {
  background: var(--primary); color: #fff;
  padding: 14px 20px; font-weight: 600; font-size: .9rem;
}
.result-special {
  text-align: center; padding: 24px 20px;
}
.result-special small { display: block; color: var(--text-light); font-size: .85rem; margin-bottom: 8px; }
.result-special strong {
  display: block; font-size: 2.5rem; font-weight: 800;
  color: var(--danger); letter-spacing: 4px;
}
.result-highlight {
  display: flex; justify-content: center; gap: 24px;
  padding: 12px 20px; background: var(--bg-alt);
  font-size: .9rem;
}
.result-highlight b { color: var(--primary); font-size: 1rem; }

/* ── FEATURE GRID ───────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  display: block; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: var(--transition); color: var(--text);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary-light); color: var(--text);
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.feature-card h3 { color: var(--primary-dark); }
.feature-card p { font-size: .875rem; color: var(--text-light); margin-top: 8px; }

/* ── CONTENT BLOCK ──────────────────────────────────────── */
.content-block { max-width: 800px; margin: 0 auto; padding: 0 8px; }
.content-block h2 { text-align: left; }
.content-block h3 { margin-top: 24px; }
.content-block p { margin-bottom: 16px; }
.content-block ul { padding-left: 24px; margin-bottom: 16px; }
.content-block li { margin-bottom: 8px; }

/* ── CARD BASE STYLE ────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.card h2 { margin-bottom: 16px; }
.card p { margin-bottom: 12px; }
.card ul, .card ol { padding-left: 28px; margin-bottom: 14px; }
.card li { margin-bottom: 6px; }
@media (max-width: 768px) {
  .card { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .card { padding: 18px 16px; }
}

/* ── GLOBAL CONTENT PADDING ────────────────────────────── */
.seo-content-area,
.article-body,
.tin-tuc-detail .content,
.detail-content {
  padding: 24px;
  line-height: 1.8;
}
.seo-content-area h2,
.article-body h2,
.detail-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.seo-content-area p,
.article-body p,
.detail-content p {
  margin-bottom: 16px;
}
.seo-content-area ul,
.seo-content-area ol,
.article-body ul,
.article-body ol,
.detail-content ul,
.detail-content ol {
  padding-left: 28px;
  margin-bottom: 16px;
}
.seo-content-area li,
.article-body li,
.detail-content li {
  margin-bottom: 8px;
}
.seo-content-area table,
.article-body table,
.detail-content table {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
@media (max-width: 768px) {
  .seo-content-area,
  .article-body,
  .tin-tuc-detail .content,
  .detail-content { padding: 20px 16px; }
  .seo-content-area table,
  .article-body table,
  .detail-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 480px) {
  .seo-content-area,
  .article-body,
  .tin-tuc-detail .content,
  .detail-content { padding: 16px 12px; }
}

.disclaimer-box {
  background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: .875rem; margin-top: 24px;
}

/* ── PREDICTION PAGE ────────────────────────────────────── */
.page-header {
  background: var(--bg-hero); color: #fff;
  padding: 40px 0; text-align: center;
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { opacity: .85; font-size: 1.05rem; }

.prediction-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 30px; margin-top: 40px;
}

.pred-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px;
  overflow: hidden;
}
.pred-card h3 { color: var(--primary-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pred-card .numbers { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.pred-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: 1rem;
}
.pred-card .num.highlight {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #1a1a1a; width: 56px; height: 56px; font-size: 1.2rem;
}
.pred-card .analysis { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* ── STATS SIDEBAR ──────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 100px; /* Offset for header */
  align-self: start;
}
.sidebar .pred-card { padding: 24px; }
.stat-list { list-style: none; padding: 0; }
.stat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list .label { color: var(--text-light); }
.stat-list .value { font-weight: 700; color: var(--primary); }
.stat-list .value.hot { color: var(--danger); }
.stat-list .value.cold { color: var(--primary-light); }

/* ── KQXS TABLE ─────────────────────────────────────────── */
.kqxs-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.kqxs-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  table-layout: auto;
}
.kqxs-table th {
  background: var(--primary); color: #fff;
  padding: 10px 12px; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .5px; font-weight: 600;
}
.kqxs-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-size: .95rem; text-align: center; font-weight: 600;
  color: #111827; letter-spacing: 1px;
}
.kqxs-table tr:hover { background: var(--bg-alt); }
.kqxs-table .prize-label {
  font-weight: 600; color: var(--text-light);
  text-align: left; font-size: .8rem; white-space: nowrap;
  width: 80px; min-width: 80px;
}
.kqxs-table .special { color: var(--danger); font-weight: 800; font-size: 1.5rem; letter-spacing: 3px; }

/* ── REGION TABS ────────────────────────────────────────── */
.region-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  justify-content: center;
}
.region-tabs a {
  padding: 10px 24px; border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text);
}
.region-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.region-tabs a:hover:not(.active) { background: var(--bg-alt); }

/* ── PAGINATION ─────────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 32px; width: 100%; }
.pagination-wrap nav { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }

/* Hide mobile duplicated navigations */
.pagination-wrap nav > div:first-child { display: none !important; }

/* Desktop container */
.pagination-wrap nav > div:last-child { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.pagination-wrap p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* The links container (Tailwind's span or Bootstrap's ul) */
.pagination-wrap .relative.z-0, 
.pagination { 
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; 
  justify-content: center !important; align-items: center !important; gap: 6px !important; 
  list-style: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important;
}

/* Individual list items if Bootstrap */
.page-item { margin: 0 !important; display: block !important; }

/* The links themselves */
.pagination-wrap a, 
.pagination-wrap span[aria-disabled],
.page-link {
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-width: 38px !important; height: 38px !important; padding: 0 10px !important;
  border-radius: var(--radius-sm) !important; font-size: .95rem !important; font-weight: 500 !important;
  border: 1px solid var(--border) !important; background: #fff !important; color: var(--text) !important;
  text-decoration: none !important; transition: all 0.2s !important; margin: 0 !important;
}

/* Hover state */
.pagination-wrap a:hover, 
.page-link:hover { 
  background: var(--bg-alt) !important; color: var(--primary) !important; border-color: var(--primary-light) !important; 
}

/* Active state */
.pagination-wrap span[aria-current="page"] > span,
.page-item.active .page-link {
  background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; 
  font-weight: 700 !important;
}

/* Disabled state */
.pagination-wrap span[aria-disabled],
.page-item.disabled .page-link {
  background: var(--bg-alt) !important; color: var(--text-muted) !important; border-color: var(--border) !important; 
  opacity: 0.6 !important; cursor: not-allowed !important;
}

/* Fix huge SVGs */
.pagination-wrap svg { width: 1.25rem !important; height: 1.25rem !important; display: block !important; margin: auto !important; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-bar ol {
  display: flex; gap: 8px; list-style: none;
  font-size: .825rem; color: var(--text-muted);
}
.breadcrumb-bar li::after { content: '/'; margin-left: 8px; color: var(--border); }
.breadcrumb-bar li:last-child::after { display: none; }
.breadcrumb-bar li:last-child { color: var(--text); font-weight: 500; }
.breadcrumb-bar a { color: var(--text-light); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding: 48px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 8px; }
.footer-brand small { font-size: .75rem; color: #64748b; }
.footer-links h4 { color: #fff; font-size: .9rem; margin-bottom: 16px; }
.footer-links a {
  display: block; color: #94a3b8; font-size: .85rem;
  margin-bottom: 10px; transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 0;
  margin-top: 40px; text-align: center; font-size: .8rem; color: #64748b;
}
.footer-bottom a { color: #94a3b8; }

/* ── FOOTER UTILITIES (Button Style) ────────────────────── */
.footer-utilities h4 { color: #fff; font-size: .9rem; margin-bottom: 16px; }
.footer-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: all .25s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.footer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 10px;
}
.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.footer-btn:hover::before { opacity: 1; }
.footer-btn__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.footer-btn__text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* Button color variants */
.footer-btn--blue {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #bfdbfe;
  border-color: rgba(59,130,246,.3);
}
.footer-btn--blue:hover { color: #fff; border-color: rgba(59,130,246,.6); }
.footer-btn--blue::before { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }

.footer-btn--purple {
  background: linear-gradient(135deg, #3b1f6e 0%, #7c3aed 100%);
  color: #ddd6fe;
  border-color: rgba(124,58,237,.3);
}
.footer-btn--purple:hover { color: #fff; border-color: rgba(124,58,237,.6); }
.footer-btn--purple::before { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }

.footer-btn--amber {
  background: linear-gradient(135deg, #713f12 0%, #d97706 100%);
  color: #fde68a;
  border-color: rgba(217,119,6,.3);
}
.footer-btn--amber:hover { color: #fff; border-color: rgba(217,119,6,.6); }
.footer-btn--amber::before { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }

.footer-btn--green {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
  color: #bbf7d0;
  border-color: rgba(22,163,74,.3);
}
.footer-btn--green:hover { color: #fff; border-color: rgba(22,163,74,.6); }
.footer-btn--green::before { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); }

.footer-btn--teal {
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
  color: #99f6e4;
  border-color: rgba(13,148,136,.3);
}
.footer-btn--teal:hover { color: #fff; border-color: rgba(13,148,136,.6); }
.footer-btn--teal::before { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }

.footer-btn--red {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
  color: #fecaca;
  border-color: rgba(220,38,38,.3);
  animation: footer-pulse 2s ease-in-out infinite;
}
.footer-btn--red:hover { color: #fff; border-color: rgba(220,38,38,.6); }
.footer-btn--red::before { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }

@keyframes footer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}

/* Trust links row */
.footer-trust-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-trust-links a {
  color: #64748b;
  font-size: .78rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-trust-links a:hover { color: #94a3b8; }
.footer-trust-links span { color: #334155; font-size: .7rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-btn-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .footer-btn { padding: 8px 10px; font-size: .78rem; }
}
@media (max-width: 480px) {
  .footer-btn-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER PROVINCES (Programmatic SEO) ────────────────── */
.footer-provinces {
  border-top: 1px solid #1e293b;
  padding: 24px 0 0;
  margin-top: 32px;
}
.footer-provinces h4 {
  color: #fff; font-size: .85rem; margin-bottom: 12px;
  text-align: center;
}
.province-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
}
.province-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  font-size: .75rem;
  color: #94a3b8;
  transition: var(--transition);
}
.province-tags a:hover {
  background: rgba(245,158,11,.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── UTILITIES ──────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* ── PULSE DOT (Live indicator) ────────────────────────── */
.pulse-dot {
  display: inline-block; width: 10px; height: 10px;
  background: #10b981; border-radius: 50%; margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(16,185,129,.7);
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; padding: 12px 16px;
    overflow-y: auto; z-index: 999;
    border-top: 1px solid var(--border);
  }
  .main-nav.show { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; font-size: .95rem; justify-content: flex-start; }
  .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static; transform: none; box-shadow: none;
    border: none; border-left: 3px solid var(--primary);
    border-radius: 0; padding: 4px 0 4px 8px;
    min-width: unset; margin: 0 0 4px 12px;
  }
  .dropdown-panel::before { display: none; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 0; }
  .dropdown-panel a { padding: 10px 12px; font-size: .9rem; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 40px 0; }
  .prediction-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .kqxs-3mien-grid { grid-template-columns: 1fr !important; gap: 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  .region-tabs { flex-wrap: wrap; }
  .section { padding: 40px 0; }
  .page-header { padding: 28px 0; }
  .page-header p { font-size: .9rem; }
  /* KQXS tables mobile fix */
  .kqxs-table .special { font-size: 1.3rem !important; letter-spacing: 2px !important; }
  .kqxs-table td { padding: 8px 10px; font-size: .9rem; font-weight: 600; }
  .pred-card { padding: 20px; margin-bottom: 16px; }
  .pred-card h3 { font-size: 1rem; flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero-sub { font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .prediction-hero-card { padding: 20px; }
  .predicted-numbers { justify-content: center; }
  .number-badge { width: 44px; height: 44px; font-size: 1rem; }
  .pred-card .num.highlight { width: 48px; height: 48px; font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card { padding: 20px 16px; }
  .kqxs-table td { padding: 6px 8px; font-size: .8rem; font-weight: 600; letter-spacing: 0 !important; }
  .kqxs-table .special { font-size: 1rem !important; letter-spacing: 1px !important; }
  .result-special strong { font-size: 1.6rem; letter-spacing: 1px; }
  .pred-card { padding: 16px; }
  .pred-card h3 { font-size: .95rem; }
  .breadcrumb-bar ol { font-size: .75rem; flex-wrap: wrap; }
  .province-tags { gap: 4px; }
  .province-tags a { padding: 3px 8px; font-size: .7rem; }
  .btn { padding: 10px 18px; font-size: .85rem; }
  .stat-list li { font-size: .8rem; padding: 8px 0; }
}

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .breadcrumb-bar, .hero-actions { display: none; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  body { font-size: 12pt; }
}


/* ═══════════════════════════════════════════════════
   Content Panel Widget
   ═══════════════════════════════════════════════════ */
.cpw {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 12px 0;
    text-align: center;
    position: relative;
    z-index: 90;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cpl {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.cpl:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.cpi {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .cpw {
        padding: 8px 12px;
    }
    .cpi {
        width: 100%;
        max-width: 728px;
        border-radius: 6px;
    }
}

/* ═══════════════════════════════════════════════════════
   AIO OPTIMIZATION — Quick Answer & Definition Blocks
   ═══════════════════════════════════════════════════════ */
.quick-answer{background:linear-gradient(135deg,#eff6ff 0%,#f0f9ff 100%);border-left:4px solid #3b82f6;border-radius:0 12px 12px 0;padding:16px 20px;margin:16px 0 24px;font-size:.95rem;line-height:1.7;color:#1e293b}
.quick-answer strong:first-child{color:#1e40af;display:block;margin-bottom:6px;font-size:.82rem;text-transform:uppercase;letter-spacing:.5px}
.quick-answer p{margin:0}
.definition-box{background:linear-gradient(135deg,#fefce8 0%,#fef9c3 50%,#fef3c7 100%);border:1px solid #fde68a;border-radius:12px;padding:16px 20px;margin:16px 0;font-size:.92rem;line-height:1.7;color:#1e293b}
.definition-box strong:first-child{color:#92400e;display:block;margin-bottom:6px;font-size:.82rem}
.key-takeaway{background:linear-gradient(135deg,#f0fdf4 0%,#ecfdf5 100%);border-left:4px solid #22c55e;border-radius:0 12px 12px 0;padding:16px 20px;margin:16px 0;font-size:.92rem;line-height:1.7;color:#1e293b}
.key-takeaway strong:first-child{color:#166534;display:block;margin-bottom:6px;font-size:.82rem;text-transform:uppercase;letter-spacing:.5px}
