/* ============================================================
   LIVE SATTA MATKA – PREMIUM DARK THEME
   livesattamatka.com
   ============================================================ */

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

:root {
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #1a1a25;
  --card:         #15151f;
  --card-border:  rgba(255,255,255,0.07);
  --red:          #e63946;
  --red-glow:     rgba(230,57,70,0.35);
  --gold:         #ffd700;
  --gold-light:   #ffe566;
  --green:        #2ec4b6;
  --blue:         #4facfe;
  --purple:       #a78bfa;
  --white:        #ffffff;
  --text:         #e8e8f0;
  --muted:        rgba(255,255,255,0.45);
  --border:       rgba(255,255,255,0.08);
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --header-bg:    #000000;
  --boston-bg:    linear-gradient(135deg, #1a1200, #1f1400, #261800);
}

/* 🌓 LIGHT MODE OVERRIDES */
[data-theme='light'] {
  --bg:           #f3f4f6;
  --bg2:          #ffffff;
  --bg3:          #e5e7eb;
  --card:         #ffffff;
  --card-border:  rgba(0,0,0,0.08);
  --text:         #1f2937;
  --muted:        rgba(31,41,55,0.6);
  --border:       rgba(0,0,0,0.1);
  --shadow:       0 8px 24px rgba(0,0,0,0.08);
  --header-bg:    #1f2937;
  --boston-bg:    linear-gradient(135deg, #fff9e6, #fff3cd, #fff9e6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
  background: linear-gradient(90deg, #c0392b 0%, #e63946 100%);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  height: 36px;
}

.ticker-label {
  background: #8B0000;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  white-space: nowrap;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  animation: ticker-scroll 30s linear infinite;
  padding-left: 20px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  position: relative;
  overflow: hidden;
}

.header-glow {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-logo {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 600px) {
  .main-logo {
    height: 40px;
  }
}

.site-title {
  display: none;
}

.site-url {
  display: none;
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
  50%       { filter: drop-shadow(0 0 15px rgba(255,255,255,0.3)); }
}

.site-url {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-theme-toggle {
  background: rgba(43, 43, 56, 1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  transition: all 0.2s ease;
}
.header-theme-toggle:hover { background: rgba(255,255,255,0.15); border-color: #ffd700; transform: translateY(-1px); }
[data-theme='light'] .header-theme-toggle { background: #e5e7eb; border-color: #d1d5db; color: #1f2937; }

.header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hbadge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-badge {
  background: rgba(230,57,70,0.2);
  border: 1px solid rgba(230,57,70,0.5);
  color: #ff6b6b;
  animation: badge-blink 1.5s ease-in-out infinite;
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fast-badge {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold);
}

.header-refresh-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.header-refresh-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.site-tagline {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-star { color: var(--gold); font-size: 18px; }
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   LUCKY NUMBERS
   ============================================================ */
.lucky-section {
  margin: 28px 0 20px;
  background: linear-gradient(135deg, #15151f, #1e1e2e);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.lucky-section::before {
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

/* =========================================================================
   LUCKY NUMBERS (Dark Theme Matches app.js/index.html)
   ========================================================================= */
.boss-lucky-box {
  background-color: #1a1a24;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 15px;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.boss-lucky-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  text-align: center;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.boss-lucky-body {
  display: flex;
  padding: 15px;
  align-items: center;
}
.boss-lucky-left {
  flex: 0 0 35%;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 15px;
}
.boss-lucky-label {
  color: #ffd700;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.boss-lucky-val {
  color: #ff4757;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}
.boss-lucky-right {
  flex: 1;
  text-align: center;
  padding-left: 15px;
  overflow: hidden; /* For scrolling marquee */
}
.boss-lucky-list-wrap {
  margin-top: 10px;
  background: rgba(0,0,0,0.25);
  padding: 10px 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.boss-lucky-list {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
}
.boss-lucky-list span.fb {
  font-weight: 700;
  color: #a4b0be;
}
.boss-lucky-list span.v {
  color: #38ef7d;
  font-weight: 900;
  font-size: 16px;
}

@media (max-width: 600px) {
  .boss-lucky-body {
    flex-direction: column;
    padding: 15px;
  }
  .boss-lucky-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-right: 0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    width: 100%;
  }
  .boss-lucky-right {
    padding-left: 0;
    width: 100%;
  }
}

.lucky-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lucky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.lucky-card {
  background: linear-gradient(135deg, #1e1e30, #252535);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lucky-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.15);
}

.lucky-card-alt {
  border-color: rgba(230,57,70,0.25);
}

.lucky-card-alt:hover {
  box-shadow: 0 8px 24px rgba(230,57,70,0.15);
}

.lucky-icon { font-size: 24px; margin-bottom: 6px; }

.lucky-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.lucky-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* ============================================================
   LIVE STRIP
   ============================================================ */
.live-strip-section {
  margin: 0 0 20px;
  background: linear-gradient(135deg, #1a0f0f, #200f0f);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.live-strip-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.live-strip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-ring 1.5s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

.live-strip-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.new-badge {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
  animation: badge-blink 1.5s ease-in-out infinite;
}

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

.live-market-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.live-market-item:hover {
  background: rgba(230,57,70,0.08);
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-2px);
}

.live-market-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.live-market-result {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,215,0,0.3);
  line-height: 1;
}

.live-refresh-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  cursor: pointer;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.live-refresh-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* ============================================================
   MARKET SECTION
   ============================================================ */
.market-section { margin: 0 0 28px; }

.market-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(90deg, #8B0000, #c0392b, #e63946, #c0392b, #8B0000);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}

.fire-emoji { font-size: 20px; }

.market-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#markets-root {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

/* ============================================================
   BOSTON LIVE RESULTS SECTION  — dpboss.boston inspired
   ============================================================ */
.boston-live-section {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg2);
  border: 1px solid var(--border);
}

/* ── Bold Banner (pink/magenta gradient like dpboss) ── */
.blv-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #c2006b 0%, #e8007c 40%, #ff2d95 60%, #c2006b 100%);
  position: relative;
}

.blv-pulse {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: blv-blink 1s ease-in-out infinite;
}
@keyframes blv-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}

.blv-banner-icon { font-size: 20px; }

.blv-banner-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

/* ── Sub-bar (source + updated + refresh) ── */
.blv-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: #0c0c18;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blv-subbar-src {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.blv-subbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blv-updated {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.blv-refresh-all {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.blv-refresh-all:hover  { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(168,85,247,0.5); }
.blv-refresh-all:active { transform: scale(0.97); }

/* ── Countdown Strip ── */
.blv-countdown-bar  { height: 3px; background: rgba(255,255,255,0.05); }
.blv-countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #e8007c, #ffd700, #e8007c);
  width: 100%;
  transition: width 1s linear;
}

/* ── Group Label ── */
.blv-group-label {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.05);
}
#blv-lbl-day { border-top: none; }

/* ── Market Grid ── */
.blv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 6px 12px 14px;
}

/* ── Single Market Card ── */
.blv-card {
  background: #0e0e1c;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 10px 10px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

/* LIVE badge */
.blv-card.has-today {
  border-color: rgba(255,215,0,0.3);
  background: #12120d;
}
.blv-card.has-today::before {
  content: 'LIVE';
  position: absolute;
  top: 6px; right: 7px;
  font-size: 9px; font-weight: 900;
  color: #4ade80;
  letter-spacing: 1px;
  background: rgba(74,222,128,0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.blv-card:hover {
  border-color: rgba(232,0,124,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Market name */
.blv-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #e0d8ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Result row */
.blv-card-result {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 7px;
}

.blv-r-open, .blv-r-close {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1;
}
.blv-r-jodi {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(251,191,36,0.6);
  line-height: 1;
  margin: 0 3px;
}
.blv-r-dash {
  font-size: 20px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 4px;
  font-family: 'Rajdhani', sans-serif;
}

/* Time */
.blv-card-time {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

/* Refresh button */
.blv-card-refresh {
  background: rgba(232,0,124,0.12);
  border: 1px solid rgba(232,0,124,0.25);
  color: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  letter-spacing: 0.3px;
  transition: all 0.15s;
}
.blv-card-refresh:hover {
  background: rgba(232,0,124,0.22);
  border-color: rgba(232,0,124,0.5);
  color: #fff;
}
.blv-card-refresh:active { transform: scale(0.97); }
.blv-card-refresh.spinning { animation: blv-spin 0.6s linear infinite; }
@keyframes blv-spin { to { transform: rotate(360deg); } }

/* Closing soon — orange glow */
.blv-card.closing-soon {
  border-color: rgba(251,146,60,0.5) !important;
  animation: blv-close-pulse 1.5s ease-in-out infinite;
}
@keyframes blv-close-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,146,60,0); }
  50%      { box-shadow: 0 0 0 6px rgba(251,146,60,0.15); }
}

/* Shimmer */
.blv-shimmer {
  height: 120px;
  background: linear-gradient(90deg, #0e0e1c 25%, rgba(255,255,255,0.03) 50%, #0e0e1c 75%);
  background-size: 200%;
  animation: shimmer 1.6s infinite;
  border-radius: 10px;
}

/* No-live message */
#blv-no-live {
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
#blv-no-live strong { color: #fbbf24; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .blv-banner-title { font-size: 20px; letter-spacing: 2px; }
  .blv-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 10px 12px; }
  .blv-r-jodi { font-size: 26px; }
  .blv-r-open, .blv-r-close { font-size: 15px; }
}


/* ── Market Row ── */

.market-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 84px;
  transition: background 0.18s ease;
  position: relative;
}

.market-row.has-result {
  background: #111119;
}
.market-row.has-result:nth-child(even) { background: #13131e; }
.market-row.has-result:hover           { background: rgba(255,215,0,0.04); }

.market-row.no-result {
  background: #0d0d14;
  opacity: 0.55;
}
.market-row.no-result:hover { opacity: 0.75; }

.market-row:last-child { border-bottom: none; }

/* ── Bombay Night Special Highlight ── */
.market-row.bn-highlight {
  background: #ffffff !important;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  margin-bottom: 5px;
  border: 2px solid #ff4757;
}
.market-row.bn-highlight .market-name {
  color: #ce003b !important; /* Premium deep red/pink for the title */
  font-weight: 900;
  font-size: 24px !important;
  letter-spacing: 1px;
  text-shadow: none !important;
}
.market-row.bn-highlight .mkt-open, 
.market-row.bn-highlight .mkt-close, 
.market-row.bn-highlight .mkt-jodi {
  text-shadow: none !important;
}
.market-row.bn-highlight .mkt-jodi {
  color: #e6b800 !important; /* A slightly darker gold that is readable on white */
  font-size: 34px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15) !important; /* Soft premium shadow, no stroke */
}
.market-row.bn-highlight .mkt-open, 
.market-row.bn-highlight .mkt-close {
  color: #1d54c4 !important; /* Deep blue for panels */
  font-size: 20px !important; /* Slightly larger panel digits */
}
.market-row.bn-highlight .market-time {
  color: #555 !important;
  font-weight: 700;
  margin-top: 4px;
}

/* ── Jodi / Panel Buttons ── */
.mkt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

.mkt-btn-jodi {
  background: linear-gradient(160deg, #c0392b, #8B0000);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,0.45);
}
.mkt-btn-jodi:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 20px rgba(192,57,43,0.65);
}

.mkt-btn-panel {
  background: linear-gradient(160deg, #1d54c4, #0d3490);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,84,196,0.4);
}
.mkt-btn-panel:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 20px rgba(29,84,196,0.6);
}

/* ── Market Info Centre ── */
.market-info {
  text-align: center;
  padding: 0 10px;
}

.market-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(251,191,36,0.25);
}
.market-row.has-result:hover .market-name { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.4); }

/* ── Result Display ── */
.market-result {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Three-part result: openPana | jodi | closePana */
.mkt-open, .mkt-close {
  font-size: 22px;
  color: #a0c4ff;
  font-weight: 700;
}
.mkt-jodi {
  font-size: 32px;
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255,215,0,0.45);
  padding: 0 2px;
}
.mkt-result-dash {
  font-size: 22px;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
  letter-spacing: 4px;
}

/* ── Market Name Live Badge ── */
.mkt-row-live {
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  animation: mkt-live-pulse 2s infinite;
}
@keyframes mkt-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.95); }
}

.market-time {
  font-size: 11px;
  color: #ffffff;
  font-weight: 800;
  margin-top: 4px;
}

/* ── Collapsible no-data section ── */
.no-data-section {
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.no-data-toggle {
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  user-select: none;
}
.no-data-toggle:hover { color: rgba(255,255,255,0.6); }
.no-data-list {
  display: none;
}
.no-data-section.open .no-data-list {
  display: block;
}

/* Loading shimmer */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg3) 25%, rgba(255,255,255,0.05) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 76px;
}

.mkt-shimmer { height: 76px; border-bottom: 1px solid var(--border); border-radius: 0; }
.mkt-shimmer:last-child { border-bottom: none; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f1c3f 100%);
  border: 1px solid rgba(100,65,200,0.25);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.cta-inner {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

.cta-inner > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cta-btn {
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.25s ease;
}

.cta-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(118,75,162,0.45);
}

.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(118,75,162,0.6); }

.cta-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-secondary:hover { background: rgba(255,255,255,0.14); }

.cta-trust {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}

.info-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.info-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  text-align: justify;
}

.info-text strong { color: rgba(255,255,255,0.75); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #08080f;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-title { font-size: 24px; }
  .logo-icon  { font-size: 32px; }

  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .logo-wrap { justify-content: center; }

  .lucky-value { font-size: 40px; }

  /* Market rows – tablet */
  .market-row {
    grid-template-columns: 70px 1fr 70px;
    padding: 14px 10px;
    min-height: 78px;
  }
  .market-name  { font-size: 15px; }
  .mkt-jodi     { font-size: 26px; }
  .mkt-open,
  .mkt-close    { font-size: 18px; }
  .mkt-btn      { font-size: 12px; padding: 9px 6px; }

  .live-strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner    { flex-direction: column; text-align: center; }
  .footer-nav      { justify-content: center; }
  .cta-inner h2    { font-size: 18px; }
  .cta-buttons     { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  /* Market rows – mobile */
  .market-row {
    grid-template-columns: 58px 1fr 58px;
    padding: 12px 8px;
    min-height: 70px;
  }
  .market-name  { font-size: 13px; letter-spacing: 0.5px; }
  .mkt-jodi     { font-size: 22px; }
  .mkt-open,
  .mkt-close    { font-size: 15px; }
  .mkt-btn      { font-size: 11px; padding: 8px 4px; border-radius: 8px; letter-spacing: 0.5px; }

  .live-strip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .market-row {
    grid-template-columns: 50px 1fr 50px;
    padding: 10px 6px;
  }
  .market-name  { font-size: 12px; }
  .mkt-jodi     { font-size: 20px; }
  .mkt-open,
  .mkt-close    { font-size: 13px; }
  .mkt-btn      { font-size: 10px; padding: 7px 3px; }
  .lucky-grid   { grid-template-columns: 1fr; max-width: 240px; }
  .ticker-content { font-size: 12px; }
}

/* ============================================================
   GLOBAL SEARCH BAR (index.html)
   ============================================================ */
.search-box-wrap {
  margin: 15px auto 25px;
  position: relative;
  z-index: 100;
  padding: 0 16px;
  width: 100%;
}

.main-search-inner {
  background: #1a1a2e;
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  max-width: 550px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.main-search-inner:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  border-color: var(--white);
}

.search-icon {
  font-size: 18px;
  padding: 0 10px;
  color: var(--gold);
  user-select: none;
}

.search-input-field {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: var(--white) !important;
  padding: 10px 5px !important;
  font-size: 16px !important;
  font-family: 'Poppins', sans-serif;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
}

@media (max-width: 768px) {
  .search-box-wrap {
    margin: 10px auto 20px;
  }
  .main-search-inner {
    padding: 6px 10px;
    max-width: 100%;
    margin: 0 8px;
  }
  .search-input-field {
    font-size: 14px;
    padding: 8px 4px !important;
  }
}

/* ============================================================
   FREE GUESSING (index.html) - DARK THEME
   ============================================================ */
.guessing-section {
  margin: 30px auto;
  max-width: 980px;
  padding: 0 10px;
}

.guessing-banner {
  background: linear-gradient(90deg, #c0392b 0%, #e63946 100%);
  padding: 12px 15px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--gold);
}

.guessing-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
}

.guessing-emoji {
  font-size: 20px;
}

.guessing-date-strip {
  background: rgba(0,0,0,0.4);
  color: var(--gold);
  padding: 6px 15px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--card-border);
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.guessing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 0 0 8px 8px;
}

.guessing-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
}

.guessing-card-header {
  padding: 6px 10px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--card-border);
}

.guessing-card-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Color variations using site colors */
.guessing-card.red { border-left: 3px solid var(--red); }
.guessing-card.red .guessing-card-name { color: var(--red); }

.guessing-card.blue { border-left: 3px solid var(--blue); }
.guessing-card.blue .guessing-card-name { color: var(--blue); }

.guessing-card.orange { border-left: 3px solid #ed8936; }
.guessing-card.orange .guessing-card-name { color: #ed8936; }

.guessing-card.green { border-left: 3px solid var(--green); }
.guessing-card.green .guessing-card-name { color: var(--green); }

.guessing-card.purple { border-left: 3px solid var(--purple); }
.guessing-card.purple .guessing-card-name { color: var(--purple); }

.guessing-card.cyan { border-left: 3px solid #00b5d8; }
.guessing-card.cyan .guessing-card-name { color: #00b5d8; }

.guessing-table {
  width: 100%;
  border-collapse: collapse;
}

.guessing-table td {
  padding: 7px 10px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.guessing-table td:first-child {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  width: 50px;
}

.guessing-table td:last-child {
  text-align: right;
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

.guessing-table tr:last-child td { border-bottom: none; }

/* ============================================================
   FLOATING ACTION BAR (Fixed Bottom)
   ============================================================ */
.floating-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  border-top: 1px solid var(--border);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

.fab-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.fab-play {
  background: #fbbf24; /* Gold variant */
  color: #000;
}

.fab-refresh {
  background: #007aff; /* Blue variant */
  color: #fff;
}

.site-footer {
  padding-bottom: 70px; /* Space for fab bar */
}

@media (min-width: 768px) {
  .floating-action-bar {
    padding: 12px 60px;
  }
}

/* ============================================================
   LOADING DOTS ANIMATION
   ============================================================ */
.loading-dots {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.loading-dots span {
  animation: loading-blink 1.4s infinite both;
}
.loading-dots span:nth-child(1) { animation-delay: 0.1s; }
.loading-dots span:nth-child(2) { animation-delay: 0.3s; }
.loading-dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes loading-blink {
  0%   { opacity: 0.1; }
  20%  { opacity: 1; }
  100% { opacity: 0.1; }
}