/* PALPITES GRENN — base compartilhada (site + painel) e página pública */
:root {
  --bg: #081629;
  --bg-2: #0B1D35;
  --card: #142B48;
  --card-2: #183354;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --blue: #1769EF;
  --blue-soft: rgba(23, 105, 239, 0.16);
  --green: #00E69A;
  --green-soft: rgba(0, 230, 154, 0.13);
  --red: #FF5C6C;
  --red-soft: rgba(255, 92, 108, 0.13);
  --gray: #8A9BB3;
  --gray-soft: rgba(138, 155, 179, 0.14);
  --amber: #FFB547;
  --amber-soft: rgba(255, 181, 71, 0.14);
  --white: #FFFFFF;
  --text: #E7EEF8;
  --muted: #93A4BC;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 30px -12px rgba(0,0,0,0.5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--white); margin: 0; letter-spacing: -0.01em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }

/* ---------- Componentes compartilhados ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.brand-a { color: var(--white); }
.brand-b { color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--green); color: #04261A; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--agendado { color: #7FB0FF; background: var(--blue-soft); }
.badge--andamento { color: var(--amber); background: var(--amber-soft); }
.badge--andamento::before { animation: pulse 1.6s ease-in-out infinite; }
.badge--acertado { color: var(--green); background: var(--green-soft); }
.badge--errado { color: var(--red); background: var(--red-soft); }
.badge--anulado { color: var(--gray); background: var(--gray-soft); }
@keyframes pulse { 50% { opacity: .35; } }

.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--white); border: 2px solid rgba(255,255,255,0.12); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--icon { background: var(--bg-2); font-size: 22px; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--off { background: var(--gray); }
.dot--on { background: var(--green); }
.age-tag { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 7px; border-radius: 7px; border: 2px solid var(--red); color: var(--white); font-weight: 800; font-size: 11.5px; }

/* =========================================================
 * Página pública — coluna única, simples
 * ======================================================= */
.app { width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 16px 28px; }
@media (min-width: 900px) { .app { padding-top: 24px; } }

/* Cabeçalho */
.top { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-block { text-decoration: none; display: grid; gap: 2px; }
.brand-block .logo { height: 72px; width: auto; margin: -6px 0 -4px -6px; }
@media (min-width: 600px) { .brand-block .logo { height: 88px; } }
.brand-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-btn { width: 40px; height: 40px; border-radius: 10px; background: transparent; border: 0; cursor: pointer; display: grid; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s; }
.menu-btn span:last-child { width: 12px; justify-self: end; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { width: 18px; transform: translateY(-3.5px) rotate(-45deg); }
.menu { display: grid; border-top: 1px solid var(--line); }
.menu a { padding: 12px 4px; text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.menu a:hover { color: var(--green); }
.menu[hidden] { display: none; }


.sports { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sport-btn { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 12px; font-weight: 500; transition: border-color .15s, background .15s; min-width: 0; }
.sport-btn .ic { font-size: 22px; line-height: 1; height: 26px; display: grid; place-items: center; }
.sport-btn .ic img { width: 26px; height: 26px; object-fit: contain; }
.sport-btn .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sport-btn:hover { border-color: var(--line-2); }
.sport-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--white); }
@media (max-width: 400px) { .sports { gap: 6px; } .sport-btn { padding: 10px 2px 8px; font-size: 11px; } .sport-btn .ic { font-size: 20px; } }

/* Seções */
.block { margin-top: 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { font-size: 20px; font-weight: 700; }
.head-title { display: grid; gap: 2px; }
.today-date { font-size: 13px; color: var(--muted); }
.pill-demo { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 8px; }
.filter-note { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.filter-note button { background: none; border: 0; color: #7FB0FF; cursor: pointer; padding: 0; font-size: 13px; }
.list { display: grid; gap: 12px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* Card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sport { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sport .lg { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { flex-shrink: 0; }
.st-pre { font-size: 12.5px; font-weight: 600; color: var(--white); background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 8px; }

.match { text-align: center; padding: 4px 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.teams { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--white); }
.team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.team--a { justify-content: flex-end; text-align: right; }
.team--b { justify-content: flex-start; text-align: left; }
.tname { overflow-wrap: anywhere; line-height: 1.25; }
.team .avatar { width: 30px; height: 30px; border-width: 1px; font-size: 15px; }
.team .avatar:empty { display: none; }
.x { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.meta { font-size: 12.5px; color: var(--muted); }
@media (max-width: 420px) { .teams { font-size: 15px; gap: 8px; } .team .avatar { display: none; } }

.pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick-txt { display: grid; gap: 2px; min-width: 0; }
.pick-l { font-size: 13px; color: var(--muted); }
.pick-m { font-size: 17px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.odd { display: grid; justify-items: center; gap: 2px; background: var(--bg-2); border-radius: 10px; padding: 8px 12px; min-width: 64px; flex-shrink: 0; }
.odd-l { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.odd-v { font-family: var(--mono); font-weight: 600; font-size: 19px; color: var(--green); font-variant-numeric: tabular-nums; }
.odd--none .odd-v { color: var(--muted); font-size: 15px; }

.analysis summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: #7FB0FF; display: inline-flex; align-items: center; gap: 6px; }
.analysis summary::-webkit-details-marker { display: none; }
.analysis summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.analysis[open] summary::after { transform: rotate(-135deg); }
.analysis p { margin: 8px 0 0; font-size: 14px; color: var(--text); white-space: pre-line; }

.btn-bet { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 16px; letter-spacing: .04em; text-decoration: none; border: 0; transition: filter .15s, transform .1s; }
.btn-bet:hover { filter: brightness(1.1); }
.btn-bet:active { transform: scale(.99); }
.btn-bet--green { background: var(--green); color: #04261A; }
.btn-bet--off { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line-2); cursor: default; font-weight: 600; letter-spacing: 0; font-size: 14px; }
.result-line { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.result-line--acertado { background: var(--green-soft); color: var(--green); }
.result-line--errado { background: var(--red-soft); color: var(--red); }
.result-line--anulado { background: var(--gray-soft); color: #C3CEDD; }

/* Histórico */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.stat-v { font-size: 22px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 11.5px; color: var(--muted); }
.stat--win .stat-v, .stat--rate .stat-v { color: var(--green); }
.stat--loss .stat-v { color: var(--red); }
@media (max-width: 420px) { .stat-v { font-size: 18px; } .stat-l { font-size: 10.5px; } }
.stats-note { font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.hist { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.hrow:last-child { border-bottom: 0; }
.hrow .h-match { color: var(--white); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.hrow .h-sub { color: var(--muted); font-size: 12.5px; grid-column: 1; }
.hrow .badge { grid-row: 1 / span 2; grid-column: 2; }
.hist .empty { border: 0; }

/* Promoção */
.promo { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; text-align: center; }
.promo-title { font-size: 17px; }
.promo-media { border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.promo-media a, .promo-media img { display: block; width: 100%; }
.promo-media img { height: auto; }
.promo-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; }
.promo-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.promo-highlights li { font-size: 13px; font-weight: 600; color: var(--white); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.promo-terms { margin: 0; font-size: 12.5px; color: var(--muted); white-space: pre-line; }
.promo-legal { margin: 0; font-size: 11.5px; color: var(--muted); }
.promo-legal strong { color: var(--white); }
.promo-legal a { color: #7FB0FF; }

/* Rodapé */
.foot { margin-top: 24px; padding: 16px 4px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.foot p { margin: 0; }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sport .sp-img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
