/* ── Base ─────────────────────────────────────────────────────────────── */
.bolao-wrap { max-width: 820px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1c1e21; }

/* ── Login card ──────────────────────────────────────────────────────── */
.bolao-login-card { max-width: 400px; margin: 40px auto; background: #fff; border: 1px solid #dde1e7; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.bolao-login-logo { text-align: center; margin-bottom: 24px; }
.bolao-trophy { font-size: 48px; display: block; margin-bottom: 8px; }
.bolao-login-logo h2 { margin: 0 0 4px; font-size: 1.4em; }
.bolao-login-logo p  { margin: 0; color: #57606a; font-size: .9em; }
.bolao-auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bolao-btn-outline { background: #fff !important; color: #0969da !important; border: 2px solid #0969da !important; }
.bolao-btn-outline:hover { background: #f0f6ff !important; }
.bolao-fg { margin-bottom: 14px; }
.bolao-fg label { display: block; font-size: .85em; font-weight: 600; margin-bottom: 4px; color: #444; }
.bolao-fg input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1em; }
.bolao-fg input:focus { outline: none; border-color: #0969da; box-shadow: 0 0 0 3px rgba(9,105,218,.15); }
.bolao-submit-btn { width: 100%; padding: 11px; background: #0969da; color: #fff; border: none; border-radius: 7px; font-size: 1em; font-weight: 600; cursor: pointer; margin-top: 4px; }
.bolao-submit-btn:hover { background: #0860ca; }
.bolao-form-error { color: #c23b22; font-size: .85em; min-height: 18px; margin-bottom: 6px; }
.bolao-privacy-note { font-size: .8em; color: #57606a; margin-top: 14px; text-align: center; }
.bolao-req { color: #c23b22; }
.bolao-field-hint { display: block; font-size: .78em; color: #57606a; margin-top: 3px; }
.bolao-check-fg { background: #fff8e1; border: 1px solid #ffc107; border-radius: 6px; padding: 10px 12px; }
.bolao-check-label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; font-size: .88em !important; cursor: pointer; color: #5a4000 !important; }
.bolao-check-label input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; cursor: pointer; accent-color: #0969da; }

/* ── Modal de elegibilidade ──────────────────────────────────────────── */
.bolao-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bolao-modal-box { background: #fff; border-radius: 14px; padding: 32px 28px; max-width: 420px; width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,.25); text-align: center; }
.bolao-modal-icon { font-size: 48px; margin-bottom: 16px; }
.bolao-modal-text { font-size: .95em; line-height: 1.6; color: #1c1e21; margin-bottom: 24px; }

/* ── App header / tabs ────────────────────────────────────────────────── */
.bolao-app-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #e8eaed; margin-bottom: 0; }
.bolao-app-logo { font-weight: 700; font-size: 1.1em; }
.bolao-app-user { font-size: .85em; color: #5f6368; }
.bolao-app-user a { color: #1a73e8; text-decoration: none; }
.bolao-tabs { display: flex; gap: 0; border-bottom: 1px solid #e8eaed; margin-bottom: 20px; }
.bolao-tab { background: transparent !important; border: none !important; border-bottom: 2px solid transparent !important; padding: 11px 18px; cursor: pointer; font-size: .88em; color: #5f6368 !important; margin-bottom: -1px; white-space: nowrap; font-weight: 500; transition: color .15s; }
.bolao-tab:hover { color: #1a73e8 !important; background: transparent !important; }
.bolao-tab.active { color: #1a73e8 !important; border-bottom-color: #1a73e8 !important; font-weight: 600; background: transparent !important; }
.bolao-tab-content { display: none; }
.bolao-tab-content.active { display: block; }

/* ── Notices ─────────────────────────────────────────────────────────── */
.bolao-deadline-notice { background: #f8f9fa; border: 1px solid #e8eaed; border-radius: 8px; padding: 10px 14px; font-size: .88em; color: #3c4043; margin-bottom: 8px; }
.bolao-info    { background: #e8f0fe; border: 1px solid #c5d8fb; border-radius: 8px; padding: 10px 14px; font-size: .88em; margin-bottom: 16px; }
.bolao-warning { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 10px 14px; font-size: .88em; margin-bottom: 16px; }

/* ── Day sections ─────────────────────────────────────────────────────── */
.bolao-day-section { margin-bottom: 4px; }
.bolao-day-heading { font-size: .72em; color: #5f6368; margin: 22px 0 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.bolao-day-heading.is-today { font-size: .78em; color: #1a73e8; letter-spacing: .04em; margin-top: 0; }
.bolao-day-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1a73e8; flex-shrink: 0; animation: bolao-pulse 1.8s ease-in-out infinite; }
@keyframes bolao-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.bolao-day-section.is-today .bolao-match-group { border-color: #c5d8fb; box-shadow: 0 1px 6px rgba(26,115,232,.12); }
.bolao-day-section.is-past .bolao-day-heading  { color: #bdc1c6; }
.bolao-day-section.is-past .bolao-match-group  { opacity: .75; }

/* ── Match group container ────────────────────────────────────────────── */
.bolao-round-heading { font-size: .72em; color: #5f6368; margin: 22px 0 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bolao-match-group { border: 1px solid #e8eaed; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: grid; grid-template-columns: 1fr 1fr; }

/* ── Match row ────────────────────────────────────────────────────────── */
.bolao-match { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #f1f3f4; background: #fff; }
.bolao-match:last-child { border-bottom: none; }
.bolao-match:nth-last-child(-n+2) { border-bottom: none; }
.bolao-match:nth-child(odd) { border-right: 1px solid #e8eaed; }
.bolao-match.locked { background: #fafafa; }
.bolao-match.has-result { border-left: 3px solid #34a853; }

/* ── Teams column ─────────────────────────────────────────────────────── */
.bm-teams { flex: 0 1 auto; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.bm-team  { display: flex; align-items: center; gap: 9px; }
.bm-flag  { font-size: 1.2em; line-height: 1; flex-shrink: 0; width: 24px; text-align: center; }
.bm-name  { font-size: .88em; font-weight: 500; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bolao-match.locked .bm-name { color: #5f6368; }

/* ── Prediction inputs ────────────────────────────────────────────────── */
.bm-preds { display: flex; flex-direction: column; gap: 9px; align-items: center; flex-shrink: 0; }
.bm-preds input[type=number] { width: 38px; height: 28px; text-align: center; border: 1px solid #dadce0; border-radius: 6px; font-size: .88em; font-weight: 600; color: #202124; padding: 0; background: #fff; -moz-appearance: textfield; }
.bm-preds input[type=number]::-webkit-inner-spin-button,
.bm-preds input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.bm-preds input[type=number]:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.18); }
.bm-pred-val { display: flex; align-items: center; justify-content: center; width: 38px; height: 28px; font-size: .88em; font-weight: 600; color: #3c4043; background: #f1f3f4; border-radius: 6px; }
.bm-pred-empty { color: #bdc1c6; background: transparent; }

/* ── Result column ────────────────────────────────────────────────────── */
.bm-result { display: flex; flex-direction: column; gap: 9px; align-items: center; flex-shrink: 0; min-width: 26px; }
.bm-result span { font-size: .9em; font-weight: 700; color: #34a853; line-height: 28px; text-align: center; width: 26px; }

/* ── Kickoff column ───────────────────────────────────────────────────── */
.bm-kickoff { text-align: right; flex-shrink: 0; min-width: 40px; margin-left: auto; }
.bm-kdate { font-size: .78em; font-weight: 600; color: #3c4043; line-height: 1.5; }
.bm-ktime { font-size: .78em; color: #5f6368; line-height: 1.5; }

/* ── Responsive: single column + side padding on mobile ─────────────── */
@media (max-width: 560px) {
    .bolao-wrap { padding: 0 12px; }
    .bolao-match-group { grid-template-columns: 1fr; }
    .bolao-match:nth-child(odd) { border-right: none; }
    .bolao-match:nth-last-child(-n+2) { border-bottom: 1px solid #f1f3f4; }
    .bolao-match:last-child { border-bottom: none; }
}

/* ── Group cards ─────────────────────────────────────────────────────── */
.bolao-group-card { border: 1px solid #dde1e7; border-radius: 8px; padding: 14px; margin-bottom: 10px; background: #fff; }
.bolao-group-title { font-weight: 700; font-size: 1em; margin-bottom: 10px; color: #0969da; }
.bolao-group-picks { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bolao-group-picks > div { display: flex; flex-direction: column; gap: 4px; }
.bolao-group-picks label { font-size: .8em; font-weight: 600; color: #444; }
.bolao-group-picks select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 5px; font-size: .9em; min-width: 150px; }
.bolao-group-save-btn { padding: 6px 14px; background: #0969da; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: .85em; align-self: flex-end; }
.bolao-group-status { font-size: .8em; align-self: flex-end; }
.bolao-group-status.ok    { color: #065f46; }
.bolao-group-status.error { color: #991b1b; }

/* ── Bracket ─────────────────────────────────────────────────────────── */
.bolao-bracket-section { margin-bottom: 24px; }
.bolao-bracket-section h4 { font-size: .9em; text-transform: uppercase; letter-spacing: .06em; color: #57606a; margin: 0 0 10px; }
.bolao-bracket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bolao-bracket-match { border: 1px solid #dde1e7; border-radius: 7px; padding: 10px; background: #fff; }
.bolao-bracket-match .bm-slot { font-size: .75em; color: #888; margin-bottom: 4px; }
.bolao-bracket-match .bm-bonus { font-size: .75em; color: #b8860b; font-weight: 600; margin-bottom: 6px; }
.bolao-bracket-team { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: .88em; margin-bottom: 3px; border: 1px solid #e0e0e0; background: #f9f9f9; transition: background .15s; }
.bolao-bracket-team:hover { background: #e8f0fe; }
.bolao-bracket-team.selected { background: #eef4ff; color: #1d2327; border-color: #cdddff; border-left: 3px solid #2f6fed; font-weight: 600; }
.bbt-team-name { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbt-pass { margin-left: auto; flex-shrink: 0; font-size: .7em; font-weight: 700; letter-spacing: .03em; color: #2f6fed; background: #dbe7ff; padding: 2px 7px; border-radius: 99px; }
.bolao-bracket-team.tbd { color: #aaa; cursor: default; }
.bolao-bracket-team.tbd:hover { background: #f9f9f9; }
.bm-winner-label { font-size: .7em; font-weight: 700; color: #0969da; margin-top: 6px; }

/* ── Feedback de pontuação do mata-mata (Sua pontuação) ─────────────────── */
.bolao-ko-score { background: #fff; border: 1px solid #e0e4e8; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.bolao-ko-score-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #1d2327; margin-bottom: 8px; }
.bolao-ko-total { background: #e8f5e9; color: #1a7f37; padding: 3px 12px; border-radius: 99px; font-size: .95em; flex-shrink: 0; }
.bolao-ko-group-title { font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: #57606a; margin: 12px 0 5px; }

/* Anúncio do vencedor (aba Ranking) */
.bolao-winner { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg,#fff8e6,#fff2cc); border: 1px solid #e8cf7a; border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.bolao-winner-badge { font-size: 2em; line-height: 1; flex-shrink: 0; }
.bolao-winner-body strong { display: block; color: #7a5a00; font-size: 1.05em; margin-bottom: 4px; }
.bolao-winner-body p { margin: 0 0 10px; font-size: .9em; line-height: 1.5; color: #5c4a1a; }
.bolao-winner-btn { display: inline-block; background: #d4a300; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: .9em; font-weight: 600; cursor: pointer; }
.bolao-winner-btn:hover { background: #b98d00; }

/* Auditoria pública */
.bolao-audit-group-block { margin-bottom: 20px; }
.bolao-bracket-team.readonly { cursor: default; }
.bolao-bracket-team.readonly:hover { background: #f9f9f9; }
.bolao-audit-pick-row { font-size: .8em; color: #444; margin-top: 4px; }
.bolao-audit-match-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #e6f4ea; color: #1e7e34; font-size: .82em; font-weight: 600; }
.bolao-audit-disclaimer { background: #f4f4f4; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: .85em; color: #555; margin: 16px 0; }
.bolao-ko-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; background: #f0faf3; border-radius: 6px; margin-bottom: 4px; font-size: .9em; color: #14532d; }
.bolao-ko-row b { color: #1a7f37; flex-shrink: 0; }
.bolao-ko-stage { color: #6b8a76; font-size: .85em; }
.bolao-ko-empty { font-size: .9em; color: #57606a; margin: 4px 0 0; }
.bolao-ko-grp { background: #f0faf3; border-radius: 8px; padding: 8px 11px; margin-bottom: 6px; }
.bolao-ko-grp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bolao-ko-grp-stage { font-weight: 600; color: #14532d; font-size: .92em; }
.bolao-ko-grp-meta { display: flex; gap: 12px; align-items: baseline; flex-shrink: 0; }
.bolao-ko-grp-meta b { color: #1a7f37; }
.bolao-ko-unit { color: #6b8a76; font-size: .8em; }
.bolao-ko-grp-teams { color: #2f5d3f; font-size: .86em; margin-top: 3px; }

/* ── Scoring legend (collapsible) ────────────────────────────────────── */
.bolao-scoring-legend { background: #fff; border: 1px solid #dde1e7; border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.bolao-scoring-legend summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: .88em; color: #3c4043; list-style: none; user-select: none; gap: 8px; }
.bolao-scoring-legend summary::-webkit-details-marker { display: none; }
.bolao-scoring-legend summary::after { content: '▾'; font-size: .8em; color: #9aa0a6; transition: transform .2s; flex-shrink: 0; }
.bolao-scoring-legend[open] summary::after { transform: rotate(180deg); }
.bolao-scoring-legend summary:hover { background: #f8f9fa; }
.bolao-scoring-body { padding: 12px 16px 14px; border-top: 1px solid #f1f3f4; }
.bolao-scoring-grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; font-size: .85em; line-height: 2; }
.bolao-scoring-grid .bolao-bonus { color: #b8860b; font-weight: 600; }

/* ── Ranking table ───────────────────────────────────────────────────── */
.bolao-table { width: 100%; border-collapse: collapse; font-size: .9em; background: #fff; border: 1px solid #e8eaed; border-radius: 10px; overflow: hidden; }
.bolao-table th { padding: 10px 12px; text-align: left; font-size: .72em; font-weight: 700; color: #5f6368; text-transform: uppercase; letter-spacing: .07em; border-bottom: 2px solid #e8eaed; white-space: nowrap; }
.bolao-table td { padding: 10px 12px; border-bottom: 1px solid #f1f3f4; color: #202124; }
.bolao-table tbody tr:last-child td { border-bottom: none; }
.bolao-table tbody tr:hover td { background: #f8f9fa; }
.bolao-col-rank { width: 36px; text-align: center; font-size: .95em; }
.bolao-col-city { color: #5f6368 !important; font-size: .85em; }
.bolao-col-num { text-align: center; width: 56px; color: #5f6368; white-space: nowrap; }
.bolao-col-total { text-align: center; width: 56px; font-weight: 700; color: #1a56db; }
.bolao-leader td { background: #fffbeb; }
.bolao-leader td.bolao-col-total { color: #92400e; }
.bolao-leader:hover td { background: #fef3c7; }
.bolao-my-row td { background: #eff6ff; }
.bolao-my-row:hover td { background: #dbeafe; }
.bolao-ranking-separator td { text-align: center; color: #bdc1c6; padding: 4px; background: transparent; letter-spacing: 4px; border-bottom: 1px solid #f1f3f4; }
.bolao-you-badge { display: inline-block; font-size: .68em; font-weight: 700; background: #1a56db; color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 480px) {
  .bolao-col-city { display: none; }
  .bolao-table th.bolao-col-city { display: none; }
}

/* ── Sticky save bar ─────────────────────────────────────────────────── */
.bolao-save-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1a56db; color: #fff; padding: 13px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 9998; box-shadow: 0 -3px 18px rgba(0,0,0,.18); flex-wrap: wrap; }
.bolao-save-bar-info { font-size: .9em; opacity: .92; min-width: 0; }
.bolao-save-all-btn { padding: 9px 24px; background: #fff; color: #1a56db; border: none; border-radius: 7px; font-size: .95em; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.bolao-save-all-btn:hover { background: #e8f0fe; }
.bolao-save-all-btn:disabled { opacity: .65; cursor: default; }
.bolao-pred-dot { color: #1a7f37; font-size: .85em; font-weight: 700; margin-left: 4px; }
#bolaoApp { padding-bottom: 72px; }

/* ── Group standings panel ───────────────────────────────────────────── */
.bolao-standings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bolao-group-standings { border: 1px solid #e8eaed; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.bolao-gs-header { background: #f8f9fa; padding: 5px 12px; font-size: .72em; color: #5f6368; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: flex; justify-content: space-between; align-items: center; }
.bolao-gs-table { width: 100%; border-collapse: collapse; font-size: .82em; }
.bolao-gs-table td { padding: 5px 10px; border-top: 1px solid #f1f3f4; vertical-align: middle; }
.gs-pos { width: 22px; color: #9aa0a6; font-weight: 700; text-align: center; }
.gs-num { width: 34px; text-align: center; font-weight: 600; color: #3c4043; }
.bolao-gs-row-q td { background: #f0fdf4; }
.bolao-gs-row-b3 td { background: #fefce8; }

/* ── Next-tab notice ─────────────────────────────────────────────────── */
.bolao-next-tab-notice { display: flex; align-items: center; gap: 14px; background: #f0f7ff; border: 1px solid #c7dff7; border-radius: 10px; padding: 14px 18px; margin: 24px 0 8px; font-size: .9em; color: #1a4a7a; }
.bolao-next-tab-notice span { font-size: 2em; line-height: 1; }
.bolao-tab-link { background: #1a73e8; color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: .88em; font-weight: 600; cursor: pointer; margin: 0 4px; }
.bolao-tab-link:hover { background: #1558b0; }

/* ── Legacy shortcode styles ─────────────────────────────────────────── */
.bolao-predictions, .bolao-leaderboard { max-width: 760px; margin: 0 auto; }

/* ── Ranking announcement banner ─────────────────────────────────────── */
.bolao-announce { position: relative; background: #f0f7ff; border: 1px solid #c7dff7; border-radius: 10px; padding: 14px 42px 14px 16px; margin: 0 0 18px; color: #1a4a7a; }
.bolao-announce strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.bolao-announce p { margin: 0; font-size: .9em; line-height: 1.45; color: #33536e; }
.bolao-announce-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #6b8299; padding: 0; }
.bolao-announce-x:hover { color: #1a4a7a; }

/* ── Botão "Relatar erro de pontuação" (WhatsApp) ───────────────────────── */
.bolao-report-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 22px 0 6px; text-align: center; }
.bolao-report-hint { font-size: .85em; color: #6b7280; }
.bolao-report-btn { display: inline-flex; align-items: center; gap: 7px; background: #25d366; color: #fff; font-size: .9em; font-weight: 600; text-decoration: none; padding: 9px 18px; border-radius: 999px; transition: background .15s; }
.bolao-report-btn:hover { background: #1eb257; color: #fff; }

/* ── Caixa "Sobre a pontuação" (transparência/auditoria) ────────────────── */
.bolao-transparency { background: #f0f6ff; border: 1px solid #cfe0f5; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.bolao-transparency strong { display: block; color: #1a4a7a; font-size: .95em; margin-bottom: 4px; }
.bolao-transparency p { margin: 0; font-size: .88em; line-height: 1.5; color: #33536e; }
