/* ==========================================================================
   Bônus 20 Reais (bonus20reais.com) — theme layer on top of Bootstrap 5
   Reproduces the original dark casino design tokens (gold + cyan + green).
   Load AFTER bootstrap.min.css so these rules win where they overlap.
   ========================================================================== */

:root {
  /* Dark casino palette */
  --bg: #080b14;            /* page background */
  --bg-2: #0c1120;          /* alt band background */
  --surface: #111a2e;       /* card / panel background */
  --surface-2: #16233f;     /* raised surface */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --gold: #ffc400;
  --gold-2: #ffaa00;
  --cyan: #00e5ff;
  --cyan-2: #18b8ff;
  --green: #19c37d;
  --green-2: #0fa968;
  --red: #ff4d5e;

  --text: #eef2fb;
  --muted: #9fabc4;
  --muted-2: #6f7c97;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --content-max: 1180px;
  --gutter: 16px;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 0 1px rgba(255, 196, 0, 0.35), 0 8px 30px rgba(255, 170, 0, 0.18);
  --glow-cyan: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 8px 30px rgba(0, 229, 255, 0.16);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;

  /* Bootstrap overrides */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-sans);
  --bs-link-color: var(--cyan);
  --bs-link-hover-color: var(--cyan-2);
  --bs-border-color: var(--border);
  --bs-emphasis-color: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
* { scroll-margin-top: 84px; }

body {
  color-scheme: dark;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

/* Decorative ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(55% 45% at 10% 0%, rgba(255, 196, 0, 0.10), transparent 55%),
    radial-gradient(50% 50% at 50% 110%, rgba(25, 195, 125, 0.08), transparent 60%);
  pointer-events: none;
}

img, svg, video, iframe, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout container (max 1180px) — Bootstrap-compatible ---------- */
.container-x {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) { .container-x { padding-inline: 24px; } }

/* ---------- Text helpers ---------- */
.text-gold { color: var(--gold) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-green { color: var(--green) !important; }
.muted { color: var(--muted) !important; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn-x:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary-x { background: linear-gradient(90deg, var(--green), var(--green-2)); color: #042015; box-shadow: 0 8px 24px rgba(25, 195, 125, 0.32); }
.btn-primary-x:hover { color: #042015; }
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1c00; box-shadow: 0 8px 24px rgba(255, 196, 0, 0.32); }
.btn-gold:hover { color: #2a1c00; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-lg-x { min-height: 56px; font-size: 1.1rem; padding-inline: 30px; }
.btn-sm-2 { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.site-header .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link[aria-current="page"] { color: var(--text); background: var(--surface); }
.navbar-toggler {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.navbar-toggler:focus { box-shadow: none; }

/* offcanvas mobile menu */
.offcanvas.mobile-nav { background: var(--bg-2); color: var(--text); border-left: 1px solid var(--border); }
.mobile-nav .nav-link { display: block; padding: 14px 6px; color: var(--text); font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.mobile-nav .nav-link:hover { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 40px 28px; text-align: center; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .hl { color: var(--gold); text-shadow: 0 0 30px rgba(255, 196, 0, 0.35); }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
.hero-art { margin: 26px auto 0; max-width: 720px; }
@media (min-width: 600px) {
  .hero-cta { flex-direction: row; max-width: none; justify-content: center; }
}
@media (min-width: 1100px) { .hero { padding-block: 60px 36px; } }

.site-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ---------- Stat bar ---------- */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  height: 100%;
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card-x {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  color: inherit;
}
.card-x:hover { text-decoration: none; }
.card-glow { transition: box-shadow .15s ease, border-color .15s ease; }
.card-glow:hover { box-shadow: var(--glow-cyan); border-color: rgba(0, 229, 255, 0.4); }
.card-x h3 { margin-bottom: 8px; }
.card-x p { color: var(--muted); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--cyan); }

.icon-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  margin-bottom: 14px;
}
.icon-badge-gold { background: rgba(255, 196, 0, 0.12); border-color: rgba(255, 196, 0, 0.3); color: var(--gold); }

/* Step cards */
.step-card { text-align: center; }
.step-card .step-num {
  width: 46px; height: 46px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1c00; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(255, 196, 0, 0.3);
}

/* ---------- Feature / check / tips lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { flex: 0 0 auto; margin-top: 3px; color: var(--green); }
.tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips-list li { position: relative; padding-left: 26px; }
.tips-list li::before { content: '▸'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.panel-gold { border-color: rgba(255, 196, 0, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.06); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); margin: 0; }
table.data caption { text-align: left; padding: 12px 14px; color: var(--muted); font-size: 0.9rem; caption-side: top; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; vertical-align: top; }
table.data thead th { background: var(--surface-2); color: var(--gold); font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.data td b { color: var(--text); }

/* ---------- Ranking rows ---------- */
.rank-list { display: grid; gap: 14px; }
.rank-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; }
.rank-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  background: var(--surface-2); color: var(--gold); border: 1px solid var(--border);
}
.rank-card.is-top .rank-badge { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1c00; }
.rank-meta h3 { margin: 0 0 4px; font-size: 1.1rem; }
.rank-meta .rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 0.74rem; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(0, 229, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.2); }
.tag-gold { background: rgba(255, 196, 0, 0.12); color: var(--gold); border-color: rgba(255, 196, 0, 0.25); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
@media (min-width: 900px) { .rank-card { grid-template-columns: auto 1fr auto; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 20px; font-size: 0.85rem; color: var(--muted-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs .current { color: var(--text); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.toc.sticky-toc { position: sticky; top: 84px; }
.toc > strong { display: block; font-family: var(--font-display); margin-bottom: 10px; color: var(--text); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--cyan); }

/* ---------- Article body / prose ---------- */
.article, .prose { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--text); }
.prose { color: var(--text); }
.article h2, .prose h2 { margin-top: 40px; scroll-margin-top: 84px; }
.article h3, .prose h3 { margin-top: 26px; scroll-margin-top: 84px; }
.prose p, .article p { margin: 0 0 1rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--cyan-2); }
.prose strong, .article strong { color: #fff; }
.article ul:not(.check-list):not(.tips-list), .prose ul:not(.check-list):not(.tips-list) { padding-left: 22px; }
.article ul li, .article ol li, .prose ul li, .prose ol li { margin-bottom: 8px; }
.article .lead, .prose .lead { font-size: 1.12rem; color: var(--text); }

/* ---------- FAQ (Bootstrap accordion themed) ---------- */
.faq .accordion { --bs-accordion-bg: transparent; }
.faq .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq .accordion-button {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: none;
  padding: 16px 18px;
}
.faq .accordion-button:not(.collapsed) { background: var(--surface); color: var(--gold); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.faq .accordion-button::after {
  width: 1.1rem; height: 1.1rem;
  background-image: none;
  content: '+';
  font-size: 1.5rem; line-height: 1; color: var(--gold);
  display: grid; place-items: center; transform: none;
}
.faq .accordion-button:not(.collapsed)::after { content: '–'; transform: none; }
.faq .accordion-body { padding: 0 18px 18px; color: var(--muted); }
.faq .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Image placeholders ---------- */
.img-ph {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  color: var(--muted-2);
  padding: 18px;
  min-height: 180px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(255, 196, 0, 0.22), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid rgba(255, 196, 0, 0.25);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }

/* ---------- Related links ---------- */
.related-link {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.related-link:hover { text-decoration: none; box-shadow: var(--glow-cyan); border-color: rgba(0, 229, 255, 0.4); }
.related-link h3 { font-size: 1.05rem; margin-bottom: 6px; }
.related-link p { color: var(--muted); margin: 0; font-size: 0.9rem; }

/* ---------- Notice / disclaimer ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 77, 94, 0.08);
  border: 1px solid rgba(255, 77, 94, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.notice svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.notice strong { color: var(--text); }

/* ---------- Section band helper ---------- */
.section { padding-block: 48px; }
.section-tight { padding-block: 32px; }
.band-2 { background: var(--bg-2); }
@media (min-width: 900px) { .section { padding-block: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 40px; padding-top: 44px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; max-width: 360px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; font-family: var(--font-display); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-pill); }
.badge-pill.plus18 { color: var(--red); border-color: rgba(255, 77, 94, 0.35); font-weight: 700; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding: 22px 0; text-align: center; color: var(--muted-2); font-size: 0.82rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- Responsive & Touch Utilities ---------- */
@media (max-width: 768px) {
  h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }
  table.data { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 576px) {
  body { font-size: 16.5px; line-height: 1.65; }
  .hero-cta { gap: 14px; margin-top: 18px; }
  .hero-cta .btn-x { min-height: 52px; width: 100%; font-size: 1.05rem; }
  .card-x { padding: 18px 16px; }
  .rank-card { padding: 14px 12px; gap: 10px; }
  .rank-badge { width: 48px; height: 48px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

