@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1220;
  --surface: #121a2b;
  --surface-2: #18223a;
  --border: #22304d;
  --text: #e8eef9;
  --text-2: #8a9ab8;
  --brand: #22c55e;
  --brand-ink: #04220f;
  --odd-bg: #1b2640;
  --odd-selected: #22c55e;
  --live: #ef4444;
  --warning: #f59e0b;
  --radius-card: 10px;
  --radius-btn: 8px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: calc(56px + var(--safe-top));
  --tab-h: calc(60px + var(--safe-bottom));
}

/* ═══ HEADER AUTH/USER STYLES ═══ */
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 8px;
}
.header-logo img { height: 28px; display: block; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 16px;
  border-radius: 50%;
}
.header-icon-btn:hover { color: var(--text); background: var(--surface-2); }

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
}
.btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  border-radius: var(--radius-btn);
  padding: 8px 16px;
  font-size: 13px;
}
.btn-sm { padding: 6px 14px; font-size: 12px; }

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.balance-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.user-menu { position: relative; }
.avatar-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 13px; font-weight: 600;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 44px; right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.user-dropdown.open { display: block; }
.dropdown-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
  transition: background .15s;
}
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-item i { width: 16px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 2000; display: none; flex-direction: column;
}
.search-overlay.active { display: flex; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 15px; outline: none;
}
.search-close { color: var(--brand); font-size: 14px; font-weight: 500; padding: 8px; }
.search-results { flex: 1; overflow-y: auto; padding: 8px 0; }

/* Cupom float responsive fix */
.cupom-float {
  position: fixed;
  bottom: 60px;
  left: 0; right: 0;
  z-index: 999;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}
.cupom-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
}
.cupom-float-count { font-weight: 600; font-size: 14px; }
.cupom-float-odd { font-size: 13px; font-variant-numeric: tabular-nums; }
.cupom-float-arrow { font-size: 13px; font-weight: 500; }

/* League arrow transition */
.league-arrow { transition: transform .2s; font-size: 12px; color: var(--text-2); }
.league-group.collapsed .league-arrow { transform: rotate(-90deg); }
.league-group.collapsed .league-games { display: none; }

/* League header layout */
.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.league-name { display: flex; align-items: center; gap: 6px; }
.league-flag { font-size: 14px; }
.league-count {
  display: inline-block; background: var(--surface-2); color: var(--text-2);
  font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: 4px;
}




/* Main content area */
.main-content {
  padding-bottom: calc(20px + var(--tab-h));
  min-height: 100vh;
}

.games-container {
  max-width: 720px;
  margin: 0 auto;
}

/* League count badge */
.league-count {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* League games container */
.league-games {
  overflow: hidden;
}
.league-group.collapsed .league-games {
  display: none;
}
.league-group.collapsed .league-arrow {
  transform: rotate(-90deg);
}

/* Markets link */
.game-more {
  text-align: right;
  padding: 0 12px 6px;
}
.markets-link {
  font-size: 11px;
  color: var(--brand);
  font-weight: 500;
}
.markets-link i {
  font-size: 9px;
  margin-left: 2px;
}

/* Game row live pulse */
.game-row--live {
  border-left: 3px solid var(--live);
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 4px;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.game-time.live {
  color: var(--live);
  font-weight: 600;
}

/* Load more button */
.load-more-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 12px auto;
  padding: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 13px;
  cursor: pointer;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-2);
  text-align: center;
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Game info layout fix */
.game-info {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.game-time {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.game-team {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Header back button for game page */
.header-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 18px;
}
.header-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: none;
  flex-direction: column;
}
.search-overlay.active {
  display: flex;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.search-bar i {
  color: var(--text-2);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.search-close {
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.search-no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-2);
}

/* =========================================
   1. Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  padding-top: var(--header-h); /* fixed header height */
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* =========================================
   2. Header (.app-header)
   ========================================= */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding-top: var(--safe-top);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.header-logo {
  height: 28px;
  display: flex;
  align-items: center;
}

.header-logo img, .header-logo svg {
  height: 100%;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-2);
  transition: color 0.2s;
}

.search-btn:hover {
  color: var(--text);
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 0 12px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-register {
  font-size: 14px;
  font-weight: 600;
  background-color: var(--brand);
  color: var(--brand-ink);
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.balance-pill {
  display: flex;
  align-items: center;
  background-color: var(--surface-2);
  border-radius: 18px;
  height: 36px;
  padding: 0 4px 0 12px;
  gap: 8px;
}

.balance-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.btn-deposit {
  background-color: var(--brand);
  color: var(--brand-ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg);
  z-index: 1010;
  display: none;
  flex-direction: column;
}

.search-overlay.active {
  display: flex;
}

.search-header {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  height: 36px;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  padding: 0 12px 0 36px;
  font-size: 14px;
}

.search-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
}

.search-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
}

.search-close {
  color: var(--text-2);
  font-size: 14px;
  padding: 8px;
}

/* =========================================
   3. Sport Chips (.sport-chips)
   ========================================= */
.sport-chips {
  position: sticky;
  top: var(--header-h);
  background: var(--bg);
  height: 44px;
  z-index: 999;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.sport-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  background-color: var(--surface-2);
  color: var(--text-2);
  transition: all 0.2s;
  flex-shrink: 0;
  gap: 6px;
}

.chip svg {
  width: 16px;
  height: 16px;
}

.chip.active {
  background-color: var(--brand);
  color: var(--brand-ink);
}

.chip:hover:not(.active) {
  background-color: var(--border);
  color: var(--text);
}

/* =========================================
   4. Period Tabs (.period-tabs)
   ========================================= */
.period-tabs {
  display: flex;
  height: 36px;
  background-color: var(--surface);
  position: relative;
  z-index: 98;
  border-radius: 8px;
  margin: 8px 12px;
  padding: 2px;
}

.period-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: all 0.2s;
}

.period-tab.active {
  background-color: var(--surface-2);
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* =========================================
   5. League Chips (.league-chips)
   ========================================= */
.league-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.league-chips::-webkit-scrollbar {
  display: none;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  flex-shrink: 0;
  gap: 6px;
}

/* =========================================
   6. Game List
   ========================================= */
.game-list {
  padding-bottom: 20px;
}

.league-group {
  margin-bottom: 12px;
  background-color: var(--bg);
}

.league-header {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.league-header-flag {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.league-header-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.league-header-arrow {
  color: var(--text-2);
  transition: transform 0.2s;
}

.league-group.collapsed .league-header-arrow {
  transform: rotate(-90deg);
}

.league-group.collapsed .game-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  position: relative;
}

.game-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  min-height: 76px;
  gap: 12px;
}

.game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.game-time {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-team {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-team-score {
  margin-left: auto;
  font-weight: 600;
  color: var(--brand);
}

.game-odds {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
/* Game right column: odds + more link */
.game-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.game-more {
  text-align: right;
}



.odd-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  background-color: var(--odd-bg);
  border-radius: var(--radius-btn);
  transition: background-color 0.2s, color 0.2s;
}

.odd-label {
  font-size: 10px;
  color: var(--text-2);
  margin-bottom: 2px;
  font-weight: 500;
}

.odd-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.odd-btn.selected {
  background-color: var(--odd-selected);
}

.odd-btn.selected .odd-label,
.odd-btn.selected .odd-value {
  color: var(--brand-ink);
}

.odd-btn:hover:not(.selected) {
  background-color: var(--surface-2);
}

@media (hover: none) {
  .odd-btn:hover:not(.selected) {
    background-color: var(--odd-bg);
  }
}

.more-markets {
  font-size: 11px;
  color: var(--brand);
  font-weight: 500;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
}

.more-markets:hover {
  text-decoration: underline;
}

/* =========================================
   7. Skeleton Loading (.skeleton)
   ========================================= */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 4px;
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 90%; }

.skeleton-game {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.skeleton-game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skeleton-game-time {
  width: 60px;
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-game-team {
  width: 120px;
  height: 16px;
  margin-bottom: 6px;
}

.skeleton-game-odds {
  display: flex;
  gap: 6px;
  align-items: center;
}

.skeleton-odd-btn {
  width: 56px;
  height: 48px;
  border-radius: var(--radius-btn);
}

/* =========================================
   8. Bottom Tab Bar (.tab-bar)
   ========================================= */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-h);
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding-bottom: var(--safe-bottom);
  z-index: 1000;
}







.tab-label {
  font-size: 11px;
  font-weight: 500;
}

.tab-item.active {
  color: var(--brand);
}

.tab-item:hover:not(.active) {
  color: var(--text);
}

/* =========================================
   9. Cupom Bottom Sheet
   ========================================= */
.cupom-wrapper {
  position: fixed;
  bottom: var(--tab-h);
  left: 0;
  right: 0;
  z-index: 1005;
  pointer-events: none;
}

.cupom-float {
  background-color: var(--brand);
  color: var(--brand-ink);
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(100%);
}

.cupom-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}

.cupom-float-count {
  font-weight: 600;
  font-size: 14px;
}

.cupom-float-odd {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cupom-float-arrow {
  font-size: 13px;
  font-weight: 500;
}



.cupom-float.visible {
  transform: translateY(0);
}

.cupom-float-info {
  font-size: 14px;
  font-weight: 600;
}

.cupom-float-action {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cupom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cupom-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cupom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-radius: 16px 16px 0 0;
  z-index: 1020;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cupom-sheet.open {
  transform: translateY(0);
}

.cupom-drag-handle {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.cupom-drag-handle::after {
  content: '';
  width: 40px;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
}

.cupom-header {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cupom-title {
  font-size: 16px;
  font-weight: 700;
}

.cupom-clear {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.cupom-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.cupom-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
}

.cupom-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.cupom-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cupom-item {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.cupom-item-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--text-2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cupom-item-selection {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-right: 30px;
}

.cupom-item-market {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.cupom-item-event {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.cupom-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.cupom-item-odd {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cupom-stake-input-group {
  display: flex;
  align-items: center;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  height: 40px;
}

.cupom-stake-currency {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
}

.cupom-stake-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  width: 80px;
  outline: none;
}

.cupom-quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cupom-quick-amounts::-webkit-scrollbar { display: none; }

.btn-quick-amount {
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.sheet-summary {
  padding: 16px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.summary-row.total .val {
  color: var(--brand);
}

.cupom-options {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

input[type="checkbox"]:checked + .checkbox-custom {
  background-color: var(--brand);
  border-color: var(--brand);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: bold;
}

.btn-submit-bet {
  width: 100%;
  height: 52px;
  background-color: var(--brand);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: env(safe-area-inset-bottom);
}

/* =========================================
   10. Game Page (.game-page)
   ========================================= */
.game-page {
  padding-top: var(--header-h);
  padding-bottom: calc(20px + var(--tab-h));
}

.game-page-header {
  background-color: var(--surface);
  padding: 24px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.game-page-league {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.game-page-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.game-page-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-logo {
  width: 48px;
  height: 48px;
  background-color: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.game-page-vs {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
}

.game-page-time {
  font-size: 13px;
  color: var(--text-2);
}

.market-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 990;
  background-color: var(--bg);
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar { display: none; }

.market-tab {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.market-tab.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.market-group {
  margin-top: 8px;
  background-color: var(--surface);
}

.market-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.market-header-icon {
  color: var(--text-2);
  transition: transform 0.2s;
}

.market-group.collapsed .market-header-icon {
  transform: rotate(-180deg);
}

.market-content {
  padding: 0 16px 16px;
}

.market-group.collapsed .market-content {
  display: none;
}

.odds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.odds-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.odd-card {
  background-color: var(--odd-bg);
  border-radius: var(--radius-btn);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s;
}

.odd-card-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.odd-card-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.odd-card.selected {
  background-color: var(--odd-selected);
  color: var(--brand-ink);
}

.odd-card.selected .odd-card-label {
  color: var(--brand-ink);
}

.odd-card:hover:not(.selected) {
  background-color: var(--surface-2);
}

/* =========================================
   11. Minhas Apostas
   ========================================= */
.bets-page {
  padding-top: var(--header-h);
  padding-bottom: calc(20px + var(--tab-h));
}

.bets-filters {
  display: flex;
  overflow-x: auto;
  padding: 16px;
  gap: 8px;
  background-color: var(--bg);
  scrollbar-width: none;
}

.bets-filters::-webkit-scrollbar { display: none; }

.bet-filter {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.bet-filter.active {
  background-color: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.bet-list {
  padding: 0 16px 16px;
}

.bet-card {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.bet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.bet-type {
  font-size: 14px;
  font-weight: 700;
}

.bet-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.bet-status.active {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--brand);
}

.bet-status.won {
  background-color: var(--brand);
  color: var(--brand-ink);
}

.bet-status.lost {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--live);
}

.bet-selection {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bet-market, .bet-event {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.bet-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.bet-amount-block {
  display: flex;
  flex-direction: column;
}

.bet-amount-label {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.bet-amount-value {
  font-size: 15px;
  font-weight: 700;
}

.bet-amount-value.success {
  color: var(--brand);
}

/* =========================================
   12. Footer
   ========================================= */
.app-footer {
  padding: 32px 16px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--text);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.footer-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}

.footer-text {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   13. Utilities
   ========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand);
  color: var(--brand-ink);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
}

.toast.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { top: 0; opacity: 0; }
  to { top: 70px; opacity: 1; }
}

/* =========================================
   14. Live indicator
   ========================================= */
@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--live);
  border-radius: 50%;
  animation: pulseLive 2s infinite;
}

/* =========================================
   15. Desktop adaptations & 16. Accessibility
   ========================================= */
/* Accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Ensure minimum touch target for interactive elements on mobile */
@media (max-width: 767px) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Desktop Layout */
@media (min-width: 768px) {
  body {
    background-color: var(--bg);
  }
  
  .app-header {
    height: 64px;
    padding: 0 32px;
  }
  
  .sport-chips,
  .market-tabs {
    top: 64px;
    justify-content: center;
  }
  
  /* Main Content Layout Wrapper */
  .layout-wrapper {
    max-width: 1080px; /* 720 content + 340 sidebar + 20 gap */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 64px;
  }
  
  .main-content {
    flex: 1;
    max-width: 720px;
    min-width: 0;
  }
  
  .game-page, .bets-page {
    padding-top: 0;
    padding-bottom: 40px;
  }
  
  /* Hide Mobile Tab Bar */
  .tab-bar {
    display: none;
  }
  
  /* Sidebar Cupom */
  .cupom-wrapper {
    position: sticky;
    top: 84px; /* 64 header + 20 margin */
    right: 0;
    width: 340px;
    height: calc(100vh - 104px); /* Account for top margins */
    margin-left: 20px;
    z-index: 900;
    pointer-events: auto;
    bottom: auto;
  }
  
  .cupom-float,
  .cupom-backdrop,
  .cupom-drag-handle {
    display: none;
  }
  
  .cupom-sheet {
    position: relative;
    transform: none !important;
    max-height: none;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  }
  
  .btn-submit-bet {
    margin-bottom: 0;
  }
}


/* ═══ CUPOM BOTTOM SHEET ═══ */
.cupom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cupom-sheet.open {
  transform: translateY(0);
}

.cupom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cupom-backdrop.active {
  display: block;
  opacity: 1;
}

.cupom-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  cursor: grab;
}
.cupom-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--text-2);
  border-radius: 4px;
  opacity: 0.5;
}

.cupom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}
.cupom-sheet-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.cupom-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 50%;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.cupom-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: 8px;
  margin: 12px 16px;
  height: 36px;
  padding: 2px;
}
.cupom-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}
.cupom-tab.active {
  background: var(--brand);
  color: var(--brand-ink);
}

.cupom-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}
.cupom-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-2);
}

.selection-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}
.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.selection-league {
  font-size: 11px;
  color: var(--text-2);
}
.selection-remove {
  background: none; border: none; color: var(--text-2); padding: 4px;
}
.selection-match {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.selection-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selection-market {
  font-size: 13px;
  color: var(--text-2);
}
.selection-odd {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.cupom-sheet-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cupom-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.quick-values {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.quick-btn {
  flex: 1;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.value-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  margin-bottom: 12px;
}
.value-input-wrap span {
  font-weight: 600;
  color: var(--text-2);
  margin-right: 8px;
}
.value-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.sheet-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.sheet-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
}
.sheet-summary-row.highlight {
  color: var(--text);
  font-weight: 600;
}
.sheet-summary-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sheet-summary-row.highlight .sheet-summary-val {
  color: var(--brand);
  font-size: 16px;
}

.btn-place-bet {
  width: 100%;
  height: 52px;
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}
.btn-place-bet:disabled {
  background: var(--surface-2);
  color: var(--text-2);
}

@media(min-width: 1024px) {
  .cupom-backdrop { display: none !important; }
  .cupom-sheet {
    transform: translateY(0);
    position: fixed;
    top: 60px; right: 20px; bottom: 20px; left: auto;
    width: 340px;
    height: calc(100vh - 80px);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
}

.sheet-tabs { display: flex; background: var(--surface-2); border-radius: 8px; margin: 12px 16px; height: 36px; padding: 2px; }
.sheet-tab { flex: 1; border: none; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; border-radius: 6px; }
.sheet-tab.active { background: var(--brand); color: var(--brand-ink); }
.sheet-header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 12px; border-bottom: 1px solid var(--border); }
.sheet-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--text); }
.sheet-close { background: var(--surface-2); border: none; color: var(--text-2); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 16px; }
.sheet-selections { margin-top: 12px; }
.sheet-empty { text-align: center; padding: 40px 0; color: var(--text-2); }
.sheet-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.sheet-accept { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.sheet-value { margin-bottom: 12px; }
.value-prefix { font-weight: 600; color: var(--text-2); margin-right: 8px; }
.value-input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 18px; font-weight: 700; outline: none; }
.summary-return { font-weight: 700; font-variant-numeric: tabular-nums; }


/* Esconder tab bar quando o sheet estiver aberto */
body:has(.cupom-sheet.open) .tab-bar {
  display: none !important;
}
body:has(.cupom-sheet.open) .cupom-float {
  display: none !important;
}

/* Narrow screens: keep balance visible, hide search if needed */
@media (max-width: 360px) {
  .header-search { display: none !important; }
  .balance-pill { font-size: 12px; padding: 4px 8px; }
  .balance-value { font-size: 12px; }
}

/* Ensure value input has proper touch target */
.value-input, #stakeInput, input[inputmode="decimal"] {
  min-height: 48px !important;
  font-size: 18px !important;
  padding: 8px 12px !important;
}
.value-input-wrap {
  min-height: 48px !important;
}

/* Header auth loading skeleton */
.header-auth-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skeleton-pill, .skeleton-circle {
  animation: shimmer 1.5s infinite;
}
.balance-value.loading {
  opacity: 0.6;
  animation: shimmer 1.5s infinite;
}

/* Tab bar items: consistent across <a> and <button> */
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  gap: 2px;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 0;
}
.tab-item i {
  font-size: 20px;
  line-height: 1;
}
.tab-item span {
  font-size: 10.5px !important;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
}
.tab-item.active { color: var(--brand); }

/* F1-UI-START — Fase 1: tipografia, contraste, footer, toast, skeleton, empty state, toque 44px, sucesso/ticket */

/* ── 7. Tipografia: escala e familias ── */
:root {
  --text-2: #94a3b8;              /* contraste ~7:1 sobre #0b1220 (antes #8a9ab8) */
  --text-3: #8b9bb4;              /* cinza mais discreto, ainda >= 4.5:1 */
  --text-dark: #94a3b8;           /* style.css usava #64748b (3.9:1) */
  --text-muted: #a3b1c6;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --lh-tight: 1.15;
  --lh-base: 1.5;
}
body { font-family: var(--font-body); }
h1, h2, h3,
.page-title, .content-header h1, .pag-card-header h2, .sheet-title, .legal-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .2px;
  line-height: var(--lh-tight);
}
.sheet-title { font-size: var(--fs-xl); }
/* Numeros em destaque: saldo, odds, bonus, totais */
.num, .balance-value, .balance-amount, .balance-bonus, .saldo-valor, .confirmado-valor, .qr-valor,
.hist-resumo-valor, .hist-valor, .stat-value, .ref-code-box,
.odd-value, .market-odd-val, .selection-odd, .summary-odd, .summary-return, .cupom-float-odd,
.bet-footer-value.highlight, .bet-item-odd, .bet-ok-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.balance-value { font-size: var(--fs-md); }
.odd-value, .market-odd-val { font-size: 17px; }
.selection-odd { font-size: var(--fs-lg); }
.summary-return { font-size: var(--fs-xl); color: var(--brand); }
.summary-odd { font-size: var(--fs-lg); }
.cupom-float-odd { font-size: var(--fs-md); }
.bet-footer-value.highlight { font-size: var(--fs-lg); }

/* ── 8. Acessibilidade: alvos de toque >= 44px, foco visivel ── */
.header-icon-btn, .sheet-close, .modal-close, .selection-remove, .header-back, .cupom-close, .back-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-btn { width: 40px; height: 40px; position: relative; }
.avatar-btn::after { content: ''; position: absolute; inset: -4px; }
.quick-btn { min-height: 44px; }
.tab-item { min-height: 48px; }
.odd-btn { min-height: 48px; min-width: 52px; }
.market-odd-btn, .score-btn { min-height: 48px; }
.chip, .league-chip, .period-tab, .filter-btn, .hist-tab, .bet-filter { position: relative; }
.chip::after, .league-chip::after, .filter-btn::after, .bet-filter::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ui-toast-close:focus-visible, .bet-ok-btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── 2. Footer padrao (todas as paginas do cliente) ── */
.site-footer {
  width: 100%;
  align-self: stretch;
  margin-top: 24px;
  padding: 28px 16px calc(var(--tab-h) + 28px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: 1.6;
  box-sizing: border-box;
}
body:has(.cupom-float.visible) .site-footer { padding-bottom: calc(var(--tab-h) + 84px); }
.site-footer .footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 4px; margin: 0 auto 12px; max-width: 640px;
}
.site-footer .footer-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 10px;
  color: var(--text); font-size: var(--fs-sm); font-weight: 500;
  border-radius: 8px; text-decoration: none;
}
.site-footer .footer-links a:hover { color: var(--brand); background: var(--surface-2); }
.site-footer .footer-warning {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 4px auto 14px; max-width: 520px; color: var(--text-2); font-size: var(--fs-xs);
}
.site-footer .age-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #ef4444; color: #fca5a5;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
}
.site-footer .footer-rg { text-align: left; }
.site-footer .footer-rg strong { display: block; color: var(--text); font-size: var(--fs-sm); }
.site-footer .footer-company { color: var(--text-2); font-size: var(--fs-xs); }
.site-footer .footer-company strong { color: var(--text); font-family: var(--font-display); font-size: var(--fs-md); letter-spacing: .5px; }
.site-footer .footer-company a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  color: var(--brand); font-weight: 600; text-decoration: none;
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 28px; }
  body:has(.cupom-float.visible) .site-footer { padding-bottom: 28px; }
}
/* O footer ja reserva o espaco da tab bar: evita espaco duplo no fim do conteudo */
body:has(.site-footer) .main-content,
body:has(.site-footer) .bets-content,
body:has(.site-footer) .game-page,
body:has(.site-footer) .bets-page { padding-bottom: 16px; }
/* Cinzas legados abaixo de 4.5:1 sobre o fundo escuro */
.ref-date, .lookup-form input::placeholder, .search-bar input::placeholder { color: var(--text-2); }

/* ── 5. Toast unificado (topo) ── */
.ui-toasts {
  position: fixed; z-index: 100000;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%; transform: translateX(-50%);
  width: min(480px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.ui-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; min-height: 52px;
  background: #16213a; color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; line-height: 1.4;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease;
}
.ui-toast.show { opacity: 1; transform: none; }
.ui-toast.hide { opacity: 0; transform: translateY(-8px); }
.ui-toast-icon { font-size: 18px; flex: 0 0 auto; }
.ui-toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ui-toast-close {
  flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.ui-toast-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.ui-toast--success { border-left-color: #22c55e; } .ui-toast--success .ui-toast-icon { color: #22c55e; }
.ui-toast--error   { border-left-color: #ef4444; } .ui-toast--error .ui-toast-icon { color: #f87171; }
.ui-toast--warning { border-left-color: #f59e0b; } .ui-toast--warning .ui-toast-icon { color: #fbbf24; }
.ui-toast--info    { border-left-color: #3b82f6; } .ui-toast--info .ui-toast-icon { color: #60a5fa; }
/* containers antigos ficam ocultos (tudo vai para .ui-toasts) */
#toastContainer:empty { display: none; }

/* ── 4. Skeleton (shimmer) ── */
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk, .skeleton-bar {
  display: block;
  background: linear-gradient(90deg, var(--surface) 0%, #223051 45%, var(--surface) 90%);
  background-size: 200% 100%;
  animation: skShimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
.sk-wrap { max-width: 720px; margin: 0 auto; padding: 4px 0; }
.sk-line { height: 12px; margin: 7px 0; }
.sk-line.sm { height: 10px; } .sk-line.lg { height: 15px; } .sk-line.xl { height: 20px; }
.sk-line.c { margin-left: auto; margin-right: auto; }
.w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.sk-league { padding: 8px 16px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sk-game { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sk-game-info { flex: 1; min-width: 0; }
.sk-game-odds { display: flex; gap: 4px; }
.sk-odd { width: 56px; height: 48px; border-radius: var(--radius-btn); }
.sk-odd.wide { width: auto; height: 52px; }
.sk-hero { padding: 20px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.sk-hero-teams { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0; }
.sk-tabs { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.sk-tab { width: 80px; height: 28px; border-radius: 14px; }
.sk-market { padding: 8px 12px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 0; }
.sk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 14px; margin-bottom: 10px; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sk-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.sk-pill { width: 64px; height: 20px; border-radius: 10px; }
.sk-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sk-circle { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.sk-item-body { flex: 1; min-width: 0; }
/* skeleton estatico ja existente na home */
.skeleton-container { max-width: 720px; margin: 0 auto; }
.skeleton-league { padding: 8px 16px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skeleton-league .skeleton-bar { height: 12px; }
.skeleton-game { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.skeleton-game .skeleton-bar { height: 12px; }
.skeleton-game .skeleton-bar.w40 { height: 10px; }

/* ── 4. Empty state ── */
.ui-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 48px 20px; color: var(--text-2);
}
.ui-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-2); font-size: 28px;
}
.ui-empty .ui-empty-icon i { margin: 0; opacity: 1; font-size: 28px; display: inline; }
.ui-empty-title { margin: 0; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); line-height: var(--lh-tight); }
.ui-empty-text { margin: 0; max-width: 320px; font-size: var(--fs-sm); color: var(--text-2); }
.ui-empty-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; min-height: 44px; padding: 0 22px;
  background: var(--brand); color: var(--brand-ink) !important;
  border: 0; border-radius: 10px; font-weight: 700; font-size: var(--fs-sm);
  text-decoration: none; cursor: pointer;
}
.ui-empty-btn:hover { filter: brightness(1.08); }

/* ── 6. Tela de sucesso da aposta ── */
.bet-ok-overlay {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 7, 15, .78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 0;
}
.bet-ok-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 24px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  box-shadow: 0 -12px 40px rgba(0,0,0,.5);
  animation: betOkUp .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes betOkUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 520px) {
  .bet-ok-overlay { align-items: center; padding: 24px 16px; }
  .bet-ok-card { border-radius: 20px; border-bottom: 1px solid var(--border); }
}
.bet-ok-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); border-radius: 50%; font-size: 18px; }
.bet-ok-x:hover { background: var(--surface-2); color: var(--text); }
.bet-ok-head { text-align: center; margin-bottom: 16px; }
.bet-ok-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 10px;
  background: rgba(34,197,94,.15); color: var(--brand); font-size: 26px;
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
}
.bet-ok-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; outline: none; }
.bet-ok-sub { margin: 4px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.bet-ok-ticket { text-align: center; background: var(--bg); border: 1px dashed #2e4166; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.bet-ok-label { display: block; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); }
.bet-ok-code-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.bet-ok-code { font-size: var(--fs-2xl); color: var(--text); letter-spacing: 1.5px; overflow-wrap: anywhere; }
.bet-ok-copy { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); border-radius: 10px; }
.bet-ok-copy:hover { background: var(--surface-2); }
.bet-ok-tipo { display: block; font-size: var(--fs-xs); color: var(--text-2); }
.bet-ok-sels { list-style: none; margin: 0 0 12px; padding: 0; max-height: 34vh; overflow-y: auto; }
.bet-ok-sel { padding: 10px 2px; border-bottom: 1px solid var(--border); }
.bet-ok-sel:last-child { border-bottom: 0; }
.bet-ok-sel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bet-ok-match { font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.bet-ok-odd { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--brand); font-variant-numeric: tabular-nums; }
.bet-ok-sel-sub { font-size: var(--fs-xs); color: var(--text-2); margin-top: 2px; }
.bet-ok-dot { opacity: .5; margin: 0 4px; }
.bet-ok-totals { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.bet-ok-tot { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; color: var(--text-2); font-size: var(--fs-sm); }
.bet-ok-tot strong { color: var(--text); font-size: var(--fs-lg); }
.bet-ok-tot.big { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.bet-ok-tot.big strong { color: var(--brand); font-size: var(--fs-2xl); }
.bet-ok-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bet-ok-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 12px; border-radius: 12px;
  font-size: var(--fs-sm); font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.bet-ok-btn.wa { grid-column: 1 / -1; background: #25d366; border-color: #25d366; color: #052e16; font-size: var(--fs-base); }
.bet-ok-btn.wa i { font-size: 20px; }
.bet-ok-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.bet-ok-btn.link { grid-column: 1 / -1; background: none; border: 0; color: var(--text-2); font-weight: 600; }
.bet-ok-btn.link:hover { color: var(--text); }
.print-ticket { display: none; }

/* ── 6. Impressao: ticket termico 80mm (72mm imprimivel) ── */
@media print {
  @page { size: 80mm auto; margin: 0; }
  body.printing-ticket { background: #fff !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
  body.printing-ticket > *:not(.bet-ok-overlay) { display: none !important; }
  body.printing-ticket .bet-ok-overlay {
    position: static !important; display: block !important; inset: auto !important;
    background: #fff !important; padding: 0 !important; overflow: visible !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  body.printing-ticket .bet-ok-card { display: none !important; }
  body.printing-ticket .print-ticket,
  body.printing-ticket .print-ticket * { visibility: visible !important; }
  body.printing-ticket .print-ticket {
    display: block !important;
    width: 72mm; max-width: 72mm; margin: 0 auto; padding: 3mm 0 6mm;
    background: #fff !important; color: #000 !important;
    font-family: 'IBM Plex Mono', 'Roboto Mono', 'Courier New', monospace;
    font-size: 11px; line-height: 1.35;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .print-ticket .pt-center { text-align: center; }
  .print-ticket .pt-brand { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
  .print-ticket .pt-title { font-weight: 700; letter-spacing: 1px; margin-top: 2px; }
  .print-ticket .pt-code { font-size: 15px; font-weight: 700; letter-spacing: 1px; margin: 2px 0 4px; }
  .print-ticket .pt-muted { font-size: 10px; color: #000; }
  .print-ticket .pt-sep { border-top: 1px dashed #000; margin: 5px 0; }
  .print-ticket .pt-row { display: flex; justify-content: space-between; gap: 6px; }
  .print-ticket .pt-row span:first-child { min-width: 0; }
  .print-ticket .pt-row b, .print-ticket .pt-row span:last-child { white-space: nowrap; }
  .print-ticket .pt-sel { margin: 4px 0; page-break-inside: avoid; break-inside: avoid; }
  .print-ticket .pt-sel-n { font-weight: 700; }
  .print-ticket .pt-big { font-size: 13px; font-weight: 700; margin-top: 2px; }
}
/* F1-UI-END */

/* LOGO-TRANSPARENTE: logo direto na barra, sem caixa */
.app-header .header-logo{height:38px;padding:0;margin:0;background:none;border:0;box-shadow:none;border-radius:0;display:flex;align-items:center;flex-shrink:0;line-height:0}
.header-logo picture{display:flex;align-items:center;height:100%}
.header-logo img,.header-logo img.logo-transparente{height:38px;width:auto;display:block;background:none;border:0;padding:0}
@media (min-width:768px){.app-header .header-logo,.header-logo img,.header-logo img.logo-transparente{height:42px}}
/* MOB-UI-START */
/* Melhorias mobile (parte 1). [hidden] precisa vencer os display:flex inline/de classe */
#ctaCadastro[hidden], .sport-chips[hidden] { display: none !important; }
/* Saldo carregando: ultimo valor conhecido esmaecido, ou "..." pulsando (nunca R$ 0,00 falso) */
.balance-value.saldo-stale, #contaSaldo.saldo-stale { opacity: .6; }
.balance-value.saldo-loading, #contaSaldo.saldo-loading { color: var(--text-2, #94a3b8); letter-spacing: .12em; animation: mobPulse 1.2s ease-in-out infinite; }
@keyframes mobPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .balance-value.saldo-loading, #contaSaldo.saldo-loading { animation: none; } }
/* MOB-UI-END */
/* MOB2-UI-START — mobile parte 2: cupom, minhas apostas, deposito, app instalavel, toque/contraste, bandeiras */

/* 6. Barra do cupom mais fina (~50px, antes 76px) com "Retorno p/ R$ 10" */
#cupomFloat.cupom-float { padding: 0; }
#cupomFloat .cupom-float-inner {
  display: grid !important; width: 100%; box-sizing: border-box;
  grid-template-columns: auto 1fr auto; grid-template-areas: "cnt odd arr" "ret ret arr";
  align-items: center; column-gap: 10px; row-gap: 0; padding: 6px 16px; min-height: 50px;
}
#cupomFloat .cupom-float-inner > span + span { margin-left: 0; }
#cupomFloat .cupom-float-count { grid-area: cnt; font-size: 14px; line-height: 1.25; }
#cupomFloat .cupom-float-odd { grid-area: odd; font-size: 15px; line-height: 1.25; }
#cupomFloat .cupom-float-ret { grid-area: ret; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cupomFloat .cupom-float-arrow { grid-area: arr; font-size: 13px; font-weight: 700; }
body:has(.cupom-float.visible) .site-footer { padding-bottom: calc(var(--tab-h) + 64px); }
@media (min-width: 768px) { body:has(.cupom-float.visible) .site-footer { padding-bottom: 28px; } }

/* 6. Cupom aberto: Limpar tudo, data/hora de cada jogo, saldo disponivel */
.sheet-header { gap: 8px; }
.sheet-header .sheet-title { margin-right: auto; }
.sheet-clear {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font: 600 13px var(--font-body);
}
.sheet-clear[hidden] { display: none; }
.sheet-clear:hover, .sheet-clear:focus-visible { color: #f87171; background: rgba(239,68,68,.08); }
.selection-when { margin-top: 2px; font-size: 12px; color: var(--text-2); }
.selection-when i { margin-right: 5px; font-size: 11px; }
.sheet-saldo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.sheet-saldo[hidden] { display: none; }
.sheet-saldo strong { color: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet-saldo .ss-bonus strong { color: var(--brand); }

/* 7. Minhas apostas: "ver mais N jogos" e encerrar no topo do cartao */
.bet-more-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 44px; margin: 6px 0 2px; border: 1px dashed var(--border); border-radius: 8px;
  background: none; color: var(--brand); font: 600 13px var(--font-body); cursor: pointer;
}
.bet-more-btn:hover { background: rgba(34,197,94,.06); }
.bet-card > .cashout-btn, .bet-card > .cashout-notice { margin: 10px 14px 4px !important; }
.bet-card .cashout-btn { background: #0f3d26; color: #4ade80; }
.bet-card .cashout-btn:hover { background: #22c55e; color: #04220f; }

/* 8. Deposito: selo "Mais escolhido" e bonus do 1o deposito */
.vr-btns { padding-top: 8px; }
.vr-btn { min-height: 44px; }
.vr-btn.vr-pop { position: relative; }
.vr-selo {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 1px 7px; border-radius: 999px; background: #22c55e; color: #04220f;
  font: 700 10px/1.5 var(--font-body); letter-spacing: .2px; white-space: nowrap; text-transform: none; pointer-events: none;
}
.bonus-ganha { display: block; margin-bottom: 4px; font-size: 16px; color: #4ade80; }
#bonusInfoText small { display: block; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-2); }

/* 9. App: banner discreto na home e passo a passo (iPhone) */
.pwa-banner {
  display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 4px 4px 4px 14px;
  background: #121a2b; border: 1px solid #22304d; border-radius: 12px; color: var(--text); font-size: 13px;
}
.pwa-banner > i { color: var(--brand); font-size: 18px; flex: 0 0 auto; }
.pwa-banner > span { flex: 1; min-width: 0; line-height: 1.3; }
.pwa-banner-btn {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink, #04220f); font: 700 13px var(--font-body);
}
.pwa-banner-x { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 8px; }
.pwa-sheet-bg { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); }
.pwa-sheet {
  width: 100%; max-width: 480px; box-sizing: border-box; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--surface, #111827); color: var(--text); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.4);
}
.pwa-sheet h2 { margin: 0 0 4px; font-size: var(--fs-xl, 22px); }
.pwa-sheet p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.pwa-sheet ol { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: pwa; }
.pwa-sheet li { counter-increment: pwa; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.4; }
.pwa-sheet li::before {
  content: counter(pwa); flex: 0 0 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--brand); font-weight: 700;
}
.pwa-sheet li i { color: #60a5fa; font-size: 17px; margin: 0 2px; }
.pwa-sheet-ok { width: 100%; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer; background: var(--brand); color: var(--brand-ink, #04220f); font: 700 15px var(--font-body); }

/* Bandeiras como imagem (emoji de bandeira vira letras no Windows) e icone para competicoes */
.league-flag { display: inline-flex; align-items: center; }
.league-flag-img { display: inline-block; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.league-flag-ic { color: #f0b429; font-size: 12px; }
.league-chip .league-flag-img, .league-chip .league-flag-ic { margin-right: 3px; }

/* 10. Toque >= 44px e odds um pouco maiores */
.league-header { min-height: 44px; box-sizing: border-box; }
.markets-link { position: relative; }
.markets-link::after { content: ''; position: absolute; left: -10px; right: -10px; top: -9px; bottom: -21px; }
.checkbox-label { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--brand); }
.odd-value, .market-odd-val { font-size: 18px; }
.bet-item-odd { font-size: 15px; }
/* MOB2-UI-END */
/* SUP-UI-START — chat de suporte: selo de nao lidas e link "Problema? Fale com o suporte" */
.sup-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 8px; box-sizing: border-box;
  border-radius: 999px; background: #dc2626; color: #fff; font: 700 11px/1 var(--font-body);
}
.tab-bar a[href="/conta.html"] { position: relative; }
.tab-bar a[href="/conta.html"] > .sup-badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
#avatarBtn > .sup-badge { position: absolute; top: -4px; right: -4px; margin: 0; }
.sup-help { text-align: center; margin: 16px 12px 8px; }
.sup-help a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; border: 1px solid #22304d; background: #121a2b;
  color: #4ade80; font-weight: 600; font-size: 14px; text-decoration: none;
}
.sup-help a:hover { border-color: #22c55e; }
/* SUP-UI-END */
/* MANUT-UI-START */
/* aviso de manutencao (js/ui.js MANUT): faixa ambar fixa logo abaixo do header, sem emoji */
.manut-bar {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 995;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; background: #2b2006; color: #fcd34d;
  border-bottom: 1px solid #b45309; font-size: 13px; line-height: 1.35; font-weight: 500; text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.manut-bar.manut-sem-header { top: var(--safe-top, 0px); }
.manut-bar i { color: #f59e0b; flex: 0 0 auto; }
.manut-bar[hidden] { display: none !important; }
html.manut-on body { padding-top: calc(var(--header-h) + var(--manut-h, 0px)); }
/* MANUT-UI-END */

/* FORRADAS-TICKER-START */
.premios-ticker {
  display: flex;
  align-items: center;
  height: 38px;
  background: linear-gradient(90deg, #090e1a 0%, #0d1527 50%, #090e1a 100%);
  border-bottom: 1px solid rgba(34, 197, 94, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  user-select: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  z-index: 900;
}
.premios-ticker .ticker-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  background: linear-gradient(135deg, #121a2b 0%, #18243c 100%);
  border-right: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.45);
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #22c55e;
  white-space: nowrap;
}
.premios-ticker .ticker-badge i {
  color: #fbbf24;
  font-size: 12px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}
.premios-ticker .ticker-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}
.premios-ticker .ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-slide 32s linear infinite;
  will-change: transform;
}
.premios-ticker .ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.premios-ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: #cbd5e1;
}
.premios-ticker .ticker-initials {
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.premios-ticker .ticker-action {
  color: #94a3b8;
  font-size: 11px;
}
.premios-ticker .ticker-val {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #22c55e;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}
.premios-ticker .ticker-odd {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.premios-ticker .ticker-total {
  background: rgba(34, 197, 94, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.premios-ticker .ticker-sep {
  color: rgba(255, 255, 255, 0.15);
  padding: 0 4px;
  font-size: 10px;
}
/* FORRADAS-TICKER-END */


/* ═══ HOME-REV-20261020: Melhorias da Página Inicial (Mobile + Desktop) ═══ */

/* 1. Saldo no topo em UMA linha, formato brasileiro */
.balance-pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: none !important;
}
.balance-value {
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em;
}
@media (max-width: 480px) {
  .header-inner { gap: 6px; padding: 0 10px; }
  .header-actions { gap: 6px; }
  .balance-pill {
    font-size: clamp(11.5px, 3.3vw, 13px) !important;
    padding: 4px 8px 4px 10px !important;
    gap: 5px !important;
  }
  .balance-bonus-tag {
    display: none !important; /* evita espremer o saldo real em 2 linhas no celular; bônus aparece no cupom e na conta */
  }
}

/* 4. Banner menor no celular (altura máx ~140px) e aviso Instale o app após 3º jogo */
@media (max-width: 767px) {
  .hb-car {
    height: 130px !important;
    max-height: 140px !important;
    margin: 6px 12px 2px !important;
  }
  .hb-tit { font-size: 20px !important; }
  .hb-sub { font-size: 11.5px !important; margin-bottom: 2px !important; }
  .hb-cta { min-height: 28px !important; font-size: 12px !important; padding: 0 11px !important; }
}
.games-container .pwa-banner {
  margin: 10px 12px !important;
  border-radius: 12px !important;
}

/* 6. Blocos de dia ("Hoje", "Amanhã", "Próximos dias") e etiqueta "Começa em XX min" */
.day-block {
  margin-bottom: 14px;
}
.day-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  margin: 4px 0 2px;
  border-bottom: 1px solid rgba(34, 48, 77, 0.7);
}
.day-block-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display, 'Barlow Condensed', Inter, sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22c55e;
}
.day-block-title i {
  font-size: 13px;
}
.day-block-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2, #8a9ab8);
  background: var(--surface-2, #18223a);
  padding: 2px 8px;
  border-radius: 999px;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.game-time-hhmm {
  color: var(--text-2, #8a9ab8);
  font-size: 11px;
  margin-left: 3px;
}
.game-league-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(24, 34, 58, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ver-todos-wrap {
  padding: 12px 12px 8px;
  text-align: center;
}
.btn-ver-todos {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-ver-todos:hover {
  background: rgba(34, 197, 94, 0.18);
}

/* 7. COMPUTADOR (>= 1024px): Coluna da direita com CUPOM DE APOSTAS fixo */
@media (min-width: 1024px) {
  #homeBanners,
  #htSticky,
  #leagueChips,
  #mainContent,
  .site-footer,
  #premiosTicker {
    max-width: 740px !important;
    margin-left: max(24px, calc((100vw - 1140px) / 2)) !important;
    margin-right: auto !important;
  }
  #htSticky .seg-esp,
  #htSticky .period-tabs,
  .games-container {
    max-width: 740px !important;
  }
  #cupomFloat,
  #cupomBackdrop {
    display: none !important;
  }
  #cupomSheet.cupom-sheet {
    display: flex !important;
    position: fixed !important;
    top: 76px !important;
    right: max(24px, calc((100vw - 1140px) / 2)) !important;
    bottom: 20px !important;
    left: auto !important;
    width: 350px !important;
    height: calc(100vh - 96px) !important;
    max-height: calc(100vh - 96px) !important;
    transform: none !important;
    border-radius: 14px !important;
    border: 1px solid var(--border, #22304d) !important;
    background: var(--surface, #121a2b) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
    z-index: 950 !important;
  }
  #cupomSheet .sheet-handle,
  #cupomSheet #sheetClose {
    display: none !important;
  }
  #cupomSheet .sheet-header {
    padding: 14px 16px 12px !important;
  }
}
@media (min-width: 768px) {
  .hb-car {
    height: 154px !important;
    max-height: 160px !important;
  }
}
.game-time {
  flex-wrap: wrap !important;
  row-gap: 3px !important;
}
.game-league-pill {
  max-width: none !important;
  flex-shrink: 0 !important;
}

/* ====================================================================
   RECADO 0008 + 0010: AJUSTE DO TOPO NO CELULAR (< 768px)
   Logado: logo · lupa · sino · saldo inteiro com  + · avatar
   Deslogado: logo · lupa · Entrar · Cadastrar (nunca juntos)
   ==================================================================== */
body.is-logged-in #headerAuthOut,
body.is-logged-in #headerAuthLoading,
.header-actions:has(#headerAuthIn[style*=flex]) #headerAuthOut,
.header-actions:has(#headerAuthIn[style*=flex]) #headerAuthLoading {
  display: none !important;
}
body.is-logged-out #headerAuthIn,
body.is-logged-out #headerAuthLoading,
.header-actions:has(#headerAuthOut[style*=flex]) #headerAuthIn,
.header-actions:has(#headerAuthOut[style*=flex]) #headerAuthLoading {
  display: none !important;
}
@media (max-width: 767px) {
  .app-header {
    height: var(--header-h) !important;
    padding-top: var(--safe-top) !important;
    padding-left: calc(8px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(8px + env(safe-area-inset-right, 0px)) !important;
  }
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  .header-logo {
    height: 24px !important;
    min-width: 0 !important;
    min-height: 24px !important;
    flex: 0 0 auto !important;
  }
  .header-logo img, .header-logo picture img, .logo-transparente {
    height: 24px !important;
    width: auto !important;
    max-width: 68px !important;
    object-fit: contain !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
  }
  .header-icon-btn, #btnSearch {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  .header-icon-btn i, #btnSearch i {
    font-size: 15px !important;
  }
  .cx-sino, #cxSino {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    margin-right: 0 !important;
    font-size: 15px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .06) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  .cx-n {
    top: 0 !important;
    right: 0 !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    line-height: 16px !important;
    padding: 0 4px !important;
  }
  .header-user, #headerAuthIn {
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
  /* Ingressos ocultos no topo no celular */
  #headerIngressosPill, .rl-ing-pill {
    display: none !important;
  }
  /* Saldo: inteiro sem reticencias, com reducao automatica de fonte para saldos grandes */
  .balance-pill, #headerBalance {
    height: 32px !important;
    min-height: 32px !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 0 4px 0 8px !important;
    gap: 4px !important;
    border-radius: 999px !important;
    flex: 0 0 auto !important;
  }
  .balance-value, .balance-amount {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    display: inline-block !important;
    line-height: 1 !important;
  }
  .balance-pill.bal-long .balance-value,
  .balance-pill.bal-long .balance-amount {
    font-size: 11px !important;
  }
  .balance-pill.bal-xlong .balance-value,
  .balance-pill.bal-xlong .balance-amount {
    font-size: 10px !important;
  }
  .balance-plus, .btn-deposit {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    font-size: 13px !important;
    line-height: 22px !important;
    flex: 0 0 22px !important;
  }
  /* Avatar do usuario: tamanho fixo, sem cortar */
  .user-menu {
    flex: 0 0 auto !important;
  }
  .avatar-btn, #avatarBtn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
  }
  .avatar-initials {
    font-size: 12px !important;
  }
  /* Deslogado */
  .header-auth, #headerAuthOut {
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
  }
  .header-auth .btn-text {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
  }
  .header-auth .btn-brand {
    height: 34px !important;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
  }
}
@media (max-width: 380px) {
  .header-logo {
    height: 22px !important;
    min-height: 22px !important;
  }
  .header-logo img, .header-logo picture img, .logo-transparente {
    height: 22px !important;
    max-width: 62px !important;
  }
  .header-icon-btn, #btnSearch, .cx-sino, #cxSino {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
  }
}

/* REC0122-7TAB-FIT */
#tabBar .tab-item{min-width:0!important;padding:6px 1px}
@media(max-width:420px){#tabBar .tab-item span{font-size:10px!important;max-width:48px}}
