/* ==================== XỔ SỐ DU LỊCH TUỲ HỨNG - CSS ==================== */
:root {
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --gold-dark: #b45309;
  --red-lucky: #ef4444;
  --red-deep: #991b1b;
  --green-win: #10b981;
  --gold-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gold-border: rgba(245, 158, 11, 0.35);
  --lucky-glow: 0 0 35px -5px rgba(245, 158, 11, 0.4);
  --red-glow: 0 0 30px -4px rgba(239, 68, 68, 0.5);
}

.xoso-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
  min-height: 100vh;
}

/* Hero Badge & Header */
.xoso-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.lucky-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.xoso-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.xoso-subtitle {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* Status Bar & Countdown */
.live-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
}
.live-dot.pulse-red {
  background: var(--red-lucky);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red-anim 1.5s infinite;
}
.live-dot.pulse-green {
  background: var(--green-win);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}
@keyframes pulse-red-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.countdown-box strong {
  font-family: monospace;
  font-size: 1.05rem;
  color: #fff;
}

/* Layout: Dò Vé Số & AI lên đầu, Bảng Kết Quả bên dưới */
.xoso-grid {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 3.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.xoso-tools-col .xoso-card {
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(245, 158, 11, 0.15);
}
@media (max-width: 680px) {
  .xoso-tools-col .xoso-card {
    padding: 0.9rem 0.85rem;
  }
}

/* Region Selector */
.region-switcher {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.region-btn:hover {
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.region-btn.active {
  background: var(--grad);
  color: #0a1724;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}
.region-btn.active.btn-mt {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}
.region-btn.active.btn-mn {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.4);
}
.region-btn.active.btn-vietlott {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 50%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

/* Date History Picker */
.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 23, 36, 0.7);
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.date-picker-select {
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}
.date-picker-select option {
  background: #0a1724;
  color: #fff;
}

/* 60-day Stats Grid */
.stats-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
}
.stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .stats-two-col { grid-template-columns: 1fr; }
}
.stats-box {
  background: rgba(10, 23, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}
.stats-box-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-num {
  font-family: monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-light);
  min-width: 28px;
}
.stats-badge-hot {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.stats-badge-cold {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Regional Live HTML Container */
.regional-table-wrap {
  overflow-x: auto;
}
.regional-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 23, 36, 0.6);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.regional-table-wrap th, .regional-table-wrap td {
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.regional-table-wrap th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: var(--gold-light);
}
.regional-table-wrap td {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Card Container */
.xoso-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.xoso-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.xoso-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table styling for XSMB */
.lottery-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 23, 36, 0.6);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.lottery-table th,
.lottery-table td {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
.lottery-table th {
  width: 25%;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}
.lottery-table td {
  text-align: center;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Special Prize Row */
.row-db {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
}
.row-db th {
  color: var(--gold-light);
  font-weight: 800;
  border-left: 4px solid var(--red-lucky);
}
.row-db td {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  letter-spacing: 4px;
}

/* Prize codes (Ký hiệu đặc biệt) */
.codes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.code-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  border-radius: 6px;
  font-family: inherit;
}

/* Prize numbers items */
.prize-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.num-item {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.num-item.rolling {
  color: var(--gold);
  animation: roll-glow 0.8s infinite alternate;
}
.num-item.flash-new {
  animation: flash-pulse 1.2s ease-out;
}
@keyframes flash-pulse {
  0% { transform: scale(1.4); background: #fef08a; color: #111; box-shadow: 0 0 30px #f59e0b; }
  100% { transform: scale(1); background: transparent; color: inherit; box-shadow: none; }
}
@keyframes roll-glow {
  0% { opacity: 0.4; }
  100% { opacity: 1; text-shadow: 0 0 10px var(--gold); }
}

/* Loto Head-Tail Board */
.loto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.loto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: rgba(10, 23, 36, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.loto-table th, .loto-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.loto-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  text-align: center;
  color: var(--gold-light);
}
.loto-digit {
  width: 28%;
  text-align: center;
  font-weight: 800;
  color: var(--teal-2);
}
.loto-values {
  font-family: monospace;
  letter-spacing: 1px;
}

/* Interactive Tabs - Gọn gàng và tinh tế */
.tabs-nav {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  border-radius: 999px;
  margin: 0 auto 1.1rem;
  max-width: 500px;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--grad);
  color: #0a1724;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

@media (max-width: 680px) {
  /* Tabs bar gọn gàng 1 hàng trên mobile, không bị rớt dòng */
  .tabs-nav {
    display: flex !important;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
    border-radius: 999px;
  }
  .tab-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.2rem;
    border-radius: 999px;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

/* Checker Form kiểu Xổ Số Đại Phát */
.checker-card-head {
  text-align: center;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
}
.checker-card-title {
  color: #ef4444;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.3px;
}
.checker-card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

.checker-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 540px) {
  .checker-select-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .input-date-custom,
  .select-province-custom {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.86rem !important;
  }
}

.input-date-custom,
.select-province-custom {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 36, 0.85);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.input-date-custom:focus,
.select-province-custom:focus {
  border-color: #ef4444;
}
.select-province-custom optgroup {
  background: #0f172a;
  color: var(--teal-2);
  font-weight: 700;
}
.select-province-custom option {
  background: #0a1724;
  color: #fff;
}

.checker-action-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.checker-input-wrap {
  flex: 1;
}
.input-ticket-field {
  width: 100%;
  height: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(10, 23, 36, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-ticket-field:focus {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}
.input-ticket-field::placeholder {
  font-size: 0.9rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}
.btn-red-result {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn-red-result:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  opacity: 0.95;
}
.checker-note-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

/* Result Box for Ticket Checking */
.check-result-box {
  display: none;
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 36, 0.7);
  border: 1px solid var(--border);
  animation: fadeIn 0.4s ease;
}
.check-result-box.won {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.12));
  box-shadow: var(--lucky-glow);
}
.check-result-box.missed {
  border-color: rgba(255, 255, 255, 0.15);
}
.prize-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.prize-icon {
  font-size: 2.2rem;
}
.prize-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 0.2rem;
}
.prize-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* AI Recommendation Card */
.ai-advice-card {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--gold-border);
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ai-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
}
.ai-content ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
}
.ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #111;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Lucky Sub Switcher (Vietlott vs 3 Miền) */
.lucky-sub-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lucky-sub-btn {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.lucky-sub-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}
@media (max-width: 540px) {
  .lucky-sub-switcher {
    flex-direction: column;
    gap: 0.3rem;
  }
  .lucky-sub-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }
}

.ai-prob-intro {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* Vietlott AI Balls Result */
.vietlott-ai-balls-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
}
.vietlott-ai-balls-title {
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* Probability Scorecard */
.probability-scorecard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1.2rem 0;
}
@media (max-width: 600px) {
  .probability-scorecard {
    grid-template-columns: repeat(2, 1fr);
  }
}
.prob-metric {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.prob-label {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.prob-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: monospace;
}
.prob-sub {
  font-size: 0.72rem;
  color: #38bdf8;
  margin-top: 0.2rem;
}

/* Affiliate & Ticket Purchase Help Box */
.ticket-buy-help-box {
  margin-top: 1.2rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.ticket-buy-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ticket-action-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.btn-buy-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-buy-partner:hover {
  transform: translateY(-2px);
}
.btn-buy-sms {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.btn-buy-wallet {
  background: #a21caf;
  color: #fff;
  box-shadow: 0 4px 12px rgba(162, 28, 175, 0.35);
}
.btn-buy-klook {
  background: var(--gold-grad);
  color: #111;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.btn-buy-onbit {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}
.btn-buy-onbit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.6);
}

/* World Lottery (Powerball & Mega Millions) Balls */
.world-ball-white {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: #0f172a;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f5f9 55%, #cbd5e1 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.25), inset 0 3px 5px rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease;
}
.world-ball-powerball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8b8b 0%, #dc2626 50%, #7f1d1d 95%);
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease;
}
.world-ball-megaball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: #111;
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #f59e0b 55%, #b45309 100%);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.35), inset 0 3px 5px rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease;
}
.world-ball-white:hover, .world-ball-powerball:hover, .world-ball-megaball:hover {
  transform: translateY(-3px) scale(1.08);
}

/* Onbit Promo Card */
.onbit-promo-card {
  margin-top: 1.2rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.16) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.onbit-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.onbit-ref-code {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--gold);
  color: var(--gold-light);
  font-family: monospace;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* World Lottery Guide Section */
.world-lottery-guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow);
}
.world-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .world-lottery-guide {
    padding: 1.4rem 1rem;
  }
  .world-guide-grid {
    grid-template-columns: 1fr;
  }
}
.world-guide-card {
  background: rgba(10, 23, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
}

/* AI Lucky Generator Form */
.select-destination {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 36, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.95rem;
}
.textarea-dream {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 36, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Tour Showcase Section */
.tour-showcase {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.showcase-header {
  text-align: center;
  margin-bottom: 2rem;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tour-card-xs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tour-card-xs:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  border-color: var(--teal);
}
.tour-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.tour-card-body {
  padding: 1.1rem;
}
.tour-card-tag {
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.tour-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card-price {
  font-weight: 800;
  color: var(--teal-2);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.tour-card-btn {
  display: block;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.tour-card-btn:hover {
  background: var(--grad);
  color: #111;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== BẢNG XỔ SỐ MIỀN TRUNG / MIỀN NAM (XOSODAIPHAT STYLE) ==================== */
.regional-table-wrap {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

/* Banner Header kiểu Xổ Số Đại Phát */
.regional-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 0.85rem 1.2rem;
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-bottom: none;
}
.regional-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.regional-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.regional-breadcrumb {
  font-size: 0.88rem;
  color: #fef08a;
  margin-top: 0.35rem;
  font-weight: 600;
}
.regional-breadcrumb a, .regional-breadcrumb span {
  color: #fef08a;
}
.live-refresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bảng kết quả chính table-result / table-xsmn */
.regional-table-wrap table.table-result,
.regional-table-wrap table.table-xsmn {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 23, 36, 0.75);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  table-layout: fixed;
}

.regional-table-wrap table.table-result thead th,
.regional-table-wrap table.table-xsmn thead th {
  background: rgba(15, 23, 42, 0.85);
  padding: 0.85rem 0.6rem;
  color: var(--teal-2);
  font-size: 1.05rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.regional-table-wrap table.table-result thead th.name-prize,
.regional-table-wrap table.table-xsmn thead th:first-child {
  width: 80px;
  color: #94a3b8;
  font-size: 0.92rem;
}

.regional-table-wrap table.table-result tbody th,
.regional-table-wrap table.table-xsmn tbody td:first-child {
  width: 80px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.regional-table-wrap table.table-result tbody td,
.regional-table-wrap table.table-xsmn tbody td.tn_prize {
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 700;
  color: #f8fafc;
  font-size: 1.12rem;
  letter-spacing: 1.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.regional-table-wrap table.table-result tbody tr:hover,
.regional-table-wrap table.table-xsmn tbody tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

/* Các số kết quả bên trong ô */
.regional-table-wrap .xs_prize1,
.regional-table-wrap .number-black-bold,
.regional-table-wrap .div-horizontal {
  display: inline-block;
  margin: 2px 6px;
  font-weight: 700;
}

/* GIẢI ĐẶC BIỆT MIỀN TRUNG / NAM */
.regional-table-wrap .prize_db,
.regional-table-wrap .special-prize-lg {
  color: #fef08a !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6) !important;
}

/* BI ĐỎ 3D CHO GIẢI 8 (GIỐNG 100% XỔ SỐ ĐẠI PHÁT) */
.digit-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  vertical-align: middle;
}

/* ICON QUAY TRÒN (SPINNER DÀNH CHO CÁC GIẢI ĐANG CHỜ MỞ) */
.loading-icon,
.spinning-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(239, 68, 68, 0.2);
  border-top-color: #ef4444;
  border-right-color: #f43f5e;
  border-radius: 50%;
  animation: xs-spin 0.75s linear infinite;
  vertical-align: middle;
  margin: 0 3px;
}
@keyframes xs-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* BẢNG LÔ TÔ MIỀN TRUNG / NAM */
.regional-table-wrap .site-link2 {
  text-align: center;
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
}
.regional-table-wrap .site-link2 a {
  color: var(--gold-light);
  text-decoration: none;
}
.regional-table-wrap table.table-loto {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 23, 36, 0.6);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.regional-table-wrap table.table-loto thead th,
.regional-table-wrap table.table-loto th {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  color: var(--gold-light);
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.regional-table-wrap table.table-loto tbody th,
.regional-table-wrap table.table-loto td.text-center {
  width: 60px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--teal-2);
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.regional-table-wrap table.table-loto tbody td {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* ============================================================
   VIETLOTT STYLES (MEGA 6/45 & POWER 6/55)
   ============================================================ */
.vietlott-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vietlott-sub-nav {
  display: flex;
  gap: 0.75rem;
  background: rgba(10, 23, 36, 0.6);
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.vietlott-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vietlott-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.vietlott-tab-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.jackpot-mini-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-light);
  font-weight: 800;
}
.jackpot-mini-pill.jp-power {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* Jackpot Banner */
.jackpot-banner {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15) 0%, rgba(10, 23, 36, 0.95) 75%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
}

.jackpot-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: rotate-jackpot 18s linear infinite;
}

@keyframes rotate-jackpot {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.jackpot-badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.jackpot-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0.3rem 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .jackpot-amount { font-size: 1.65rem; }
}

.jackpot-sub-amounts {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.jackpot-sub-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.jackpot-sub-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}
.jackpot-sub-item strong {
  font-size: 1.15rem;
  color: #38bdf8;
  font-weight: 800;
}

.jackpot-draw-info {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 3D Vietlott Spheres */
.vietlott-balls-card {
  background: rgba(10, 23, 36, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
}

.vietlott-balls-head {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vietlott-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.vietlott-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8b8b 0%, #dc2626 50%, #7f1d1d 95%);
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.5), inset 0 3px 5px rgba(255, 255, 255, 0.6);
  position: relative;
  transition: transform 0.25s ease;
}

.vietlott-ball:hover {
  transform: translateY(-3px) scale(1.08);
}

.vietlott-ball-bonus {
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #eab308 50%, #854d0e 95%);
  color: #111;
  box-shadow: 0 6px 15px rgba(234, 179, 8, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.7);
}

.vietlott-plus-sign {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-light);
}

/* Vietlott Prize Breakdown Table */
.vietlott-table-card {
  background: rgba(10, 23, 36, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.vietlott-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vietlott-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vietlott-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.vietlott-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.vietlott-match-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.vietlott-match-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
}

.vietlott-match-dot.bonus-dot {
  background: #eab308;
}

.vietlott-prize-amount {
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ==================== IPHONE & MOBILE VIEWPORT OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
  .xoso-page {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  /* Prevent iOS Safari 16px Auto-Zoom */
  input[type="text"],
  input[type="date"],
  select,
  .input-ticket-field,
  .input-date-custom,
  .select-province-custom,
  .date-picker-select,
  .dream-input {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  /* Status Bar & History Selector */
  .live-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .live-indicator {
    font-size: 0.88rem;
  }
  .live-status-bar > div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .date-picker-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
  }
  .date-picker-wrap > span {
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .date-picker-select {
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 16px !important;
    text-overflow: ellipsis;
  }
  #soundToggleBtn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  /* Hero area */
  .xoso-hero {
    margin-bottom: 1.5rem;
  }
  .lucky-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    gap: 0.35rem;
    letter-spacing: 0.2px;
  }
  .xoso-title {
    font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    line-height: 1.3;
    margin-bottom: 0.6rem;
    word-break: keep-all;
  }
  .xoso-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    padding: 0 0.25rem;
  }

  /* Region Switcher: Clean 2x2 Grid */
  .region-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1.2rem;
  }
  .region-btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.35rem;
    font-size: 0.84rem;
    border-radius: 12px;
    gap: 0.3rem;
    white-space: nowrap;
  }
  .region-btn small {
    font-size: 0.74rem;
    opacity: 0.85;
  }

  /* Xổ số Cards */
  .xoso-card {
    padding: 0.9rem 0.75rem;
    border-radius: 16px;
  }
  .xoso-card-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .xoso-card-title {
    font-size: 1.1rem;
  }

  /* Lottery Table XSMB */
  .lottery-table {
    font-size: 0.88rem;
  }
  .lottery-table th,
  .lottery-table td {
    padding: 0.5rem 0.35rem;
  }
  .lottery-table th {
    width: 22%;
    font-size: 0.82rem;
    font-weight: 700;
  }
  .lottery-table td {
    font-size: 1.02rem;
    letter-spacing: 1.5px;
  }
  .row-db td {
    font-size: 1.45rem;
    letter-spacing: 2px;
  }
  .prize-nums {
    gap: 0.3rem 0.55rem;
  }
  .num-item {
    padding: 0.1rem 0.2rem;
  }
  .codes-wrap {
    gap: 0.25rem;
  }
  .code-chip {
    padding: 0.15rem 0.4rem;
    font-size: 0.76rem;
  }

  /* Multi-province Table (XSMT / XSMN) */
  .regional-banner-title {
    font-size: 1rem;
  }
  .regional-breadcrumb {
    font-size: 0.8rem;
  }
  .regional-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .table-result th,
  .table-result td {
    padding: 0.45rem 0.25rem;
    font-size: 0.85rem;
  }
  .digit-ball {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  /* Vietlott Board & 3D Spheres */
  .vietlott-sub-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }
  .vietlott-tab-btn {
    padding: 0.55rem 0.4rem;
    font-size: 0.84rem;
    justify-content: center;
    border-radius: 10px;
  }
  .jackpot-banner {
    padding: 1rem 0.75rem;
    border-radius: 14px;
  }
  .jackpot-badge-tag {
    font-size: 0.74rem;
    padding: 0.2rem 0.6rem;
  }
  .jackpot-amount {
    font-size: 1.65rem;
    letter-spacing: -0.5px;
  }
  .jackpot-sub-amounts {
    flex-direction: column;
    gap: 0.35rem;
  }
  .jackpot-sub-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }
  .vietlott-balls-card {
    padding: 1rem 0.4rem;
    border-radius: 14px;
  }
  .vietlott-balls-head {
    font-size: 0.84rem;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
  }
  .vietlott-balls-row {
    gap: 0.3rem;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    padding: 0.3rem 0;
    -webkit-overflow-scrolling: touch;
  }
  .vietlott-ball {
    width: 37px;
    height: 37px;
    font-size: 1.02rem;
    flex-shrink: 0;
  }
  .vietlott-plus-sign {
    font-size: 1.15rem;
    margin: 0 1px;
    flex-shrink: 0;
  }
  .vietlott-table-card {
    border-radius: 12px;
  }
  .vietlott-table th,
  .vietlott-table td {
    padding: 0.55rem 0.4rem;
    font-size: 0.82rem;
  }
  .vietlott-prize-amount {
    font-size: 0.86rem;
  }

  /* Ticket Checker on Mobile */
  .checker-action-row {
    flex-direction: column;
    gap: 0.6rem;
  }
  .btn-red-result {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    justify-content: center;
  }
  .input-ticket-field {
    text-align: center;
    padding: 0.75rem 0.85rem;
  }
}

/* ==================== QUICK PROVINCE SELECTOR BAR ==================== */
.province-quick-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.province-quick-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}
.province-quick-select {
  background: rgba(10, 23, 36, 0.85);
  border: 1px solid var(--gold-border);
  color: #fef08a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.province-quick-select:hover,
.province-quick-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  background: rgba(15, 30, 48, 0.95);
}
.province-quick-select optgroup {
  background: #0f172a;
  color: var(--teal-2);
  font-weight: 700;
}
.province-quick-select option {
  background: #0a1724;
  color: #fff;
}

/* Province Column Highlight in Regional Table */
.highlight-prov-th {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.15) 100%) !important;
  color: #fef08a !important;
  border-left: 2px solid var(--gold) !important;
  border-right: 2px solid var(--gold) !important;
  box-shadow: inset 0 2px 8px rgba(245, 158, 11, 0.4);
}
.highlight-prov-td {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 2px solid rgba(245, 158, 11, 0.4) !important;
  border-right: 2px solid rgba(245, 158, 11, 0.4) !important;
  color: #fef08a !important;
}

@media (max-width: 600px) {
  .province-quick-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
  }
  .province-quick-select {
    width: 100%;
    font-size: 16px !important; /* Prevent iOS auto zoom */
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
  }
}

/* ==================== XỔ SỐ MỸ (POWERBALL & MEGA MILLIONS) & ONBIT ==================== */
.world-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.world-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.45), 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.world-ball:hover {
  transform: scale(1.1);
}
/* White Ball (5 số chính) */
.world-ball-white {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
/* Powerball Ball (Bóng đỏ) */
.world-ball-powerball {
  background: radial-gradient(circle at 35% 30%, #f87171 0%, #dc2626 50%, #7f1d1d 100%);
  color: #fff;
  border: 2px solid #fca5a5;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.6), inset 0 -3px 8px rgba(0, 0, 0, 0.5);
}
/* Mega Ball (Bóng vàng) */
.world-ball-megaball {
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #eab308 55%, #854d0e 100%);
  color: #422006;
  border: 2px solid #fde047;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.6), inset 0 -3px 8px rgba(0, 0, 0, 0.5);
}

/* Onbit Promo Card */
.onbit-promo-card {
  margin-top: 1.3rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 44, 76, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}
.onbit-promo-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.onbit-promo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.onbit-promo-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}
.onbit-ref-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px dashed var(--gold-border);
  margin-bottom: 0.9rem;
  font-size: 0.84rem;
  color: #fde68a;
}
.onbit-ref-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1px;
}
.btn-buy-onbit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 50%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-buy-onbit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.65);
  filter: brightness(1.1);
}

/* Quick Buy Box for Vietlott Tab */
.onbit-quick-buy-box {
  margin-top: 1.2rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.onbit-quick-info .onbit-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.onbit-quick-info .onbit-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.4;
}

/* ==================== WORLD LOTTERY EDUCATIONAL GUIDE ==================== */
.world-lottery-guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow);
}
.wlg-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.wlg-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.wlg-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.wlg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.wlg-card {
  background: rgba(10, 23, 36, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.wlg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
}
.wlg-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.wlg-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #fff;
}
.wlg-card-body {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  flex: 1;
}
.wlg-card-body ul {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.wlg-card-body li {
  margin-bottom: 0.3rem;
}
.wlg-highlight {
  color: #fef08a;
  font-weight: 700;
}
.wlg-faq-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.wlg-faq-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wlg-faq-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wlg-faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.wlg-faq-q {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.wlg-faq-a {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .world-ball {
    width: 38px;
    height: 38px;
    font-size: 0.98rem;
  }
  .world-lottery-guide {
    padding: 1.5rem 1rem;
  }
  .lucky-sub-switcher {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.region-btn.btn-world:hover {
  border-color: #818cf8;
}
.region-btn.active.btn-world {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

/* ==================== INTERNATIONAL LOTTERY HUB (ONBIT STYLE) ==================== */
.world-hub-wrap {
  width: 100%;
  animation: fadeIn 0.3s ease;
}
.world-hub-subnav {
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 23, 36, 0.7);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.world-hub-tab-btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.world-hub-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.world-hub-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

/* World Jackpots Table */
.world-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 23, 36, 0.75);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.world-table th, .world-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.world-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.world-game-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.world-game-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.world-game-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.3;
}
.world-game-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.world-jackpot-val {
  font-size: 1.22rem;
  font-weight: 900;
  color: #fbbf24;
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: -0.3px;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}
.world-jackpot-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}
.world-countdown {
  font-size: 0.86rem;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.world-countdown.urgent {
  color: #f87171;
  font-weight: 700;
}
.btn-send-req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-send-req:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.55);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Latest Results List */
.world-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.8rem;
  flex-wrap: wrap;
}
.world-result-row:last-child {
  border-bottom: none;
}
.world-res-balls-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.w-ball-gold {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde047 0%, #ca8a04 55%, #854d0e 100%);
  color: #422006;
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.w-ball-red {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f87171 0%, #dc2626 55%, #991b1b 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.5);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.w-ball-sep {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0.15rem;
}
.w-multiplier {
  font-size: 0.76rem;
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==================== BẢNG GỘP XỔ SỐ QUỐC TẾ (JACKPOT Ở TRÊN - DÃY SỐ Ở DƯỚI) ==================== */
.world-merged-table-card {
  background: rgba(10, 23, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.world-merged-row {
  display: grid;
  grid-template-columns: 215px 1fr 215px;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 1.2rem;
  transition: background 0.18s ease;
  cursor: pointer;
}
.world-merged-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.world-merged-row:last-child {
  border-bottom: none;
}
.wmc-col-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wmc-title-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.wmc-code-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.15rem 0.42rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1.1;
}
.wmc-code-au { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.wmc-code-us { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.wmc-code-eu { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }
.wmc-code-jp { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.wmc-code-vn { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.wmc-code-int { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }

.wmc-name-link {
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  line-height: 1.3;
}
.wmc-name-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.wmc-meta {
  font-size: 0.76rem;
  color: var(--muted);
}
.wmc-sched {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

/* Cột giữa: Tiền ở TRÊN, Dãy bóng trúng thưởng ở DƯỚI */
.wmc-col-center {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wmc-jackpot-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.wmc-jp-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wmc-jackpot-amount {
  font-size: 1.18rem;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: 0.2px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.wmc-jackpot-vnd {
  font-size: 0.85rem;
  font-weight: 700;
  color: #86efac;
}

/* Cột phải: Các nút thao tác */
.wmc-col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.btn-wmc-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-wmc-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.btn-wmc-print {
  padding: 0.35rem 0.7rem !important;
  font-size: 0.78rem !important;
}
.btn-wmc-detail {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.btn-wmc-detail:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .world-merged-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }
  .wmc-col-actions {
    justify-content: flex-start;
  }
}


/* ==================== 6 GOLDEN FILTERS CHECKLIST & OPTIMAL MATRIX ==================== */
.filter-checklist-card {
  margin-top: 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.5);
}
.filter-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-checklist-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-score-badge {
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.filter-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 600px) {
  .filter-checklist-grid {
    grid-template-columns: 1fr;
  }
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.checklist-icon {
  color: #10b981;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.checklist-text {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.4;
}
.checklist-text strong {
  color: #fef08a;
}
.checklist-text small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .world-table th:nth-child(3),
  .world-table td:nth-child(3) {
    display: none; /* Hide countdown column on small screens to keep layout clean */
  }
  .world-jackpot-val {
    font-size: 1.05rem;
  }
  .world-table th, .world-table td {
    padding: 0.65rem 0.5rem;
  }
  .btn-send-req {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ==================== ONBIT DETAIL RESULT VIEW & IN VÉ DÒ 1/A4 ==================== */
.world-result-row.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}
.world-result-row.interactive:hover {
  background: rgba(30, 41, 59, 0.7);
  border-left: 3px solid #38bdf8;
  transform: translateX(2px);
}

.onbit-detail-wrap {
  animation: fadeInDetail 0.3s ease-out;
}
@keyframes fadeInDetail {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.onbit-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.btn-back-master {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back-master:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.select-draw-custom {
  background: #0f172a;
  color: #f1f5f9;
  border: 1.5px solid #3b82f6;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.btn-print-a4 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.48rem 1.1rem;
  border-radius: 6px;
  border: 1.5px solid #38bdf8;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.btn-print-a4:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
}

.onbit-detail-heading {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin: 0.6rem 0 0.2rem;
  line-height: 1.3;
}
.onbit-detail-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Big Hero Banner (Green festive pattern matching screenshot 1 & 4) */
.onbit-banner-hero {
  background: linear-gradient(145deg, #1b633e 0%, #155734 30%, #0d3821 100%);
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(34, 197, 94, 0.25);
  margin-bottom: 1.2rem;
}
.onbit-banner-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.banner-badge-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.banner-logo-badge {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.banner-draw-tag {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 1.2rem;
}

/* Balls in banner */
.banner-balls-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0;
}
.banner-ball {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), inset 0 -4px 6px rgba(0,0,0,0.4), inset 0 4px 6px rgba(255,255,255,0.7);
  transition: transform 0.2s;
}
.banner-ball:hover {
  transform: scale(1.08);
}
.banner-ball-white {
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #e2e8f0 45%, #94a3b8 100%);
  color: #0f172a;
}
.banner-ball-gold {
  background: radial-gradient(circle at 35% 25%, #fef08a 0%, #eab308 55%, #a16207 100%);
  color: #451a03;
}
.banner-ball-red {
  background: radial-gradient(circle at 35% 25%, #fca5a5 0%, #dc2626 55%, #7f1d1d 100%);
  color: #fff;
  border: 2px solid #ef4444;
}

.banner-jackpot-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #e11d48, #c026d3);
  color: #fef08a;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35rem 1.4rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.5);
  border: 1px solid rgba(255,255,255,0.3);
}

.banner-jackpot-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0.4rem 0 0;
  text-shadow: 0 0 20px rgba(254, 240, 138, 0.7), 0 3px 6px rgba(0,0,0,0.9);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .banner-ball { width: 44px; height: 44px; font-size: 1.15rem; }
  .banner-jackpot-amount { font-size: 2rem; }
  .onbit-detail-heading { font-size: 1.15rem; }
}

/* Bulletin */
.onbit-bulletin {
  background: rgba(15, 23, 42, 0.6);
  border-left: 4px solid #f59e0b;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

/* Prize Breakdown Table */
.onbit-table-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}
.onbit-table-head-bar {
  background: #1e3a5f;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2b48 100%);
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #38bdf8;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.onbit-prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.onbit-prize-table th {
  background: #152238;
  color: #93c5fd;
  font-weight: 800;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.onbit-prize-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.onbit-prize-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.onbit-prize-table tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}
.onbit-tier-name {
  font-weight: 800;
  color: #f1f5f9;
}
.onbit-tier-val {
  font-weight: 800;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}
.onbit-match-spheres {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.match-mini-ball {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.match-gold {
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #eab308 60%, #854d0e 100%);
  border: 1px solid #ca8a04;
}
.match-white {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #cbd5e1 60%, #64748b 100%);
  border: 1px solid #94a3b8;
}
.match-red {
  background: radial-gradient(circle at 30% 30%, #fca5a5 0%, #dc2626 60%, #7f1d1d 100%);
  border: 1px solid #b91c1c;
}

/* ==================== A4 PRINTABLE MODAL & SHEET ==================== */
.a4-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.a4-modal-dialog {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  max-width: 860px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.a4-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.a4-sheet {
  background: #ffffff !important;
  color: #111827 !important;
  padding: 2.2rem 2.5rem;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

.a4-print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.a4-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0369a1;
  text-transform: uppercase;
}
.a4-brand-sub {
  font-size: 0.78rem;
  color: #64748b;
}
.a4-sheet-badge {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.a4-doc-title {
  text-align: center;
  margin-bottom: 1rem;
}
.a4-doc-title h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
}
.a4-doc-title p {
  font-size: 0.88rem;
  color: #475569;
  margin: 0.2rem 0 0;
}

.a4-balls-box {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}
.a4-balls-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.a4-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.a4-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-family: monospace;
}
.a4-ball.special {
  background: #ef4444;
  color: #ffffff;
  border-color: #b91c1c;
}
.a4-jackpot-notice {
  margin-top: 0.7rem;
  text-align: center;
  line-height: 1.35;
}
.a4-jackpot-main {
  font-size: 0.95rem;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 0.3px;
}
.a4-jackpot-sub {
  font-size: 0.86rem;
  font-weight: 800;
  color: #dc2626;
  margin-top: 0.25rem;
  letter-spacing: 0.2px;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}
.a4-table th {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  text-align: left;
}
.a4-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
.a4-table tr:nth-child(even) td {
  background: #f8fafc;
}

.a4-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 0.7rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #475569;
  gap: 1.2rem;
}
.a4-footer-left {
  flex: 1 1 auto;
  line-height: 1.5;
  white-space: nowrap;
}
.a4-footer-right {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}

/* Print CSS - CHUẨN 1 TRANG DUY NHẤT (1/A4) */
@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* BẮT BUỘC: Ẩn hoàn toàn tất cả các phần tử trên trang để không bị nhảy ra 14 trang trắng */
  body > *:not(#a4PrintModal) {
    display: none !important;
  }
  body.printing-a4-mode > *:not(#a4PrintModal) {
    display: none !important;
  }
  #a4PrintModal {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    z-index: 999999 !important;
    overflow: visible !important;
  }
  .a4-modal-header,
  .no-print {
    display: none !important;
  }
  .a4-modal-dialog {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .a4-sheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 3mm 5mm !important;
    margin: 0 auto !important;
    overflow: visible !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-top-meta-bar {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-print-head {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-balls-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-qr-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .a4-footer {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  @page {
    size: A4 portrait;
    margin: 5mm 8mm;
  }
}
}



/* --- TUY HUNG HOSTED COMPREHENSIVE LOTTERY ARTICLES --- */
.wlg-article-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  padding: 2.2rem 2.5rem;
  margin: 2rem 0;
  color: #cbd5e1;
  line-height: 1.8;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .wlg-article-container {
    padding: 1.4rem 1.1rem;
    margin: 1.5rem 0;
  }
}
.wlg-article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.wlg-article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wlg-article-content h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.wlg-article-content h4 {
  color: #38bdf8;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.4rem 0 0.5rem;
}
.wlg-article-content p {
  margin-bottom: 1.05rem;
  font-size: 0.97rem;
  color: #cbd5e1;
}
.wlg-article-content strong {
  color: #f8fafc;
}
.wlg-article-content ul, .wlg-article-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.25rem;
}
.wlg-article-content li {
  margin-bottom: 0.55rem;
  font-size: 0.96rem;
}
.wlg-callout-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.25));
  border-left: 4px solid #10b981;
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
  color: #e2e8f0;
}
.wlg-callout-tax {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(120, 53, 15, 0.25));
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
  color: #fef08a;
  font-weight: 600;
}
.wlg-article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wlg-article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
.wlg-article-table th {
  background: rgba(30, 41, 59, 0.95);
  color: #38bdf8;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
.wlg-article-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}
.wlg-article-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.wlg-article-cta-box {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(245, 158, 11, 0.15));
  border: 1.5px solid rgba(225, 29, 72, 0.45);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.8rem 0;
  text-align: center;
}
.wlg-article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0.8rem 0 0.4rem;
}
.wlg-article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.65);
}


/* --- A4 PRINT SHEET QR CODE BOX --- */
.a4-qr-card {
  margin: 0.8rem 0;
  border: 1.5px dashed #0284c7;
  border-radius: 8px;
  background: #f0f9ff;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.a4-qr-left {
  flex: 1;
}
.a4-qr-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.a4-qr-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.a4-qr-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.45;
}
.a4-qr-list li {
  margin-bottom: 0.15rem;
}
.a4-qr-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.a4-qr-img {
  width: 92px;
  height: 92px;
  display: block;
}
.a4-qr-caption {
  font-size: 0.65rem;
  font-weight: 800;
  color: #0284c7;
  margin-top: 0.25rem;
  text-align: center;
  letter-spacing: 0.3px;
}

@media print {
  .a4-qr-card {
    border: 1.5px solid #000 !important;
    background: #fff !important;
    page-break-inside: avoid !important;
  }
  .a4-qr-img {
    width: 85px !important;
    height: 85px !important;
  }
}

.btn-print-vietlott {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-print-vietlott:hover {
  background: #2563eb;
  color: #fff;
}

/* ==================== TRÚNG Ở ĐÂU – DU LỊCH Ở ĐÓ (wt-*) ==================== */
.wt-section {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.6rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(245, 158, 11, 0.14), transparent 60%),
    rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 18px 50px -20px rgba(56, 189, 248, 0.35);
  overflow: hidden;
}
.wt-head { text-align: center; margin-bottom: 1.4rem; }
.wt-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.wt-title {
  margin: 0.8rem 0 0.5rem;
  color: #fff;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}
.wt-grad {
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-sub { margin: 0 auto; max-width: 720px; color: #cbd5e1; font-size: 0.92rem; line-height: 1.6; }

.wt-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.wt-info-card {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.6;
}
.wt-info-title { color: #fde68a; font-weight: 800; font-size: 0.98rem; margin-bottom: 0.55rem; }
.wt-info-card ul, .wt-info-card ol { margin: 0; padding-left: 1.15rem; }
.wt-info-card li { margin-bottom: 0.4rem; }
.wt-info-card strong { color: #fff; }

.wt-tours-label { color: #fff; font-weight: 800; font-size: 1rem; margin: 0 0 0.8rem; }
.wt-tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.wt-tour-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.wt-tour-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 14px 30px -12px rgba(245, 158, 11, 0.45);
}
.wt-tour-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.wt-tour-icon { font-size: 1.8rem; line-height: 1; transition: transform 0.25s ease; }
.wt-tour-card:hover .wt-tour-icon { transform: scale(1.15) rotate(-6deg); }
.wt-tour-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.wt-tour-city { color: #7dd3fc; font-size: 0.76rem; font-weight: 700; }
.wt-tour-title { color: #fff; font-weight: 800; font-size: 0.95rem; margin: 0.25rem 0 0.35rem; line-height: 1.35; }
.wt-tour-desc { color: #94a3b8; font-size: 0.82rem; line-height: 1.5; margin: 0 0 0.7rem; flex: 1; }
.wt-tour-cta { color: #fbbf24; font-size: 0.82rem; font-weight: 800; }

.wt-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.4rem; }
.wt-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.wt-cta:hover { transform: translateY(-2px); filter: brightness(1.12); }
.wt-cta-fly { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.wt-cta-hotel { background: linear-gradient(135deg, #f59e0b, #d97706); }
.wt-cta-esim { background: linear-gradient(135deg, #10b981, #059669); }
.wt-note { margin: 1rem 0 0; color: #64748b; font-size: 0.75rem; text-align: center; line-height: 1.5; }
.wt-cta-guide { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.wt-ladder { margin: 0 0 1.4rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(250, 204, 21, 0.06); border: 1px solid rgba(250, 204, 21, 0.25); }
.wt-ladder-row { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; border-top: 1px dashed rgba(255,255,255,0.08); }
.wt-ladder-row:first-of-type { border-top: 0; }
.wt-ladder-ico { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.wt-ladder-label { color: #fde68a; font-weight: 800; font-size: 0.92rem; }
.wt-ladder-prizes { display: inline-block; margin-left: 0.35rem; color: #94a3b8; font-weight: 600; font-size: 0.78rem; }
.wt-ladder-plan { color: #cbd5e1; font-size: 0.86rem; line-height: 1.5; margin-top: 0.15rem; }
@media (max-width: 560px) { .wt-section { padding: 1.1rem; } .wt-cta { width: 100%; justify-content: center; } }
@media print { .wt-section { display: none !important; } }