@font-face {
  font-family: 'Sarabun';
  src: url('/assets/fonts/Sarabun-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg-primary: #0F172A;
  --bg-elevated: #1E293B;
  --bg-card: #162033;
  --bg-glass: rgba(30, 41, 59, 0.88);
  --border-subtle: #334155;
  --border-highlight: rgba(56, 189, 248, 0.45);
  --border-gold: rgba(253, 224, 71, 0.4);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --accent-gold: #FDE047;
  --accent-amber: #F59E0B;
  --accent-sky: #38BDF8;
  --accent-blue: #2563EB;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -8px rgba(2, 6, 23, 0.65);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.28) 0%, rgba(15, 23, 42, 0) 65%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  padding-bottom: 88px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, select, input {
  font-family: inherit;
}

.num-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.2);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #60A5FA;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* Primary Function Nav Bar */
.func-nav {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.func-nav::-webkit-scrollbar {
  display: none;
}

.func-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  min-width: max-content;
}

.func-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.func-nav-link:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
}

.func-nav-link.active {
  background: rgba(253, 224, 71, 0.12);
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

/* Hero / Page Banner */
.page-hero {
  padding: 24px 0 16px;
}

.hero-card {
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 68ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-gold {
  background: rgba(253, 224, 71, 0.14);
  color: var(--accent-gold);
  border-color: rgba(253, 224, 71, 0.35);
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}

button.badge {
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

button.badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

button.badge:active {
  transform: translateY(0);
}

.card-highlight {
  animation: cardPulse 1.8s ease-out;
  border-color: var(--accent-gold) !important;
}

@keyframes cardPulse {
  0% { transform: scale(1.02); box-shadow: 0 0 24px rgba(253, 224, 71, 0.4); }
  50% { transform: scale(1.01); box-shadow: 0 0 16px rgba(253, 224, 71, 0.25); }
  100% { transform: scale(1); box-shadow: none; }
}

/* Category & Lottery Selector Bar */
.selector-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.selector-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-tab {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--accent-sky);
  color: #FFFFFF;
}

.cat-tab.active {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: #60A5FA;
}

.lotto-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.lotto-pill {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.lotto-pill:hover {
  border-color: var(--accent-gold);
  background: rgba(253, 224, 71, 0.06);
}

.lotto-pill.active {
  background: rgba(253, 224, 71, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
}

.lotto-pill-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Filter Controls */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.select-input, .text-input {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.select-input:focus, .text-input:focus {
  border-color: var(--accent-sky);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: 1.5px solid #60A5FA;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%);
  color: #0F172A;
  border: 1.5px solid #FEF08A;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: transform 0.15s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
}

/* Cards & Data Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.result-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  padding-bottom: 10px;
}

.result-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.result-card-time {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.prize-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prize-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.prize-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.prize-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.prize-number.gold {
  color: var(--accent-gold);
}

.prize-number.sky {
  color: var(--accent-sky);
}

.result-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 4px;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.card-action-link {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.card-action-link:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
}

/* Data Tables (History, Daily, Frequent, Formula) */
.table-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.data-table th {
  background: #0B1120;
  color: var(--accent-gold);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.data-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.45);
}

.data-table tr:hover td {
  background: rgba(56, 189, 248, 0.08);
}

.num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2px;
  font-variant-numeric: tabular-nums;
}

.num-pill.hit {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.num-pill.gold {
  background: rgba(253, 224, 71, 0.16);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Locked / Gated App Funnel Section */
.locked-funnel-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0;
  box-shadow: 0 14px 40px rgba(234, 179, 8, 0.15);
  overflow: hidden;
}

.blurred-preview {
  filter: blur(5px);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
  margin-bottom: 16px;
}

.locked-overlay-content {
  max-width: 560px;
  margin: 0 auto;
}

.locked-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.locked-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

/* Monetization: AdSense Slot & Affiliate Grid (CLS Protected) */
.ad-slot-container {
  margin: 20px 0;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style;
  box-sizing: border-box;
}

.ad-slot-container[data-position="top"] {
  min-height: 100px;
}

.ad-slot-container[data-position="middle"] {
  min-height: 220px;
}

.ad-slot-container[data-position="bottom"] {
  min-height: 120px;
}

@media (max-width: 640px) {
  .ad-slot-container[data-position="top"] {
    min-height: 155px;
  }
  .ad-slot-container[data-position="middle"] {
    min-height: 175px;
  }
  .ad-slot-container[data-position="bottom"] {
    min-height: 155px;
  }
}

.ad-fallback-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(234, 179, 8, 0.14) 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .ad-fallback-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
    text-align: center;
  }
  .ad-fallback-banner .btn-gold {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

.affiliate-section {
  margin: 26px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.affiliate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.affiliate-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.affiliate-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.affiliate-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

.affiliate-thumb {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #0B1120;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.affiliate-card:hover .affiliate-thumb img {
  transform: scale(1.03);
}

.affiliate-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FDBA74;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.affiliate-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EE4D2D;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
}

.affiliate-disclosure {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Sticky Smart App Banner */
.sticky-app-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border-gold);
  padding: 10px 16px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sticky-app-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-app-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-app-info img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
}

.ad-slot-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
  text-align: center;
}

.sticky-app-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
}

.sticky-app-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
  body.has-sticky-bar {
    padding-bottom: 74px;
  }
}

/* Loading Shimmer / Spinner */
.loading-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(253, 224, 71, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }
  .prize-number {
    font-size: 1.35rem;
  }
  .lotto-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Daily Numbers Redesign Styles (UX/UI Pro Max & Lotto UX Engine) */
.segmented-control {
  display: flex;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px;
  gap: 6px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px;
}

.segmented-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.segmented-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.segmented-btn.active {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.18) 0%, rgba(245, 158, 11, 0.25) 100%);
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(253, 224, 71, 0.4);
}

.day-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.day-chip:hover {
  border-color: var(--accent-sky);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.day-chip.active {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(253, 224, 71, 0.15);
}

.day-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Today's Highlight Hero */
.today-hero-box {
  background: linear-gradient(135deg, #1E293B 0%, #172554 50%, #0F172A 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.7);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.today-hero-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.today-top-digits-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.lucky-digit-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 100%);
  color: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  border: 3px solid #FFFBEB;
  transition: transform 0.2s ease;
}

.lucky-digit-circle:hover {
  transform: scale(1.06);
}

.lucky-digit-val {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lucky-digit-rank {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Podium Grid for Top 3 */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.podium-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.podium-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
}

.podium-card.rank-1 {
  border-color: rgba(253, 224, 71, 0.6);
  background: linear-gradient(180deg, rgba(253, 224, 71, 0.08) 0%, var(--bg-elevated) 100%);
}

.podium-card.rank-2 {
  border-color: rgba(148, 163, 184, 0.5);
}

.podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.4);
}

.podium-medal {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.podium-digit {
  font-size: 2.6rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin: 4px 0 8px;
  font-variant-numeric: tabular-nums;
}

.podium-card.rank-1 .podium-digit {
  color: var(--accent-gold);
  text-shadow: 0 0 16px rgba(253, 224, 71, 0.4);
}

.podium-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.gold {
  background: linear-gradient(90deg, #F59E0B, #FDE047);
}

.progress-fill.sky {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
}

.progress-fill.emerald {
  background: linear-gradient(90deg, #059669, #34D399);
}

/* Pair Combinations Box */
.pair-combo-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pair-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pair-tag {
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.35);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-sky);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  background: var(--accent-sky);
  color: #0F172A;
}

@media (max-width: 640px) {
  .podium-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .podium-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 12px 16px;
  }
  .podium-digit {
    font-size: 2rem;
    margin: 0;
  }
  .progress-track {
    width: 110px;
  }
}

.btn-refresh-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-refresh-live:hover {
  background: var(--accent-gold);
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(253, 224, 71, 0.25);
}

.btn-refresh-live:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Digit Highlight & Dimming Styles for Frequent Numbers & Analysis */
.digit-hit {
  display: inline-block;
  color: #34D399 !important;
  font-weight: 900 !important;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 6px;
  padding: 1px 6px;
  margin: 0 1px;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  font-variant-numeric: tabular-nums;
}

.digit-active {
  display: inline-block;
  color: #F8FAFC !important;
  font-weight: 800 !important;
  padding: 1px 4px;
  margin: 0 1px;
  font-variant-numeric: tabular-nums;
}

.digit-dimmed {
  display: inline-block;
  color: #94A3B8 !important;
  opacity: 0.52;
  font-weight: 500 !important;
  padding: 1px 4px;
  margin: 0 1px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
