/* =============================================================================
   STYLE.CSS — Gali Satta Result King
   Theme: Dark Red & White — Dramatic, Premium, Eye-catching
   ============================================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --clr-bg-dark:     #0a0a0a;
  --clr-bg-card:     #111111;
  --clr-bg-card2:    #181818;
  --clr-red:         #cc0000;
  --clr-red-light:   #ff1a1a;
  --clr-red-dark:    #8b0000;
  --clr-red-glow:    rgba(204, 0, 0, 0.35);
  --clr-gold:        #ffd700;
  --clr-gold-light:  #ffe566;
  --clr-white:       #ffffff;
  --clr-gray-100:    #f5f5f5;
  --clr-gray-200:    #e0e0e0;
  --clr-gray-400:    #999999;
  --clr-gray-600:    #555555;
  --clr-gray-800:    #222222;
  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-red:  rgba(204, 0, 0, 0.4);

  /* Fonts */
  --font-primary:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing */
  --sp-xs:  0.2rem;
  --sp-sm:  0.4rem;
  --sp-md:  0.75rem;
  --sp-lg:  1rem;
  --sp-xl:  1.25rem;
  --sp-2xl: 1.75rem;
  --sp-3xl: 2.25rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.8);
  --shadow-red: 0 4px 30px rgba(204, 0, 0, 0.4);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg-dark);
  color: var(--clr-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-red); border-radius: var(--r-full); }

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--sp-xl);
  position: relative;
}

.section-title span { color: var(--clr-red-light); }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-red), var(--clr-red-light));
  margin: var(--sp-sm) auto 0;
  border-radius: var(--r-full);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-live   { background: var(--clr-red); color: #fff; animation: pulse-badge 2s infinite; }
.badge-gold   { background: var(--clr-gold); color: #000; }

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,0,0,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(204,0,0,0); }
}

/* ============================================================================
   TICKER / MARQUEE BAR
   ============================================================================ */
.ticker-bar {
  background: linear-gradient(90deg, var(--clr-red-dark), var(--clr-red), var(--clr-red-dark));
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
  padding-left: 100%;
}

.ticker-inner:hover { animation-play-state: paused; }

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

/* ============================================================================
   HEADER / NAVBAR
   ============================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border-red);
  box-shadow: 0 2px 20px rgba(204,0,0,0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) 0;
  gap: var(--sp-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-primary);
}

.logo-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.25), rgba(255, 215, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3), 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 12px rgba(255, 215, 0, 0.1);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(255, 215, 0, 0.6),
    transparent
  );
  transform: rotate(30deg);
  animation: logoShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.logo-icon .logo-img {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  animation: logoFloat 3.5s ease-in-out infinite;
}

.logo:hover .logo-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.5), 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.logo:hover .logo-img {
  transform: scale(1.12) rotate(6deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.8));
}

@keyframes logoShimmer {
  0% { left: -120%; opacity: 0; }
  15% { opacity: 0.8; }
  35% { left: 160%; opacity: 0; }
  100% { left: 160%; opacity: 0; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.04); }
}

.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-white);
}
.logo-text span {
  font-size: 0.7rem;
  color: var(--clr-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-gray-200);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-white);
  background: rgba(204,0,0,0.15);
}

.nav-links a.active {
  color: var(--clr-red-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--clr-red), var(--clr-red-dark)) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--r-full) !important;
  box-shadow: 0 2px 12px rgba(204,0,0,0.4);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(204,0,0,0.6) !important; }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: var(--r-full);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  position: relative;
  padding: 1.5rem 0 1rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(204,0,0,0.18) 0%, transparent 70%),
              linear-gradient(180deg, #0d0000 0%, var(--clr-bg-dark) 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,0,0,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(204,0,0,0.12);
  border: 1px solid var(--clr-border-red);
  border-radius: var(--r-full);
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-gold);
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.5px;
}

.dot-live {
  width: 8px; height: 8px;
  background: var(--clr-red-light);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--clr-red-light), var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-gray-400);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
}

/* ============================================================================
   TODAY'S RESULTS — MAIN CARDS
   ============================================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

.result-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: default;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-red-dark), var(--clr-red-light), var(--clr-red-dark));
}

.result-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(204,0,0,0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-border-red);
  box-shadow: 0 12px 40px rgba(204,0,0,0.25);
}

.result-card:hover::after { opacity: 1; }

.card-market {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-sm);
}

.card-number {
  font-family: var(--font-primary);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: var(--sp-md) 0;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.2));
  transition: var(--transition);
}

.result-card:hover .card-number {
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.5));
}

.card-pending {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--clr-gray-600);
  margin: var(--sp-md) 0;
  letter-spacing: 4px;
}

.card-date {
  font-size: 0.82rem;
  color: var(--clr-gray-600);
  font-weight: 500;
}

.card-time {
  font-size: 0.78rem;
  color: var(--clr-red);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================================
   DATE DISPLAY BAR
   ============================================================================ */
.date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.date-pill {
  background: rgba(204,0,0,0.1);
  border: 1px solid var(--clr-border-red);
  border-radius: var(--r-full);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-gold);
}

/* ============================================================================
   SECTIONS SHARED
   ============================================================================ */
.section {
  padding: 1px;
}

.section-dark { background: var(--clr-bg-card); }

/* ============================================================================
   CHART / RECORD TABLE
   ============================================================================ */
.chart-section { padding: 1.25rem 0; }

.chart-tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}

.chart-tab {
  padding: 0.5rem 1.4rem;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-gray-400);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.chart-tab:hover,
.chart-tab.active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
  box-shadow: 0 2px 16px rgba(204,0,0,0.4);
}

.chart-table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

.chart-table thead tr {
  background: linear-gradient(90deg, var(--clr-red-dark), var(--clr-red));
}

.chart-table th {
  padding: var(--sp-md);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.chart-table td {
  padding: 0.75rem var(--sp-md);
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}

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

.chart-table tbody tr:hover td {
  background: rgba(204,0,0,0.06);
}

.chart-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.chart-table tbody tr:nth-child(even):hover td {
  background: rgba(204,0,0,0.06);
}

.num-highlight {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-gold);
}

/* ============================================================================
   FEATURES / WHY US SECTION
   ============================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-lg);
}

.feature-card {
  background: var(--clr-bg-card2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  text-align: center;
  transition: var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border-red);
  box-shadow: var(--shadow-red);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--clr-gray-400);
  line-height: 1.6;
}

/* ============================================================================
   ARCHIVE / HISTORY TABLE
   ============================================================================ */
.archive-filters {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
  align-items: center;
}

.filter-select, .filter-input {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  padding: 0.55rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.filter-select:focus,
.filter-input:focus { border-color: var(--clr-red); box-shadow: 0 0 0 2px rgba(204,0,0,0.2); }

.filter-select option { background: #1a1a1a; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-red), var(--clr-red-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(204,0,0,0.6);
  background: linear-gradient(135deg, var(--clr-red-light), var(--clr-red));
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-gray-200);
}

.btn-secondary:hover {
  border-color: var(--clr-red);
  color: var(--clr-red-light);
  background: rgba(204,0,0,0.08);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-danger { background: #8b0000; color: #fff; }
.btn-danger:hover { background: var(--clr-red); box-shadow: 0 4px 16px rgba(204,0,0,0.5); }
.btn-success { background: #14532d; color: #fff; }
.btn-success:hover { background: #166534; box-shadow: 0 4px 16px rgba(20,83,45,0.5); }

/* ============================================================================
   CONTACT FORM
   ============================================================================ */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-gray-200);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
}

.form-control::placeholder { color: var(--clr-gray-600); }

textarea.form-control { resize: vertical; min-height: 140px; }

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-xl);
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  color: var(--clr-gray-400);
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover, .page-btn.active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
}

/* ============================================================================
   INFO CARDS (About, Contact info)
   ============================================================================ */
.info-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: var(--transition);
}

.info-card:hover { border-color: var(--clr-border-red); }

.info-card h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  color: var(--clr-gold);
}

.info-card p, .info-card li {
  font-size: 0.92rem;
  color: var(--clr-gray-400);
  line-height: 1.8;
}

.info-card ul { padding-left: var(--sp-lg); }

/* ============================================================================
   NOTICE / ALERT BOXES
   ============================================================================ */
.notice-box {
  background: rgba(204,0,0,0.08);
  border: 1px solid var(--clr-border-red);
  border-radius: var(--r-md);
  padding: 2px;
  margin-bottom: 2px;
  margin-top: 2px;
}

.notice-box p {
  font-size: 0.88rem;
  color: var(--clr-gray-200);
  line-height: 1.6;
}

.notice-box strong { color: var(--clr-red-light); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: #050505;
  border-top: 1px solid var(--clr-border-red);
  padding: 1.75rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-brand .logo { margin-bottom: 0.6rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--clr-gray-600);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.35rem; }

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--clr-gray-600);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--clr-red-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--clr-gray-600);
}

.footer-bottom a { color: var(--clr-red); }
.footer-bottom a:hover { color: var(--clr-red-light); }

/* ============================================================================
   DISCLAIMER STRIP
   ============================================================================ */
.disclaimer-strip {
  background: rgba(204,0,0,0.05);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-sm) 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--clr-gray-600);
}

/* ============================================================================
   PAGE BANNER (inner pages)
   ============================================================================ */
.page-banner {
  background: linear-gradient(135deg, #0d0000, var(--clr-bg-card) 60%, #0d0000);
  border-bottom: 1px solid var(--clr-border-red);
  padding: var(--sp-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(204,0,0,0.12) 0%, transparent 70%);
}

.page-banner h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  position: relative;
}

.page-banner h1 span { color: var(--clr-red-light); }

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-sm);
  font-size: 0.85rem;
  color: var(--clr-gray-600);
  position: relative;
}

.breadcrumb a { color: var(--clr-red); }
.breadcrumb a:hover { color: var(--clr-red-light); }

/* ============================================================================
   ADMIN PANEL STYLES
   ============================================================================ */
.admin-body {
  background: #0c0c0c;
  font-family: var(--font-body);
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(204,0,0,0.1) 0%, transparent 70%), #0a0a0a;
}

.admin-login-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-red);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.admin-login-card .logo {
  justify-content: center;
  margin-bottom: var(--sp-xl);
}

.admin-login-card h2 {
  font-family: var(--font-primary);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--sp-lg);
  color: var(--clr-gray-200);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--clr-bg-card);
  border-right: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  padding: var(--sp-xl) 0;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar .logo {
  padding: 0 var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.sidebar-nav { flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 0.75rem var(--sp-lg);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--clr-gray-400);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--clr-white);
  background: rgba(204,0,0,0.1);
  border-left-color: var(--clr-red);
}

.sidebar-nav a span.icon { font-size: 1.1rem; }

.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--clr-bg-card);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-md) var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.admin-topbar h2 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-content {
  padding: var(--sp-xl);
  flex: 1;
}

.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.stat-card {
  background: var(--clr-bg-card2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--clr-border-red); transform: translateY(-2px); }

.stat-icon {
  font-size: 2.2rem;
  width: 52px; height: 52px;
  background: rgba(204,0,0,0.12);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-gold);
  line-height: 1;
}

.stat-info span {
  font-size: 0.82rem;
  color: var(--clr-gray-600);
  font-weight: 500;
}

/* Admin Table */
.admin-table-wrap {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--clr-border);
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.admin-table-head h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
}

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

.admin-table th {
  background: rgba(204,0,0,0.08);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-gray-400);
  border-bottom: 1px solid var(--clr-border);
}

.admin-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* Admin Form Panel */
.admin-form-panel {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.admin-form-panel h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-gold);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-lg);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--sp-lg);
}

.alert-success { background: rgba(20,83,45,0.3); border: 1px solid #166534; color: #4ade80; }
.alert-danger   { background: rgba(139,0,0,0.3);  border: 1px solid var(--clr-red-dark); color: #fca5a5; }
.alert-info     { background: rgba(30,64,175,0.2); border: 1px solid #1e40af; color: #93c5fd; }

/* ============================================================================
   MARKET COLOR ACCENTS
   ============================================================================ */
.market-gali      { border-top-color: #ff4444 !important; }
.market-desawar   { border-top-color: #ff8c00 !important; }
.market-faridabad { border-top-color: var(--clr-gold) !important; }
.market-ghaziabad { border-top-color: #ff44ff !important; }

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up  { animation: fadeInUp 0.6s ease both; }
.animate-fade     { animation: fadeIn 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-3xl: 1.75rem; --sp-2xl: 1.25rem; --sp-xl: 1rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--sp-lg);
    gap: var(--sp-sm);
    border-bottom: 1px solid var(--clr-border-red);
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: var(--r-sm); }
  .nav-toggle { display: flex; }

  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-brand p { max-width: 100%; }

  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }

  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .card-number { font-size: 4rem; }
  .admin-stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   DASHBOARD RESULT CARDS (Today's Result Dashboard)
   Matches the screenshot: dark navy header, white body, orange button
   ============================================================================ */

.dashboard-section {
  padding: 1.5rem 0;
  background: #eef0f5;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 1rem;
}

.dashboard-title {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #1a1f2e;
  margin-bottom: 0.25rem;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Dashboard Card */
.dashboard-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

/* Card Header — dark navy */
.dc-header {
  background: #1a2035;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dc-market {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.dc-time-badge {
  background: #f5a623;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Card Body */
.dc-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}

.dc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dc-label {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

.dc-today-label {
  color: #2196f3;
  font-weight: 600;
}

.dc-value {
  font-family: var(--font-primary);
  font-size: 1.9rem;
  font-weight: 900;
  color: #1a2035;
  line-height: 1;
}

.dc-today-value {
  display: flex;
  align-items: center;
}

/* When today's result IS available */
.dc-result-num {
  font-family: var(--font-primary);
  font-size: 1.9rem;
  font-weight: 900;
  color: #1a2035;
  line-height: 1;
}

/* Pending animated dots (green dashes like in screenshot) */
.dc-pending-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dc-pending-dots span {
  display: inline-block;
  width: 18px;
  height: 4px;
  background: #4caf50;
  border-radius: 2px;
  animation: blink-dot 1.4s infinite ease-in-out;
}

.dc-pending-dots span:nth-child(2) { animation-delay: 0.2s; }
.dc-pending-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink-dot {
  0%, 80%, 100% { opacity: 1; }
  40%           { opacity: 0.2; }
}

/* Card Footer — orange button */
.dc-footer {
  padding: 1.1rem 1.25rem;
  background: #fff;
}

.dc-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f5a623, #e08c00);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(245, 166, 35, 0.35);
}

.dc-btn:hover {
  background: linear-gradient(135deg, #e08c00, #c97b00);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(245, 166, 35, 0.55);
}

/* Responsive: dashboard cards */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-title { font-size: 1.4rem; }
}

/* ============================================================================
/* ============================================================================
   PREMIUM SATTA KING CONSOLIDATED MONTHLY CHART
   ============================================================================ */

.monthly-chart-wrap {
  max-width: 1040px;
  margin: 0 auto var(--sp-2xl);
  background: #12131b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

.monthly-chart-section {
  padding: 1.5rem 0;
}

/* Filter Card */
.mcs-filter-bar {
  max-width: 1040px;
  margin: 0.75rem auto 0.5rem;
  background: linear-gradient(135deg, rgba(26, 27, 38, 0.9), rgba(18, 19, 28, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.mcs-filter-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}

.mcs-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.mcs-filter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.mcs-select-wrapper {
  position: relative;
  min-width: 140px;
  flex: 1;
  max-width: 240px;
}

.mcs-select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  background: #101119;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 13px;
  transition: all 0.25s ease;
}

.mcs-select:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.mcs-go-btn {
  padding: 0.55rem 1.75rem;
  background: linear-gradient(135deg, #e50914, #ff3b30);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.mcs-go-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.5);
  filter: brightness(1.1);
}

/* Title Bar */
.mcs-title-bar {
  background: linear-gradient(135deg, #171824, #12131b);
  border-bottom: 2px solid rgba(229, 9, 20, 0.5);
  padding: 0.85rem 1.25rem;
  text-align: center;
}

.mcs-title-main {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.mcs-title-main span {
  color: var(--clr-red-light);
}

.mcs-markets-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mcs-market-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--clr-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* Table Wrapper */
/* Table Wrapper */
.mcs-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #111219;
}

/* Table */
.mcs-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: var(--font-primary);
  min-width: 0;
  margin: 0;
}

/* Table Header */
.mcs-table thead tr {
  background: #181a26;
}

.mcs-th-date,
.mcs-th {
  padding: 0.45rem 0.2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--clr-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcs-th-date {
  width: 14%;
  min-width: 32px;
  max-width: 48px;
  color: #a0a5b8;
  letter-spacing: 0;
}

.mcs-th:last-child {
  border-right: none;
}

/* Table Rows */
.mcs-row {
  transition: background 0.15s ease;
}

.mcs-row:nth-child(even) td {
  background: #111219;
}

.mcs-row:nth-child(odd) td {
  background: #141620;
}

.mcs-row:hover td {
  background: rgba(229, 9, 20, 0.08) !important;
}

.mcs-row td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.32rem 0.15rem;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.mcs-row td:last-child {
  border-right: none;
}

/* Highlight Today's Row */
.mcs-row.mcs-today td {
  background: rgba(245, 158, 11, 0.09) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.mcs-row.mcs-today td.mcs-td-date {
  border-left: 2px solid var(--clr-gold);
}

/* Date Pill */
.mcs-td-date {
  width: 14%;
  min-width: 32px;
  max-width: 48px;
  font-weight: 700;
  font-size: 0.78rem;
  color: #8e93a6;
  white-space: nowrap;
}

.mcs-date-badge {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9ccd6;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.78rem;
}

.mcs-today .mcs-date-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--clr-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Result cell numbers */
.mcs-td {
  font-size: 0.85rem;
}

.mcs-num {
  display: inline-block;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Red Highlighted Number (First day / Today) */
.mcs-num-red {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.16);
  color: #ff4d4f;
  border: 1px solid rgba(229, 9, 20, 0.35);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Pending XX */
.mcs-xx {
  display: inline-block;
  color: #4b4e60;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation Bar */
.mcs-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #14151f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mcs-nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mcs-nav-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Direct Chart Link Bar */
.mcs-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  margin: 0.65rem 0 0.85rem;
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.25), rgba(255, 215, 0, 0.12));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--r-md);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(255, 215, 0, 0.08);
}

.mcs-info-bar strong {
  color: var(--clr-gold);
  font-weight: 800;
}

.mcs-info-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.mcs-info-text {
  line-height: 1.4;
}

.mcs-info-arrow {
  color: var(--clr-gold);
  font-weight: 800;
  font-size: 1.15rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mcs-info-bar:hover {
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.4), rgba(255, 215, 0, 0.22));
  border-color: var(--clr-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.25);
}

.mcs-info-bar:hover .mcs-info-arrow {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .mcs-title-bar { padding: 0.65rem 0.5rem; }
  .mcs-title-main { font-size: 0.92rem; }
  .mcs-market-pill { font-size: 0.7rem; padding: 0.15rem 0.45rem; }
  .mcs-table-wrap { overflow-x: hidden; }
  .mcs-th, .mcs-th-date { padding: 0.32rem 0.12rem; font-size: 0.72rem; letter-spacing: 0; }
  .mcs-td, .mcs-td-date { padding: 0.28rem 0.1rem; font-size: 0.78rem; }
  .mcs-num { font-size: 0.8rem; }
  .mcs-num-red { font-size: 0.78rem; padding: 0.05rem 0.2rem; }
  .mcs-xx { font-size: 0.7rem; }
  .mcs-info-bar { padding: 0.65rem 0.85rem; font-size: 0.82rem; gap: 0.4rem; }
  .mcs-filter-controls { flex-direction: column; align-items: stretch; }
  .mcs-select-wrapper { max-width: 100%; }
  .mcs-go-btn { width: 100%; }
  .mcs-nav { flex-direction: column; padding: 0.5rem 0.75rem; }
}

@media (max-width: 480px) {
  .mcs-title-bar { padding: 0.5rem 0.35rem; }
  .mcs-title-main { font-size: 0.85rem; }
  .mcs-th, .mcs-th-date { padding: 0.25rem 0.08rem; font-size: 0.68rem; }
  .mcs-td, .mcs-td-date { padding: 0.22rem 0.06rem; font-size: 0.72rem; }
  .mcs-num { font-size: 0.74rem; }
  .mcs-num-red { font-size: 0.72rem; padding: 0.05rem 0.15rem; }
  .mcs-date-badge { font-size: 0.68rem; padding: 0.05rem 0.15rem; }
  .mcs-xx { font-size: 0.65rem; }
  .mcs-info-bar { padding: 0.55rem 0.75rem; font-size: 0.78rem; }
}

/* ============================================================================
   FAQ SECTION — Accordion with SEO-friendly schema markup
   ============================================================================ */

.faq-section {
  padding: 1.75rem 0;
  background: #f5f6fa;
}

.faq-section .section-title span { color: var(--clr-red-light); }

/* Constrain FAQ list width for readability */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Each FAQ item */
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-item.faq-open {
  border-color: var(--clr-red);
  box-shadow: 0 4px 24px rgba(204,0,0,0.1);
}

/* Question button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.4;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-item.faq-open .faq-question {
  color: var(--clr-red);
  background: #fff5f5;
}

/* +/× icon */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1f2e;
  transition: background 0.2s ease, transform 0.3s ease, color 0.2s ease;
  line-height: 1;
}

.faq-item.faq-open .faq-icon {
  background: var(--clr-red);
  color: #fff;
  transform: rotate(45deg);
}

/* Answer panel — smooth expand via max-height trick */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.5rem;
}

.faq-answer:not([hidden]) {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

/* Remove HTML hidden attr display conflict */
.faq-answer[hidden] {
  display: block !important; /* Keep it in flow; we control visibility via max-height */
}

.faq-answer div {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

.faq-answer div strong { color: #1a1f2e; }
.faq-answer div a     { color: var(--clr-red); font-weight: 600; }
.faq-answer div a:hover { color: var(--clr-red-light); text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .faq-question { font-size: 0.92rem; padding: 1rem 1.1rem; }
  .faq-answer { padding: 0 1.1rem; }
  .faq-answer:not([hidden]) { padding: 0 1.1rem 1rem; }
}

