/* BetsManager — identidade própria. Nenhum estilo, cor de marca, ícone ou texto
   de terceiros. Sóbria, legível, funcional. */

:root {
  --accent: #0e7c66;
  --header: #131c26;
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #17222b;
  --muted: #5b6b77;
  --line: #dde4ea;
  --ok: #0c8043;
  --danger: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* topo */
.topbar { background: var(--header); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo { height: 28px; width: auto; }
.topnav { display: flex; gap: 14px; align-items: center; }
.topnav a { color: #d6e2ea; text-decoration: none; font-size: 0.95rem; }
.topnav a:hover { color: #fff; }

/* mensagens */
.flash { margin: 14px 0; padding: 10px 14px; border-radius: var(--radius); background: #e7f3ee; border: 1px solid #bfe0d2; }
.flash.erro { background: #fbe9e7; border-color: #f0c8c3; }
.flash.ok { background: #e7f3ee; border-color: #bfe0d2; }

/* hero do portão */
.hero { text-align: center; margin: 34px 0 22px; }
.hero h1 { font-size: 2.2rem; margin: 0; }
.tagline { color: var(--muted); max-width: 640px; margin: 8px auto 0; }

/* cartões e grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; }
.card-inner { background: #f8fafb; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat { text-align: center; }
.stat h3, .stat h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.big { font-size: 1.5rem; font-weight: 700; margin: 0; }
.big.ok { color: var(--ok); }
.muted { color: var(--muted); }

/* formulários */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .inline label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--muted); }
.stack input, .stack select, .inline input, .inline select {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.stack small, label small { color: var(--muted); }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }

button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; padding: 10px 16px; text-decoration: none; display: inline-block;
  font-weight: 600;
}
button.link, .btn.small { background: none; color: var(--accent); padding: 4px 8px; }
button.link.danger { color: var(--danger); }
button.danger, .btn.danger { background: var(--danger); }
button.ok, .btn.ok { background: var(--ok); }
.btn.small { font-weight: 600; font-size: 0.85rem; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline input, .inline select { min-width: 140px; }
.apura { gap: 16px; }

/* tabelas e listas */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.pos { color: var(--ok); }
td.neg { color: var(--danger); }

.list { display: flex; flex-direction: column; }
.list .row, .row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 8px; text-decoration: none; color: inherit;
}
a.row:hover { border-color: var(--accent); }
.row form { margin: 0; }

/* abas do painel */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tabs a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: 0.9rem; }
.tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* chips (esportes) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.chip { padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* odds */
.odds-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.odd {
  min-width: 130px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  color: var(--ink);
}
button.odd:hover { border-color: var(--accent); background: #eefaf6; }
.odd strong { color: var(--accent); font-size: 1.05rem; }
.odd.off { color: var(--muted); background: #f1f3f5; cursor: not-allowed; }
.odd.off em { font-size: 0.75rem; font-style: normal; text-transform: uppercase; }

/* área do cliente */
.balance-bar {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; margin: 14px 0;
}
.narrow { max-width: 420px; }
.live-tag { color: var(--danger); font-weight: 700; }
.row.live strong { color: var(--danger); }

/* bilhete */
.ticket h2, .ticket h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.st-pendente { background: #fff3d6; color: #8a6d00; }
.st-aceito { background: #dcecf9; color: #1a5c8f; }
.st-recusado { background: #fbe9e7; color: var(--danger); }
.st-ganho { background: #e7f3ee; color: var(--ok); }
.st-perdido { background: #eceff1; color: var(--muted); }
.st-devolvido { background: #efe7f9; color: #5b3a9e; }
.st-estornado { background: #eceff1; color: #455a64; }
.st-cashout { background: #e2f4ec; color: #0a6e50; border: 1px solid #9fd6bc; }
.sels { margin: 8px 0; padding-left: 18px; color: var(--muted); }
.sels strong { color: var(--ink); }

.footer { color: var(--muted); font-size: 0.85rem; padding: 26px 16px; }
.hint { color: var(--muted); font-size: 0.9rem; }

/* dicas IA (painel) */
.tip { background: #f8fafb; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.tip h3 { margin: 0 0 6px; font-size: 0.95rem; }
.tip p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* banner promocional (área do cliente) */
.promo-banner {
  background: var(--banner-accent, var(--accent)); color: #fff;
  border-radius: var(--radius); padding: 12px 18px; margin: 14px 0;
  font-weight: 600; text-align: center;
}

/* gamificação: barra de progresso (conta do cliente) */
.progress { height: 10px; background: #e6ecef; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }

/* banners automáticos de divulgação (painel) */
.banner {
  --banner-accent: #0e7c66; --banner-header: #131c26;
  border-radius: 12px; padding: 24px; margin: 10px 0; color: #fff;
  background: linear-gradient(135deg, var(--banner-header) 0%, var(--banner-accent) 100%);
  max-width: 640px;
}
.banner-lg { padding: 34px 30px; }
.banner-title { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.banner-lg .banner-title { font-size: 2.1rem; }
.banner-sub { margin-top: 6px; font-size: 1rem; opacity: 0.92; }
.banner-features { margin: 14px 0 0; padding-left: 20px; font-size: 0.95rem; opacity: 0.95; }
.banner-url { margin-top: 18px; font-weight: 700; letter-spacing: 0.04em; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 12px; }
.banner-strip { text-align: center; padding: 14px 18px; font-weight: 600; }
.banner-feature .banner-title { font-size: 1.35rem; }