/* Cricbet99 — local demo theme: dark + emerald accents */
:root {
  --bg: #0a0f14;
  --bg-card: #121a24;
  --border: #1e2a38;
  --text: #e8eef4;
  --muted: #9aa8b4;
  --accent: #00c853;
  --accent-dim: #00a344;
  --warning: #ffb300;
  --max: 1100px;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Header: nav + brand text = white (readable on dark bar) */
header.site-header .logo {
  color: #ffffff;
}
header.site-header .logo span {
  color: #ffffff;
}
header.site-header nav a {
  color: #ffffff;
}
header.site-header nav a:hover,
header.site-header nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
header.site-header .header-cta.btn-primary {
  color: #ffffff;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  row-gap: 0.65rem;
}
/* Full menu visible: nav row wraps; on small screens CTA + logo stay readable */
.main-nav {
  flex: 1 1 220px;
  min-width: 0;
}
.main-nav ul {
  justify-content: flex-start;
  row-gap: 0.4rem;
}
/* Same header on every page: logo | nav | CTA (nav wraps full width on narrow) */
.header-inner--site .main-nav {
  flex: 1 1 100%;
  order: 3;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
  margin: 0;
}
.header-inner--site .main-nav ul {
  justify-content: center;
}
.header-cta {
  flex-shrink: 0;
  margin-left: auto;
}
@media (min-width: 1000px) {
  .header-inner--site .main-nav {
    order: 0;
    width: auto;
    flex: 1 1 auto;
    border-top: none;
    padding-top: 0;
  }
  .header-inner--site .main-nav ul {
    justify-content: center;
  }
}
@media (max-width: 999px) {
  .header-inner--site {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo cta" "nav nav";
    align-items: center;
  }
  .header-inner--site .logo {
    grid-area: logo;
  }
  .header-inner--site .header-cta {
    grid-area: cta;
  }
  .header-inner--site .main-nav {
    grid-area: nav;
  }
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
/* Default (non-header) if .logo used elsewhere */
.logo span {
  color: var(--accent);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-size: 0.95rem;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #001008;
}
.btn-primary:hover {
  background: var(--accent-dim);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 200, 83, 0.12);
  text-decoration: none;
}
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
section h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.disclaimer {
  background: #1a1508;
  border: 1px solid #3d3318;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #d4c4a0;
  font-size: 0.9rem;
  margin: 1.5rem 0 0;
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
}
.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1319;
  color: var(--text);
  font: inherit;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.page-title {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}
.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}
.sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #001008;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Landing: hero + login column —— */
.hero-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.15fr minmax(300px, 380px);
  }
}
.login-aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: sticky;
  top: 4.5rem;
}
.login-aside h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.recaptcha-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0.75rem 0 0;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.section-prose p {
  margin: 0 0 0.9rem;
  color: #c4ced6;
}
.section-prose h2 {
  margin-top: 2.25rem;
}
.section-prose h2:first-child {
  margin-top: 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (min-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-pill {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
}
.stat-pill strong {
  display: block;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.stat-pill span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.data th,
table.data td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
  background: #0d1319;
}
.sport-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.sport-tile img {
  width: 120px;
  min-width: 120px;
  height: 80px;
  object-fit: cover;
}
.blog-teaser {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .blog-teaser {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .blog-teaser {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-teaser a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}
.blog-teaser a:hover {
  border-color: var(--accent);
}
.blog-teaser .date {
  font-size: 0.8rem;
  color: var(--muted);
}
.faq-wrap details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 0.65rem 1rem;
}
.faq-wrap summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-wrap summary::-webkit-details-marker {
  display: none;
}
.faq-wrap details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.testimonial-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  font-size: 0.92rem;
}
.t-card .who {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.kw-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  font-size: 0.78rem;
}
.kw-grid a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.kw-grid a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.wa-float {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
}
.wa-float:hover {
  filter: brightness(1.05);
}
.anchor-target {
  scroll-margin-top: 5rem;
}
h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
  color: #dfe7ee;
}
hr.soft {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Live cricket iframe — matches site dark + emerald theme */
.cricket-widget-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.cricket-widget-card .widget-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.cricket-widget-card iframe {
  display: block;
  width: 100%;
  min-height: 460px;
  border: 0;
  vertical-align: top;
}
