* { box-sizing: border-box; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:root {
  --bg: #0a1416;
  --surface: #122629;
  --surface2: #0f1e21;
  --line: #1c3236;
  --line-soft: #16282c;
  --ink: #ffffff;
  --muted: #6b8b8a;
  --muted2: #9fb3b1;
  --muted3: #B4B2A9;
  --chip-bg: rgba(255,255,255,0.15);
  --chip-bg-hover: rgba(255,255,255,0.25);

  --accent: #5DCAA5;
  --accent-rgb: 93,202,165;
  --accent-hover: #4bb794;
  --accent-ink: #04342C;
  --accent-soft: #9FE1CB;

  --gold: #FAC775;

  --danger: #E24B4A;

  --tab-active-bg: #ffffff;
  --tab-active-ink: #0a1416;
}

html[data-theme="light"] {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface2: #fff4ea;
  --line: #ece5da;
  --line-soft: #f3ede2;
  --ink: #1c211d;
  --muted: #7c8781;
  --muted2: #8b948e;
  --muted3: #6b7570;
  --chip-bg: rgba(28,33,29,0.06);
  --chip-bg-hover: rgba(28,33,29,0.12);

  --accent: #ec6a1e;
  --accent-rgb: 236,106,30;
  --accent-hover: #d85f18;
  --accent-ink: #ffffff;
  --accent-soft: #b95a12;

  --gold: #c07a2a;

  --danger: #d1403f;

  --tab-active-bg: #ec6a1e;
  --tab-active-ink: #ffffff;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

.app { max-width: 1000px; margin: 0 auto; }

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark { width: 30px; height: auto; display: block; flex-shrink: 0; }
.logo-mark-lg { width: 56px; margin: 0 auto 12px; }

.wordmark-king { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; color: var(--ink); }
.wordmark-bet { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; color: var(--gold); }

.age-gate-brand .wordmark-king, .age-gate-brand .wordmark-bet { font-size: 22px; }
.age-gate-brand .wordmark-king { color: #fff; }
.age-gate-brand .wordmark-bet { color: #FAC775; }

.header-right { display: flex; align-items: center; gap: 20px; }

.header-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.header-link:hover { color: var(--ink); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
}
.theme-toggle:hover { background: var(--chip-bg-hover); }
.theme-icon-dark { display: none; }
html[data-theme="light"] .theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-dark { display: inline; }

.crest { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.crest-lg { width: 26px; height: 26px; }
.team-name { display: inline-flex; align-items: center; gap: 8px; }

.btn-recharge, .btn-withdraw, .btn-logout {
  background: var(--chip-bg);
  border: none;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-recharge:hover, .btn-withdraw:hover, .btn-logout:hover { background: var(--chip-bg-hover); }

.page { padding: 24px 24px 60px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tabs .tab { flex-shrink: 0; }

.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-bar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.search-bar input[type="search"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 40px 11px 40px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 0;
}

.search-bar input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}
.search-clear:hover { color: var(--ink); }

.tab-fav-wrap { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }

.fav-star {
  background: none;
  border: none;
  color: var(--line);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 2px;
  line-height: 1;
}
.fav-star:hover { color: var(--muted); }
.fav-star.active { color: var(--gold); }

.quick-stake { display: flex; gap: 6px; margin-bottom: 8px; }
.quick-stake-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.quick-stake-btn:hover { background: var(--line-soft); }

.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-track { background: transparent; }
.tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.tabs::-webkit-scrollbar-thumb:hover { background: var(--line-soft); }

.tabs-secondary { margin-top: -14px; }
.tabs-secondary .tab { padding: 7px 14px; font-size: 12px; }
.tabs-secondary .tab.active { background: var(--surface); color: var(--accent); }

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover { color: var(--ink); }
.tab.active { color: var(--tab-active-ink); font-weight: 500; background: var(--tab-active-bg); }

.tab-logo { width: 16px; height: 16px; object-fit: contain; }

.tab-live i { color: var(--danger); animation: tab-live-pulse 1.6s ease-in-out infinite; }
.tab-live.active i { color: inherit; }

@keyframes tab-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.notice {
  background: var(--surface);
  color: var(--muted3);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }

.league-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 8px;
}

.section-label { font-size: 13px; font-weight: 500; color: var(--ink); margin: 0 0 14px; }

.extra-match { display: none; }

.show-more-btn {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
}

.show-more-btn:hover { background: var(--line-soft); }

.banner { position: relative; border-radius: 16px; overflow: hidden; height: 150px; margin-bottom: 10px; }

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.banner-slide.active { opacity: 1; pointer-events: auto; }

.banner-slide[data-slide="0"] { background: linear-gradient(120deg, #10262a, #0a1416 70%); }
.banner-slide[data-slide="1"] { background: linear-gradient(120deg, #1a2210, #0a1416 70%); }
.banner-slide[data-slide="2"] { background: linear-gradient(120deg, #251018, #0a1416 70%); }

.banner-text { flex: 1; }

.banner-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.banner-tag-real { background: #5DCAA5; color: #04342C; }
.banner-tag-gold { background: #FAC775; color: #412402; }
.banner-tag-pink { background: #E8879B; color: #4B1528; }

.banner-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: #fff; margin: 10px 0 6px; }
.banner-title .wordmark-king { color: #fff; }
.banner-title .wordmark-bet { color: #FAC775; }
.banner-subtitle { font-size: 13px; color: #6b8b8a; margin: 0; }

.banner-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #122629;
  border: 1px solid #1c3236;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  color: #5DCAA5;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.banner-arrow-prev { left: 8px; }
.banner-arrow-next { right: 8px; }

.banner-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }

.banner-dot { width: 20px; height: 4px; border-radius: 2px; border: none; background: var(--line); cursor: pointer; padding: 0; }
.banner-dot.active { background: var(--accent); }

@media (max-width: 560px) {
  .banner { height: 170px; }
  .banner-icon { display: none; }
}

.hero-card {
  background: linear-gradient(160deg, #10262a, #0a1416);
  border: 1px solid #1c3236;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 10px; }

.hero-tag {
  font-size: 10px;
  font-weight: 500;
  color: #5DCAA5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-teams { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 12px; }

.match-row { border-bottom: 1px solid var(--line); padding: 16px 4px; }

.match-row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.match-row-teams { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }

.match-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.match-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.badge-live {
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-live.badge-ended {
  background: var(--line-soft);
  color: var(--muted3);
  animation: none;
}

.badge-real {
  background: #5DCAA5;
  color: #04342C;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.badge-markets {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--line-soft);
  color: var(--muted3);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}
.badge-markets i { font-size: 10px; }

.countdown-slot.countdown {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--gold);
}
.countdown-slot.countdown-urgent { color: var(--danger); }

.meta-text { font-size: 12px; color: var(--muted); }

.match-teams { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.match-teams.small { font-size: 14px; margin: 0; }
.vs { color: var(--muted); font-weight: 400; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }

.odds-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.odd-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.odd-btn:hover { background: var(--line-soft); }

.odd-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.odd-btn.selected .odd-label { color: var(--accent-ink); opacity: 0.75; }

.odd-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.04em; color: var(--muted); }
.odd-value { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }

.odds-row.market-2 { grid-template-columns: 1fr 1fr; }
.odds-row.market-3 { grid-template-columns: 1fr 1fr 1fr; }

.odds-row.inline {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.odds-row.inline .odd-btn {
  flex-direction: row;
  padding: 8px 14px;
  border-radius: 999px;
  gap: 0;
}

.odds-row.inline .odd-label { display: none; }
.odds-row.inline .odd-value { font-size: 13px; font-weight: 600; }

.more-markets { margin-top: 10px; }

.more-markets summary {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.more-markets summary::-webkit-details-marker { display: none; }
.more-markets[open] summary { margin-bottom: 10px; }

.market-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.more-markets .odds-row { margin-bottom: 4px; }

.betslip-count { color: var(--muted); font-weight: 400; }

.remove-selection {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}

.betslip { background: var(--surface2); border-radius: 16px; padding: 20px; height: fit-content; position: sticky; top: 16px; }

.betslip-header { display: flex; justify-content: space-between; align-items: center; }

.betslip-close { display: none; background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

.betslip-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 58;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  position: relative;
}

.bottom-nav-item i { font-size: 19px; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-account.logged-in { color: var(--gold); }
.bottom-nav-account.logged-in.active { color: var(--accent); }

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.betslip-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 55;
}

@media (max-width: 720px) {
  .bottom-nav { display: flex; }
  .app { padding-bottom: 56px; }
  .site-footer { padding-bottom: 80px; }

  /* No mobile o rodape ja lista esses links e o bottom-nav cobre a
     navegacao principal - o header some com espaco pra tres links de texto
     junto com a logo, entao mantem so o botao de tema aqui. */
  .header-right .header-link { display: none; }

  .betslip-overlay.open { display: block; }

  .betslip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    z-index: 60;
    transform: translateY(110%);
    transition: transform 0.25s ease;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  }

  .betslip.open { transform: translateY(0); }

  .betslip-close { display: block; }
}

.betslip-empty { font-size: 13px; color: var(--muted); }

.betslip-selection { background: var(--bg); border-radius: 10px; padding: 10px; margin-bottom: 12px; }

.betslip-match { font-size: 12px; color: var(--muted); margin: 0 0 4px; }

.betslip-pick { display: flex; justify-content: space-between; align-items: baseline; }

.odds-highlight { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }

.betslip-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input:not([type]),
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder {
  color: var(--muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input:not([type]):focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.betslip-return { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.btn-primary {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  width: 100%;
  background: var(--line-soft);
  border: none;
  border-radius: 999px;
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-share {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.btn-share:hover { background: var(--accent-hover); }

.odds-row.disabled { opacity: 0.4; }
.odds-row.disabled .odd-btn { cursor: not-allowed; }

.bet-code {
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 12px;
}

.error-text { color: var(--danger); font-size: 12px; margin: 4px 0; min-height: 14px; }

.age-gate {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #10262a, #0a1416);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-card { max-width: 380px; text-align: center; }

.age-gate-brand { font-size: 20px; font-weight: 500; color: #fff; margin: 4px 0 20px; }

.age-gate-question { font-size: 18px; font-weight: 500; color: #fff; margin: 0 0 24px; }

.age-gate-actions { display: flex; gap: 12px; }
.age-gate-actions .btn-primary, .age-gate-actions .btn-secondary { width: auto; flex: 1; }

.site-footer {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 32px 24px 24px;
  border-top: 1px solid var(--line);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; color: var(--ink); margin: 0 0 2px; text-transform: uppercase; letter-spacing: 0.08em; }

.footer-col a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.footer-highlight { color: var(--accent); }

.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-brand .logo-mark { width: 24px; }
.footer-brand .wordmark { font-size: 15px; }

.footer-tagline { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px;
  color: var(--muted);
}

.footer-age-badge {
  background: var(--surface);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

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

.info-page { max-width: 720px; margin: 0 auto; }

.info-header { text-align: center; margin-bottom: 28px; }

.info-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin: 10px 0 0; text-transform: uppercase; letter-spacing: 0.08em; }

.info-intro { background: var(--surface); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.info-intro h2 { font-family: 'Fraunces', serif; font-size: 16px; margin: 0 0 10px; }
.info-intro p { font-size: 14px; color: var(--muted3); line-height: 1.6; margin: 0 0 10px; }
.info-intro p:last-child { margin-bottom: 0; }

.info-section { border-top: 0.5px solid var(--line); padding: 20px 0; }
.info-section h3 { display: flex; align-items: center; gap: 8px; font-family: 'Fraunces', serif; font-size: 15px; margin: 0 0 10px; }
.info-section h3 i { color: var(--accent); font-size: 18px; }
.info-section p { font-size: 13px; color: var(--muted3); line-height: 1.6; margin: 0 0 10px; }
.info-section ul { margin: 0 0 10px; padding-left: 20px; }
.info-section li { font-size: 13px; color: var(--muted3); line-height: 1.7; }

.info-recap { background: var(--surface); border-radius: 14px; padding: 20px 24px; margin-top: 12px; }
.info-recap-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.info-recap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.info-recap-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.info-recap-list i { color: var(--accent); font-size: 16px; flex-shrink: 0; }

.info-footer { text-align: center; padding: 32px 0 8px; }
.info-footer p { font-size: 13px; color: var(--muted3); margin: 12px 0 0; }

.auth-page { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; padding: 60px 20px; }
.auth-page > .auth-card,
.auth-page > .ticket { flex: 1 1 340px; margin: 0; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.auth-card h1 { font-family: 'Fraunces', serif; font-size: 18px; text-align: center; margin: 0 0 20px; }

.auth-card label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.auth-switch a { color: var(--accent); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-overlay.open { display: flex; }

.modal { background: var(--surface); border-radius: 14px; padding: 20px; width: 320px; }

.modal-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.modal-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.modal-actions { display: flex; gap: 10px; }

.bets-list { display: flex; flex-direction: column; gap: 8px; }

.bet-ticket { background: var(--surface); border-radius: 12px; padding: 14px; }

.hidden-item { display: none !important; }

.show-more-btn { text-align: center; }

.bet-summary-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.bet-summary-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.bet-summary-toggle.result-won .bet-summary-icon { background: #1D9E75; color: #04342C; }
.bet-summary-toggle.result-lost .bet-summary-icon { background: #E24B4A; color: #501313; }
.bet-summary-toggle.result-pending .bet-summary-icon { background: #3a2f14; color: #FAC775; font-size: 11px; }
.bet-summary-toggle.result-neutral .bet-summary-icon { background: var(--line-soft); color: var(--muted); }
.bet-summary-name { flex: 1; color: var(--ink); font-size: 13.5px; }
.bet-summary-value { font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink); font-size: 13.5px; }
.bet-summary-caret { color: var(--muted); font-size: 11px; transition: transform 0.15s ease; }
.bet-ticket-body[hidden] { display: none; }
.bet-ticket-body { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--line); }
.bet-ticket:has(.bet-ticket-body:not([hidden])) .bet-summary-caret { transform: rotate(180deg); }

.leg-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 0.5px solid var(--line);
}

@media (max-width: 720px) {
  .leg-row { grid-template-columns: 1fr; gap: 6px; }
}

.agent-row { padding: 10px 0; border-top: 0.5px solid var(--line); }
.agent-row-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Cada acao (salvar comissao, resetar senha, bloquear...) e um form
   separado - lado a lado eles quebram linha de um jeito desalinhado
   (um form maior empurra o resto pra posicoes estranhas). Empilhado
   sempre, em qualquer largura de tela, fica previsivel e facil de ler. */
.agent-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; }
.agent-row-actions form { display: flex; gap: 6px; align-items: center; width: 100%; }
.agent-row-actions input[type="number"],
.agent-row-actions input[type="text"],
.agent-row-actions select {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
}
.agent-row-actions button { flex-shrink: 0; }

.agent-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 720px) {
  .agent-form-grid { grid-template-columns: 1fr; }
}
.status-badge.status-ativo { background: var(--line-soft); color: var(--accent); }
.status-badge.status-bloqueado { background: #3a1414; color: #E24B4A; }

.bet-row {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
}

.bet-pick { display: flex; flex-direction: column; align-items: center; font-size: 13px; }
.bet-amounts { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }

.client-row { text-decoration: none; color: inherit; transition: background 0.15s ease; }
.client-row:hover { background: var(--line-soft); }

.status-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status-pending { background: var(--line-soft); color: var(--muted3); }
.status-won { background: #1D9E75; color: #04342C; }
.status-lost { background: #E24B4A; color: #501313; }
.status-paid { background: #5DCAA5; color: #04342C; }
.status-aguardando { background: #3a2f14; color: #FAC775; }
.status-recusado { background: #3a1414; color: #E24B4A; }
.status-cancelado { background: var(--line-soft); color: var(--muted3); }

.ticket { max-width: 400px; margin: 24px auto 0; }

.ticket-card {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 22px 22px 18px;
}

.ticket-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.ticket-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.ticket-wordmark { font-size: 16px; color: var(--ink); }

.status-pill { margin-left: auto; border-radius: 999px; }

.ticket-code-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.ticket-code { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink); margin: 0 0 2px; }
.ticket-code-meta { font-size: 11px; color: var(--muted); margin: 0; }

.ticket-perf { position: relative; height: 20px; background: var(--bg); }

.ticket-body { background: var(--bg); padding: 4px 22px 20px; }
.ticket-body.no-result { border-radius: 0 0 20px 20px; }

.ticket-leg { border-bottom: 1px dashed var(--line); padding: 0 0 12px; margin-bottom: 14px; }
.ticket-leg-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.ticket-leg-league { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ticket-leg-teams { font-family: 'Fraunces', serif; font-size: 14px; color: var(--ink); margin: 0 0 4px; font-weight: 600; }
.ticket-leg-teams .vs { color: var(--muted); font-weight: 400; }
.ticket-leg-pick { font-size: 12px; color: var(--muted2); margin: 0 0 4px; }
.ticket-leg-date { font-size: 11px; color: var(--muted); margin: 0 0 8px; }
.ticket-leg-status { display: flex; justify-content: flex-end; }
.ticket-leg-status .status-badge { border-radius: 5px; padding: 3px 9px; letter-spacing: 0.04em; text-transform: uppercase; }

.ticket-totals-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted2); margin-bottom: 6px; }
.ticket-totals-row.highlight { font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.ticket-totals-row.highlight span:first-child { color: var(--ink); }
.ticket-totals-row .odds-highlight { color: var(--accent); font-weight: 600; }
.ticket-payout { color: var(--gold); }

.ticket-validated { font-size: 11px; color: var(--muted); text-align: center; margin: -4px 0 16px; }

.ticket-actions { display: flex; gap: 8px; }
.ticket-actions .btn-share { flex: 1; margin: 0; justify-content: center; }
.ticket-copy-btn {
  width: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ticket-result {
  text-align: center;
  padding: 12px;
  border-radius: 0 0 20px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticket-result.result-won { background: #5DCAA5; color: #04342C; }
.ticket-result.result-lost { background: #E24B4A; color: #501313; }
.ticket-result.result-paid { background: #5DCAA5; color: #04342C; }

.caixa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.caixa-card { background: var(--surface); border-radius: 12px; padding: 16px; }

.caixa-value { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; margin: 6px 0 0; }
.caixa-positive { color: var(--accent-soft); }
.caixa-negative { color: var(--danger); }

@media (max-width: 720px) {
  .caixa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; }
  .bet-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .match-row-head { flex-direction: column; align-items: flex-start; }
  .odds-row.inline { width: 100%; }
  .odds-row.inline .odd-btn { flex: 1; justify-content: center; }
}

