/* 
====================================================
      LIVENEWS PREMIUM LOTTERY SUITE STYLESHEET
====================================================
ฟีเจอร์: หน้าตรวจผลสลากกินแบ่งรัฐบาลพรีเมียม (Premium Lottery Checker)
การตกแต่ง: โทนหรูหรา Glassmorphism, แอนิเมชันปุ่มลอย, เลเซอร์สแกนเนอร์ และกล่องแสดงผลผู้ชนะ
*/

/* 1. คอนเทนเนอร์หลักและระบบ Grid ของการตรวจสลาก */
.lotto-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(251, 191, 36, 0.25); /* ขอบทองจางๆ นำโชค */
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lotto-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: pulse-slow 10s infinite alternate;
}

@keyframes pulse-slow {
  0% { transform: scale(0.95) translate(0, 0); }
  100% { transform: scale(1.05) translate(5%, 5%); }
}

/* 2. ฟอร์มและช่องกรอกตรวจเลขหวย */
.lotto-checker-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.lotto-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lotto-input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 120px; /* เว้นพื้นที่ให้ปุ่มกล้องสแกน */
  font-size: 24px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lotto-input:focus {
  border-color: #fbbf24; /* ขอบทองเรืองแสงเมื่อโฟกัส */
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
}

.lotto-input::placeholder {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* ปุ่มกล้องสแกนสะกดตา */
.lotto-scan-btn {
  position: absolute;
  right: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lotto-scan-btn:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* 3. ปุ่มกดส่งผลรางวัล */
.lotto-submit-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0b0f19;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lotto-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.4);
}

.lotto-submit-btn:active {
  transform: translateY(0);
}

/* 4. ส่วนแสดงผลลัพธ์รางวัลการตรวจสลาก (Result Overlay) */
.lotto-result-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  display: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lotto-result-card.show {
  transform: scale(1);
  opacity: 1;
  display: block;
}

.result-win {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.result-lose {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

/* 5. ตารางแสดงผลสลากรางวัลทั้งหมด (Prizes Display Layout) */
.lotto-prize-display-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .lotto-prize-display-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.lotto-prize-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.lotto-prize-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.lotto-prize-title {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.lotto-prize-number {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 2px;
}

.lotto-prize-number.small-size {
  font-size: 22px;
  letter-spacing: 1px;
}

.lotto-prize-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* การ์ดรางวัลที่ 1 ใหญ่พิเศษเรืองแสง */
.lotto-prize-card.main-prize {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 30px;
  box-shadow: 0 4px 25px rgba(251, 191, 36, 0.08);
}

.lotto-prize-card.main-prize .lotto-prize-title {
  font-size: 18px;
  color: #fef08a;
  font-weight: 700;
}

.lotto-prize-card.main-prize .lotto-prize-number {
  font-size: 54px;
  letter-spacing: 4px;
  text-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
}

/* รางวัลเลขท้าย 2 ตัว ใหญ่เรืองแสงเด่นเคียงข้าง */
.lotto-prize-card.secondary-prize {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 30px;
  box-shadow: 0 4px 25px rgba(251, 191, 36, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.lotto-prize-card.secondary-prize:hover {
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.06) 100%);
}

.lotto-prize-card.secondary-prize .lotto-prize-title {
  font-size: 18px;
  color: #fef08a;
  font-weight: 700;
}

.lotto-prize-card.secondary-prize .lotto-prize-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 4px;
  text-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
}

.lotto-prize-card.secondary-prize .lotto-prize-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 6. หน้าสแกนหวยจำลองพรีเมียม (Simulated Scanner Overlay) */
.lotto-scanner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lotto-scanner-overlay.show {
  display: flex;
}

.scanner-modal-card {
  width: 90%;
  max-width: 480px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
}

/* ช่องจำลองกล้อง (Viewfinder) */
.scanner-viewfinder {
  width: 100%;
  height: 240px;
  background: #030712;
  border-radius: 16px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

/* เส้นเลเซอร์สีเขียวขยับพริ้วขึ้นลง */
.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 12px #10b981;
  animation: laser-scan 2s infinite ease-in-out;
}

@keyframes laser-scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scanner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #10b981;
  pointer-events: none;
}

.bracket-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.bracket-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bracket-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.bracket-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.scanner-simulated-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: contrast(1.1) brightness(1.05);
}

.scanner-status-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* 7. วงกลมสลับงวด (Draw Selection Dropdown/Selector) */
.draw-selector-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.draw-select-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.draw-select-input:focus {
  border-color: #fbbf24;
}

/* 8. แท็บตรวจหลายใบ */
.lotto-mode-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.lotto-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lotto-mode-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* เอฟเฟกต์พลุกระดาษฉลอง (Confetti Canvas overlay) */
#lotto-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* ====================================================
   9. กล่องป๊อปอัปผลการตรวจรางวัลพรีเมียม (Premium Reveal Modal Overlay)
   ==================================================== */
.lotto-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lotto-modal-overlay.show {
  display: flex;
}

.lotto-reveal-card-content {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lotto-modal-overlay.show .lotto-reveal-card-content {
  transform: scale(1);
  opacity: 1;
}

/* ตกแต่งการ์ดเมื่อถูกหวย (WIN) โทนเหลืองทองอร่ามนำโชค */
.lotto-reveal-card-content.win {
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.9) 0%, rgba(13, 27, 42, 0.95) 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.3), 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ตกแต่งการ์ดหวยกิน (LOSE) โทนมืดหรูหราอมแดงกุหลาบ */
.lotto-reveal-card-content.lose {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(20, 24, 33, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.15), 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ส่วนหัวข้อและเนื้อหาในป๊อปอัป */
.lotto-reveal-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.win .lotto-reveal-title {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.lose .lotto-reveal-title {
  color: #f87171;
}

.lotto-reveal-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.win .lotto-reveal-quote-box {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.03);
}

.lose .lotto-reveal-quote-box {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}

/* ส่วนปุ่มแฮ็กชันและการแชร์ลงโซเชียล */
.lotto-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ปุ่มหลักสำหรับเซฟ Canvas การ์ด */
.lotto-action-btn.download-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.win .lotto-action-btn.download-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0b0f19;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.lose .lotto-action-btn.download-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.lotto-action-btn.download-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ปุ่มแชร์โซเชียลแบนด์ต่างๆ */
.lotto-share-social-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.lotto-share-social-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.lotto-share-social-btn.fb-btn { background: #1877f2; }
.lotto-share-social-btn.x-btn { background: #0f1419; border: 1px solid rgba(255,255,255,0.15); }
.lotto-share-social-btn.line-btn { background: #06c755; }

/* ปุ่มปิดโมดอล */
.lotto-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.lotto-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ====================================================
   10. สไตล์สำหรับระบบช่องกรอกหมายเลขสลากแบบชุด (Dynamic Input Rows)
   ==================================================== */
.lotto-multi-row {
  display: flex;
  gap: 10px;
  align-items: center;
  animation: slideInRow 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRow {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOutRow {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
}

.lotto-multi-remove-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: scale(1.05);
}

.lotto-multi-remove-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#lotto-multi-add-btn:hover {
  background: rgba(251, 191, 36, 0.15) !important;
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
  transform: translateY(-1px);
}

/* 11. เอฟเฟกต์แอนิเมชันถ้วยรางวัลผู้ชนะเปล่งแสงสีทอง (ลบขอบสีแดงออก) */
@keyframes pulse-trophy {
  0% { transform: scale(0.92); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.2)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.45)); }
}

.minor-prize-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  cursor: default;
}
body.light-theme .minor-prize-badge {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

/* 12. เอฟเฟกต์โฮเวอร์ป้ายแสดงรางวัลย่อย 2-5 สวยงามสะดุดตา */
.minor-prize-badge:hover {
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

/* ====================================================
   📊 LOTTO STATISTICS ANALYTICS CHART STYLES (Stage 2 Premium)
   ==================================================== */
.lotto-stats-section {
  margin-top: 32px;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lotto-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.lotto-stats-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lotto-stats-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 12px;
}

.lotto-stats-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lotto-stats-tab-btn:hover {
  color: #ffffff;
}

.lotto-stats-tab-btn.active {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.lotto-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .lotto-stats-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.lotto-stats-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stats-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stats-card-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  border-left: 3px solid #fbbf24;
  padding-left: 10px;
}

.stats-highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stats-highlight-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-highlight-item.hot {
  border-color: rgba(239, 68, 68, 0.15);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, transparent 100%);
}

.stats-highlight-item.cold {
  border-color: rgba(59, 130, 246, 0.15);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

.highlight-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.highlight-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0;
  letter-spacing: 2px;
}

.stats-highlight-item.hot .highlight-value {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.stats-highlight-item.cold .highlight-value {
  color: #60a5fa;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.highlight-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.stats-ratio-wrapper {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px;
  border-radius: 14px;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.ratio-labels strong {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
}

.ratio-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ratio-bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ratio-bar-fill.even {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.ratio-bar-fill.odd {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* 2. Chart Card styles */
.lotto-stats-chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lotto-stats-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.lotto-stats-bar-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(251, 191, 36, 0.15);
  transform: translateX(4px);
}

.lotto-stats-digit-label {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.lotto-stats-bar-row:hover .lotto-stats-digit-label {
  background: #fbbf24;
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.lotto-stats-bar-track {
  flex-grow: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.lotto-stats-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.lotto-stats-bar-row:nth-child(even) .lotto-stats-bar-fill {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
}

.lotto-stats-bar-count {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  width: 50px;
  text-align: right;
}

/* Light Theme overrides */
body.light-theme .lotto-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%) !important;
  border-color: rgba(217, 119, 6, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .lotto-hero-card::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.02) 0%, transparent 60%) !important;
}

body.light-theme .lotto-stats-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

body.light-theme .lotto-stats-title {
  color: #0f172a !important;
}

body.light-theme .lotto-stats-card {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .stats-card-title {
  color: #0f172a !important;
}

body.light-theme .stats-highlight-item {
  background: rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .stats-highlight-item.hot {
  border-color: rgba(239, 68, 68, 0.25) !important;
}

body.light-theme .stats-highlight-item.cold {
  border-color: rgba(59, 130, 246, 0.25) !important;
}

body.light-theme .stats-ratio-wrapper {
  background: rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .ratio-bar-track {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .lotto-stats-bar-row {
  background: rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .lotto-stats-bar-row:hover {
  background: rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .lotto-stats-digit-label {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

body.light-theme .lotto-stats-bar-row:hover .lotto-stats-digit-label {
  background: #fbbf24 !important;
  color: #0f172a !important;
}

body.light-theme .lotto-stats-bar-track {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .lotto-stats-bar-count {
  color: #475569 !important;
}

body.light-theme .lotto-stats-tabs {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* SIDE-BY-SIDE 60%/40% PREMIUM LOTTERY CHECKER GRID */
.lotto-checker-columns {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 60% and 40% split */
  gap: 28px;
  margin-top: 12px;
  width: 100%;
}

.lotto-checker-column-left {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lotto-checker-column-right {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lotto-column-header {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.2);
  padding-bottom: 8px;
}

/* Light theme overrides */
body.light-theme .lotto-checker-column-left,
body.light-theme .lotto-checker-column-right {
  background: rgba(15, 23, 42, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .lotto-column-header {
  border-bottom-color: rgba(217, 119, 6, 0.3) !important;
  color: #d97706 !important;
}

/* Responsive layout */
@media (max-width: 900px) {
  .lotto-checker-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ====================================================
   EXTRACTED PRIZES DISPLAY GRID & SKELETON (Task 3)
   ==================================================== */
.lotto-prize-display-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  margin-top: 24px !important;
}

@media (min-width: 600px) {
  .lotto-prize-display-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@keyframes skeleton-loading {
  0% { background-color: rgba(255, 255, 255, 0.02); }
  50% { background-color: rgba(255, 255, 255, 0.08); }
  100% { background-color: rgba(255, 255, 255, 0.02); }
}

.skeleton-pulse {
  animation: skeleton-loading 1.5s infinite ease-in-out !important;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.skeleton-pulse * {
  visibility: hidden !important;
}

@keyframes skeleton-loading-light {
  0% { background-color: rgba(15, 23, 42, 0.02); }
  50% { background-color: rgba(15, 23, 42, 0.08); }
  100% { background-color: rgba(15, 23, 42, 0.02); }
}

body.light-theme .skeleton-pulse {
  animation: skeleton-loading-light 1.5s infinite ease-in-out !important;
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.05) !important;
}

/* ==================================================== */
/*      🏆 DYNAMIC PREMIUM LOTTERY SHOWCASE GRID        */
/* ==================================================== */
.lotto-showcase-container {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 32px;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-results-panel {
  background: rgba(30, 41, 59, 0.45);
  border-radius: 20px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lotto-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.lotto-results-header h2 {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.lotto-results-header p {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-size: 14px;
  margin: 6px 0 0 0;
  color: #f97316;
  font-weight: 600;
}

.lotto-link-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  color: #cbd5e1 !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lotto-link-all:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.lotto-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.lotto-left-subgrid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lotto-prize-card-large {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lotto-badge-premium {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-card-digits-large {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 4px;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-three-digit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lotto-prize-card-medium {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.lotto-prize-card-tall {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.lotto-card-digits-xl {
  font-size: 80px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Kanit', 'Sarabun', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}

.lotto-card-digits-medium {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Kanit', 'Sarabun', sans-serif;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.lotto-checker-panel {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  color: #0f172a;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lotto-checker-panel h3 {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lotto-select-custom {
  width: 100%;
  padding: 12px 32px 12px 14px;
  border-radius: 10px;
  border: none;
  background-color: #cbd5e1;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-select-custom option {
  background: #ffffff;
  color: #0f172a;
}

.lotto-input-custom {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #eff6ff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-input-custom::placeholder {
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

.lotto-input-custom:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px #ea580c;
}

.lotto-button-custom {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #f97316 0%, #db2777 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.35);
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

.lotto-button-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.45);
}

/* Responsive layout */
@media (max-width: 900px) {
  .lotto-showcase-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .lotto-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Light Theme Compatibility overrides */
body.light-theme .lotto-results-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
body.light-theme .lotto-results-header h2 {
  color: #0f172a;
}
body.light-theme .lotto-results-header p {
  color: #ea580c;
}
body.light-theme .lotto-prize-card-large,
body.light-theme .lotto-prize-card-medium,
body.light-theme .lotto-prize-card-tall {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
body.light-theme .lotto-card-digits-large,
body.light-theme .lotto-card-digits-xl,
body.light-theme .lotto-card-digits-medium {
  color: #0f172a;
}
body.light-theme .lotto-checker-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
body.light-theme .lotto-checker-panel h3 {
  color: #0f172a;
}
body.light-theme .lotto-select-custom {
  background-color: #e2e8f0;
}
body.light-theme .lotto-input-custom {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
body.light-theme .lotto-link-all {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a !important;
}
body.light-theme .lotto-link-all:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #ea580c !important;
  border-color: #ea580c !important;
}

/* Light Theme Scanner compatibility overrides */
body.light-theme .scanner-modal-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}
body.light-theme .scanner-viewfinder {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.05);
}
body.light-theme #close-scanner-btn {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
}
body.light-theme #close-scanner-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* Light Theme overrides for Lotto Cards and Numbers (High Contrast) */
body.light-theme .lotto-prize-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .lotto-prize-card.main-prize {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0.03) 100%) !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
}

body.light-theme .lotto-prize-card.main-prize .lotto-prize-title {
  color: #b45309 !important;
}

body.light-theme .lotto-prize-number {
  color: #b45309 !important;
}

body.light-theme .highlight-value {
  color: #0f172a !important;
}

body.light-theme .stats-highlight-item.hot .highlight-value {
  color: #d97706 !important;
}

body.light-theme .stats-highlight-item.cold .highlight-value {
  color: #2563eb !important;
}

/* ====================================================
   🔮 LOTTO DREAM CALCULATOR WORKSPACE STYLES
   ==================================================== */
.lotto-dream-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .lotto-dream-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.dream-input-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dream-tag-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dream-tag-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: #a78bfa;
  color: #a78bfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

body.light-theme .dream-tag-btn {
  background: rgba(15, 23, 42, 0.03);
}

body.light-theme .dream-tag-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #6d28d9;
  border-color: #8b5cf6;
}

.dream-crystal-ball-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
}

@keyframes breathe-mystical {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2), inset 0 0 5px rgba(139, 92, 246, 0.1);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), inset 0 0 10px rgba(139, 92, 246, 0.3);
  }
}

.crystal-ball-scanner {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px dashed rgba(167, 139, 250, 0.2);
  border-top-color: #a78bfa;
  border-bottom-color: #c084fc;
  border-radius: 50%;
  animation: spin-scanner 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
}

.mystical-core {
  font-size: 44px;
  animation: pulse-core 1.5s ease-in-out infinite alternate;
}

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

@keyframes pulse-core {
  0% { transform: scale(0.85); filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.2)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5)); }
}

.dream-lucky-digit-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dream-lucky-digit-badge:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #a78bfa;
  color: #ffffff;
  transform: translateY(-1px);
}

body.light-theme .dream-lucky-digit-badge {
  background: rgba(139, 92, 246, 0.05);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.15);
}

body.light-theme .dream-lucky-digit-badge:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #4c1d95;
}

.dream-screen-state {
  animation: fadeInState 0.4s ease forwards;
}

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

/* ====================================================
   🏆 MOCKUP-STYLE COMBINED HIGHLIGHT CARD STYLES
   ==================================================== */
.lotto-highlight-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(251, 191, 36, 0.18); /* Softened gold border */
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); /* Removed neon gold glow */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.lotto-highlight-box:hover {
  border-color: rgba(251, 191, 36, 0.3); /* Softer hover border */
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.highlight-top-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-around;
}

.highlight-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.highlight-divider {
  width: 1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(251, 191, 36, 0.4), transparent);
  margin: 0 24px;
}

.lotto-highlight-box .lotto-prize-title {
  font-size: 14px;
  color: #fef08a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.lotto-highlight-box .lotto-prize-number {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 4px;
  text-shadow: 0 0 25px rgba(251, 191, 36, 0.45);
  line-height: 1.15;
}

.secondary-prize-col .lotto-prize-number {
  font-size: 56px;
}

.lotto-highlight-box .lotto-prize-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 600;
}

.highlight-middle-row {
  width: 100%;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.highlight-middle-row .lotto-prize-title {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
}

.highlight-middle-row .lotto-prize-number {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: rgba(251, 191, 36, 0.85) !important;
  letter-spacing: 1px !important;
  text-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-middle-row .lotto-prize-subtext {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

.highlight-bottom-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-around;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 8px;
}

.highlight-column-secondary {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.highlight-divider-secondary {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0 24px;
}

.highlight-bottom-row .lotto-prize-title {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
}

.highlight-bottom-row .lotto-prize-number {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-bottom-row .lotto-prize-subtext {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

/* Secondary prizes grid display underneath */
.lotto-secondary-prizes-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lotto-secondary-prizes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.divider-line {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 8px;
  display: inline-block;
  vertical-align: middle;
}

/* Accordion Toggle Premium Button styling */
#lotto-toggle-minor-prizes-btn {
  background: transparent !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

#lotto-toggle-minor-prizes-btn:hover {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2) !important;
}

/* Responsive adjustment for highlight box */
@media (max-width: 768px) {
  .lotto-highlight-box {
    flex-direction: column;
    gap: 24px;
    padding: 28px;
  }
  .highlight-top-row {
    flex-direction: column;
    gap: 24px;
  }
  .highlight-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(251, 191, 36, 0.4), transparent);
    margin: 12px 0;
  }
  .lotto-highlight-box .lotto-prize-number {
    font-size: 52px;
  }
  .secondary-prize-col .lotto-prize-number {
    font-size: 44px;
  }
  .highlight-bottom-row {
    flex-direction: column;
    gap: 20px;
  }
  .highlight-divider-secondary {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 10px 0;
  }
  .highlight-bottom-row .lotto-prize-number {
    font-size: 24px !important;
  }
}

/* Light theme overrides for highlight box */
body.light-theme .lotto-highlight-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(241, 245, 249, 0.75) 100%);
  border-color: rgba(217, 119, 6, 0.18); /* Softened gold border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.light-theme .highlight-divider {
  background: linear-gradient(to bottom, transparent, rgba(217, 119, 6, 0.3), transparent);
}

body.light-theme .lotto-highlight-box .lotto-prize-title {
  color: #b45309;
}

body.light-theme .lotto-highlight-box .lotto-prize-number {
  color: #d97706;
  text-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
}

body.light-theme #lotto-toggle-minor-prizes-btn {
  border-color: rgba(217, 119, 6, 0.4) !important;
  color: #d97706 !important;
}

body.light-theme #lotto-toggle-minor-prizes-btn:hover {
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: rgba(217, 119, 6, 0.6) !important;
}

body.light-theme .highlight-middle-row {
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

body.light-theme .highlight-middle-row .lotto-prize-title {
  color: var(--text-secondary) !important;
}

body.light-theme .highlight-middle-row .lotto-prize-number {
  color: rgba(217, 119, 6, 0.85) !important;
}

body.light-theme .highlight-bottom-row {
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

body.light-theme .highlight-divider-secondary {
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.1), transparent);
}

body.light-theme .highlight-bottom-row .lotto-prize-title {
  color: var(--text-secondary) !important;
}

body.light-theme .highlight-bottom-row .lotto-prize-number {
  color: #d97706 !important;
  text-shadow: 0 0 10px rgba(217, 119, 6, 0.1) !important;
}

body.light-theme .lotto-prize-number span[style*="width: 1px"],
body.light-theme .lotto-prize-number span[style*="width:1px"] {
  background-color: rgba(15, 23, 42, 0.15) !important;
}
