/* ==========================================================================
   MATKARESULTT LUXURY DARK / NIGHT MODE STYLESHEET (Dark Navy/Obsidian + Gold)
   Specially crafted for night viewers (Kalyan Night, Main Bazar, Disawer, Gali)
   Prevents eye strain while maintaining a high-end, prestigious casino look.
   ========================================================================== */

/* 1. Header Dark Mode Toggle Button */
.hdr-dark-toggle {
  flex: 0 0 auto;
  align-self: center;
  background: #ffcc99;
  color: #000000;
  border: 0px solid #4B0082;
  border-radius: 12px;
  font-size: 16px;
  padding: 0;
  width: 40px;
  height: 40px;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  user-select: none;
  box-sizing: border-box;
}

.hdr-dark-toggle:hover {
  background: #ffddb3;
  border-color: #4B0082;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(75, 0, 130, 0.3);
}

.hdr-dark-toggle .dark-icon {
  display: inline-block;
  line-height: 1;
  transition: transform 0.35s ease;
}

@keyframes darkSpinFlip {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.3);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hdr-dark-toggle.rotate-anim .dark-icon {
  animation: darkSpinFlip 0.4s ease-in-out;
}

/* 2. Header PWA 1-Click Install Button */
.hdr-pwa-btn {
  display: none;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border: 1.5px solid #34d399;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  user-select: none;
  height: 32px;
}

.hdr-pwa-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.6);
}

/* 3. Floating Bottom Install Bar */
.pwa-floating-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: linear-gradient(135deg, #001f3f 0%, #0a2d59 60%, #4B0082 100%);
  border: 2px solid #ffff00;
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 0, 0.35);
  z-index: 999999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.pwa-floating-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.pwa-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pwa-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #ffff00;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pwa-bar-info {
  min-width: 0;
  text-align: left;
}

.pwa-bar-title {
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.pwa-bar-desc {
  color: #ffff00;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-bar-install-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: 1.5px solid #34d399;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pwa-bar-install-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: scale(1.03);
}

.pwa-bar-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.pwa-bar-close-btn:hover {
  background: #dc2626;
  color: #fff;
}

/* 4. iOS Safari Modal Sheet */
.pwa-ios-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  align-items: flex-end;
  justify-content: center;
}

.pwa-ios-modal.active {
  display: flex;
}

.pwa-ios-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.pwa-ios-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #001f3f;
  border: 2px solid #ffff00;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: pwaSheetUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  box-sizing: border-box;
}

@keyframes pwaSheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.pwa-ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 0, 0.3);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.pwa-ios-icon-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-ios-icon-box img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid #ffff00;
}

.pwa-ios-icon-box h4 {
  color: #fff;
  font-size: 15px;
  margin: 0;
  font-weight: 900;
}

.pwa-ios-icon-box p {
  color: #ffff00;
  font-size: 11px;
  margin: 2px 0 0;
  font-weight: 700;
}

.pwa-ios-close {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.pwa-step-num {
  background: #4B0082;
  color: #ffff00;
  border: 1px solid #ffff00;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11.5px;
  flex-shrink: 0;
}

.pwa-ios-icon {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
}

.pwa-ios-got-it {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: 1.5px solid #34d399;
  border-radius: 20px;
  padding: 10px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

/* Toast */
.pwa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #001f3f;
  color: #fff;
  border: 1.5px solid #34d399;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 1000001;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.pwa-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   5. GLOBAL LUXURY DARK THEME OVERRIDES (.theme-dark)
   ========================================================================== */

html.theme-dark,
html.theme-dark body,
html.theme-dark main {
  background: #060913 !important;
  color: #f1f5f9 !important;
}

/* --- HEADER IN DARK MODE --- */
html.theme-dark .headm-header {
  background: linear-gradient(to bottom, #0d1527 0%, #050914 100%) !important;
  border-bottom: 2px solid #d4af37 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

html.theme-dark .headm-icon-btn {
  background: #101a2e !important;
  border-color: #d4af37 !important;
  color: #fef08a !important;
}

html.theme-dark .headm-menu-trigger::after {
  background: #d4af37 !important;
}

html.theme-dark .headm-brand-matka {
  color: #ffff00 !important;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.5) !important;
}

html.theme-dark .headm-brand-result {
  color: #ffffff !important;
}

html.theme-dark .headm-live-status {
  background: rgba(212, 175, 55, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

html.theme-dark .headm-live-text {
  color: #fef08a !important;
}

/* --- UNIFIED 3 BUTTONS IN DARK MODE --- */
html.theme-dark .hdr-dark-toggle,
html.theme-dark .hdr-lang-btn,
html.theme-dark .header-search-btn {
  background: #0d1527 !important;
  color: #ffff00 !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .hdr-dark-toggle:hover,
html.theme-dark .hdr-lang-btn:hover,
html.theme-dark .header-search-btn:hover {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .hdr-lang-btn .hdr-lang-text,
html.theme-dark .hdr-lang-btn .hdr-lang-arrow {
  color: #ffff00 !important;
}

html.theme-dark .hdr-lang-btn:hover .hdr-lang-text,
html.theme-dark .hdr-lang-btn:hover .hdr-lang-arrow {
  color: #000000 !important;
}

html.theme-dark .header-search-btn.search-open {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #4ade80 !important;
}

/* --- MENU DROPDOWN IN DARK MODE --- */
html.theme-dark .headm-menu-list {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .headm-menu-group-label {
  color: #d4af37 !important;
  border-bottom-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .headm-menu-item {
  color: #e2e8f0 !important;
}

html.theme-dark .headm-menu-item:hover {
  background: #141f36 !important;
  color: #ffd700 !important;
}

html.theme-dark .headm-nested-content {
  background: #080d19 !important;
  border-left-color: #d4af37 !important;
}

/* --- SEARCH BARS IN DARK MODE --- */
html.theme-dark .search-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .search-box input {
  background: #0d1527 !important;
  color: #ffffff !important;
}

html.theme-dark .search-icon-left {
  color: #d4af37 !important;
}

html.theme-dark .search-clear {
  color: #d4af37 !important;
}

/* --- MAIN MARKET & RESULT CARDS IN DARK MODE --- */
html.theme-dark .market-box2,
html.theme-dark .result-card,
html.theme-dark .starline-card,
html.theme-dark .satta-row {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.15) !important;
}

html.theme-dark .result-card:hover {
  background: #131e36 !important;
  border-color: #ffd700 !important;
}

html.theme-dark .market-title,
html.theme-dark .market-name,
html.theme-dark .card-title {
  color: #fef08a !important;
}

html.theme-dark .market-result,
html.theme-dark .result-num,
html.theme-dark .num {
  color: #ffff00 !important;
}

html.theme-dark .market-time,
html.theme-dark .card-time {
  color: #94a3b8 !important;
}

html.theme-dark .record-btn,
html.theme-dark .chart-btn {
  background: #001f3f !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .record-btn:hover,
html.theme-dark .chart-btn:hover {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .btn:hover,
html.theme-dark .btn:focus,
html.theme-dark .btn:active,
html.theme-dark .btn.touch-active {
  background: #FF178B !important;
  color: #ffffff !important;
}

/* --- SATTA KING SPECIFIC OVERRIDES IN DARK MODE --- */
html.theme-dark .skf-hero-bar {
  background: linear-gradient(135deg, #0d1527 0%, #050914 100%) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .skf-hero-title {
  color: #ffff00 !important;
}

html.theme-dark .skf-big4-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .skf-big4-name {
  color: #ffff00 !important;
}

html.theme-dark .skf-res-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .skf-res-lbl {
  color: #94a3b8 !important;
}

html.theme-dark .skf-table-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-table th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .skf-table td {
  border-bottom-color: rgba(212, 175, 55, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .skf-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.theme-dark .skf-table tbody tr:hover {
  background: #131e36 !important;
}

html.theme-dark .skf-tbl-mname {
  color: #ffff00 !important;
}

html.theme-dark .skf-draw-time-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-tbl-chart-btn {
  background: #001f3f !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-controls-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-search-input {
  background: #050a18 !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-search-icon {
  color: #d4af37 !important;
}

html.theme-dark .skf-slot-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-slot-pill.active {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .skf-tab-btn {
  background: #0d1527 !important;
  color: #e2e8f0 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-tab-btn.active {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .skf-chart-table th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-chart-table td {
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .skf-faq-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .skf-faq-header {
  background: #050a18 !important;
  color: #ffff00 !important;
}

html.theme-dark .skf-faq-q {
  color: #ffff00 !important;
}

html.theme-dark .skf-faq-a {
  color: #cbd5e1 !important;
}

/* --- FOOTER IN DARK MODE --- */
html.theme-dark .matka-footer {
  background: #060913 !important;
  border-top-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .footer-top-header {
  background: #0d1527 !important;
  border-bottom-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .footer-trust-card {
  background: #0d1527 !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .footer-trust-title {
  color: #ffff00 !important;
}

html.theme-dark .footer-trust-sub {
  color: #94a3b8 !important;
}

html.theme-dark .footer-card {
  background: #0d1527 !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .footer-card-head {
  color: #ffff00 !important;
  border-bottom-color: rgba(212, 175, 55, 0.2) !important;
}

html.theme-dark .footer-link-btn {
  background: #101a2e !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

html.theme-dark .footer-link-btn:hover {
  background: #141f36 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .mobile-bottom-nav {
  background: #0d1527 !important;
  border-top-color: #d4af37 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7) !important;
}

html.theme-dark .mob-nav-item {
  color: #94a3b8 !important;
}

html.theme-dark .mob-nav-item.active,
html.theme-dark .mob-nav-item:hover {
  color: #ffff00 !important;
}

html.theme-dark .mobile-menu-sheet {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .sheet-item {
  background: #101a2e !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: #f1f5f9 !important;
}

/* --- LANGUAGE DROPDOWN IN DARK MODE --- */
html.theme-dark .hdr-lang-btn {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #fef08a !important;
}

html.theme-dark .hdr-lang-dropdown {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

html.theme-dark .hdr-lang-dd-head {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .hdr-lang-item {
  background: #101a2e !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .hdr-lang-item:hover {
  background: #141f36 !important;
  border-color: #d4af37 !important;
  color: #ffff00 !important;
}

html.theme-dark .hdr-lang-item.active {
  background: linear-gradient(135deg, #050a18 0%, #1e293b 100%) !important;
  border-color: #d4af37 !important;
  color: #ffff00 !important;
}

html.theme-dark .hdr-lang-item-badge {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #fef08a !important;
}

/* --- PWA FLOATING BAR IN DARK MODE --- */
html.theme-dark .pwa-floating-bar {
  background: linear-gradient(135deg, #050a18 0%, #0d1527 100%) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .pwa-ios-sheet {
  background: #070b19 !important;
  border-color: #d4af37 !important;
}

/* Standalone PWA Mode tweaks */
html.pwa-mode-standalone .pwa-floating-bar,
html.pwa-mode-standalone .hdr-pwa-btn,
html.pwa-mode-standalone .pwa-install-btn,
html.pwa-mode-standalone #hdrPwaBtn {
  display: none !important;
}

/* ==========================================================================
   6. TIME TABLE PAGE (.tt-) IN DARK MODE
   ========================================================================== */
html.theme-dark .tt-hero-card {
  background: linear-gradient(135deg, #0d1527 0%, #050914 100%) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .tt-hero-left h1 {
  color: #ffff00 !important;
}

html.theme-dark .tt-hero-sub {
  color: #94a3b8 !important;
}

html.theme-dark .tt-clock-pill {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-count-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-nav-bar {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .tt-search-input {
  background: #050a18 !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-search-icon {
  color: #d4af37 !important;
}

html.theme-dark .tt-search-clear {
  color: #d4af37 !important;
}

html.theme-dark .tt-jump-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .tt-jump-pill:hover,
html.theme-dark .tt-jump-pill.active {
  background: #d4af37 !important;
  color: #000000 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-cat-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .tt-cat-header {
  background: #050a18 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .tt-cat-title {
  color: #ffff00 !important;
}

html.theme-dark .tt-cat-sub {
  color: #94a3b8 !important;
}

html.theme-dark .tt-table th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .tt-table td {
  border-bottom-color: rgba(212, 175, 55, 0.15) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .tt-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.theme-dark .tt-table tbody tr:hover {
  background: #131e36 !important;
}

html.theme-dark .tt-mname {
  color: #fef08a !important;
}

html.theme-dark .tt-badge-time {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .tt-badge-open {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border-color: #22c55e !important;
}

html.theme-dark .tt-badge-close {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: #ef4444 !important;
}

html.theme-dark .tt-badge-draw {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #fef08a !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-action-btn {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .tt-action-btn:hover {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .tt-draw-card {
  background: #101a2e !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .tt-draw-time {
  color: #ffff00 !important;
}

html.theme-dark .tt-draw-res {
  color: #ffffff !important;
}

/* ==========================================================================
   7. CHARTS HUB PAGE (.ch-) IN DARK MODE
   ========================================================================== */
html.theme-dark .ch-hero-card {
  background: linear-gradient(135deg, #0d1527 0%, #050914 100%) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.25) !important;
}

html.theme-dark .ch-hero-left h1 {
  color: #ffff00 !important;
}

html.theme-dark .ch-hero-sub {
  color: #94a3b8 !important;
}

html.theme-dark .ch-badge-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .ch-nav-bar {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .ch-search-input {
  background: #050a18 !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
}

html.theme-dark .ch-search-icon {
  color: #d4af37 !important;
}

html.theme-dark .ch-search-clear {
  color: #d4af37 !important;
}

html.theme-dark .ch-jump-pill {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .ch-jump-pill:hover,
html.theme-dark .ch-jump-pill.active {
  background: #d4af37 !important;
  color: #000000 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .ch-vip-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .ch-vip-title {
  color: #ffff00 !important;
}

html.theme-dark .ch-vip-time {
  color: #94a3b8 !important;
}

html.theme-dark .ch-btn-action {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .ch-btn-action:hover {
  background: #d4af37 !important;
  color: #000000 !important;
}

html.theme-dark .ch-cat-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .ch-cat-header {
  background: #050a18 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .ch-cat-title {
  color: #ffff00 !important;
}

html.theme-dark .ch-cat-sub {
  color: #94a3b8 !important;
}

html.theme-dark .ch-table th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .ch-table td {
  border-bottom-color: rgba(212, 175, 55, 0.15) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .ch-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.theme-dark .ch-table tbody tr:hover {
  background: #131e36 !important;
}

html.theme-dark .ch-mname {
  color: #fef08a !important;
}

html.theme-dark .ch-badge-time {
  background: #050a18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

html.theme-dark .ch-info-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #cbd5e1 !important;
}

html.theme-dark .ch-info-card h2 {
  color: #ffff00 !important;
}

/* ==========================================================================
   8. INDIVIDUAL JODI & PANEL CHART RECORDS (jodi-chart.php, panel-chart.php)
   ========================================================================== */
html.theme-dark .chart-wrapper,
html.theme-dark .panel-chart-wrapper {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .chart-wrapper table,
html.theme-dark .panel-chart-wrapper table {
  background: #0d1527 !important;
}

html.theme-dark .chart-wrapper th,
html.theme-dark .panel-chart-wrapper th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .chart-wrapper td,
html.theme-dark .panel-chart-wrapper td {
  background: #0d1527 !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .chart-wrapper td.red,
html.theme-dark .panel-chart-wrapper td.red,
html.theme-dark .chart-wrapper span.red {
  color: #ef4444 !important;
}

html.theme-dark .chart-wrapper td.black,
html.theme-dark .panel-chart-wrapper td.black,
html.theme-dark .chart-wrapper span.black {
  color: #ffff00 !important;
}

html.theme-dark .result-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

html.theme-dark .tag-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #e2e8f0 !important;
}

html.theme-dark .live-header {
  background: linear-gradient(to right, #050a18, #0d1527) !important;
  border-color: #d4af37 !important;
  color: #ffff00 !important;
}

html.theme-dark .live-empty-banner {
  background: #111a2e !important;
  color: #fef08a !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* ==========================================================================
   TIMETABLE & FEATURE SECTIONS IN DARK MODE
   ========================================================================== */
html.theme-dark .tt-hero-card {
  border-color: #d4af37 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .tt-nav-bar {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-search-input {
  background: #050a18 !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

html.theme-dark .tt-search-icon,
html.theme-dark .tt-search-clear {
  color: #d4af37 !important;
}

html.theme-dark .tt-cat-card {
  background: #0a1120 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-cat-header {
  background: linear-gradient(135deg, #050a18 0%, #0d1527 100%) !important;
  border-bottom-color: #d4af37 !important;
}

html.theme-dark .tt-table th {
  background: #050a18 !important;
  color: #ffff00 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-table td {
  background: #0d1527 !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: #f1f5f9 !important;
}

html.theme-dark .tt-table tbody tr:nth-child(even) td {
  background: #090f1d !important;
}

html.theme-dark .tt-table tbody tr:hover td {
  background: #141f35 !important;
}

html.theme-dark .tt-mname {
  color: #ffffff !important;
}

html.theme-dark .tt-draw-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-draw-time {
  color: #38bdf8 !important;
}

html.theme-dark .tt-draw-res {
  color: #ffff00 !important;
}

html.theme-dark .tt-feature-card {
  background: #0a1120 !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .tt-feature-header {
  background: linear-gradient(135deg, #050a18 0%, #0d1527 100%) !important;
  border-bottom-color: #d4af37 !important;
  color: #ffff00 !important;
}

html.theme-dark .tt-feature-intro {
  color: #cbd5e1 !important;
}

html.theme-dark .tt-digit-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-digit-card:hover {
  background: #141f35 !important;
  border-color: #ffff00 !important;
}

html.theme-dark .tt-digit-card.active {
  background: #1e3a8a !important;
  border-color: #ffff00 !important;
}

html.theme-dark .tt-digit-num {
  color: #ffff00 !important;
}

html.theme-dark .tt-digit-count {
  color: #cbd5e1 !important;
}

html.theme-dark .tt-matches-box {
  background: #050a18 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-matches-box div>div {
  color: #ffffff !important;
}

html.theme-dark .tt-session-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-session-title {
  color: #ffff00 !important;
}

html.theme-dark .tt-session-time {
  color: #38bdf8 !important;
}

html.theme-dark .tt-session-share {
  color: #4ade80 !important;
}

html.theme-dark .tt-prize-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-prize-rank {
  color: #facc15 !important;
}

html.theme-dark .tt-prize-amount {
  color: #f87171 !important;
}

html.theme-dark .tt-prize-note {
  color: #cbd5e1 !important;
}

html.theme-dark .tt-preset-btn {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-preset-btn.active {
  background: #1e3a8a !important;
  border-color: #ffff00 !important;
}

html.theme-dark .tt-preset-amt {
  color: #ffff00 !important;
}

html.theme-dark .tt-preset-desc {
  color: #94a3b8 !important;
}

html.theme-dark .tt-tds-input-wrap {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-tds-label-row {
  color: #ffff00 !important;
}

html.theme-dark .tt-tds-field {
  background: #050a18 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-tds-field span {
  color: #ffff00 !important;
}

html.theme-dark .tt-tds-field input {
  color: #ffffff !important;
}

html.theme-dark .tt-breakdown-card.tt-card-gross {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-card-gross .tt-bcard-val {
  color: #ffff00 !important;
}

html.theme-dark .tt-breakdown-card.tt-card-tax {
  background: #2a0808 !important;
  border-color: #ef4444 !important;
}

html.theme-dark .tt-breakdown-card.tt-card-inhand {
  background: #052e16 !important;
  border-color: #22c55e !important;
}

html.theme-dark .tt-bumper-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-bumper-name {
  color: #ffffff !important;
}

html.theme-dark .tt-bumper-prize {
  color: #f87171 !important;
}

html.theme-dark .tt-bumper-note {
  color: #94a3b8 !important;
}

html.theme-dark .tt-check-item {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .tt-faq-item {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tt-faq-question {
  color: #ffff00 !important;
}

html.theme-dark .tt-faq-question:hover {
  background: #141f35 !important;
}

html.theme-dark .tt-faq-answer {
  color: #cbd5e1 !important;
}

/* --- ALL LOTTERY SIGNATURE FEATURES DARK MODE OVERRIDES --- */
html.theme-dark .timetable-quick-grid,
html.theme-dark .weekly-schedule-grid {
  background: #060913 !important;
}

html.theme-dark .time-box-item,
html.theme-dark .weekly-schedule-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .time-box-name,
html.theme-dark .ws-day-title {
  color: #ffff00 !important;
}

html.theme-dark .ws-row {
  color: #cbd5e1 !important;
}

html.theme-dark .lucky-digits-box,
html.theme-dark .tds-calculator-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .lucky-intro,
html.theme-dark .tds-intro {
  color: #e2e8f0 !important;
}

html.theme-dark .lucky-digit-card {
  background: #101a2e !important;
  border-color: #3b82f6 !important;
}

html.theme-dark .lucky-digit-card:hover {
  background: #1e293b !important;
}

html.theme-dark .lucky-digit-card.active-filter {
  background: #d4af37 !important;
  border-color: #ffff00 !important;
}

html.theme-dark .lucky-digit-card.active-filter .lucky-digit-count {
  color: #000000 !important;
}

html.theme-dark .lucky-digit-count {
  color: #f1f5f9 !important;
}

html.theme-dark .series-dom-container {
  background: #060913 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .series-dom-header {
  color: #ffff00 !important;
}

html.theme-dark .series-dom-item {
  background: #101a2e !important;
  border-color: #38bdf8 !important;
}

html.theme-dark .series-dom-name {
  color: #ffff00 !important;
}

html.theme-dark .lucky-matches-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .tier-cards-grid {
  background: #060913 !important;
}

html.theme-dark .tier-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tier-rank {
  color: #ffff00 !important;
}

html.theme-dark .tier-sub {
  color: #94a3b8 !important;
}

html.theme-dark .tds-presets-grid .tds-preset-btn {
  background: #101a2e !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tds-presets-grid .tds-preset-btn.active {
  background: #d4af37 !important;
}

html.theme-dark .tds-presets-grid .tds-preset-btn.active .tds-preset-amt {
  color: #000000 !important;
}

html.theme-dark .tds-presets-grid .tds-preset-btn.active .tds-preset-label {
  color: #1e293b !important;
}

html.theme-dark .tds-preset-amt {
  color: #ffff00 !important;
}

html.theme-dark .tds-preset-label {
  color: #cbd5e1 !important;
}

html.theme-dark .tds-input-container {
  background: #060913 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tds-custom-input-wrap {
  background: #101a2e !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tds-number-input {
  color: #ffffff !important;
}

html.theme-dark .tds-currency-symbol {
  color: #ffff00 !important;
}

html.theme-dark .tds-card-gross {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .tds-card-gross .tds-card-value {
  color: #ffff00 !important;
}

html.theme-dark .tds-card-tax {
  background: #2a0808 !important;
  border-color: #ef4444 !important;
}

html.theme-dark .tds-card-inhand {
  background: #052e16 !important;
  border-color: #22c55e !important;
}

html.theme-dark .tds-check-item {
  background: #101a2e !important;
  border-color: #d4af37 !important;
  color: #f1f5f9 !important;
}

html.theme-dark .bumper-cal-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .bumper-cal-name {
  color: #ffffff !important;
}

html.theme-dark .bumper-cal-meta {
  color: #94a3b8 !important;
}

html.theme-dark .claim-step-card {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .claim-step-title {
  color: #ffff00 !important;
}

html.theme-dark .claim-step-desc {
  color: #cbd5e1 !important;
}

html.theme-dark .directorate-card {
  background: #101a2e !important;
  border-color: #d4af37 !important;
  color: #e2e8f0 !important;
}

html.theme-dark .directorate-title {
  color: #ffff00 !important;
}

html.theme-dark .marquee-box {
  background: #0d1527 !important;
  border-color: #d4af37 !important;
}

html.theme-dark .marquee-content {
  color: #ffff00 !important;
}