/* ============================================================================
   Satta Kingn.COM — Advanced Live Result & Upcoming Section (Light Theme)
   Pixel-perfect match with reference design:
   - 100% Light theme (Clean white background, crisp contrast)
   - Top Header: UPCOMING / NEXT UPDATE bar + Live Badge + Live Clock
   - 2 Feature Cards:
       * Left: "JUST OPENED" (Green accent, Trophy badge, large declared number)
       * Right: "NEXT / WAITING" (Blue accent, countdown timer, waiting result)
   - Main Result Heading & Date
   - Green Banner Header: Live Fast Results of Today & Yesterday
   - Dark Slate Sub-Header: Regional Offline Draw Results & Day/Date columns
   - UPCOMING & REST sections with Golden Yellow cards (#f5b800) + Emerald Green left border
   ========================================================================== */

.s786-live-section {
  max-width: 1060px;
  margin: 18px auto 28px;
  padding: 0 14px;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
}

.s786-live-section *,
.s786-live-section *::before,
.s786-live-section *::after {
  box-sizing: border-box;
}

/* ==================== 1. TOP HEADER BAR ==================== */
.s786-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.s786-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e293b;
}

.s786-bar-indicator {
  display: inline-block;
  width: 5px;
  height: 18px;
  background-color: #2563eb;
  border-radius: 2px;
}

.s786-top-title svg {
  color: #2563eb;
  flex-shrink: 0;
}

.s786-top-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s786-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 11px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.s786-live-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: s786Pulse 1.4s infinite;
}

@keyframes s786Pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.s786-clock-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.s786-clock-dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
}

/* ==================== 2. FEATURE CARDS GRID (Always 2 Columns) ==================== */
.s786-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.s786-feat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98px;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
}

.s786-feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

/* Card 1: Just Opened */
.s786-card-opened {
  border: 1px solid #bbf7d0;
}

.s786-pill-opened {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Card 2: Next / Waiting */
.s786-card-next {
  border: 1px solid #bfdbfe;
}

.s786-badges-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.s786-pill-next {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.s786-pill-waiting {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #d97706;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.s786-pill-waiting .s786-wait-dot {
  width: 5px;
  height: 5px;
  background-color: #f59e0b;
  border-radius: 50%;
}

/* Card Header */
.s786-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.s786-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 2.5px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Card Body */
.s786-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 1px 0;
  min-width: 0;
  width: 100%;
}

.s786-card-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

/* INCREASED GAME NAME (Prominent & Bold) */
.s786-card-name {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  word-break: break-word;
}

.s786-card-time {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.s786-card-val-wrap {
  flex-shrink: 0;
  text-align: right;
  margin-left: 4px;
}

.s786-card-opened-number {
  font-size: 38px;
  font-weight: 900;
  color: #059669;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.s786-next-number {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Footer with SMALL COMPACT BUTTON */
.s786-card-footer {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.s786-card-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 1.5px 7px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.s786-card-chart-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==================== Mobile Optimization (2 Columns Clean & Uncropped) ==================== */
@media (max-width: 640px) {
  .s786-live-section {
    padding: 0 8px;
  }

  .s786-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    margin-bottom: 12px;
  }

  .s786-feat-card {
    padding: 7px 7px;
    border-radius: 11px;
    min-height: 88px;
    gap: 4px;
  }

  .s786-card-header {
    gap: 3px;
  }

  .s786-pill-opened,
  .s786-pill-next,
  .s786-pill-waiting {
    font-size: 8px;
    padding: 1.5px 4.5px;
    letter-spacing: 0.01em;
  }

  .s786-pill-opened svg,
  .s786-pill-next svg {
    width: 8px;
    height: 8px;
  }

  .s786-countdown-pill {
    font-size: 9px;
    padding: 1.5px 4px;
    border-radius: 4px;
    gap: 2.5px;
  }

  .s786-countdown-pill svg {
    width: 8px;
    height: 8px;
  }

  .s786-card-body {
    gap: 3px;
    margin: 0;
  }

  /* INCREASED MOBILE GAME NAME */
  .s786-card-name {
    font-size: 15.5px;
    line-height: 1.15;
    font-weight: 900;
  }

  .s786-card-time {
    font-size: 9px;
  }

  .s786-card-opened-number {
    font-size: 27px;
  }

  .s786-next-number {
    font-size: 18px;
  }

  .s786-next-number svg {
    width: 9px;
    height: 9px;
  }

  /* SMALL COMPACT BUTTON ON MOBILE */
  .s786-card-chart-btn {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 9999px;
    width: auto;
  }

  .s786-card-chart-btn svg {
    width: 8px;
    height: 8px;
  }
}

/* ==================== 3. MAIN SECTION TITLE ==================== */
.s786-main-title {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
  text-align: left;
}

/* ==================== 4. BANNER & SUB-HEADER ==================== */
.s786-results-table-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.s786-banner-green {
  background: #2ca873;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  padding: 11px 16px;
  border-radius: 10px 10px 0 0;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .s786-banner-green {
    font-size: 12.5px;
    padding: 9px 10px;
  }
}

.s786-banner-sub {
  background: #2b3445;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
}

.s786-banner-sub-left {
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.s786-banner-sub-cols {
  display: flex;
  gap: 12px;
}

.s786-col-head {
  width: 68px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}

@media (max-width: 600px) {
  .s786-banner-sub {
    padding: 7px 10px;
  }
  .s786-col-head {
    width: 52px;
    font-size: 11.5px;
  }
  .s786-banner-sub-left {
    font-size: 11.5px;
  }
}

/* ==================== 5. CATEGORY SECTION DIVIDERS ==================== */
.s786-cat-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 6px;
  font-size: 13px;
}

.s786-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s786-cat-tag {
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 12px;
  text-transform: uppercase;
}

.s786-cat-tag-upcoming {
  color: #475569;
}

.s786-cat-tag-rest {
  color: #059669;
}

.s786-cat-desc {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.s786-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
}

/* ==================== 6. GOLDEN YELLOW GAME ROWS ==================== */
.s786-game-row {
  background: #f5b800;
  border-left: 6px solid #22c55e;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 9px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease;
}

.s786-game-row:hover {
  transform: translateY(-1px);
}

.s786-game-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s786-game-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.s786-game-name {
  font-size: 18.5px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.s786-chart-pill {
  border: 1px solid rgba(0, 0, 0, 0.28);
  color: #000000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  line-height: 1.2;
  text-transform: uppercase;
}

.s786-chart-pill:hover {
  background: rgba(0, 0, 0, 0.1);
}

.s786-live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.s786-live-indicator-pill .s786-live-dot {
  width: 5px;
  height: 5px;
  background-color: #ef4444;
}

.s786-game-sub-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.s786-game-time-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
}

.s786-game-record-link {
  border: 1px solid rgba(0, 0, 0, 0.28);
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s;
}

.s786-game-record-link:hover {
  background: rgba(0, 0, 0, 0.12);
}

.s786-game-results {
  display: flex;
  gap: 12px;
  align-items: center;
}

.s786-res-val {
  width: 68px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: #000000;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.s786-val-waiting {
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.s786-is-live-draw {
  box-shadow: 0 0 0 1.5px #22c55e, 0 3px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
  .s786-game-row {
    padding: 7px 10px;
    border-left-width: 5px;
  }
  .s786-game-name {
    font-size: 15.5px;
  }
  .s786-res-val {
    width: 52px;
    font-size: 21px;
  }
  .s786-game-results {
    gap: 8px;
  }
  .s786-banner-sub-cols {
    gap: 8px;
  }
}

/* ============================================================================
   DEVA BHAI — Premium Khaiwal Promo Card UI
   ========================================================================== */
.deva-khaiwal-wrap {
  max-width: 1060px;
  margin: 18px auto;
  padding: 0 14px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .deva-khaiwal-wrap {
    padding: 0 8px;
    margin: 14px auto;
  }
}

.deva-khaiwal-card {
  background: linear-gradient(145deg, #fffdf2 0%, #fefce8 50%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.16), 0 4px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, sans-serif;
  color: #1e293b;
  box-sizing: border-box;
}

.deva-khaiwal-card *,
.deva-khaiwal-card *::before,
.deva-khaiwal-card *::after {
  box-sizing: border-box;
}

.deva-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.deva-title {
  font-size: 23px;
  font-weight: 900;
  color: #78350f;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.deva-name-banner {
  display: inline-block;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  padding: 4px 18px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 4px 0 10px;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.22);
}

.deva-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 16px;
}

/* Rates Grid */
.deva-rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .deva-rates-grid {
    gap: 8px;
  }
}

.deva-rate-box {
  background: #ffffff;
  border: 1.5px solid #fcd34d;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.deva-rate-label {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.deva-rate-val {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 3px 0 0;
  line-height: 1.2;
}

.deva-rate-val span {
  color: #059669;
}

/* Trust Features list */
.deva-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.deva-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #451a03;
}

/* Timing Grid */
.deva-timings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
}

@media (max-width: 640px) {
  .deva-timings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.deva-time-item {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.deva-market-name {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.deva-market-time {
  font-size: 11.5px;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* WhatsApp CTA Button */
.deva-cta-wrap {
  margin-top: 6px;
}

.deva-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 12px 30px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  border: 2px solid #86efac;
}

.deva-whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

@media (max-width: 640px) {
  .deva-khaiwal-card {
    padding: 14px 12px;
    border-radius: 16px;
  }
  .deva-whatsapp-btn {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
  }
  .deva-title {
    font-size: 18px;
  }
  .deva-name-banner {
    font-size: 16px;
    padding: 3px 14px;
  }
  .deva-rate-val {
    font-size: 18px;
  }
  .deva-rate-label {
    font-size: 11.5px;
  }
  .deva-feature-chip {
    font-size: 11px;
    padding: 3px 10px;
  }
  .deva-market-name {
    font-size: 12px;
  }
  .deva-market-time {
    font-size: 10.5px;
  }
}
