/* =============================================
   811 BET LOGIN APP — DESIGN SYSTEM
   Dark immersive · Neon #00F0C8 · Gold #C8A84B
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #0D0D1A;
  color: #E8E8F0;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.65;
  background: #0D0D1A;
  color: #E8E8F0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.2;
  color: #F0F0FA;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.9rem); margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: #00F0C8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #C8A84B; }

strong { color: #F0F0FA; font-weight: 700; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: #00F0C8;
  color: #0D0D1A;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Glass Card Utility --- */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,240,200,0.18);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.75rem 2rem;
}

/* --- Eyebrow Labels --- */
.eyebrow {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #00F0C8;
  margin-bottom: 0.45rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,13,26,0.92);
  border-bottom: 1px solid rgba(0,240,200,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #C8A84B;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.brand img { border-radius: 6px; }
.brand:hover { color: #00F0C8; }

/* --- Nav Toggle (mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(0,240,200,0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #00F0C8;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Main Nav --- */
.main-nav {
  flex: 1;
  overflow: hidden;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
}
.nav-row::-webkit-scrollbar { display: none; }

.nav-row a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #B8B8CC;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-row a:hover,
.nav-row a[aria-current="page"] {
  color: #00F0C8;
  background: rgba(0,240,200,0.08);
}

/* --- Header CTAs --- */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 0 1rem;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta-signup {
  background: #00F0C8;
  color: #0D0D1A;
  border: 2px solid #00F0C8;
}
.cta-signup:hover {
  background: #00d4b0;
  border-color: #00d4b0;
  color: #0D0D1A;
}

.cta-login {
  background: transparent;
  color: #C8A84B;
  border: 2px solid #C8A84B;
}
.cta-login:hover {
  background: #C8A84B;
  color: #0D0D1A;
}

/* --- Main & Wrap --- */
main {
  min-height: 60vh;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* --- Hero (Home) --- */
.home-hero {
  margin-bottom: 3rem;
}

.hero-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,200,0.14);
  border-radius: 28px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

@media (min-width: 769px) {
  .hero-article {
    grid-template-columns: 1fr 2fr;
  }
}

.hero-img-wrap img,
.hero-img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.hero-body h1 {
  margin-bottom: 0.5rem;
}

/* --- Home Guides Section --- */
.home-guides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .home-guides {
    grid-template-columns: 240px 1fr;
  }
}

.guides-main h2 {
  margin-bottom: 1.5rem;
}

/* --- Child List (card grid) --- */
.child-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.child-list li > section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.18);
  border-radius: 28px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.child-list li > section:hover {
  border-color: rgba(0,240,200,0.4);
  box-shadow: 0 0 24px rgba(0,240,200,0.1);
}

.child-list h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.child-list h3 a {
  color: #F0F0FA;
  text-decoration: none;
}
.child-list h3 a:hover { color: #00F0C8; }

.child-list p {
  font-size: 0.9rem;
  color: #A8A8C0;
  flex: 1;
  margin-bottom: 0;
}

.card-date {
  font-size: 0.78rem;
  color: #7878A0;
}

.leia-mais {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #00F0C8;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: auto;
}
.leia-mais:hover { color: #C8A84B; }

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 20px;
  padding: 1.5rem;
}

.sidebar-heading {
  font-size: 0.95rem;
  color: #C8A84B;
  margin-bottom: 1rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #A8A8C0;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  margin-bottom: 0.1rem;
}
.sidebar-link:hover,
.sidebar-link.active {
  color: #00F0C8;
  background: rgba(0,240,200,0.07);
}

/* --- Inner Page Layouts (guide/faq/changelog/about/privacy) --- */
.guide-layout,
.faq-layout,
.changelog-layout,
.about-layout,
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .guide-layout,
  .faq-layout,
  .changelog-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 220px 1fr;
  }
}

.guide-article,
.faq-article,
.changelog-article,
.about-article,
.privacy-article {
  min-width: 0;
}

.article-hero-img {
  margin: 1.25rem 0;
  border-radius: 18px;
  overflow: hidden;
}
.article-hero-img img {
  width: 100%;
  display: block;
}

/* --- Byline --- */
.byline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  color: #7878A0;
  margin-bottom: 1.5rem;
  border-left: 3px solid #C8A84B;
  padding-left: 0.75rem;
  line-height: 1.4;
}
.byline strong { color: #C8A84B; font-weight: 700; }
.byline time { color: #9090B0; }

/* --- Page Content --- */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 72ch;
}

.page-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,240,200,0.15);
}

.page-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #C8A84B;
}

.page-content h4 {
  margin-top: 1.25rem;
  color: #00F0C8;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.page-content a {
  color: #00F0C8;
  text-decoration: underline;
}
.page-content a:hover { color: #C8A84B; }

.page-content blockquote {
  border-left: 4px solid #C8A84B;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(200,168,75,0.06);
  border-radius: 0 12px 12px 0;
  color: #C0C0D8;
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.page-content th {
  background: rgba(0,240,200,0.1);
  color: #00F0C8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(0,240,200,0.25);
}

.page-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #C0C0D8;
}

.page-content tr:hover td {
  background: rgba(255,255,255,0.03);
}

.page-content code {
  font-family: 'Courier New', monospace;
  background: rgba(0,240,200,0.08);
  color: #00F0C8;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.page-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,240,200,0.15);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content pre code {
  background: none;
  padding: 0;
}

/* --- FAQ specific --- */
.faq-content details {
  border: 1px solid rgba(0,240,200,0.15);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-content summary {
  padding: 1rem 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #E8E8F0;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
  list-style: none;
}
.faq-content summary::-webkit-details-marker { display: none; }
.faq-content summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: #00F0C8;
  font-weight: 900;
}
.faq-content details[open] summary {
  background: rgba(0,240,200,0.07);
  color: #00F0C8;
}
.faq-content details[open] summary::before {
  content: "−";
}

/* --- Changelog specific --- */
.changelog-content .changelog-entry {
  border-left: 3px solid #00F0C8;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.changelog-content time {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  color: #7878A0;
  margin-bottom: 0.4rem;
}

/* --- Author Card (About) --- */
.author-card {
  margin-bottom: 2rem;
}

.author-card h2 {
  color: #C8A84B;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.author-credentials {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  color: #00F0C8;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.author-bio {
  color: #B0B0C8;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
  background: #080812;
  border-top: 1px solid rgba(0,240,200,0.12);
  padding: 3rem 1.25rem 2rem;
}

.site-footer > div {
  max-width: 1280px;
  margin: 0 auto 2rem;
}

.site-footer > div:last-child {
  margin-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

.footer-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #C8A84B;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.footer-desc {
  font-size: 0.85rem;
  color: #6060A0;
  max-width: 480px;
  line-height: 1.5;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.footer-links nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  color: #8080A8;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-links nav a:hover { color: #00F0C8; }

.trust-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  color: #6868A0;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
}
.trust-links a:hover { color: #00F0C8; }

.footer-trust a[href] {
  font-size: 0.82rem;
  color: #6868A0;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-trust a[href]:hover { color: #00F0C8; }

.responsible-gambling {
  font-size: 0.78rem;
  color: #5858A0;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.footer-legal {
  font-size: 0.72rem;
  color: #404068;
}

/* --- Stage Label --- */
.stage-label {
  color: #C8A84B;
}

/* --- Mobile Nav Collapse --- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    row-gap: 0;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .brand {
    order: 1;
    flex: 1;
  }

  .header-ctas {
    order: 3;
    flex-shrink: 0;
  }

  .main-nav {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 600px;
  }

  .nav-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
    gap: 0;
    overflow-x: visible;
  }

  .nav-row a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .cta {
    font-size: 0.72rem;
    padding: 0 0.65rem;
    height: 40px;
  }

  /* Sidebar below content on mobile */
  .home-guides,
  .guide-layout,
  .faq-layout,
  .changelog-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .guide-article,
  .faq-article,
  .changelog-article,
  .about-article,
  .privacy-article,
  .guides-main {
    order: 1;
  }

  .child-list {
    grid-template-columns: 1fr;
  }

  .hero-article {
    padding: 1.5rem;
  }

  .wrap {
    padding: 1.5rem 1rem 2rem;
  }

  .page-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-ctas {
    gap: 0.35rem;
  }
  .cta {
    font-size: 0.7rem;
    padding: 0 0.5rem;
    height: 40px;
  }
}

/* --- No horizontal scroll guard --- */
@media (max-width: 375px) {
  body { overflow-x: hidden; }
  .page-content table { font-size: 0.78rem; }
  .page-content th,
  .page-content td { padding: 0.5rem 0.6rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}