:root {
  --ink: #f5f7f8;
  --muted: #9aa4a8;
  --line: rgba(255, 255, 255, 0.11);
  --surface: #12191e;
  --paper: #070b0e;
  --green: #35c447;
  --green-strong: #149325;
  --yellow: #ffbe35;
  --red: #b42318;
  --blue: #3c9be9;
  --panel: rgba(20, 28, 33, 0.88);
  --panel-2: rgba(15, 21, 25, 0.96);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 196, 71, 0.1), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(255, 190, 53, 0.08), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--ink);
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

main {
  min-height: calc(100vh - 150px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 8px clamp(16px, 2vw, 28px);
  background: rgba(5, 10, 13, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body:has(.betting-page) main {
  min-height: calc(100vh - 92px);
}

body:has(.betting-page) .footer {
  display: none;
}

body:has(.betting-page) .topbar {
  min-height: 92px;
  padding: 16px 24px;
}

body:has(.betting-page) .brand {
  gap: 10px;
}

body:has(.betting-page) .brand-mark {
  width: 52px;
  height: 52px;
}

body:has(.betting-page) .brand strong {
  font-size: 1.8rem;
}

body:has(.betting-page) .brand small {
  font-size: 0.82rem;
}

body:has(.betting-page) .nav {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 28px;
  margin-left: 52px;
  margin-right: 792px;
  flex-wrap: nowrap;
}

body:has(.betting-page) .nav a[href="/admin"],
body:has(.betting-page) .nav form {
  display: none;
}

body:has(.betting-page) .nav a.active::after {
  bottom: -24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 42%, var(--yellow) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, var(--yellow) 42% 58%, transparent 58%);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 190, 53, 0.08);
}

.brand-mark span {
  width: 20px;
  height: 20px;
  background: #f4f4e8;
  border: 3px solid #070b0e;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 1.55rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand small {
  color: var(--yellow);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.brand small,
.card small,
td small {
  display: block;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 1.55vw, 22px);
  min-width: 0;
}

.nav a {
  position: relative;
  color: #d7dcdf;
  font-size: 0.94rem;
  font-weight: 650;
  white-space: nowrap;
}

.nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 4px;
  background: var(--green);
  border-radius: 8px;
  content: "";
}

.link-button {
  padding: 0;
  color: #d7dcdf;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(180deg, #31b33c, #0f7b1e);
  border: 1px solid #39d44b;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.button:hover {
  background: var(--green-strong);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.button.danger {
  background: var(--red);
  border-color: var(--red);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.button.full,
.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 32px;
  background:
    radial-gradient(circle at 18% 10%, rgba(53, 196, 71, 0.18), transparent 24rem),
    linear-gradient(120deg, rgba(18, 27, 32, 0.96), rgba(7, 12, 15, 0.98));
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.scoreboard-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 50%, transparent 50%) 0 0 / 58px 58px,
    linear-gradient(135deg, #1b7f50, #0f5f3a);
  border: 1px solid rgba(13, 87, 52, 0.25);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pitch-lines {
  position: absolute;
  inset: 24px;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.pitch-lines::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.pitch-lines::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  content: "";
}

.score-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(240px, calc(100% - 48px));
  padding: 18px;
  color: var(--ink);
  background: rgba(7, 12, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.score-card strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.section,
.narrow,
.prose,
.auth-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.narrow {
  width: min(720px, calc(100% - 32px));
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-header h1,
.section-header h2,
.prose h1 {
  margin: 0;
}

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

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

.card,
.panel,
.table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 50, 33, 0.06);
}

.card,
.panel {
  padding: 18px;
}

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

.card h3,
.panel h2 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: #213025;
  background: #edf4ef;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.open,
.badge.paid {
  color: #0d5734;
  background: #e3f5ea;
}

.metrics,
.mini-metrics,
.details {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

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

.mini-metrics {
  grid-template-columns: repeat(2, minmax(110px, 1fr));
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 760;
}

.muted {
  color: var(--muted);
}

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 34px clamp(16px, 4vw, 48px);
  color: white;
  background: #18351f;
}

.band h2 {
  margin: 0 0 8px;
}

.auth-shell {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.auth-shell.wide {
  width: min(940px, calc(100% - 32px));
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 158px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.login-copy {
  position: relative;
  isolation: isolate;
}

.login-copy::before {
  position: absolute;
  inset: -30px auto auto -30px;
  z-index: -1;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(53, 196, 71, 0.2), transparent 68%);
  content: "";
}

.login-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.login-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #c7ced2;
  font-size: 1.08rem;
}

.login-highlights {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.login-highlights span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8edef;
  font-weight: 700;
}

.login-highlights b {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(53, 196, 71, 0.12);
}

.login-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(27, 37, 43, 0.96), rgba(12, 18, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(53, 196, 71, 0.16);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.login-card-head h2 {
  margin: 0;
  font-size: 2rem;
}

.login-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: rgba(53, 196, 71, 0.13);
  border: 1px solid rgba(53, 196, 71, 0.38);
  border-radius: 8px;
}

.login-icon::before {
  width: 24px;
  height: 18px;
  border: 3px solid var(--green);
  border-top: 0;
  border-radius: 4px;
  box-shadow: 0 -13px 0 -6px transparent;
  content: "";
}

.login-icon::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--green);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  transform: translateY(-14px);
  content: "";
}

.login-card input {
  min-height: 50px;
  background: rgba(4, 9, 12, 0.78);
}

.login-card input:focus {
  outline: 2px solid rgba(53, 196, 71, 0.45);
  outline-offset: 1px;
  border-color: rgba(53, 196, 71, 0.7);
}

.login-submit {
  min-height: 50px;
  margin-top: 4px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  font-size: 0.94rem;
}

.login-links a {
  color: #dce3e6;
}

.login-links a:hover {
  color: var(--green);
}

.form {
  width: 100%;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(7, 12, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.check {
  grid-template-columns: auto 1fr !important;
  align-items: center;
  margin: 12px 0;
  color: var(--ink) !important;
}

.check input {
  width: auto;
  min-height: auto;
}

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
}

.flash p {
  margin: 0;
}

.flash.error {
  color: #7a271a;
  background: #fff0ea;
  border: 1px solid #ffcab8;
}

.flash.success {
  color: #0d5734;
  background: #e7f7ec;
  border: 1px solid #bfe7cb;
}

.workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar h2 {
  margin: 0 0 8px;
}

.sidebar a {
  padding: 9px 10px;
  border-radius: 8px;
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--green);
  background: rgba(53, 196, 71, 0.1);
}

.content {
  min-width: 0;
}

.narrow-content {
  max-width: 820px;
}

.wallet {
  min-width: 210px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wallet .button {
  margin-top: 10px;
}

.wallet span,
.wallet small {
  display: block;
  color: var(--muted);
}

.wallet strong,
.big-number {
  display: block;
  font-size: 2rem;
}

.account-workspace {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
}

.account-content {
  display: grid;
  gap: 18px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(53, 196, 71, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(22, 31, 36, 0.96), rgba(12, 18, 22, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-hero h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.account-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: #c7ced2;
}

.account-wallet {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  background: rgba(7, 12, 15, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.account-wallet span,
.account-wallet small {
  color: var(--muted);
}

.account-wallet strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-stats article,
.pool-item,
.movement-list {
  background: linear-gradient(180deg, rgba(22, 31, 36, 0.96), rgba(13, 19, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-stats article {
  padding: 14px 16px;
}

.account-stats span,
.account-stats small {
  display: block;
  color: var(--muted);
}

.account-stats strong {
  display: block;
  margin: 4px 0;
  font-size: 1.75rem;
  line-height: 1;
}

.account-section {
  display: grid;
  gap: 10px;
}

.account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.account-section-head h2 {
  margin: 0;
}

.account-section-head a {
  color: var(--green);
  font-weight: 750;
}

.pool-list {
  display: grid;
  gap: 10px;
}

.pool-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

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

.pool-title h3 {
  margin: 0;
}

.pool-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

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

.movement-list {
  overflow: hidden;
}

.movement-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 130px 110px 150px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.movement-item:last-child {
  border-bottom: 0;
}

.movement-type {
  color: #dce3e6;
  font-weight: 750;
}

.movement-item small {
  color: var(--muted);
}

.stacked {
  display: grid;
  gap: 8px;
}

.wallet-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  margin-bottom: 18px;
}

.badge.awaiting,
.badge.awaiting_payment {
  color: #684400;
  background: #fff3cd;
}

.badge.paid {
  color: #0d5734;
  background: #e3f5ea;
}

.badge.canceled,
.badge.refunded,
.badge.expired {
  color: #7a271a;
  background: #fff0ea;
}

.pix-box {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  background: #102f20;
  border-radius: 8px;
  color: white;
}

.pix-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.payment-confirmation {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(34, 211, 93, 0.32);
  border-radius: 8px;
  background: rgba(34, 211, 93, 0.09);
}

.payment-confirmation strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
}

.payment-confirmation span {
  display: block;
  color: #b8cbd2;
  margin-top: 4px;
}

.payment-confirmed-state {
  display: none;
}

.payment-confirmation.is-confirmed {
  background: rgba(34, 211, 93, 0.14);
}

.payment-confirmation.is-confirmed .payment-pending-state {
  display: none;
}

.payment-confirmation.is-confirmed .payment-confirmed-state {
  display: grid;
  gap: 10px;
}

.pix-qr {
  width: min(260px, 100%);
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}

.table-panel {
  overflow-x: auto;
  padding: 0;
}

.table-panel h2 {
  margin: 0;
  padding: 18px 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.score-inputs,
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-inputs input,
.inline-form input,
.inline-form select {
  width: 92px;
}

.inline-form {
  flex-wrap: wrap;
}

.prose {
  max-width: 820px;
  font-size: 1.04rem;
}

.info-page {
  display: grid;
  gap: 18px;
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.info-hero,
.ranking-hero,
.podium-panel,
.ranking-user-panel,
.support-panel {
  background:
    radial-gradient(circle at 6% 0%, rgba(53, 196, 71, 0.14), transparent 20rem),
    linear-gradient(180deg, rgba(22, 31, 36, 0.96), rgba(12, 18, 22, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-hero,
.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.info-hero h1,
.ranking-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.info-hero p:not(.eyebrow),
.ranking-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #c7ced2;
}

.info-total-card {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background: rgba(7, 12, 15, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.info-total-card span,
.info-total-card small {
  color: var(--muted);
}

.info-total-card strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.05;
}

.info-grid,
.rules-grid,
.ranking-grid {
  display: grid;
  gap: 14px;
}

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

.info-card,
.rule-card {
  background: linear-gradient(180deg, rgba(22, 31, 36, 0.96), rgba(13, 19, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card {
  padding: 18px;
}

.info-card h2,
.rule-card h2,
.support-panel h2 {
  margin: 0 0 8px;
}

.info-card p,
.rule-card p {
  margin: 0;
  color: #c7ced2;
}

.info-icon {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}

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

.rule-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.rule-card.featured {
  border-color: rgba(255, 190, 53, 0.35);
  background: linear-gradient(180deg, rgba(80, 58, 14, 0.34), rgba(13, 19, 23, 0.98));
}

.rule-score {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #101417;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 900;
}

.info-table table {
  min-width: 780px;
}

.support-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-list a {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: rgba(7, 12, 15, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-list a:hover {
  border-color: rgba(53, 196, 71, 0.45);
}

.support-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ranking-workspace {
  grid-template-columns: 230px minmax(0, 1fr);
}

.ranking-content {
  display: grid;
  gap: 18px;
}

.ranking-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  background: rgba(7, 12, 15, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.ranking-summary dd {
  font-size: 1.2rem;
}

.ranking-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.podium-panel,
.ranking-user-panel {
  padding: 18px;
}

.podium-list {
  display: grid;
  gap: 10px;
}

.podium-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(7, 12, 15, 0.65);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.podium-item.me,
.me-row {
  outline: 1px solid rgba(53, 196, 71, 0.45);
  background: linear-gradient(90deg, rgba(53, 196, 71, 0.13), rgba(18, 24, 29, 0.94));
}

.podium-item small {
  display: block;
  color: var(--muted);
}

.podium-item b {
  color: var(--green);
  text-align: right;
}

.ranking-user-panel {
  display: grid;
  align-content: center;
  gap: 8px;
}

.ranking-user-panel strong {
  font-size: 1.75rem;
  line-height: 1.05;
}

.ranking-user-panel span,
.ranking-user-panel small {
  color: #c7ced2;
}

.ranking-table-panel table {
  min-width: 840px;
}

.pool-item.single {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 28px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.betting-page {
  min-height: calc(100vh - 92px);
  padding: 0;
}

.betting-topline {
  position: fixed;
  top: 0;
  right: 18px;
  z-index: 11;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
  width: 770px;
  min-height: 92px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  overflow: hidden;
}

.round-panel,
.countdown-panel,
.user-chip {
  min-height: 56px;
  padding: 8px 12px;
  background: rgba(11, 17, 21, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.round-panel,
.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-panel {
  flex: 0 0 175px;
}

.round-panel strong,
.countdown-panel strong {
  display: block;
  color: var(--green);
  text-transform: uppercase;
}

.round-panel small,
.countdown-panel span,
.countdown-panel small,
.user-chip small {
  color: var(--muted);
  font-size: 0.75rem;
}

.calendar-icon,
.stat-icon,
.clipboard-icon,
.gift-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.calendar-icon {
  width: 28px;
  height: 28px;
  border: 2px solid #d8e1dd;
  border-radius: 5px;
}

.calendar-icon::before {
  width: 12px;
  height: 8px;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  content: "";
}

.countdown-panel {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  grid-template-areas:
    "label time"
    "label units";
  flex: 0 0 238px;
  align-items: center;
  gap: 2px 12px;
  text-align: center;
}

.countdown-panel span {
  grid-area: label;
  line-height: 1.25;
  white-space: normal;
}

.countdown-panel strong {
  grid-area: time;
  color: var(--green);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.countdown-panel small {
  grid-area: units;
  white-space: nowrap;
}

.save-picks {
  flex: 0 0 162px;
  min-height: 50px;
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
  text-transform: uppercase;
}

.user-chip {
  flex: 0 0 170px;
  justify-content: space-between;
  gap: 8px;
  margin-left: auto;
}

.user-chip strong {
  display: block;
  max-width: 92px;
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar,
.mini-avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #f0f0f0 0 22%, transparent 23%),
    radial-gradient(circle at 50% 82%, #d5d5d5 0 34%, transparent 35%),
    #bfc4c7;
}

.tier-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
}

.betting-grid {
  display: grid;
  grid-template-columns: minmax(720px, calc(100vw - 591px)) 591px;
  min-height: calc(100vh - 92px);
}

.games-panel {
  padding: 20px 20px 28px 23px;
  border-right: 1px solid var(--line);
}

.games-heading h1 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.12;
}

.games-heading p {
  margin: 0;
  color: #c7ced2;
  font-size: 0.9rem;
  line-height: 1.25;
}

.games-tools {
  display: grid;
  grid-template-columns: 254px 306px minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  margin: 13px 0 12px;
}

.tool-select,
.day-tabs,
.search-box {
  height: 36px;
  min-height: 36px;
  background: rgba(13, 19, 23, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-select {
  min-height: 36px;
  color: #d7dcdf;
  text-align: left;
  padding: 0 18px;
  cursor: pointer;
}

.day-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.day-tabs button {
  color: #d7dcdf;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.day-tabs .active {
  color: var(--green);
  background: rgba(53, 196, 71, 0.16);
  border: 1px solid rgba(53, 196, 71, 0.28);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  width: min(232px, 100%);
}

.search-box span {
  position: absolute;
  left: 16px;
  color: #879196;
  pointer-events: none;
}

.search-box input {
  height: 100%;
  min-height: 0;
  color: #fff;
  background: transparent;
  border: 0;
  padding-left: 16px;
}

.search-box input:focus + span,
.search-box input:not(:placeholder-shown) + span {
  display: none;
}

.matches-list {
  display: grid;
  gap: 3px;
}

.match-row {
  display: grid;
  grid-template-columns: 52px 70px 77px 72px minmax(145px, 1fr) 112px minmax(170px, 1.12fr) 154px 34px;
  align-items: center;
  column-gap: 0;
  min-height: 40px;
  width: 100%;
  overflow: hidden;
  color: #eef2f3;
  background: linear-gradient(180deg, rgba(28, 36, 41, 0.92), rgba(17, 24, 28, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.match-row[hidden] {
  display: none;
}

.favorite {
  width: 100%;
  color: #c5cbd0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 1.22rem;
  cursor: pointer;
}

.league-pill {
  color: var(--green);
  font-weight: 900;
  font-size: 0.75rem;
}

.league-pill.serie-b {
  color: var(--yellow);
}

.match-date,
.match-time,
.pick-status {
  color: #d6dde0;
  font-size: 0.8rem;
}

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

.team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.home-team {
  justify-content: flex-start;
  text-align: left;
}

.away-team {
  justify-content: flex-start;
  text-align: left;
}

.crest,
.crest-img {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 28px;
}

.crest-img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.crest {
  flex: 0 0 auto;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.tone-1 { background: linear-gradient(135deg, #d62323, #111); }
.tone-2 { background: linear-gradient(135deg, #1d8a54, #f5f5f5); color: #082819; }
.tone-3 { background: linear-gradient(135deg, #222, #d8d8d8); color: #111; }
.tone-4 { background: linear-gradient(135deg, #276ed8, #f5f5f5); color: #111; }
.tone-5 { background: linear-gradient(135deg, #0f0f0f, #fff); color: #111; }
.tone-6 { background: linear-gradient(135deg, #c71c2c, #f4f4f4); color: #111; }
.tone-7 { background: linear-gradient(135deg, #f0c536, #1b7f50); color: #111; }
.tone-8 { background: linear-gradient(135deg, #751a1a, #e9e9e9); color: #111; }

.pick-inputs {
  display: grid;
  grid-template-columns: 48px 16px 48px;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.pick-inputs input {
  box-sizing: border-box;
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  color: #fff;
  appearance: textfield;
  background: rgba(5, 10, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 850;
}

.pick-inputs input::-webkit-outer-spin-button,
.pick-inputs input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.pick-inputs span {
  color: #c5cbd0;
  text-align: center;
}

.pick-status,
.check-ring {
  color: var(--green);
  text-align: center;
}

.check-ring {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.empty-matches {
  margin: 18px 0 0;
  padding: 18px;
  color: #d8dee1;
  text-align: center;
  background: rgba(18, 24, 29, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-rail {
  padding: 26px 17px 26px 20px;
  background: rgba(7, 12, 15, 0.74);
}

.summary-rail h2,
.status-card h3 {
  margin: 0 0 12px;
}

.summary-rail > h2 {
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.stat-card,
.status-card,
.ranking-card,
.invite-card {
  background: linear-gradient(180deg, rgba(30, 39, 45, 0.92), rgba(16, 23, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-card {
  height: 86px;
  min-height: 0;
  overflow: hidden;
  padding: 16px 12px 12px 54px;
  position: relative;
}

.stat-card small,
.stat-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
}

.stat-card:nth-child(2) strong,
.invite-card strong {
  color: var(--yellow);
}

.stat-icon {
  position: absolute;
  top: 20px;
  left: 17px;
  width: 24px;
  height: 24px;
}

.people-icon::before {
  width: 18px;
  height: 12px;
  background: var(--green);
  border-radius: 10px 10px 4px 4px;
  box-shadow: -8px 6px 0 rgba(53, 196, 71, 0.7), 8px 6px 0 rgba(53, 196, 71, 0.7);
  content: "";
}

.trophy-icon::before {
  width: 20px;
  height: 20px;
  border: 4px solid var(--yellow);
  border-top-width: 8px;
  border-radius: 3px 3px 10px 10px;
  content: "";
}

.coins-icon::before {
  width: 22px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 8px 0 var(--yellow), 0 16px 0 var(--yellow);
  content: "";
}

.status-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 14px;
  margin: 14px 0 18px;
}

.status-card {
  height: 134px;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.donut {
  width: 76px;
  height: 76px;
  float: left;
  margin: 6px 18px 0 4px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), #9aa4a8 0);
  position: relative;
}

.donut::after {
  position: absolute;
  inset: 16px;
  background: #12191e;
  border-radius: 50%;
  content: "";
}

.legend {
  display: grid;
  gap: 7px;
  padding-top: 7px;
  font-size: 0.88rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8dee1;
}

.legend b,
.paid-dot,
.pending-dot {
  width: 10px;
  height: 10px;
  background: #a6adb1;
  border-radius: 50%;
}

.legend .green-dot,
.paid-dot {
  background: var(--green);
}

.pending-dot {
  display: inline-block;
  background: #ff9f1a;
}

.my-status {
  position: relative;
  padding-left: 86px;
}

.clipboard-icon {
  position: absolute;
  top: 46px;
  left: 22px;
  width: 34px;
  height: 44px;
  border: 4px solid #c9ced2;
  border-radius: 5px;
}

.clipboard-icon::before {
  position: absolute;
  top: -11px;
  left: 7px;
  width: 15px;
  height: 13px;
  border: 4px solid #c9ced2;
  border-radius: 6px 6px 0 0;
  background: #12191e;
  content: "";
}

.my-status strong {
  display: block;
  color: var(--green);
  font-size: 1.2rem;
}

.my-status small {
  color: #d8dee1;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 6px;
}

.ranking-head h2 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.ranking-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ranking-head a {
  padding: 7px 12px;
  color: #cbd2d6;
  background: rgba(16, 23, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
}

.live-ranking {
  min-width: 0;
  font-size: 0.86rem;
  border-collapse: separate;
  border-spacing: 0 2px;
}

.live-ranking th,
.live-ranking td {
  padding: 3px 10px;
  border: 0;
}

.live-ranking tbody tr {
  background: rgba(18, 24, 29, 0.92);
}

.live-ranking tbody tr:nth-child(1),
.live-ranking tbody tr:nth-child(2),
.live-ranking tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(255, 190, 53, 0.28), rgba(18, 24, 29, 0.94));
}

.live-ranking tbody tr.me {
  outline: 1px solid rgba(53, 196, 71, 0.35);
  background: linear-gradient(90deg, rgba(53, 196, 71, 0.16), rgba(18, 24, 29, 0.94));
}

.live-ranking td:first-child {
  border-radius: 8px 0 0 8px;
}

.live-ranking td:last-child {
  border-radius: 0 8px 8px 0;
}

.rank-badge {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #111;
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

.invite-card {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  align-items: center;
  height: 76px;
  min-height: 0;
  overflow: hidden;
  margin-top: 14px;
  padding: 12px 18px;
}

.invite-card strong {
  grid-column: 2;
  font-size: 1.02rem;
  line-height: 1.1;
  white-space: nowrap;
}

.invite-card small {
  display: block;
  grid-column: 2;
  color: #d8dee1;
  font-size: 0.9rem;
}

.invite-card::after {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--yellow);
  font-size: 1.8rem;
  content: "›";
}

.gift-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border: 4px solid var(--yellow);
  border-top-width: 10px;
  position: relative;
}

.gift-icon::before,
.gift-icon::after {
  position: absolute;
  background: var(--yellow);
  content: "";
}

.gift-icon::before {
  top: -14px;
  left: 12px;
  width: 5px;
  height: 42px;
}

.gift-icon::after {
  top: 10px;
  left: -8px;
  width: 46px;
  height: 5px;
}

@media (max-width: 860px) {
  .topbar,
  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .hero,
  .workspace,
  .band,
  .login-page,
  .info-hero,
  .ranking-hero,
  .ranking-grid,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .account-hero,
  .pool-item,
  .movement-item,
  .pool-item.single {
    grid-template-columns: 1fr;
  }

  .account-stats,
  .pool-metrics,
  .info-grid,
  .rules-grid,
  .support-list {
    grid-template-columns: 1fr;
  }

  .login-page {
    min-height: auto;
  }

  .login-card {
    order: -1;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .metrics,
  .mini-metrics,
  .form-grid,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard-visual {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
  }

  .nav a,
  .nav form,
  .nav button {
    min-height: 34px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .login-copy h1 {
    font-size: 2.35rem;
  }

  .login-card {
    padding: 20px;
  }

  .login-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 1400px) {
  body:has(.betting-page) main {
    min-height: calc(100vh - 166px);
  }

  body:has(.betting-page) .topbar {
    min-height: 74px;
    padding: 8px clamp(16px, 2vw, 28px);
  }

  body:has(.betting-page) .brand-mark {
    width: 46px;
    height: 46px;
  }

  body:has(.betting-page) .brand strong {
    font-size: 1.55rem;
  }

  body:has(.betting-page) .brand small {
    font-size: 0.82rem;
  }

  body:has(.betting-page) .nav {
    justify-content: flex-end;
    gap: clamp(10px, 1.55vw, 22px);
    margin-left: 0;
    margin-right: 0;
    flex-wrap: wrap;
  }

  .betting-grid {
    grid-template-columns: minmax(820px, 1fr) 390px;
    min-height: calc(100vh - 166px);
  }

  .betting-topline {
    position: static;
    width: auto;
    gap: 12px;
    min-height: 86px;
    padding: 10px clamp(16px, 2vw, 26px);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 16, 0.82);
  }

  .round-panel {
    flex-basis: 220px;
  }

  .countdown-panel {
    flex-basis: 310px;
  }

  .save-picks {
    flex-basis: 180px;
  }

  .user-chip {
    flex-basis: 170px;
  }

  .summary-cards,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .games-tools {
    grid-template-columns: 220px 240px minmax(180px, 1fr);
    gap: 10px;
  }

  .search-box {
    justify-self: stretch;
    width: 100%;
  }

  .match-row {
    grid-template-columns: 34px 66px 72px 50px minmax(142px, 1fr) 102px minmax(142px, 1fr) 112px 28px;
    min-height: 44px;
  }

  .team {
    gap: 7px;
  }

  .crest,
  .crest-img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 0.56rem;
  }

  .pick-inputs {
    grid-template-columns: 38px 12px 38px;
    gap: 5px;
  }

  .pick-inputs input {
    min-height: 30px;
    font-size: 0.96rem;
  }

  .pick-status {
    font-size: 0.78rem;
  }

  .summary-rail {
    padding: 12px;
  }

  .summary-rail h2 {
    font-size: 1.06rem;
  }

  .stat-card {
    min-height: 60px;
    padding: 9px 10px 7px 54px;
  }

  .stat-card small,
  .stat-card em {
    font-size: 0.72rem;
  }

  .stat-card strong {
    font-size: 0.96rem;
  }

  .status-card {
    min-height: 96px;
  }
}

@media (max-width: 1120px) {
  .betting-topline {
    flex-wrap: wrap;
    justify-content: stretch;
    overflow: visible;
  }

  .round-panel,
  .countdown-panel,
  .save-picks,
  .user-chip {
    flex: 1 1 calc(50% - 10px);
  }

  .user-chip {
    margin-left: 0;
  }

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

  .games-panel {
    border-right: 0;
  }

  .summary-rail {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .betting-topline,
  .games-tools {
    grid-template-columns: 1fr;
  }

  .search-box {
    justify-self: stretch;
    width: 100%;
  }

  .match-row {
    grid-template-columns: 34px 72px 1fr 96px 30px;
    gap: 8px;
    padding: 8px;
  }

  .match-time,
  .home-team .crest,
  .away-team .crest,
  .home-team .crest-img,
  .away-team .crest-img {
    display: none;
  }

  .match-date {
    grid-column: 3;
  }

  .home-team,
  .away-team {
    justify-content: flex-start;
    text-align: left;
  }

  .home-team {
    grid-column: 3;
  }

  .pick-inputs {
    grid-column: 4;
    grid-row: span 2;
  }

  .away-team {
    grid-column: 3;
  }

  .pick-status {
    display: none;
  }

  .check-ring {
    grid-column: 5;
    grid-row: span 2;
  }

  .summary-rail {
    padding: 18px 14px;
  }
}
