:root {
  --bg: #071018;
  --bg-soft: #0b1722;
  --surface: #101f2d;
  --surface-2: #162b3d;
  --surface-3: #1d3549;
  --surface-glass: rgba(14, 28, 41, 0.82);
  --field: rgba(5, 14, 23, 0.82);
  --border: rgba(159, 188, 215, 0.18);
  --border-strong: rgba(159, 188, 215, 0.28);
  --text: #eef6ff;
  --muted: #9fb1c3;
  --muted-2: #6f8294;
  --accent: #c8ff2e;
  --accent-2: #21d4fd;
  --blue: #2878ff;
  --blue-2: #1b63db;
  --danger: #ff5d5d;
  --success: #47f59a;
  --warning: #ffd166;
  --gradient-primary: linear-gradient(135deg, #2f85ff, #1757c8);
  --gradient-surface: linear-gradient(180deg, rgba(21, 41, 58, 0.95), rgba(11, 23, 34, 0.96));
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --sidebar: 270px;
  --tap: 48px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  background: linear-gradient(160deg, #071018 0%, #0b1924 46%, #071018 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  align-items: center;
  background: var(--gradient-primary);
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 16px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

button:hover {
  box-shadow: 0 12px 24px rgba(40, 120, 255, 0.24);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

button.secondary:hover,
button.ghost:hover {
  background: rgba(33, 212, 253, 0.1);
  border-color: rgba(33, 212, 253, 0.28);
  box-shadow: none;
  color: var(--text);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

button.danger {
  background: linear-gradient(135deg, #e5484d, #a91625);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: var(--tap);
  outline: 0;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(5, 14, 23, 0.95);
  border-color: rgba(33, 212, 253, 0.75);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.14);
}

input[readonly] {
  opacity: 0.72;
}

.password-field {
  align-items: center;
  display: block;
  max-width: 100%;
  min-width: 0;
  position: relative;
  width: 100%;
}

.password-field input {
  min-width: 0;
  padding-right: calc(var(--tap) + 16px);
}

.password-field .password-toggle {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(159, 188, 215, 0.18);
  min-height: 38px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  z-index: 1;
}

.password-field .password-toggle:hover {
  transform: translateY(-50%);
}

label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

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

select option {
  background: var(--surface);
  color: var(--text);
}

.login-page,
.select-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.auth-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 430px;
  padding: clamp(20px, 5vw, 30px);
  width: 100%;
}

.auth-card.wide {
  max-width: 760px;
}

.auth-logo {
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
  margin: 0 auto 22px;
  max-width: min(240px, 72vw);
  width: 100%;
}

.auth-title {
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.auth-subtitle,
.muted {
  color: var(--muted);
  line-height: 1.45;
}

.auth-form,
.form-grid {
  display: grid;
  gap: 14px;
}

.auth-message,
.message {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: var(--radius-sm);
  color: var(--warning);
  min-height: 22px;
  padding: 10px 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-message.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

.auth-message[data-tone="success"],
.message[data-tone="success"] {
  background: rgba(42, 245, 152, 0.08);
  border-color: rgba(42, 245, 152, 0.22);
  color: var(--success);
}

.auth-message[data-tone="error"],
.message[data-tone="error"] {
  background: rgba(255, 93, 108, 0.08);
  border-color: rgba(255, 93, 108, 0.22);
  color: var(--danger);
}

.auth-message:empty,
.message:empty,
.message[hidden] {
  display: none;
}

.auth-link {
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(33, 212, 253, 0.18);
}

.auth-link--right {
  justify-self: end;
  margin-top: 2px;
}

.message[data-tone="success"] {
  background: rgba(71, 245, 154, 0.08);
  border-color: rgba(71, 245, 154, 0.2);
  color: var(--success);
}

.message[data-tone="error"] {
  background: rgba(255, 93, 93, 0.08);
  border-color: rgba(255, 93, 93, 0.2);
  color: var(--danger);
}

.card-message {
  margin: 6px 0 0;
}

.help-text {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(159, 188, 215, 0.14);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 4px;
  padding: 7px 10px;
  width: fit-content;
}

.select-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.select-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.select-card:hover {
  border-color: rgba(33, 212, 253, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(5, 12, 19, 0.96);
  border-bottom: 1px solid var(--border);
  display: none;
  grid-template-rows: auto 1fr auto;
  min-height: auto;
  padding: 18px;
  position: static;
}

.app-shell.menu-open .sidebar {
  display: grid;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand img {
  border-radius: 14px;
  height: 54px;
  object-fit: cover;
  width: 78px;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand-copy {
  min-width: 0;
}

.brand span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-top-brand,
.mobile-bottom-nav,
.mobile-more-drawer {
  display: none;
}

.menu {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.nav-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  justify-content: flex-start;
  min-height: 46px;
  width: 100%;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(33, 212, 253, 0.1);
  border-color: rgba(33, 212, 253, 0.26);
  color: var(--text);
}

.bolao-switcher {
  background: linear-gradient(135deg, rgba(200, 255, 46, 0.13), rgba(33, 212, 253, 0.08));
  border: 1px solid rgba(200, 255, 46, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(33, 212, 253, 0.08);
  padding: 4px;
}

.bolao-switcher[hidden] {
  display: none;
}

.bolao-switcher label {
  display: block;
}

.bolao-switcher select {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 34px 8px 14px;
}

.bolao-switcher select option {
  background: #0b1722;
  color: var(--text);
}

.bolao-switcher select:focus {
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.12);
}

.main {
  min-width: 0;
  padding: 16px;
}

.topbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  margin-bottom: 22px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: 100%;
}

.topbar-actions .ghost.active {
  background: rgba(33, 212, 253, 0.14);
  border-color: rgba(33, 212, 253, 0.26);
  color: var(--text);
}

.bolao-switcher-top {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
  padding: 10px 12px;
}

.locale-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.locale-pill:hover {
  background: rgba(33, 212, 253, 0.08);
  border-color: rgba(33, 212, 253, 0.28);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.08), var(--shadow-soft);
}

.locale-pill__icon,
.locale-pill__arrow {
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.locale-pill__icon {
  color: #70eaff;
  height: 23px;
  opacity: 1;
  width: 23px;
}

.locale-pill__icon svg,
.locale-pill__arrow svg,
.icon-button svg {
  fill: currentColor;
  height: 100%;
  shape-rendering: geometricPrecision;
  width: 100%;
}

.locale-pill__label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 0;
  white-space: nowrap;
}

.locale-pill select {
  cursor: pointer;
  inset: 0;
  min-height: 100%;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.auth-locale-switcher {
  justify-content: flex-end;
  margin: 0 0 14px auto;
}

.icon-button {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 0;
  width: 46px;
}

.icon-button:hover {
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.08), 0 12px 24px rgba(33, 212, 253, 0.14);
}

.icon-action,
.form-actions button[type="submit"]:has(.button-icon) {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(159, 188, 215, 0.22);
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  padding: 0;
  width: var(--tap);
}

.icon-action:hover,
.form-actions button[type="submit"]:has(.button-icon):hover {
  background: rgba(200, 255, 46, 0.1);
  border-color: rgba(200, 255, 46, 0.34);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.1), 0 12px 26px rgba(33, 212, 253, 0.16);
}

.form-actions button[type="submit"]:has(.button-icon) .button-text {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.icon-button svg {
  height: 23px;
  width: 23px;
}

.button-icon {
  display: inline-flex;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.button-icon svg {
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.button-icon--add {
  align-items: center;
  background: var(--success);
  border-radius: 999px;
  color: #062115;
  height: 22px;
  justify-content: center;
  padding: 3px;
  width: 22px;
}

.button-icon--upload {
  height: 34px;
  width: 34px;
}

.hamburger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: inline-grid;
  height: 46px;
  padding: 10px;
  width: 48px;
}

.hamburger span {
  background: var(--accent);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 22px;
}

.page-title h1 {
  font-size: clamp(25px, 7vw, 42px);
  letter-spacing: 0;
  margin: 0;
}

.page-title p {
  color: var(--muted);
  margin: 6px 0 0;
}

.app-shell[data-role="apostador"] .brand img {
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.2), 0 18px 34px rgba(0, 0, 0, 0.28);
  height: 72px;
  width: 104px;
}

.app-shell[data-role="apostador"] .brand-copy {
  display: none;
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: 1fr;
}

.grid.three {
  grid-template-columns: 1fr;
}

.dashboard-hero {
  align-items: stretch;
  display: grid;
  gap: 16px;
}

.dashboard-hero h2 {
  font-size: clamp(26px, 8vw, 46px);
  letter-spacing: 0;
  line-height: 1;
  margin: 12px 0 8px;
}

.dashboard-countdown {
  align-content: center;
  background: rgba(33, 212, 253, 0.08);
  border: 1px solid rgba(33, 212, 253, 0.18);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
}

.dashboard-countdown span,
.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-countdown strong {
  color: var(--accent-2);
  font-size: clamp(24px, 8vw, 38px);
  line-height: 1;
}

.dashboard-countdown__datetime {
  align-items: center;
  display: inline-grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.dashboard-countdown__datetime span {
  color: var(--accent-2);
  font-size: clamp(24px, 8vw, 38px);
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-countdown small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.dashboard-board,
.dashboard-board__main,
.dashboard-board__sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
}

.stat-card strong {
  color: var(--accent);
  font-size: clamp(32px, 10vw, 54px);
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.stat-card--money {
  grid-column: span 2;
  min-width: 0;
}

.stat-card--money .stat-card__money {
  color: var(--cyan);
  font-size: clamp(20px, 3.8vw, 38px);
  letter-spacing: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.stat-card p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.stat-card--action {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-card--action p {
  color: var(--accent-2);
  font-weight: 800;
}

.stat-card--action:hover,
.stat-card--action:focus-visible {
  background: rgba(33, 212, 253, 0.065);
  border-color: rgba(33, 212, 253, 0.3);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.stat-card--action:active {
  transform: scale(0.985);
}

.dashboard-games {
  gap: 14px;
}

.dashboard-live-section {
  border-color: rgba(33, 212, 253, 0.22);
}

.dashboard-live-games {
  gap: 12px;
}

.dashboard-game,
.dashboard-result {
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.dashboard-game {
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-game:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(33, 212, 253, 0.22);
  transform: translateY(-1px);
}

.dashboard-game__teams,
.dashboard-game__meta,
.dashboard-result {
  align-items: center;
}

.dashboard-game__teams {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
}

.dashboard-game__teams .team-name:last-child {
  justify-content: flex-end;
  text-align: right;
}

.dashboard-game__meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-game--premium .dashboard-game__meta {
  justify-content: center;
  text-align: center;
}

.dashboard-game__datetime {
  align-items: center;
  display: inline-grid;
  gap: 2px;
  justify-items: center;
  min-width: 86px;
  text-align: center;
}

.dashboard-game__datetime strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-game__countdown {
  color: var(--accent-2);
  font-size: 0.94rem;
  font-weight: 900;
}

.dashboard-game__guess {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.dashboard-upcoming-game {
  gap: 14px;
  padding: 12px 16px 16px;
}

.dashboard-upcoming-game__schedule {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.dashboard-upcoming-game__datetime {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-upcoming-game__countdown {
  align-items: baseline;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  gap: 5px;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.dashboard-upcoming-game__countdown small {
  color: var(--warning);
  font-size: inherit;
  font-weight: inherit;
}

.dashboard-upcoming-game__fixture {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  margin: 6px auto 2px;
  max-width: 660px;
  width: 100%;
}

.dashboard-live-game {
  border-color: rgba(255, 93, 93, 0.2);
}

.dashboard-live-game__fixture {
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(0, 1fr);
  margin-bottom: 6px;
}

.dashboard-live-game__score {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 950;
  gap: 8px;
  justify-self: center;
  white-space: nowrap;
}

.dashboard-live-game__score small {
  color: var(--accent-2);
  font-size: 0.72em;
  font-weight: inherit;
}

.dashboard-live-game__prediction {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.dashboard-upcoming-game__prediction {
  align-items: center;
  border-top: 1px solid rgba(159, 188, 215, 0.1);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 0 -16px -16px;
  padding: 12px 16px 14px;
}

.dashboard-upcoming-game__team {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.dashboard-upcoming-game__team .team-avatar {
  height: 40px;
  width: 40px;
}

.dashboard-upcoming-game__team > span:last-child {
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-upcoming-game__versus {
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 950;
  justify-self: center;
  text-transform: uppercase;
}

.dashboard-upcoming-game__prediction .bet-state-pill {
  justify-self: start;
  white-space: nowrap;
}

.dashboard-upcoming-game__guess {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 950;
  gap: 16px;
  grid-column: 2;
  justify-self: center;
  line-height: 1;
}

.dashboard-upcoming-game__guess small {
  color: var(--success);
  font-size: 0.92em;
  font-weight: inherit;
}

.dashboard-upcoming-game__guess--pending {
  color: var(--warning);
}

.dashboard-upcoming-game__guess--pending small {
  color: inherit;
}

.dashboard-game__quick-action {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  justify-self: end;
}

.dashboard-game__quick-action button {
  min-height: 42px;
  min-width: 132px;
}

.dashboard-bet-modal {
  max-height: min(calc(100vh - 32px), 720px);
  overflow-y: auto;
  width: min(720px, calc(100vw - 32px));
}

.dashboard-bet-editor {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 0 0;
}

.dashboard-bet-editor:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
}

.dashboard-bet-modal__actions {
  margin-top: 18px;
}

.dashboard-result {
  grid-template-columns: 1fr auto 1fr;
}

.dashboard-result .score + .team-name {
  justify-content: flex-end;
  text-align: right;
}

.dashboard-result .muted {
  grid-column: 1 / -1;
}

.dashboard-results {
  gap: 12px;
}

.dashboard-result-card {
  background: linear-gradient(180deg, rgba(16, 39, 57, 0.8), rgba(8, 19, 29, 0.9));
  border: 1px solid rgba(33, 212, 253, 0.17);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.dashboard-result-card__header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.dashboard-result-card__header .muted {
  font-size: 0.76rem;
  font-weight: 800;
  min-width: 0;
}

.dashboard-result-card__fixture {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.dashboard-result-card__team {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.dashboard-result-card__team .team-avatar {
  height: 34px;
  width: 34px;
}

.dashboard-result-card__team span:last-child {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-result-card__score {
  color: var(--text);
  font-size: clamp(1.18rem, 3vw, 1.38rem);
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-result-card__details {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-result-card__details > div {
  background: rgba(159, 188, 215, 0.05);
  border: 1px solid rgba(159, 188, 215, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  padding: 8px 5px;
  text-align: center;
}

.dashboard-result-card__details > div.is-scored {
  background: rgba(200, 255, 46, 0.09);
  border-color: rgba(200, 255, 46, 0.25);
}

.dashboard-result-card__details span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-result-card__details strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-result-card__details .is-scored strong {
  color: var(--accent);
}

.card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(15px, 4vw, 20px);
}

.card-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title h2,
.card-title h3 {
  font-size: 18px;
  margin: 0;
}

.kpi {
  color: var(--accent);
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 950;
  line-height: 0.95;
}

.score {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.pill {
  align-items: center;
  background: rgba(200, 255, 46, 0.1);
  border: 1px solid rgba(200, 255, 46, 0.25);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: none;
}

.pill-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
}

.admin-pool-pill {
  background: rgba(33, 212, 253, 0.075);
  border-color: rgba(33, 212, 253, 0.38);
  box-shadow: 0 0 18px rgba(33, 212, 253, 0.08);
  color: var(--cyan);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.admin-pool-pill--empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.row-card,
.match-card,
.ranking-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.row-card:hover,
.match-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(33, 212, 253, 0.22);
}

.row-card {
  grid-template-columns: 1fr;
}

.match-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.match-group__title {
  align-items: center;
  background: rgba(33, 212, 253, 0.06);
  border: 1px solid rgba(33, 212, 253, 0.16);
  border-radius: 999px;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 12px;
}

.match-group__title small {
  color: var(--muted);
  font-weight: 700;
}

.status-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.status-tab {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(159, 188, 215, 0.18);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  white-space: nowrap;
}

.status-tab strong {
  align-items: center;
  background: rgba(33, 212, 253, 0.12);
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-width: 28px;
  padding: 3px 7px;
}

.status-tab.active {
  background: rgba(200, 255, 46, 0.1);
  border-color: rgba(200, 255, 46, 0.36);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.08);
  color: var(--accent);
}

.status-tab.active strong {
  background: rgba(200, 255, 46, 0.14);
  border-color: rgba(200, 255, 46, 0.34);
  color: var(--accent);
}

.user-row {
  overflow: hidden;
}

.user-row__main {
  min-width: 0;
}

.match-card {
  grid-template-columns: 1fr;
}

.team-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-name {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.team-name--sm {
  gap: 8px;
}

.team-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.team-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.team-avatar__fallback {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.team-avatar--sm {
  height: 28px;
  width: 28px;
}

.team-avatar--sm .team-avatar__fallback {
  font-size: 0.62rem;
}

.team-avatar--preview {
  height: 52px;
  width: 52px;
}

.upload-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(159, 188, 215, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 8px;
  grid-template-columns: auto auto auto;
  justify-content: center;
  min-height: 76px;
  padding: 10px 12px;
  position: relative;
  text-align: center;
}

.upload-card:hover,
.upload-card.drag-over {
  background: rgba(33, 212, 253, 0.055);
  border-color: rgba(33, 212, 253, 0.3);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.08);
}

.upload-card__icon {
  color: var(--accent);
  display: inline-flex;
  margin-bottom: 2px;
}

.upload-card input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.upload-remove {
  align-items: center;
  background: rgba(255, 93, 93, 0.08);
  border: 1px solid rgba(255, 93, 93, 0.18);
  border-radius: 999px;
  color: var(--danger);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  line-height: 1;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.upload-remove:hover {
  background: rgba(255, 93, 93, 0.14);
  border-color: rgba(255, 93, 93, 0.32);
  box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.08);
}

.flag-field {
  opacity: 0.68;
}

.link-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.link-fieldset legend {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 950;
  padding: 0 8px;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.modern-checkbox {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px 12px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.modern-checkbox:hover {
  background: rgba(33, 212, 253, 0.07);
  border-color: rgba(33, 212, 253, 0.22);
}

.modern-checkbox input {
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.modern-checkbox__box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 188, 215, 0.34);
  border-radius: 7px;
  height: 22px;
  position: relative;
  width: 22px;
}

.modern-checkbox input:checked + .modern-checkbox__box {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-color: rgba(200, 255, 46, 0.74);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.12);
}

.modern-checkbox input:checked + .modern-checkbox__box::after {
  border: solid #061416;
  border-width: 0 2px 2px 0;
  content: "";
  height: 10px;
  left: 7px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 5px;
}

.modern-checkbox__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.modern-checkbox__text strong,
.modern-checkbox__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-checkbox__text small {
  color: var(--muted);
  font-weight: 700;
}

.modal-backdrop {
  align-items: center;
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(14px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.modal-card {
  background: linear-gradient(180deg, rgba(12, 30, 45, 0.98), rgba(6, 15, 24, 0.98));
  border: 1px solid rgba(200, 255, 46, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(33, 212, 253, 0.08);
  max-height: calc(100vh - 32px);
  max-width: 920px;
  overflow: auto;
  padding: clamp(16px, 3vw, 24px);
  width: min(920px, 100%);
}

.user-status-pill--active {
  background: rgba(60, 255, 147, 0.08);
  border-color: rgba(60, 255, 147, 0.34);
  color: var(--success);
}

.user-status-pill--inactive {
  background: rgba(255, 93, 124, 0.09);
  border-color: rgba(255, 93, 124, 0.34);
  color: #ff9aa8;
}

.user-editor-modal .form-card {
  margin-top: 14px;
}

.user-editor-modal .link-fieldset {
  grid-column: 1 / -1;
}

.flag-field input {
  background: rgba(5, 14, 23, 0.58);
}

.match-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score--inline {
  min-width: 58px;
  text-align: center;
}

.external-linking-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.external-linking-grid article {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.external-linking-grid h3 {
  font-size: 1rem;
  margin: 0;
}

.external-link-card {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 10px;
  justify-content: stretch;
  min-height: 0;
  padding: 14px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.external-link-card:hover {
  background: rgba(33, 212, 253, 0.08);
  border-color: rgba(33, 212, 253, 0.26);
  box-shadow: var(--shadow-soft);
}

.external-link-card.selected {
  border-color: rgba(200, 255, 46, 0.72);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.12);
}

.external-link-card.linked {
  background: rgba(71, 245, 154, 0.075);
  border-color: rgba(71, 245, 154, 0.26);
}

.external-import-card {
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr);
  position: relative;
}

.external-import-card.linked {
  cursor: not-allowed;
}

.external-import-check,
.checkbox-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 9px;
  justify-self: flex-start;
  padding: 8px 12px;
}

.external-import-check {
  align-self: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.external-import-check input,
.checkbox-pill input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.external-import-card .match-inline,
.external-import-card .muted,
.external-import-card .external-link-card__meta {
  grid-column: 2;
}

.external-import-card .muted {
  overflow-wrap: anywhere;
}

.external-import-check:has(input:checked),
.checkbox-pill:has(input:checked) {
  background: rgba(200, 255, 46, 0.12);
  border-color: rgba(200, 255, 46, 0.34);
  color: var(--accent);
}

.external-import-toolbar {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  justify-content: flex-start;
  padding: 12px;
  position: sticky;
  top: 10px;
  z-index: 2;
}

.import-summary {
  display: grid;
  gap: 12px;
  line-height: 1.45;
}

.import-summary__details {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.import-summary__details > span {
  color: var(--text);
  font-weight: 950;
}

.import-summary__details p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.import-summary__details p strong,
.import-summary__details p span,
.import-summary__details small {
  overflow-wrap: anywhere;
}

.external-link-card:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.external-link-card:disabled:hover {
  box-shadow: none;
}

.external-link-card__meta,
.external-linking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-line {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.sports-provider-form {
  max-width: 720px;
}

.email-config-form,
.email-test-form {
  max-width: 820px;
}

.email-status-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  min-height: 40px;
}

.email-password-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-notify-checkbox {
  margin-top: 10px;
}

.email-test-form {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-top: 14px;
  padding: 14px;
}

.card-title--compact {
  margin-bottom: 0;
}

.card-title--compact h3 {
  font-size: 0.98rem;
}

.provider-meta,
.token-control-row,
.token-input-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.system-version-card {
  overflow: hidden;
}

.system-version-card--compact {
  padding-bottom: 18px;
}

.system-version-card--compact .card-title {
  margin-bottom: 12px;
}

.system-version {
  display: grid;
  gap: 10px;
}

.system-version dl {
  margin: 0;
}

.system-version__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.system-version__grid > div {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(159, 188, 215, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
}

.system-version dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.system-version dd {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-control-row {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.token-input-group {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
  padding: 6px;
}

.token-input-group input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  width: 100%;
}

.token-control-row .icon-action {
  align-self: center;
}

button[data-provider-toggle]:hover {
  background: rgba(255, 93, 93, 0.11);
  border-color: rgba(255, 93, 93, 0.34);
  box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.08), 0 12px 26px rgba(255, 93, 93, 0.12);
  color: var(--danger);
}

.bet-inputs {
  align-items: center;
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.bet-inputs input {
  font-size: 24px;
  font-weight: 950;
  min-height: 58px;
  text-align: center;
  width: 70px;
}

.sports-match-card,
.bet-card {
  overflow: hidden;
  position: relative;
}

.sports-match-card::before,
.bet-card::before,
.dashboard-game--premium::before {
  background: linear-gradient(90deg, rgba(200, 255, 46, 0.5), rgba(33, 212, 253, 0));
  content: "";
  height: 1px;
  left: 16px;
  opacity: 0.36;
  position: absolute;
  right: 16px;
  top: 0;
}

.sports-match-card__body,
.bet-card__content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sports-match-card__teams,
.bet-card__teams {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.sports-match-card__score,
.bet-card__separator {
  color: var(--accent);
  font-weight: 950;
}

.sports-match-card__meta,
.bet-card__header {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sports-match-card__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bet-card__header {
  justify-content: flex-start;
}

.bet-card__team {
  min-width: 0;
}

.bet-card__team-control {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bet-card__team--away .team-name {
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

.bet-card__team--away .bet-card__team-control {
  justify-items: end;
}

.bet-card__scoreboard {
  align-items: center;
  display: flex;
  gap: 10px;
}

.bet-card--finished .bet-card__teams {
  align-items: stretch;
}

.bet-result-summary {
  align-items: stretch;
  background: linear-gradient(180deg, rgba(5, 14, 23, 0.78), rgba(8, 21, 33, 0.64));
  border: 1px solid rgba(33, 212, 253, 0.18);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 36px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  min-width: 0;
  padding: 12px;
}

.bet-result-summary__item,
.bet-result-summary__points {
  align-items: center;
  background: rgba(159, 188, 215, 0.06);
  border: 1px solid rgba(159, 188, 215, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  padding: 10px;
  text-align: center;
}

.bet-result-summary__item span,
.bet-result-summary__points span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bet-result-summary__item strong {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bet-result-summary__points {
  background: rgba(200, 255, 46, 0.09);
  border-color: rgba(200, 255, 46, 0.26);
}

.bet-result-summary__points strong {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bet-result-summary__points.is-empty {
  background: rgba(159, 188, 215, 0.06);
  border-color: rgba(159, 188, 215, 0.14);
}

.bet-result-summary__points.is-empty strong {
  color: var(--muted);
}

.bet-stepper {
  align-items: center;
  background: rgba(5, 14, 23, 0.62);
  border: 1px solid rgba(159, 188, 215, 0.16);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.bet-stepper input {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 950;
  min-height: 44px;
  padding: 0;
  text-align: center;
  width: 54px;
}

.bet-stepper input:focus {
  box-shadow: 0 0 0 2px rgba(33, 212, 253, 0.16);
}

.bet-stepper__button {
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 40px;
  font-size: 1.15rem;
  font-weight: 950;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
}

.bet-stepper__button.tap {
  background: rgba(200, 255, 46, 0.16);
  box-shadow: 0 0 0 4px rgba(200, 255, 46, 0.08);
}

.bet-status-pill {
  border-color: rgba(159, 188, 215, 0.18);
}

.bet-state-pill {
  font-weight: 950;
}

.bet-state-pill::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 7px;
  vertical-align: middle;
  width: 7px;
}

.bet-match-status-pill {
  color: var(--muted);
}

.sync-pill {
  background: rgba(33, 212, 253, 0.08);
  border-color: rgba(33, 212, 253, 0.24);
  color: var(--cyan);
  max-width: 100%;
}

.bet-status--saved {
  background: rgba(71, 245, 154, 0.1);
  border-color: rgba(71, 245, 154, 0.28);
  color: var(--success);
}

.bet-status--pending {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.25);
  color: var(--warning);
}

.bet-state-pill--attention {
  animation: pendingBetAttention 2.2s ease-in-out infinite;
}

.bet-status--locked {
  background: rgba(255, 93, 93, 0.1);
  border-color: rgba(255, 93, 93, 0.24);
  color: var(--danger);
}

.bet-status--live {
  background: rgba(255, 93, 93, 0.11);
  border-color: rgba(255, 93, 93, 0.34);
  color: #ff7d7d;
}

.bet-status--result,
.bet-status--info,
.bet-status--saving {
  background: rgba(33, 212, 253, 0.1);
  border-color: rgba(33, 212, 253, 0.26);
  color: var(--accent-2);
}

.bet-status--saving {
  animation: statusPulse 0.9s ease-in-out infinite alternate;
}

.bet-card--saving {
  border-color: rgba(33, 212, 253, 0.34);
}

.bet-card--dirty {
  border-color: rgba(255, 209, 102, 0.28);
}

.bet-card--saved-pulse {
  animation: savedPulse 0.42s ease;
}

.bet-card__match-date {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(159, 188, 215, 0.12);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  font-weight: 900;
  justify-content: center;
  min-width: 0;
  padding: 9px 10px;
  text-align: center;
}

.bets-summary {
  background: rgba(5, 14, 23, 0.42);
  border: 1px solid rgba(159, 188, 215, 0.13);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  padding: 10px;
}

.bets-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bet-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bet-period-filter {
  background: rgba(5, 14, 23, 0.44);
  border: 1px solid rgba(159, 188, 215, 0.13);
  border-radius: 999px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 4px;
}

.bet-period-filter button {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--muted);
  min-height: 38px;
  white-space: nowrap;
}

.bet-period-filter button.active {
  background: rgba(33, 212, 253, 0.1);
  border-color: rgba(33, 212, 253, 0.24);
  color: var(--text);
}

.bet-filter-selects {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bet-filter-select {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bet-filter-select span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bet-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bet-card__facts--muted {
  opacity: 0.72;
}

.bet-card__facts span,
.pool-guess-score span,
.pool-guess-score strong {
  background: rgba(159, 188, 215, 0.07);
  border: 1px solid rgba(159, 188, 215, 0.13);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.bet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bet-card__save-button {
  background: rgba(200, 255, 46, 0.1);
  border-color: rgba(200, 255, 46, 0.28);
  color: var(--accent);
  min-height: 42px;
}

.bet-card__primary-button {
  font-weight: 900;
  min-width: 128px;
}

.bet-card__saved-guess {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.bet-card--dirty .bet-card__saved-guess {
  opacity: 0.62;
}

.bet-card--editing {
  border-color: rgba(200, 255, 46, 0.28);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.05);
}

.bet-card__pool-button {
  border-color: rgba(33, 212, 253, 0.22);
  color: var(--accent-2);
  min-height: 42px;
}

.bet-card__pool-button:hover:not(:disabled) {
  background: rgba(33, 212, 253, 0.1);
  box-shadow: 0 0 0 4px rgba(33, 212, 253, 0.05);
}

@media (min-width: 761px) {
  .bet-card:not(.bet-card--finished) .bet-card__teams {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    margin-inline: auto;
    max-width: 920px;
    width: 100%;
  }

  .bet-card:not(.bet-card--finished) .bet-card__team-control {
    align-items: center;
    display: flex;
    gap: 10px;
  }

  .bet-card:not(.bet-card--finished) .bet-card__team--home .bet-card__team-control {
    justify-content: flex-end;
  }

  .bet-card:not(.bet-card--finished) .bet-card__team--away .bet-card__team-control {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .bet-card:not(.bet-card--finished) .bet-card__team--home .team-name,
  .bet-card:not(.bet-card--finished) .bet-card__team--away .team-name {
    flex: 0 1 auto;
    max-width: min(240px, 54%);
  }

  .bet-card:not(.bet-card--finished) .bet-card__team--away .team-name {
    justify-content: flex-start;
    text-align: left;
  }

  .bet-card:not(.bet-card--finished) .bet-card__separator {
    justify-self: center;
    text-align: center;
  }

  .bet-card:not(.bet-card--finished) .bet-stepper {
    flex: 0 0 auto;
  }

  .bet-card:not(.bet-card--finished) .bet-stepper input {
    width: 46px;
  }

  .dashboard-game--premium .dashboard-game__countdown {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    text-align: right;
  }
}

.pool-guesses-modal {
  max-height: min(calc(100vh - 32px), 720px);
  overflow: hidden;
  width: min(720px, calc(100vw - 32px));
}

.pool-guesses-modal .card-title {
  align-items: flex-start;
}

.pool-guesses-modal .card-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pool-status-tabs {
  margin-bottom: 16px;
}

.pool-row__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.pool-row__meta {
  font-size: 0.78rem;
  margin-top: 8px;
}

.pool-status-pill {
  flex: 0 0 auto;
  font-weight: 900;
}

.pool-status-pill--ativo {
  border-color: rgba(200, 255, 46, 0.28);
  color: var(--accent);
}

.pool-status-pill--finalizado {
  border-color: rgba(33, 212, 253, 0.32);
  color: var(--accent-2);
}

.danger-zone {
  background: rgba(255, 91, 91, 0.08);
  border: 1px solid rgba(255, 91, 91, 0.24);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 16px;
}

.danger-zone p {
  color: var(--muted);
  margin: 0;
}

button.danger,
.ghost.danger {
  border-color: rgba(255, 91, 91, 0.34);
  color: #ff8b8b;
}

button.danger:hover,
.ghost.danger:hover {
  border-color: rgba(255, 91, 91, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 91, 91, 0.12), 0 0 24px rgba(255, 91, 91, 0.16);
}

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

.mobile-page-header h2 {
  margin: 0;
}

.pool-guesses-list {
  max-height: min(58vh, 440px);
  overflow: auto;
  padding-right: 2px;
}

.match-guesses-page {
  display: grid;
  gap: 16px;
}

.match-guesses-page__title {
  align-items: center;
}

.match-guesses-hero {
  background: rgba(5, 14, 23, 0.54);
  border: 1px solid rgba(33, 212, 253, 0.14);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.match-guesses-hero__teams {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.match-guesses-hero__teams .team-name:last-child {
  justify-content: flex-end;
  text-align: right;
}

.match-guesses-hero__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pool-guesses-list--page {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.participant-invite-modal {
  width: min(560px, calc(100vw - 32px));
}

.quick-invite-modal {
  width: min(520px, calc(100vw - 32px));
}

.participants-title {
  align-items: flex-start;
  gap: 16px;
}

.participants-title .muted {
  margin: 4px 0 0;
}

.participants-main-invite {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}

.participants-invite-cta {
  align-items: center;
  background: linear-gradient(135deg, rgba(33, 212, 253, 0.1), rgba(200, 255, 46, 0.06));
  border: 1px solid rgba(33, 212, 253, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 16px 0;
  padding: 16px;
}

.participants-invite-cta strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
}

.participants-invite-cta p {
  margin: 4px 0 0;
}

.participants-manual-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 14px 0 8px;
}

.participants-manual-heading strong {
  color: var(--text);
}

.participants-manual-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

.invite-confirm {
  background: rgba(5, 14, 23, 0.54);
  border: 1px solid rgba(159, 188, 215, 0.13);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
}

.invite-confirm p {
  color: var(--muted);
  margin: 0;
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.participant-row .actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.participant-row {
  align-items: flex-start;
}

.participant-row__main {
  min-width: 0;
}

.participant-row__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.participant-row__head strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  min-width: 0;
}

.participant-row__email {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.participant-access-pill {
  font-weight: 850;
  white-space: nowrap;
}

.participant-invite-button {
  border-color: rgba(33, 212, 253, 0.34);
  color: var(--accent-2);
  font-weight: 900;
  min-height: 40px;
  padding-inline: 14px;
}

.participant-invite-button:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(33, 212, 253, 0.08), 0 0 18px rgba(33, 212, 253, 0.08);
}

.participant-invite-button:not(:disabled):hover {
  border-color: rgba(33, 212, 253, 0.58);
  box-shadow: 0 0 0 1px rgba(33, 212, 253, 0.16), 0 0 24px rgba(33, 212, 253, 0.16);
}

.participant-invite-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.participant-edit-button {
  color: var(--muted);
  min-height: 40px;
}

.quick-invite-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.quick-invite-submit {
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.quick-invite-secondary {
  justify-content: center;
  width: 100%;
}

.quick-invite-success {
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 16px;
}

.quick-invite-success[data-tone="success"] {
  background: rgba(200, 255, 46, 0.08);
  border-color: rgba(200, 255, 46, 0.22);
}

.quick-invite-success[data-tone="warning"] {
  background: rgba(255, 207, 102, 0.08);
  border-color: rgba(255, 207, 102, 0.24);
}

.quick-invite-success strong {
  color: var(--text);
}

.quick-invite-success p {
  color: var(--muted);
  margin: 0;
}

.quick-invite-actions {
  align-items: stretch;
}

.quick-invite-page {
  display: grid;
  gap: 16px;
  padding-bottom: 92px;
}

.pool-guesses-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pool-guess-row {
  align-items: center;
  background: rgba(5, 14, 23, 0.54);
  border: 1px solid rgba(159, 188, 215, 0.13);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.pool-guess-row.is-me {
  border-color: rgba(200, 255, 46, 0.34);
  box-shadow: 0 0 22px rgba(200, 255, 46, 0.08);
}

.pool-guess-row > div {
  min-width: 0;
}

.pool-guess-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.pool-guess-score {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@keyframes statusPulse {
  from {
    opacity: 0.68;
  }
  to {
    opacity: 1;
  }
}

@keyframes pendingBetAttention {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.09);
    opacity: 0.86;
  }
}

@keyframes savedPulse {
  from {
    box-shadow: 0 0 0 0 rgba(71, 245, 154, 0.22);
  }
  to {
    box-shadow: 0 0 0 10px rgba(71, 245, 154, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bet-state-pill--attention {
    animation: none;
  }
}

.ranking-list {
  gap: 14px;
}

.ranking-header {
  color: var(--muted);
  display: grid;
  gap: 16px;
  grid-template-columns: 92px minmax(220px, 1.2fr) minmax(260px, 1fr) 120px;
  padding: 0 6px 10px;
}

.ranking-header span:last-child {
  text-align: right;
}

.ranking-row {
  align-items: center;
  gap: 16px;
  grid-template-columns: 92px minmax(220px, 1.2fr) minmax(260px, 1fr) 120px;
  min-width: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(117, 249, 255, 0.28);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.ranking-row.me {
  border-color: rgba(200, 255, 46, 0.5);
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.2), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.ranking-row--gold {
  border-color: rgba(255, 215, 96, 0.35);
}

.ranking-row--silver {
  border-color: rgba(214, 223, 232, 0.3);
}

.ranking-row--bronze {
  border-color: rgba(214, 146, 92, 0.3);
}

.ranking-row--prized {
  background: linear-gradient(135deg, rgba(200, 255, 46, 0.09), rgba(33, 212, 253, 0.045));
  border-color: rgba(200, 255, 46, 0.32);
}

.ranking-prize {
  background: rgba(200, 255, 46, 0.11);
  border: 1px solid rgba(200, 255, 46, 0.26);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  margin-top: 8px;
  padding: 6px 10px;
}

.ranking-position {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.medal {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 26px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.ranking-position__number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ranking-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.participant-avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(87, 255, 180, 0.22), rgba(76, 140, 255, 0.18));
  border: 1px solid rgba(117, 249, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.participant-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.participant-avatar__fallback {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.ranking-identity__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-identity__text strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.ranking-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-history,
.ranking-gap,
.ranking-tag,
.ranking-metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: inline-flex;
}

.ranking-history,
.ranking-gap,
.ranking-tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
}

.ranking-history--empty {
  opacity: 0.88;
}

.ranking-tag {
  background: rgba(200, 255, 46, 0.12);
  border-color: rgba(200, 255, 46, 0.22);
  color: #dbff70;
}

.ranking-gap--leader {
  background: rgba(117, 249, 255, 0.1);
  border-color: rgba(117, 249, 255, 0.2);
  color: #9df7ff;
}

.ranking-summary {
  display: grid;
  gap: 10px;
}

.ranking-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-metric {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
}

.ranking-metric__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.ranking-subtext {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-block {
  display: flex;
  justify-content: flex-end;
}

.ranking-row .score {
  align-items: center;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 950;
  justify-content: flex-end;
  min-height: 100%;
  text-align: right;
}

.ranking-row--compact {
  gap: 10px 12px;
  grid-template-areas:
    "position identity score"
    "summary summary summary";
  grid-template-columns: 58px minmax(0, 1fr) minmax(72px, max-content);
  padding: 12px;
}

.ranking-row--compact .ranking-position {
  grid-area: position;
}

.ranking-row--compact .ranking-identity {
  grid-area: identity;
}

.ranking-row--compact .ranking-summary {
  grid-area: summary;
  min-width: 0;
}

.ranking-row--compact .score-block {
  grid-area: score;
  min-width: 0;
}

.ranking-row--compact .participant-avatar {
  height: 34px;
  width: 34px;
}

.ranking-row--compact .medal {
  font-size: 18px;
  height: 38px;
  width: 38px;
}

.ranking-row--compact .ranking-position__number {
  font-size: 0.72rem;
}

.ranking-row--compact .ranking-meta {
  gap: 5px;
}

.ranking-row--compact .ranking-metrics,
.ranking-row--compact .ranking-subtext {
  gap: 6px;
}

.ranking-row--compact .ranking-metric,
.ranking-row--compact .ranking-history,
.ranking-row--compact .ranking-gap,
.ranking-row--compact .ranking-tag {
  font-size: 0.7rem;
  padding: 4px 7px;
}

.ranking-row--compact .ranking-metric__label {
  font-size: 0.68rem;
}

.ranking-row--compact .ranking-prize {
  font-size: 0.7rem;
  margin-top: 0;
  padding: 4px 7px;
}

.ranking-row--compact .score {
  font-size: 1.02rem;
  white-space: nowrap;
}

.form-card {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.form-actions,
.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.row-card .actions {
  justify-content: flex-start;
}

.form-actions {
  align-self: end;
}

.form-actions button,
.actions button {
  flex: 1 1 140px;
}

.form-actions .icon-action,
.actions .icon-action,
.form-actions button[type="submit"]:has(.button-icon) {
  flex: 0 0 var(--tap);
}

button[data-reset-form]:not(.icon-action)::before {
  align-items: center;
  background: var(--success);
  border-radius: 999px;
  color: #062115;
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 950;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.empty {
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(159, 188, 215, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.45;
  padding: 18px;
  text-align: center;
}

.app-loading {
  align-items: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  min-height: 260px;
  text-align: center;
}

.app-loading img {
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.2), 0 26px 60px rgba(0, 0, 0, 0.36);
  max-width: min(250px, 72vw);
  width: 100%;
}

.app-loading strong {
  color: var(--text);
  font-size: clamp(26px, 8vw, 44px);
  font-weight: 950;
}

.loading-spinner {
  animation: placar-spin 0.9s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 999px;
  height: 42px;
  width: 42px;
}

.loading-skeleton {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  width: min(260px, 72vw);
}

.loading-skeleton span {
  animation: skeletonPulse 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(33, 212, 253, 0.18), rgba(255, 255, 255, 0.045));
  background-size: 220% 100%;
  border-radius: 999px;
  height: 10px;
}

.loading-skeleton span:nth-child(2) {
  width: 78%;
}

.loading-skeleton span:nth-child(3) {
  width: 56%;
}

@keyframes skeletonPulse {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@keyframes placar-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 620px) {
  .login-page,
  .select-page {
    padding: 24px;
  }

  .select-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .form-card {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .form-actions button,
  .actions button {
    flex: 0 0 auto;
  }
}

@media (min-width: 760px) {
  .main {
    padding: 22px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-actions {
    grid-column: auto;
    justify-content: flex-end;
    width: auto;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  .dashboard-kpis {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .external-linking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-card {
    grid-template-columns: 1fr auto;
  }

  .match-card {
    grid-template-columns: 1fr auto;
  }

  .row-card .actions {
    justify-content: flex-end;
  }
}

@media (min-width: 981px) {
  .app-shell {
    grid-template-columns: var(--sidebar) 1fr;
  }

  .dashboard-board {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  }

  .sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    display: grid;
    min-height: 100vh;
    position: sticky;
    top: 0;
  }

  .hamburger {
    display: none;
  }
}

@media (max-width: 980px) {
  .hamburger {
    display: inline-grid;
  }

  .ranking-header {
    display: none;
  }

  .ranking-row:not(.ranking-row--compact) {
    grid-template-columns: 76px 1fr;
  }

  .ranking-row:not(.ranking-row--compact) .ranking-summary,
  .ranking-row:not(.ranking-row--compact) .score-block {
    grid-column: 1 / -1;
  }

  .score-block {
    justify-content: flex-start;
  }

  .ranking-row .score {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 16px;
  }

  .page-title p {
    font-size: 0.92rem;
  }

  .topbar-actions button,
  .topbar-actions .locale-pill {
    flex: 1 1 auto;
  }

  .bolao-switcher-top {
    flex: 1 1 100%;
    min-width: 100%;
    order: -1;
  }

  .bolao-switcher select {
    text-align: center;
  }

  .locale-pill {
    width: 100%;
  }

  .locale-pill__label {
    flex: 1 1 auto;
  }

  .icon-button {
    width: auto;
  }

  .team-line {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .stat-card--money {
    grid-column: span 1;
  }

  .dashboard-game__teams,
  .dashboard-result {
    grid-template-columns: 1fr;
  }

  .dashboard-game__teams .team-name:last-child,
  .dashboard-result .score + .team-name {
    justify-content: flex-start;
    text-align: left;
  }

  .dashboard-result-card__details {
    grid-template-columns: 1fr;
  }

  .dashboard-result-card__details > div {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    padding: 9px 10px;
    text-align: left;
  }

  .dashboard-result-card__details strong {
    justify-self: end;
  }

  .bet-inputs {
    justify-content: center;
  }

  .bet-inputs input {
    width: 78px;
  }

  .ranking-row,
  .ranking-row--compact {
    grid-template-columns: 1fr;
  }

  .ranking-row--compact {
    grid-template-areas:
      "position"
      "identity"
      "summary"
      "score";
  }

  .ranking-position,
  .ranking-identity {
    justify-content: flex-start;
  }

  .ranking-position {
    grid-template-columns: auto auto;
    justify-items: start;
  }

  .ranking-summary,
  .score-block {
    grid-column: 1 / -1;
  }

  .ranking-row .score {
    font-size: 1.18rem;
    justify-content: flex-start;
  }

  .ranking-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --tap: 50px;
  }

  body {
    touch-action: manipulation;
  }

  button,
  input,
  select,
  textarea,
  .select-card,
  .row-card,
  .card {
    -webkit-tap-highlight-color: rgba(33, 212, 253, 0.16);
  }

  button:active,
  .select-card:active,
  .row-card:active {
    transform: scale(0.99);
  }

  .main {
    padding: 10px 12px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    display: none !important;
  }

  .hamburger,
  .page-title {
    display: none;
  }

  .mobile-top-brand {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 0;
  }

  .mobile-top-brand img {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.2), 0 10px 22px rgba(0, 0, 0, 0.28);
    height: 38px;
    object-fit: cover;
    width: 52px;
  }

  .mobile-top-brand span {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 950;
    white-space: nowrap;
  }

  .topbar {
    align-items: center;
    background: rgba(7, 16, 24, 0.78);
    border: 1px solid rgba(159, 188, 215, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 14px;
    padding: 8px;
    position: sticky;
    top: 8px;
    z-index: 40;
    backdrop-filter: blur(16px);
  }

  .topbar-actions {
    flex-wrap: nowrap;
    gap: 6px;
    grid-column: auto;
    justify-content: flex-end;
    min-width: 0;
    width: auto;
  }

  .bolao-switcher-top {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 42vw;
    order: 0;
    padding: 2px 4px;
  }

  .bolao-switcher select {
    font-size: 0.76rem;
    min-height: 38px;
    overflow: hidden;
    padding: 7px 26px 7px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .locale-pill {
    flex: 0 0 73px;
    gap: 4px;
    min-height: 40px;
    padding: 0 7px;
    width: 73px;
  }

  .locale-pill__arrow {
    display: inline-flex;
    height: 11px;
    width: 11px;
  }

  .locale-pill__icon {
    display: inline-flex;
    height: 22px;
    width: 22px;
  }

  .locale-pill__label {
    font-size: 0.78rem;
    text-align: center;
    width: auto;
  }

  .icon-button {
    flex: 0 0 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    width: 40px;
  }

  .icon-button svg {
    height: 21px;
    width: 21px;
  }

  .content {
    animation: mobilePageIn 0.22s ease both;
  }

  .card,
  .row-card,
  .match-card,
  .ranking-row {
    border-radius: 16px;
    min-width: 0;
  }

  .dashboard-game--premium {
    background: linear-gradient(180deg, rgba(16, 39, 57, 0.92), rgba(8, 19, 29, 0.94));
    border-color: rgba(33, 212, 253, 0.2);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    padding: 16px;
  }

  .dashboard-upcoming-game__schedule {
    align-items: flex-start;
    gap: 8px;
  }

  .dashboard-upcoming-game__countdown {
    flex-direction: column;
    gap: 2px;
  }

  .dashboard-upcoming-game__fixture {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  }

  .dashboard-live-game__fixture {
    grid-template-columns: minmax(0, 1fr) minmax(64px, auto) minmax(0, 1fr);
  }

  .dashboard-live-game__score {
    font-size: clamp(1.08rem, 5vw, 1.34rem);
    gap: 5px;
  }

  .dashboard-upcoming-game__prediction {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-inline: 10px;
  }

  .dashboard-upcoming-game__prediction .bet-state-pill {
    font-size: clamp(0.67rem, 2.8vw, 0.76rem);
    grid-column: 1;
    justify-self: start;
  }

  .dashboard-upcoming-game__guess {
    font-size: clamp(0.92rem, 4vw, 1.02rem);
    gap: clamp(7px, 3vw, 16px);
    grid-column: 2;
    justify-self: center;
  }

  .dashboard-game__quick-action {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }

  .dashboard-game__quick-action button {
    font-size: clamp(0.75rem, 3.3vw, 0.9rem);
    min-width: 0;
    padding-inline: clamp(8px, 3vw, 12px);
    width: 100%;
  }

  .dashboard-game__teams,
  .sports-match-card__teams,
  .bet-card__teams {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-game__teams .team-name:last-child,
  .sports-match-card__teams .team-name:last-child,
  .bet-card__team--away .team-name {
    justify-content: flex-start;
    text-align: left;
  }

  .bet-card__team-control,
  .bet-card__team--away .bet-card__team-control {
    justify-items: stretch;
    width: 100%;
  }

  .dashboard-game__teams > .score,
  .sports-match-card__score {
    background: rgba(200, 255, 46, 0.09);
    border: 1px solid rgba(200, 255, 46, 0.22);
    border-radius: 999px;
    justify-self: start;
    padding: 5px 12px;
  }

  .dashboard-game__countdown {
    align-items: center;
    background: rgba(33, 212, 253, 0.08);
    border: 1px solid rgba(33, 212, 253, 0.18);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .dashboard-game__countdown span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .dashboard-game__countdown strong {
    color: var(--accent);
    font-size: 1rem;
  }

  .dashboard-game__quick-action button {
    width: 100%;
  }

  .dashboard-bet-backdrop {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-bet-modal {
    max-height: calc(100vh - 112px - env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
  }

  .bet-card {
    background: linear-gradient(180deg, rgba(15, 35, 51, 0.92), rgba(7, 17, 26, 0.96));
    padding: 16px;
  }

  .bet-card__header {
    justify-content: flex-start;
  }

  .bet-card__scoreboard {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(159, 188, 215, 0.14);
    border-radius: 20px;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
    padding: 10px 8px;
    width: 100%;
  }

  .bet-result-summary {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .bet-result-summary__item,
  .bet-result-summary__points {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .bet-result-summary__item strong,
  .bet-result-summary__points strong {
    font-size: 1.18rem;
    justify-self: end;
  }

  .bet-stepper {
    flex: 1 1 auto;
    gap: 2px;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
  }

  .bet-stepper input {
    flex: 1 1 auto;
    font-size: clamp(1.3rem, 6.4vw, 1.9rem);
    min-height: 48px;
    min-width: 30px;
    width: 100%;
  }

  .bet-stepper__button {
    flex: 0 0 clamp(34px, 10vw, 42px);
    height: clamp(38px, 10vw, 44px);
    min-height: 38px;
    min-width: 0;
    width: clamp(34px, 10vw, 42px);
  }

  .bet-card__separator {
    font-size: 1.3rem;
    justify-self: center;
  }

  .bet-card__match-date {
    justify-content: flex-start;
    text-align: left;
  }

  .bets-summary {
    grid-template-columns: 1fr;
  }

  .bet-filter-selects {
    grid-template-columns: 1fr;
  }

  .bet-card__actions,
  .bet-card__actions .secondary,
  .bet-card__actions .ghost {
    width: 100%;
  }

  .pool-guess-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pool-guess-score {
    justify-content: flex-start;
  }

  .modal-backdrop:has(.pool-guesses-modal) {
    align-items: flex-end;
    padding: 12px 12px calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .pool-guesses-modal {
    border-radius: 26px 26px 18px 18px;
    max-height: min(76vh, calc(100vh - 124px));
    width: calc(100vw - 24px);
  }

  .pool-guesses-modal .card-title {
    background: linear-gradient(180deg, rgba(15, 29, 41, 0.98), rgba(15, 29, 41, 0.88));
    margin: -2px -2px 8px;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .pool-guesses-list {
    max-height: min(56vh, calc(100vh - 240px));
  }

  .form-actions button,
  .actions button {
    min-height: 46px;
  }

  .pool-row__head {
    display: grid;
    gap: 8px;
  }

  .pool-status-pill {
    justify-self: start;
  }

  .participants-title {
    align-items: stretch;
  }

  .participants-main-invite,
  .quick-invite-actions button {
    justify-content: center;
    width: 100%;
  }

  .participants-invite-cta {
    align-items: stretch;
    display: grid;
  }

  .participant-row__head {
    display: grid;
    gap: 8px;
  }

  .participant-access-pill {
    justify-self: start;
  }


  .mobile-bottom-nav {
    align-items: center;
    background: linear-gradient(180deg, rgba(14, 29, 42, 0.9), rgba(6, 14, 22, 0.94));
    border: 1px solid rgba(159, 188, 215, 0.16);
    border-radius: 24px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(33, 212, 253, 0.08);
    display: grid;
    gap: 4px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    left: 10px;
    padding: 8px;
    position: fixed;
    right: 10px;
    z-index: 90;
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--muted);
    display: grid;
    font-size: 0.68rem;
    font-weight: 900;
    gap: 3px;
    justify-items: center;
    min-height: 56px;
    padding: 6px 4px;
    white-space: normal;
  }

  .mobile-nav-item.active {
    background: rgba(33, 212, 253, 0.12);
    border-color: rgba(33, 212, 253, 0.26);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(200, 255, 46, 0.08), 0 10px 20px rgba(33, 212, 253, 0.08);
  }

  .mobile-nav-icon {
    color: var(--accent);
    display: inline-flex;
    height: 21px;
    width: 21px;
  }

  .mobile-nav-icon svg,
  .mobile-more-header svg {
    fill: currentColor;
    height: 100%;
    width: 100%;
  }

  .mobile-more-drawer {
    display: grid;
    inset: 0;
    position: fixed;
    pointer-events: none;
    z-index: 100;
  }

  .mobile-more-drawer[hidden] {
    display: none;
  }

  .mobile-more-drawer.open {
    pointer-events: auto;
  }

  .mobile-more-backdrop {
    background: rgba(0, 0, 0, 0.58);
    inset: 0;
    position: absolute;
  }

  .mobile-more-panel {
    align-self: end;
    animation: drawerUp 0.22s ease both;
    background: linear-gradient(180deg, rgba(16, 31, 45, 0.98), rgba(7, 16, 24, 0.98));
    border: 1px solid rgba(159, 188, 215, 0.18);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -24px 62px rgba(0, 0, 0, 0.44);
    max-height: min(76vh, 620px);
    overflow: auto;
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    position: relative;
  }

  .mobile-more-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-more-header h2 {
    font-size: 1.05rem;
    margin: 0;
  }

  .mobile-more-list {
    display: grid;
    gap: 8px;
  }

  .mobile-more-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(159, 188, 215, 0.14);
    border-radius: 16px;
    color: var(--text);
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: start;
    min-height: 50px;
    padding: 12px;
    text-align: left;
  }

  .mobile-more-item.active {
    background: rgba(33, 212, 253, 0.12);
    border-color: rgba(33, 212, 253, 0.28);
  }

  .mobile-more-dot {
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(200, 255, 46, 0.34);
    height: 8px;
    width: 8px;
  }
}

@media (max-width: 420px) {
  .mobile-top-brand span {
    display: none;
  }

  .bolao-switcher-top {
    max-width: 44vw;
  }
}

@keyframes mobilePageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
