/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0a0a;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* ===== PREMIUM CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-left: 1px solid #222;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #cc0000, #800000);
  border-radius: 5px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Horizontal scrollbar styling for tables */
.chart-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.chart-table-wrap::-webkit-scrollbar-track {
  background: #111;
  border-top: 1px solid #333;
}

.chart-table-wrap::-webkit-scrollbar-thumb {
  background: #cc0000;
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  background: #1a0000;
  border-bottom: 3px solid #cc0000;
  padding: 10px 0;
  text-align: center;
}

.site-header .logo-text {
  font-size: 28px;
  font-weight: 900;
  color: #ff0000;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px #ff0000;
}

.site-header .logo-sub {
  font-size: 13px;
  color: #ffcc00;
  margin-top: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #cc0000 !important;
  border-bottom: 2px solid #ff0000;
}

.navbar-brand { display: none; }

.navbar .nav-link {
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: #ff0000;
  border-radius: 4px;
  color: #ffff00 !important;
}

.navbar-toggler { border-color: #fff; }
.navbar-toggler-icon { filter: invert(1); }

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: #111;
  border-top: 1px solid #cc0000;
  border-bottom: 1px solid #cc0000;
  padding: 6px 0;
  overflow: hidden;
}

.marquee-wrap marquee {
  color: #ffcc00;
  font-size: 13px;
  font-weight: bold;
}

/* ===== WHATSAPP BANNER ===== */
.wa-banner {
  background: #25D366;
  color: #000;
  text-align: center;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 14px;
}

.wa-banner a { color: #000; text-decoration: underline; font-weight: 900; }

/* ===== SECTION TITLE ===== */
.section-title {
  background: #1a0000;
  border: 1px solid #cc0000;
  color: #ff0000;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  font-weight: 900;
  margin: 15px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LIVE RESULT CARDS ===== */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

.result-card {
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.result-card .card-header {
  padding: 6px 8px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card .card-time {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

.result-card .card-body {
  background: #111;
  padding: 12px 8px;
}

.result-card .result-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.result-card .card-footer {
  background: #1a1a1a;
  padding: 6px;
}

.result-card .chart-btn {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.result-card .chart-btn:hover { background: #ff0000; text-decoration: none; }

/* Card color themes */
.card-blue  .card-header { background: #003399; color: #fff; }
.card-red   .card-header { background: #cc0000; color: #fff; }
.card-yellow .card-header { background: #cc8800; color: #fff; }
.card-green .card-header { background: #006600; color: #fff; }

.text-red    { color: #ff3333 !important; }
.text-yellow { color: #ffcc00 !important; }
.text-green  { color: #00cc44 !important; }
.text-wait   { color: #ff3333 !important; font-size: 20px !important; }

/* ===== TODAY/YESTERDAY CARDS ===== */
.ty-card {
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.ty-card .ty-header {
  padding: 7px 10px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.ty-card .ty-body {
  background: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px;
  gap: 10px;
}

.ty-card .ty-group { text-align: center; flex: 1; }
.ty-card .ty-label { font-size: 12px; color: #fff; display: block; margin-bottom: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.ty-card .ty-val   { font-size: 28px; font-weight: 900; color: #ffcc00; }
.ty-card .ty-divider { width: 1px; background: #444; height: 40px; }

.card-chart-link {
  display: block;
  background: #1a1a1a;
  color: #fff;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #333;
  text-transform: uppercase;
  font-weight: 900;
  transition: all 0.3s;
}
.card-chart-link:hover {
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

/* ===== CHART TABLE ===== */
.chart-section { padding: 10px; }

.chart-table-wrap { overflow-x: auto; margin-bottom: 20px; }

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.chart-table th {
  background: #cc0000;
  color: #fff;
  padding: 8px 10px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-table td {
  background: #111;
  color: #fff;
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.chart-table tr:hover td { background: #1a1a1a; }

.chart-table td.num { color: #ffcc00; font-weight: bold; font-size: 15px; }
.chart-table td.xx  { color: #555; }
.chart-table td.wait { color: #ff3333; }

/* Unified Chart Specifics */
.chart-table tr.section-header td {
  background: #000;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px;
  border-top: 2px solid #cc0000;
  border-bottom: 2px solid #cc0000;
  font-size: 16px;
}

.chart-table tr.game-row td:first-child {
  background: #1a0000;
  font-weight: bold;
  color: #ffcc00;
  text-align: left;
  border-right: 1px solid #333;
  width: 150px;
  min-width: 150px;
  position: sticky;
  left: 0;
  z-index: 10;
  box-shadow: 5px 0 10px rgba(0,0,0,0.5);
}

.chart-table tr.child-row td:first-child {
  background: #111;
  color: #aaa;
  font-size: 12px;
  padding-left: 20px;
}

.chart-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 11;
  background: #cc0000;
}

/* ===== INFO SECTION ===== */
.info-section {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 20px;
  margin: 15px 10px;
  line-height: 1.7;
  color: #ccc;
}

.info-section h2 { color: #ff3333; font-size: 18px; margin-bottom: 10px; }
.info-section h3 { color: #ffcc00; font-size: 15px; margin: 12px 0 6px; }
.info-section p  { margin-bottom: 10px; }
.info-section ul { padding-left: 20px; margin-bottom: 10px; }
.info-section ul li { margin-bottom: 5px; }

/* ===== FAQ ===== */
.faq-section { padding: 10px; }

.faq-item {
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  background: #1a0000;
  padding: 12px 15px;
  font-weight: 800;
  color: #ffcc00;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.faq-question::after { content: '+'; font-size: 18px; color: #ff3333; }
.faq-question.open::after { content: '−'; }

.faq-answer {
  padding: 15px;
  color: #eee;
  display: none;
  line-height: 1.8;
  background: #0a0a0a;
}

.faq-answer.show { display: block; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 10px;
}

.review-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 14px;
}

.review-stars { color: #ffcc00; font-size: 16px; margin-bottom: 6px; }
.review-text  { color: #ccc; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.review-author { color: #ff3333; font-size: 12px; font-weight: bold; }
.review-date   { color: #666; font-size: 11px; }

/* ===== CONTACT FORM ===== */
.contact-section {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
}

.contact-section h2 { color: #ff3333; margin-bottom: 15px; text-align: center; }

.form-label { color: #ccc; font-size: 13px; margin-bottom: 4px; }

.form-control {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  font-size: 14px;
}

.form-control:focus {
  border-color: #cc0000 !important;
  box-shadow: 0 0 0 0.2rem rgba(204,0,0,0.25) !important;
}

.btn-submit {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-submit:hover { background: #ff0000; }

/* ===== YEARLY CHART PAGE ===== */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #111;
  border-bottom: 1px solid #333;
}

.year-tab {
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ccc;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.year-tab:hover, .year-tab.active {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d0d0d;
  border-top: 2px solid #cc0000;
  padding: 20px 15px;
  text-align: center;
  color: #666;
  font-size: 12px;
  margin-top: 30px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer .footer-links a { color: #aaa; font-size: 13px; }
.site-footer .footer-links a:hover { color: #ff3333; }

.site-footer .footer-disclaimer {
  color: #999;
  font-size: 11px;
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.6;
}

/* ===== REFRESH BUTTON ===== */
.refresh-btn {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px auto;
  display: inline-block;
}

.refresh-btn:hover { background: #ff0000; }

/* ===== UPDATE TIME ===== */
.update-time {
  color: #ff3333;
  text-align: center;
  font-size: 13px;
  margin: 5px 0;
}

/* ===== GAME DETAIL PAGE ===== */
.game-hero {
  background: linear-gradient(135deg, #1a0000, #0a0a0a);
  border: 1px solid #cc0000;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin: 15px 10px;
}

.game-hero h1 { color: #ff3333; font-size: 22px; margin-bottom: 8px; }
.game-hero .game-time { color: #ffcc00; font-size: 16px; font-weight: bold; }
.game-hero .game-result-big {
  font-size: 72px;
  font-weight: 900;
  color: #ffcc00;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 0 0 20px #ffcc00;
}


/* ===== LIVE CLOCK SECTION ===== */
.live-clock-section {
  text-align: center;
  padding: 10px;
  font-size: 19px;
  font-weight: bold;
  color: #ff3333;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

/* ===== CONTACT BANNER ===== */
.contact-banner-wrap {
  padding: 0 15px;
  margin: 20px auto;
  max-width: 800px;
}
.contact-banner {
  display: block;
  background: #cc0000;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}
.contact-banner:hover {
  background: #ff0000;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
}


/* ===== INNER PAGE HEADER ===== */
.inner-page-header {
  background: linear-gradient(135deg, #1a0000 0%, #000 100%);
  padding: 40px 0;
  text-align: center;
  border-bottom: 2px solid #cc0000;
  margin-bottom: 30px;
}
.inner-page-title {
  color: #ffcc00;
  font-weight: 900 !important;
  font-size: 2.2rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.inner-page-subtitle {
  color: #aaa;
  font-size: 1rem;
}

/* ===== PREMIUM CARD (DARK) ===== */
.premium-card-dark {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.premium-card-light {
  background: #161616;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  color: #ccc;
}

/* ===== PREMIUM INPUTS ===== */
.premium-input-field {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  padding: 12px 15px !important;
  border-radius: 6px !important;
  width: 100%;
  transition: all 0.3s;
}
.premium-input-field:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.1) !important;
  outline: none;
}

/* ===== CHART TABLE V2 (Individual Game) ===== */
.chart-table-v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}
.chart-table-v2 th {
  background: #cc0000;
  color: #fff;
  padding: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid #b30000;
}
.chart-table-v2 td {
  padding: 10px;
  border: 1px solid #222;
  font-size: 14px;
}
.chart-table-v2 .date-col { 
  font-weight: bold; 
  background: #1a0000 !important; 
  color: #ffcc00 !important; 
  font-size: 13px;
}
.chart-table-v2 tr:hover td { background: #1a1a1a; }

/* ===== SECTION TITLES (Inner) ===== */
.contact-card-title {
  color: #ff3333;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #cc0000;
}

/* ===== BREADCRUMB ADJUSTMENTS ===== */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 0; }
.breadcrumb-item a { color: #ffcc00; text-decoration: none; font-weight: 700; transition: color 0.3s; }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: #fff; opacity: 0.85; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #cc0000; font-weight: bold; }

.inner-page-breadcrumb-wrap {
    background: rgba(0,0,0,0.3);
    padding: 10px 0;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}


/* ===== PREMIUM BTN ===== */
.premium-btn {
  display: inline-block;
  background: #ffcc00;
  color: #000 !important;
  border: none;
  padding: 10px 25px;
  font-weight: 800;
  border-radius: 5px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
}
.premium-btn:hover {
  background: #fff;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

/* NAVBAR DROPDOWN DARK */
.dropdown-menu-dark {
  background-color: #1a1a1a !important;
  border: 1px solid #cc0000 !important;
  border-radius: 8px !important;
  margin-top: 10px !important;
}
.dropdown-item {
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}
.dropdown-item:hover {
  background-color: #cc0000 !important;
}


/* ===== PREMIUM FOOTER ===== */
.premium-footer {
  background: #050505;
  color: #fff;
  padding: 80px 0 40px;
  border-top: 3px solid #cc0000;
  position: relative;
  overflow: hidden;
}
.footer-brand {
  font-size: 24px;
  font-weight: 900;
  color: #ffcc00;
  letter-spacing: 1px;
}
.footer-heading {
  color: #ff3333;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #ffcc00;
}
.footer-text {
  color: #aaa;
  line-height: 1.8;
  font-size: 14px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 12px;
}
.footer-list a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}
.footer-list a:hover {
  color: #ffcc00;
  padding-left: 5px;
}
.social-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: #111;
  color: #ffcc00 !important;
  border: 1px solid #333;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s;
}
.social-icon:hover {
  background: #cc0000;
  color: #fff !important;
  transform: translateY(-3px);
  border-color: #cc0000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .site-header .logo-text { font-size: 22px; }
  .game-hero .game-result-big { font-size: 56px; }
}
