:root,
[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #152034;
  --surface-2: #1f2c44;
  --text: #f8fafc;
  --muted: #b0bccd;
  --primary: #38bdf8;
  --accent: #7c3aed;
  --success: #22c55e;
  --danger: #f97316;
  --warning: #fbbf24;
  --border: rgba(148, 163, 184, 0.24);
  --hero-grad: rgba(56, 189, 248, 0.15);
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0369a1;
  --accent: #6d28d9;
  --success: #16a34a;
  --danger: #c2410c;
  --warning: #b45309;
  --border: rgba(15, 23, 42, 0.16);
  --hero-grad: rgba(2, 132, 199, 0.12);
}

:root,
[data-theme="dark"],
[data-theme="light"] {
  --mod-megasena: #0a7d3e;
  --mod-lotofacil: #8a2fbd;
  --mod-quina: #2158d6;
  --mod-lotomania: #c2410c;
  --mod-duplasena: #be185d;
  --mod-maismilionaria: #17724e;
  --brand-grad: linear-gradient(120deg, #062a52, #0b4f8a 45%, #0c6a88 100%);
}

[data-accent="megasena"] { --accent: var(--mod-megasena); }
[data-accent="lotofacil"] { --accent: var(--mod-lotofacil); }
[data-accent="quina"] { --accent: var(--mod-quina); }
[data-accent="lotomania"] { --accent: var(--mod-lotomania); }
[data-accent="duplasena"] { --accent: var(--mod-duplasena); }
[data-accent="maismilionaria"] { --accent: var(--mod-maismilionaria); }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
.number-btn:focus-visible,
.menu-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--primary);
  color: #020617;
}

.skip-link:focus {
  left: 16px;
}

header {
  padding: 14px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--brand-grad);
  border-radius: 0 0 20px 20px;
  padding: 4px 20px;
  color: #f8fafc;
}

.topbar a,
.topbar nav a {
  color: rgba(248, 250, 252, 0.85);
}

.topbar nav a:hover,
.topbar nav a.active {
  color: #ffffff;
}

.topbar .brand {
  color: #ffffff;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #062a52;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.topbar .menu-toggle,
.topbar .theme-toggle,
.topbar .btn-auth {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.35);
  background: rgba(248, 250, 252, 0.1);
}

.topbar .btn-cta {
  color: #062a52;
}

.topbar .btn-auth:hover {
  background: #ffffff;
  color: #062a52;
}

.topbar .auth-user {
  color: rgba(248, 250, 252, 0.85);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #020617;
  font-size: 0.7rem;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

.menu-toggle,
.theme-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
}

/* ---------- Conta / login ---------- */
.auth-area { display: flex; align-items: center; gap: 8px; }
.btn-auth { border: 1px solid var(--primary); background: transparent; color: var(--text); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; transition: background .2s ease, color .2s ease; }
.btn-auth:hover { background: var(--primary); color: #020617; }
.auth-user { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 3px; border: 1px solid transparent; border-radius: 999px; background: transparent; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.auth-user:hover, .auth-user:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }

/* ---------- Minha conta ---------- */
.account-dialog { width: min(520px, calc(100% - 32px)); }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head > div { display: grid; gap: 4px; min-width: 0; }
.auth-avatar.account-avatar { width: 48px; height: 48px; font-size: 1.2rem; background: var(--brand-grad); color: #ffffff; }
.account-email { overflow-wrap: anywhere; font-size: 1.02rem; }
.account-badge { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.account-badge:empty { display: none; }
.account-badge[data-state="pending"] { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.auth-tabs.account-tabs { grid-template-columns: repeat(3, 1fr); }
.account-panel { display: grid; gap: 16px; }
.account-panel[hidden] { display: none; }
.account-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.account-info > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.account-info dt { margin-bottom: 4px; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.account-info dd { margin: 0; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.account-subtitle { margin: 0; font-size: 1rem; }
.account-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.account-wide { width: 100%; min-height: 44px; }
.account-block { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.account-panel > div { display: grid; gap: 12px; }
.account-danger { padding: 16px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--danger) 7%, transparent); }
.account-delete { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--danger); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.account-delete:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) {
  .account-info { gap: 8px; }
  .account-info > div { padding: 10px 12px; }
  .account-info dt { font-size: .68rem; }
  .account-tabs .auth-tab { padding: 9px 6px; font-size: .84rem; white-space: nowrap; }
}
.auth-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-avatar { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffffff; color: #062a52; font-weight: 700; font-size: .85rem; }

.auth-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--surface); box-shadow: 0 24px 70px rgba(2, 6, 23, .45); }
.auth-dialog[open] { animation: auth-in .22s ease-out; }
.auth-dialog::backdrop { background: rgba(2, 6, 23, .7); backdrop-filter: blur(4px); }
.auth-dialog [hidden] { display: none !important; }
@keyframes auth-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.auth-brand { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; background: var(--brand-grad); color: #ffffff; }
.auth-brand-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; }
.auth-brand .brand-mark { background: #ffffff; color: #062a52; }
.auth-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer; transition: background .2s ease; }
.auth-close:hover { background: rgba(255, 255, 255, .24); }

.auth-body { display: grid; gap: 20px; padding: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.auth-tab { padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.auth-tab[aria-selected="true"] { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }
.auth-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.auth-back:hover { color: var(--text); }

.auth-form { display: grid; gap: 16px; }
.auth-heading h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.02em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-size: .85rem; font-weight: 600; }
.auth-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-field input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-field input::placeholder { color: var(--muted); opacity: .7; }
.auth-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.auth-password { position: relative; }
.auth-password input { padding-right: 48px; }
.auth-reveal { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-reveal:hover { color: var(--text); }
.auth-reveal .icon-hide, .auth-reveal[aria-pressed="true"] .icon-show { display: none; }
.auth-reveal[aria-pressed="true"] .icon-hide { display: block; }
.auth-link { padding: 0; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }

.auth-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.auth-rules li { display: flex; align-items: center; gap: 7px; transition: color .2s ease; }
.auth-rules li::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .6; }
.auth-rules li.is-met { color: var(--success); }
.auth-rules li.is-met::before { border-color: var(--success); background: var(--success); opacity: 1; box-shadow: inset 0 0 0 2.5px var(--surface); }

.auth-captcha:empty { display: none; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--text); font-size: .88rem; line-height: 1.45; }
.auth-alert svg { flex: none; margin-top: 1px; color: var(--danger); }

.auth-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--brand-grad); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11, 79, 138, .35); }
.auth-submit:disabled { cursor: progress; opacity: .85; }
.auth-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #ffffff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-submit.is-busy .auth-spinner { display: block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-done { display: grid; justify-items: center; gap: 10px; text-align: center; }
.auth-done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.auth-done h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.auth-done p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.auth-done strong { color: var(--text); word-break: break-all; }
.auth-done .auth-done-tip { font-size: .82rem; }
.auth-done .auth-submit { margin-top: 10px; }

.auth-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }

@media (max-width: 480px) {
  .auth-body { padding: 20px; }
  .auth-rules { grid-template-columns: 1fr; }
  .auth-user-email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-dialog[open], .auth-spinner { animation: none; }
}

.hero {
  padding: 56px 0 44px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  width: 60%;
  height: 340px;
  background: radial-gradient(circle, var(--hero-grad), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.modality-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.modality-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent, var(--border));
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modality-pill:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.modality-pill:hover .pill-dot {
  background: #ffffff;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 18px;
  line-height: 1.1;
  max-width: 820px;
}

.hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.disclaimer-inline {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer-inline a {
  color: var(--primary);
  text-decoration: underline;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
}

.primary {
  background: var(--primary);
  color: #020617;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.primary:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
}

.secondary,
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}

[data-theme="light"] .secondary,
[data-theme="light"] .btn-secondary {
  background: var(--surface);
}

section {
  margin-bottom: 48px;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.75rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.modality-label {
  color: var(--muted);
  font-size: 0.9rem;
}

select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.2s ease;
}

.card:hover,
.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .card,
[data-theme="light"] .feature-card,
[data-theme="light"] .simulador,
[data-theme="light"] .faq-item {
  background: var(--surface);
}

.feature-card {
  min-height: 160px;
}

.feature-card h3 {
  margin: 0 0 10px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.steps {
  counter-reset: step;
}

.steps .feature-card {
  position: relative;
  padding-top: 34px;
}

.steps .feature-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.modality-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.modality-card-head {
  padding: 16px 20px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.modality-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.modality-card-body p {
  margin: 0;
}

.modality-card-body button {
  margin-top: auto;
  align-self: flex-start;
}

.result-card {
  min-width: min(100%, 280px);
  flex: 1;
  border-top: 4px solid var(--accent, var(--primary));
}

.result-draw-label {
  margin: 12px 0 6px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-draw-label:first-of-type {
  margin-top: 0;
}

.ball.ball-trevo {
  background: radial-gradient(circle at 35% 35%, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.1));
  border-color: rgba(34, 197, 94, 0.4);
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.result-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.badge-accumulated {
  background: rgba(249, 115, 22, 0.2);
  color: var(--danger);
}

.badge-source {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.next-draw {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.next-draw a {
  color: var(--primary);
  text-decoration: underline;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ball {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.07));
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ball.ball-hit {
  background: radial-gradient(circle at 35% 35%, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0.15));
  border-color: var(--success);
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ball-miss {
  opacity: 0.35;
}

.result-local {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.stat-block h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.stat-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

.bar-muted {
  background: var(--muted);
}

.stat-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.stat-delay li {
  grid-template-columns: 36px 1fr;
}

.compare-section {
  margin-bottom: 48px;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.simulador {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.selection-status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

#selectionCounter {
  font-weight: 700;
  min-width: 64px;
}

.progress-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
}

.filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 44px;
}

.numbers {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.number-btn {
  padding: 12px 4px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.85rem;
}

.number-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.number-btn.selected {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border-color: transparent;
  color: #020617;
  font-weight: 700;
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
  animation: pop 0.18s ease forwards;
}

.number-btn:disabled:not(.selected) {
  opacity: 0.35;
  cursor: not-allowed;
}

.number-btn.shuffling {
  background: rgba(124, 58, 237, 0.35);
}

.extra-grid-wrap {
  margin: -6px 0 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.05);
}

.extra-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.extra-head span {
  font-weight: 700;
}

.extra-numbers {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}

.extra-btn.selected {
  background: linear-gradient(135deg, var(--success), #16a34a);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45);
}

@keyframes pop {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.13); }
  100% { transform: scale(1.07); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(130%); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Modal ─────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: modalIn 0.22s ease forwards;
}

.modal-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.modal-message {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.modal-cancel {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-confirm {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #020617;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(56, 189, 248, 0.35);
}

.modal-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(56, 189, 248, 0.5);
}

.modal-confirm-danger {
  background: linear-gradient(135deg, var(--danger), #ef4444);
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.35);
}

.modal-confirm-danger:hover {
  box-shadow: 0 5px 18px rgba(249, 115, 22, 0.5);
}

[data-theme="light"] .modal-cancel {
  background: var(--surface-2);
}

@media (prefers-reduced-motion: reduce) {
  .number-btn,
  .progress-fill {
    transition: none;
  }

  .number-btn:hover:not(:disabled) {
    transform: none;
  }

  .number-btn.selected {
    animation: none;
  }

  .modal {
    animation: none;
  }
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.actions button {
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  color: #020617;
  background: var(--success);
  min-height: 44px;
}

.actions button.clear {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.selected {
  color: var(--muted);
  min-height: 24px;
}

.conference-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(34, 197, 94, 0.08);
}

.conference-hits {
  font-size: 1.1rem;
  font-weight: 600;
}

.conference-tier {
  color: var(--primary);
}

/* ── Bolão ─────────────────────────────────── */

.pool-templates {
  margin-bottom: 24px;
}

.pool-templates-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.pool-template-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pool-template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  text-align: center;
  color: var(--text);
}

.pool-template-card:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .pool-template-card {
  background: var(--surface);
}

.template-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.template-name {
  font-weight: 700;
  font-size: 0.85rem;
}

.template-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

.pool-config {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

[data-theme="light"] .pool-config {
  background: var(--surface);
}

.pool-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field-label input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
  width: 100%;
}

.pool-gen-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pool-gen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
}

[data-theme="light"] .pool-gen-row {
  background: var(--surface);
}

.pool-gen-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.gen-count-input {
  width: 60px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  font-size: 0.9rem;
  min-height: 36px;
}

.pool-gen-row button {
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #020617;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}

.pool-bets-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.pool-bet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
}

[data-theme="light"] .pool-bet-item {
  background: var(--surface);
}

.pool-bet-num {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 72px;
  color: var(--muted);
}

.pool-bet-balls {
  flex: 1;
  gap: 5px;
}

.pool-bet-balls .ball,
.confer-balls .ball {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.78rem;
}

.pool-participants-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}

[data-theme="light"] .pool-participants-block {
  background: var(--surface);
}

.pool-participants-block h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.participant-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.participant-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
}

.cotas-input {
  width: 80px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
  text-align: center;
}

.participant-form button {
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: #020617;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.participant-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #020617;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.participant-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.participant-shares,
.participant-pct {
  font-size: 0.85rem;
}

.pool-summary {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.07);
  padding: 24px;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

[data-theme="light"] .summary-item {
  background: var(--surface-2);
}

.summary-highlight {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
}

.summary-val {
  font-size: 1.25rem;
  font-weight: 700;
}

.summary-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

[data-theme="light"] .participant-badge {
  background: var(--surface-2);
}

.pool-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pool-footer-actions button:first-child {
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--success);
  color: #020617;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

/* Conferência do bolão */

.pool-conference {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .pool-conference {
  background: var(--surface);
}

.pool-conference h3 {
  margin: 0 0 16px;
}

.confer-drawn {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.confer-best-msg {
  margin: 0 0 16px;
  font-size: 1rem;
}

.confer-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.confer-winner {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.08);
}

.confer-row-num {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 72px;
  color: var(--muted);
}

.confer-hits-label {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.confer-winner .confer-hits-label {
  color: var(--success);
}

.favorites-section .favorite-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.favorite-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
}

.favorite-form button,
#loadMoreResults,
#btnCompare {
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary);
  color: #020617;
  min-height: 44px;
}

.favorite-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.favorite-meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.favorite-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-height: 36px;
}

.btn-sm.btn-danger {
  color: var(--danger);
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.rules-section ul {
  color: var(--muted);
  line-height: 1.8;
}

.muted {
  color: var(--muted);
}

.state-message {
  color: var(--muted);
  padding: 16px 0;
}

.state-error {
  color: var(--danger);
}

.site-footer {
  padding: 24px 0 48px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  z-index: 2000;
  max-width: min(90vw, 420px);
  text-align: center;
  transition: transform 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: var(--success);
}

.toast-warning {
  border-color: var(--warning);
}

.toast-error {
  border-color: var(--danger);
}

.print-slip {
  display: none;
}

@media print {
  header,
  footer,
  .hero,
  #como,
  #modalidades,
  #resultados,
  #estatisticas,
  .compare-section,
  #favoritos,
  #como-jogar,
  #confianca,
  #dicas,
  #faq,
  #privacidade,
  .toast,
  .actions,
  .filters,
  .numbers,
  .menu-toggle,
  .theme-toggle,
  .theme-link,
  nav {
    display: none !important;
  }

  .print-slip {
    display: block !important;
    padding: 40px;
    color: #000;
  }

  body {
    background: #fff;
    color: #000;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pool-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .pool-config-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .pool-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pool-bet-item,
  .confer-row {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
  }

  nav.open {
    display: flex;
  }

  .topbar {
    position: relative;
  }

  #mainNav {
    order: 3;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .number-btn {
    font-size: 0.8rem;
    padding: 10px 2px;
  }

  .favorite-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .extra-numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .btn-cta {
    padding: 9px 14px;
    font-size: 0.85rem;
  }
}

/* =========================================================
   Refinamento visual (entrega)
   ========================================================= */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

html { scroll-padding-top: 96px; }

::selection { background: color-mix(in srgb, var(--primary) 35%, transparent); }

/* Header fixo */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0 0;
  transition: transform 0.3s ease;
}

header.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }

@media (prefers-reduced-motion: reduce) {
  header.site-header { transition: none; }
}

.site-header .topbar {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px 8px 18px;
  min-height: 64px;
  flex-wrap: nowrap;
  box-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.55);
}

.site-header nav { gap: 4px; flex-wrap: nowrap; }

.site-header nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.btn-auth { min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 600; cursor: pointer; }

.menu-toggle, .theme-toggle { border-radius: 12px; }

.brand { font-size: 1.08rem; }
.brand-logo { flex: none; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.auth-brand-name .brand-logo { width: 26px; height: 26px; }

/* Tipografia */
h1, h2, h3 { letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h3 { line-height: 1.3; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-lead { margin: -8px 0 22px; color: var(--muted); max-width: 640px; line-height: 1.65; }

section { margin-bottom: 72px; scroll-margin-top: 96px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -0.035em; }
.hero .hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; }
.text-grad {
  background: linear-gradient(100deg, var(--primary), #22c55e 60%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions a.primary { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 80%, transparent); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--border); }
.hero-trust strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.hero-trust span { color: var(--muted); font-size: 0.85rem; }

/* Cartões */
.card, .feature-card { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(2, 6, 23, 0.6); }
.feature-card { min-height: 0; }
.modality-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.modality-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px var(--accent); }

[data-theme="light"] .card,
[data-theme="light"] .feature-card,
[data-theme="light"] .modality-card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }

/* Modelos do bolão */
.template-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq h2, .faq .eyebrow { margin-bottom: 8px; }
.faq-item { border-radius: 14px; transition: border-color 0.2s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.faq-item summary { list-style: none; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--primary); }

/* Privacidade */
.privacy-section {
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.privacy-section h2 { font-size: 1.25rem; margin-bottom: 10px; }
.privacy-section p { margin: 0; color: var(--muted); line-height: 1.7; }
.privacy-account {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.privacy-account[hidden] { display: none; }
.privacy-account p { flex: 1 1 280px; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); }

/* Rodapé */
.site-footer {
  margin-top: 24px;
  padding: 56px 0 32px;
  text-align: left;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { color: var(--text); margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 340px; color: var(--muted); line-height: 1.65; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a { color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 6px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 800;
}
.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-legal p { margin: 0 0 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.footer-bottom p { margin: 0; }
.theme-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; opacity: .75; transition: opacity .2s ease, color .2s ease; }
.theme-link:hover, .theme-link:focus-visible { opacity: 1; color: var(--text); }

/* Responsivo */
@media (max-width: 1100px) {
  .site-header nav a { padding: 8px 8px; font-size: 0.85rem; }
  .btn-cta { display: none; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-header .topbar { flex-wrap: wrap; }
  .site-header .menu-toggle { display: grid; place-items: center; order: 2; }
  .site-header .brand { order: 1; margin-right: auto; }
  .site-header .topbar-actions { order: 2; }
  .site-header nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .site-header .brand span { display: none; }
  .hero { padding: 48px 0 40px; }
  section { margin-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card:hover, .modality-card:hover { transform: none; }
}

[data-theme="light"] .text-grad { background-image: linear-gradient(100deg, #0369a1, #15803d 60%, #b45309); }

.hero .eyebrow { color: var(--primary); font-size: 0.78rem; line-height: 1.4; max-width: none; }

.toast { transform: translateX(-50%) translateY(calc(100% + 48px)); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; }
.toast.visible { visibility: visible; transform: translateX(-50%) translateY(0); }

.pool-summary:empty { display: none; }
.rules-section strong { color: var(--text); }

/* =========================================================
   Próximos sorteios, faixa de resultados e destaque do prêmio
   ========================================================= */

/* Faixa de últimos resultados */
.results-ticker { margin-top: 12px; }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ticker-title {
  flex: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ticker-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.ticker-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ticker-contest { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker-balls { display: inline-flex; gap: 4px; }
.ticker-ball {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ticker-more { color: var(--muted); }

/* Selo "Acumulou" */
.draw-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 20%, transparent);
  color: var(--warning);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.draw-badge[hidden] { display: none; }
.draw-badge-head { background: rgba(255, 255, 255, 0.95); color: var(--accent); }

/* Hero em duas colunas com o maior prêmio */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 48px; align-items: center; }
.hero:has(.hero-jackpot[hidden]) { grid-template-columns: minmax(0, 1fr); }
.hero-main { min-width: 0; }
.hero-jackpot {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #020617));
  color: #fff;
  box-shadow: 0 30px 60px -30px var(--accent);
}
.hero-jackpot[hidden] { display: none; }
.hero .hero-jackpot p { margin: 0; color: inherit; max-width: none; line-height: 1.4; font-size: 0.95rem; }
.hero-jackpot .pill-dot { background: #fff; }
.hero .hero-jackpot .jackpot-kicker { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.hero .hero-jackpot .jackpot-label { margin-top: 22px; opacity: 0.85; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero .hero-jackpot .jackpot-value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero .hero-jackpot .jackpot-date { margin-top: 10px; }
.jackpot-date .draw-badge { background: rgba(255, 255, 255, 0.95); color: var(--accent); }
.hero .hero-jackpot .jackpot-countdown { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jackpot-countdown[hidden] { display: none; }
.jackpot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jackpot-actions button {
  flex: 1 1 140px;
  min-height: 46px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.jackpot-primary { border: 0; background: #fff; color: color-mix(in srgb, var(--accent) 70%, #020617); }
.jackpot-secondary { border: 1px solid rgba(255, 255, 255, 0.6); background: transparent; color: #fff; }
.jackpot-actions button:hover { transform: translateY(-1px); }
.jackpot-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* Cards de próximos sorteios */
.section-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.draw-card .modality-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.draw-card .modality-card-body { gap: 14px; }
.draw-card .draw-info p { margin: 0; }
.draw-label { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.draw-card .draw-prize {
  margin-top: 2px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.draw-skeleton {
  width: 70%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 50%, transparent), var(--surface-2));
  background-size: 200% 100%;
  animation: draw-shimmer 1.4s linear infinite;
}
@keyframes draw-shimmer { to { background-position: -200% 0; } }
.draw-card .draw-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.draw-meta span:first-child { color: var(--text); font-weight: 600; }
.draw-card .draw-countdown {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.draw-card .draw-countdown[hidden] { display: none; }
.draw-unavailable { color: var(--muted); }
.draw-card .draw-rule { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.88rem; line-height: 1.6; }
.draw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.draw-card .modality-card-body .draw-actions button { margin: 0; align-self: stretch; }
.btn-draw-primary,
.btn-draw-secondary {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, background 0.2s ease;
}
.btn-draw-primary { border: 0; background: var(--accent); color: #fff; }
.btn-draw-primary:hover { filter: brightness(1.1); }
.btn-draw-secondary { border: 1px solid var(--accent); background: transparent; color: var(--text); }
.btn-draw-secondary:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Rodapé: links das loterias */
.footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--text); }
.footer-col a, .footer-col .footer-link { font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-jackpot { max-width: 520px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ticker-title { display: none; }
  .section-head .section-link { white-space: normal; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-jackpot { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw-skeleton { animation: none; }
  .ticker-item:hover, .jackpot-actions button:hover { transform: none; }
}
@media print {
  .results-ticker, .hero-jackpot { display: none !important; }
}

/* =========================================================
   Resultados, estatísticas e simulador (rodada 2)
   ========================================================= */

/* Bolinhas com a cor da modalidade */
#resultados .result-card .ball {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
#resultados .result-card .ball.ball-trevo {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.result-card { border-top-width: 3px; }

/* Concurso mais recente em destaque */
.result-featured {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "head prizes" "body prizes";
  column-gap: 32px;
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--surface);
}
.result-featured > :not(.result-prizes) { grid-column: 1; }
.result-featured .result-prizes { grid-column: 2; grid-row: 1 / span 20; align-self: start; }
.result-featured .result-header strong { font-size: 1.25rem; }
.result-featured .ball { width: 48px; height: 48px; min-width: 48px; font-size: 1rem; }
.result-featured .balls { gap: 10px; }
.prize-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.prize-table caption {
  text-align: left;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prize-table th, .prize-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.prize-table thead th { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.prize-table td { text-align: right; white-space: nowrap; }
.prize-table thead th:not(:first-child) { text-align: right; }
.prize-table tbody tr:first-child th, .prize-table tbody tr:first-child td { font-weight: 700; }
.prize-table tbody th { font-weight: 500; }
.result-places-title { margin: 14px 0 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.result-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.result-places li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.82rem; }
.result-prizes .result-local { font-size: 0.82rem; }

/* Estatísticas: escolha da quantidade de concursos */
.stats-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.stats-range-label { padding: 0 8px 0 10px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.stats-range button {
  min-width: 48px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.stats-range button:hover:not(:disabled) { background: var(--surface-2); }
.stats-range button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.stats-range button:disabled { cursor: progress; }
.stats-range button:disabled:not([aria-pressed="true"]) { opacity: 0.55; }
.stats-status { margin: 0 0 14px; min-height: 1.4em; color: var(--muted); font-size: 0.88rem; }
#statsPanel { transition: opacity 0.2s ease; }
#statsPanel.is-loading { opacity: 0.5; }
#estatisticas .bar { background: var(--accent); }
#estatisticas .bar-muted { background: var(--muted); }
.stat-list li > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.stat-list li { grid-template-columns: 34px 1fr auto; }
.stat-delay li { grid-template-columns: 34px 1fr; }
.stats-note { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; }

/* Simulador: cor da modalidade e botões por importância */
.simulador .number-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.simulador .number-btn.selected {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 50%, transparent);
}
.simulador .progress-fill { background: var(--accent); }
.sim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sim-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-group-tools { margin-left: auto; }
.actions .sim-primary { background: var(--accent); color: #fff; padding: 12px 24px; }
.actions .sim-primary:hover { filter: brightness(1.1); }
.actions .sim-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.actions .sim-outline:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.actions .sim-tool {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.88rem;
}
.actions .sim-tool:hover { color: var(--text); border-color: var(--muted); }

@media (max-width: 860px) {
  .result-featured { grid-template-columns: minmax(0, 1fr); }
  .result-featured .result-prizes { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .sim-group-tools { margin-left: 0; }
}
@media (max-width: 600px) {
  .simulador { padding: 20px 14px; }
  .numbers { gap: 5px; }
  .number-btn { border-radius: 10px; }
  .result-featured { padding: 18px; }
  .result-featured .ball { width: 42px; height: 42px; min-width: 42px; }
  .prize-table th, .prize-table td { padding: 8px 4px; }
  .sim-group { width: 100%; }
  .sim-group > button { flex: 1 1 0; }
  .stats-range { width: 100%; justify-content: space-between; }
  .stats-range button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #statsPanel { transition: none; }
}
#resultsCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
#resultsCards .result-card { min-width: 0; }
#resultsCards .result-featured { grid-column: 1 / -1; }
.result-featured .badge { justify-self: start; }
#resultsCards .result-card:not(.result-featured) .balls { gap: 6px; }
#resultsCards .result-card:not(.result-featured) .ball { width: 34px; height: 34px; min-width: 34px; font-size: 0.8rem; }

/* =========================================================
   Bolão, favoritos e como jogar (rodada 3)
   ========================================================= */

/* Passos numerados do bolão */
.pool-section .pool-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 32px 0 14px;
  font-size: 1.05rem;
}
.pool-section .pool-templates .pool-step { margin-top: 8px; }
.pool-step small { flex-basis: 100%; padding-left: 38px; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.pool-step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex: none;
}
.pool-participants-block .pool-step { margin-top: 0; }

/* Modelos com a cor da modalidade */
.pool-section .template-icon { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
.pool-section .pool-template-card:hover { border-color: var(--accent); }

/* Apostas em duas colunas */
.pool-bets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.pool-bets-grid .pool-bet-item { margin: 0; }
.pool-section .pool-bet-balls .ball,
.pool-section .confer-drawn .ball {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}
.pool-section .ball.ball-trevo { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.pool-section .confer-balls .ball.ball-hit { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.pool-section .pool-gen-row button { background: var(--accent); color: #fff; }
.pool-bets-count { font-weight: 600; }

/* Estado vazio */
.empty-state {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}
.empty-state strong { color: var(--text); font-size: 0.98rem; }

/* Resultado da conferência */
.confer-best-win { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--success) 15%, transparent); }
.pool-section .confer-hits-label { color: var(--muted); }
.pool-section .confer-winner .confer-hits-label { color: var(--success); font-weight: 700; }

/* Botões finais do bolão */
.pool-footer-actions { align-items: center; }
.pool-footer-actions .pool-btn-primary { background: var(--accent); color: #fff; border: 0; }
.pool-footer-actions .pool-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1fa855;
  color: #fff;
  border: 0;
}
.pool-footer-actions .pool-btn-tool { background: transparent; color: var(--text); border: 1px solid var(--border); }
.pool-footer-actions button:hover { filter: brightness(1.08); }

/* Favoritos */
.favorites-section .favorite-form { align-items: flex-end; }
.favorite-field { display: grid; gap: 6px; flex: 1; min-width: min(100%, 240px); }
.favorite-field label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.favorite-field input { width: 100%; }
#favoritesList { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
#favoritesList .empty-state { grid-column: 1 / -1; }
#favoritesList .favorite-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  border-left: 3px solid var(--accent, var(--border));
}
.favorite-main { display: grid; gap: 10px; }
.favorite-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.favorite-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--primary)) 18%, transparent);
  font-size: 0.75rem;
  font-weight: 700;
}
.favorite-balls { display: flex; flex-wrap: wrap; gap: 5px; }
.fav-ball {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent, var(--primary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fav-ball.fav-trevo { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
#favoritesList .favorite-actions { display: flex; gap: 8px; }
#favoritesList .favorite-actions .fav-use { flex: 1; background: var(--accent, var(--primary)); color: #fff; border-color: transparent; }

/* Como jogar */
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rule-tile {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.rule-tile p { margin: 0; line-height: 1.55; }
.rule-kicker { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rule-tile-accent { background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #020617)); border-color: transparent; color: #fff; }
.rule-tile-accent .rule-kicker, .rule-tile-accent .rule-foot { color: rgba(255, 255, 255, 0.85); }
.rule-big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.rule-foot { font-size: 0.82rem; }
.rules-subtitle { margin: 24px 0 10px; font-size: 1rem; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tier-chips li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.88rem;
}
.rules-note { margin-top: 14px; font-size: 0.85rem; }

@media (max-width: 860px) {
  .rules-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pool-step small { padding-left: 0; }
  .pool-footer-actions button { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .pool-footer-actions .pool-btn-primary, .pool-footer-actions .pool-btn-whatsapp { flex-basis: 100%; }
  .favorites-section .favorite-form { flex-direction: column; align-items: stretch; }
}
@media print {
  .pool-step { display: none !important; }
}
.pool-footer-actions button {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pool-footer-actions .pool-btn-primary { color: #fff; }
.pool-section .participant-form button { background: var(--accent); color: #fff; }
.pool-section .participant-num { background: var(--accent); color: #fff; }
.pool-section .pool-summary { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pool-section .summary-highlight { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.pool-section .pool-footer-actions button.pool-btn-primary { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  .pool-section .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-section .pool-summary { padding: 16px; }
  .pool-section .pool-bet-item .pool-bet-num { min-width: 60px; }
  .pool-section .pool-bet-balls { gap: 4px; }
  .pool-section .pool-bet-balls .ball,
  .pool-section .confer-balls .ball { width: 28px; height: 28px; min-width: 28px; font-size: 0.72rem; }
}

/* =========================================================
   Acabamento profissional (rodada 5): fonte, telas e botões
   ========================================================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 15.5px;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: 750; }
h2 { letter-spacing: -0.03em; }

/* Telas */
.view[hidden] { display: none !important; }
.view { animation: view-in 0.25s ease; }
.view:not([data-view="inicio"]) { padding-top: 40px; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
.site-header nav a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Hero mais sóbrio */
.hero h1 { max-width: 760px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; }
.hero-accent { color: var(--primary); }
.hero .hero-lead { max-width: 600px; }
.hero .disclaimer-inline { font-size: 0.85rem; }

/* Botões globais: uma cor só (a da marca) */
.hero-actions a.primary { color: #04121f; box-shadow: none; }
.hero-actions a.secondary { background: transparent; }

/* Dentro das ferramentas, a ação principal usa a cor da loteria escolhida */
[data-accent] #loadMoreResults,
[data-accent] #btnCompare,
[data-accent] .favorite-form button {
  background: var(--accent);
  color: #fff;
}
[data-accent] #loadMoreResults:hover,
[data-accent] #btnCompare:hover,
[data-accent] .favorite-form button:hover { filter: brightness(1.08); }
#resultados .section-actions .btn-secondary,
#modalitySelect { min-height: 44px; }

/* Selo "Acumulou" consistente em todo o site */
#resultados .badge-accumulated {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Barra de "próximo sorteio" da tela de resultados com a cor da loteria */
#resultados .next-draw { border-left: 3px solid var(--accent); }
#resultados .next-draw a { color: var(--text); }

/* Cartões genéricos um pouco mais refinados */
.feature-card, .stat-block, .card { border-radius: 16px; }
.feature-card h3 { font-size: 1rem; }
.feature-card p { font-size: 0.92rem; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .view:not([data-view="inicio"]) { padding-top: 24px; }
}

/* =========================================================
   Contraste e legibilidade (rodada 6)
   ========================================================= */
.theme-link { opacity: 1; }
[data-theme="light"] .draw-badge { background: #fef3c7; color: #92400e; }
[data-theme="light"] .draw-badge-head,
[data-theme="light"] .jackpot-date .draw-badge { background: #fff; color: var(--accent); }
[data-theme="light"] .badge-accumulated { background: #fef3c7 !important; color: #92400e !important; }
[data-theme="light"] .eyebrow, [data-theme="light"] .hero .eyebrow { color: #075985; }
[data-theme="light"] .site-footer { background: #ffffff; }
[data-theme="light"] .ticker-item { background: #fff; }
/* Contornos coloridos mais visíveis no modo escuro */
[data-theme="dark"] .btn-draw-secondary,
[data-theme="dark"] .actions .sim-outline { border-color: color-mix(in srgb, var(--accent) 65%, #fff); }
/* Textos pequenos um pouco maiores */
.draw-label, .rule-kicker, .stats-range-label { font-size: 0.78rem; }
.ticker-ball { font-size: 0.72rem; }
.stat-list em { font-size: 0.85rem; }
.pool-footer-actions .pool-btn-whatsapp { background: #15803d; }
[data-theme="light"] .hero-actions a.primary,
[data-theme="light"] .primary { color: #fff; }
[data-theme="light"] .skip-link { color: #fff; }
