/* ActuBets' product layer on top of the shared FincTual visual foundation. */
:root {
  --blue: #35d07f;
  --blue-dark: #15945b;
  /* Match FincTual's active navigation green exactly. */
  --blue-deep: #16563a;
  --blue-light: #99f0c1;
  --blue-wash: #e9f8f0;
  --canvas: #f1f0eb;
  --canvas-alt: #e6e4dd;
  --surface-soft: #f8f8f4;
  --ink: #171928;
  --ink-mid: #3f4255;
  --orange: #ffb547;
  --orange-wash: #fff4df;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 38px rgba(23, 25, 40, .07);
  --shadow-lift: 0 24px 64px rgba(23, 25, 40, .14);
}

html {
  min-height: 100%;
  background: #151724;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: linear-gradient(180deg, #fbfaf7 0, var(--canvas) 360px), var(--canvas);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 25, 40, .26) .65px, transparent .65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 46%);
}

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

.skip-link:focus {
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 10px !important;
  padding: 10px 14px !important;
  z-index: 1000;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.app-nav {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
  padding: 0 28px;
  background: var(--ink);
  backdrop-filter: blur(10px);
  border: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--pixel);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--ink-faint);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-link::after {
  content: none;
}

.nav-link:hover {
  color: #fff;
  background: none;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: var(--blue-deep);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  background: none;
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #fff;
  background: none;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-link:active {
  color: #fff;
  background: var(--blue-deep);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.nav-link.active {
  color: #fff;
  background: var(--blue-deep);
  border-color: transparent;
  box-shadow: none;
}

.mode-pill:hover {
  color: #fff;
  border-color: var(--blue);
}

.avatar {
  overflow: hidden;
}

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

#app {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}

.page {
  max-width: 1240px;
  padding-top: 52px;
}

.page-head {
  position: relative;
  padding: 0 0 23px;
  border-bottom: 1px solid rgba(23, 25, 40, .1);
}

.page-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 84px;
  height: 3px;
  background: var(--blue);
  border-radius: 4px;
}

.page-head h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: .98;
}

.page-head-copy > p:not(.eyebrow) {
  max-width: 720px;
}

.eyebrow {
  color: var(--blue-dark);
}

.card {
  border-color: rgba(23, 25, 40, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8), var(--shadow-soft);
}

.button {
  border-radius: 8px;
  min-height: 40px;
}

.button-primary {
  position: relative;
  overflow: hidden;
  color: #10251b;
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(21, 148, 91, .22);
}

.button-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .28), transparent 75%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.button-primary:hover::after {
  transform: translateX(120%);
}

.leaderboard-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px 30px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(53, 208, 127, .23), transparent 18rem),
    linear-gradient(120deg, #161827 0%, #132c23 100%);
  border: 0;
}

.leaderboard-intro::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(153, 240, 193, .16);
  border-radius: 50%;
  right: -105px;
  top: -185px;
  box-shadow: 0 0 0 55px rgba(153, 240, 193, .045), 0 0 0 110px rgba(153, 240, 193, .025);
}

.leaderboard-intro-copy,
.leaderboard-intro-stats {
  position: relative;
  z-index: 1;
}

.leaderboard-intro .eyebrow {
  color: var(--blue-light);
}

.leaderboard-intro h1 {
  max-width: 660px;
  font-size: clamp(38px, 5vw, 61px);
  line-height: .98;
  letter-spacing: -2.5px;
}

.leaderboard-intro p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 14px;
  color: #c9d4ce;
}

.leaderboard-intro-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.leaderboard-intro .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.leaderboard-intro-stats {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.leaderboard-intro-stat {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

.leaderboard-intro-stat span {
  display: block;
  margin-bottom: 7px;
  color: #aebbb5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.leaderboard-intro-stat strong {
  color: var(--blue-light);
  font: 700 23px var(--mono);
}

.leaderboard-intro-stat.wide {
  grid-column: 1 / -1;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-intro-stat.wide img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.leaderboard-intro-stat.wide span {
  margin: 0 0 2px;
}

.leaderboard-intro-stat.wide strong {
  color: #fff;
  font: 600 12px var(--body);
}

.leaderboard-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0 12px;
}

.leaderboard-tools-copy strong {
  display: block;
  font-size: 17px;
}

.leaderboard-tools-copy span {
  color: var(--ink-dim);
  font-size: 12px;
}

.my-rank {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: linear-gradient(105deg, var(--blue-deep), #172c26);
}

.my-rank::after {
  content: 'YOUR RECEIPT';
  position: absolute;
  right: -8px;
  bottom: -11px;
  color: rgba(255, 255, 255, .04);
  font: 28px var(--pixel);
  white-space: nowrap;
}

.filters {
  border-top: 3px solid var(--blue);
}

table th {
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--ink-mid);
}

tbody tr[data-link]:hover {
  background: linear-gradient(90deg, var(--blue-wash), rgba(233, 248, 240, .22));
}

.grade-badge {
  color: #0d7243;
}

.claim-hero {
  grid-template-columns: minmax(0, 1.55fr) 340px;
}

.claim-panel {
  border-top: 4px solid var(--blue);
}

.mascot-card {
  position: relative;
  justify-content: flex-end;
  min-height: 440px;
  background:
    radial-gradient(circle at 50% 35%, rgba(53, 208, 127, .2), transparent 13rem),
    linear-gradient(150deg, #171927, #102d22);
}

.mascot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.mascot-image {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 235px;
  height: 275px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .22));
  animation: mascot-float 3.5s ease-in-out infinite;
}

.mascot-card strong,
.mascot-card p {
  position: relative;
  z-index: 1;
}

.mascot-card strong {
  max-width: 230px;
  line-height: 1.7;
}

.squads-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 360px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 181, 71, .16), transparent 14rem),
    linear-gradient(125deg, #151727, #13372a);
}

.squads-hero-copy {
  z-index: 2;
  align-self: center;
  padding: 42px;
}

.squads-hero .eyebrow {
  color: var(--orange);
}

.squads-hero h1 {
  max-width: 650px;
  font-size: clamp(39px, 5vw, 62px);
  letter-spacing: -2.6px;
}

.squads-hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 15px 0 23px;
  color: #c8d1cd;
}

.squads-hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.squads-hero .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.squads-hero-visual {
  position: relative;
  min-height: 360px;
}

.squads-hero-visual::before,
.squads-hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
}

.squads-hero-visual::before {
  width: 320px;
  height: 320px;
  top: 20px;
  right: 20px;
}

.squads-hero-visual::after {
  width: 235px;
  height: 235px;
  top: 62px;
  right: 62px;
}

.squads-hero-visual img {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -30px;
  width: 290px;
  height: 355px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .24));
}

.squad-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -34px 26px 28px;
  position: relative;
  z-index: 3;
}

.squad-overview-item {
  min-height: 112px;
  padding: 18px;
}

.squad-overview-item i {
  color: var(--blue-dark);
}

.squad-overview-item span {
  display: block;
  margin: 12px 0 3px;
  color: var(--ink-dim);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.squad-overview-item strong {
  font: 700 20px var(--mono);
}

.squads-directory-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.squads-directory-head p {
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 4px;
}

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

.squad-directory-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  text-decoration: none;
}

.squad-directory-card::after {
  content: '';
  position: absolute;
  top: -36px;
  right: -36px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--blue-wash);
  transition: transform .25s ease;
}

.squad-directory-card:hover::after {
  transform: scale(1.35);
}

.squad-card-head,
.squad-card-stats,
.squad-card-foot {
  position: relative;
  z-index: 1;
}

.squad-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.squad-card-head h3 {
  margin-bottom: 3px;
}

.squad-card-head p {
  color: var(--ink-dim);
  font-size: 12px;
}

.squad-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 19px;
}

.squad-card-stats > div {
  padding: 11px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.squad-card-stats span {
  display: block;
  color: var(--ink-dim);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.squad-card-stats strong {
  font: 700 14px var(--mono);
}

.squad-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--canvas-alt);
  color: var(--ink-dim);
  font-size: 11px;
}

.squad-card-foot b {
  color: var(--blue-dark);
}

.profile-banner {
  background:
    radial-gradient(circle at 75% 40%, rgba(53, 208, 127, .23), transparent 13rem),
    linear-gradient(125deg, #161827, var(--blue-deep));
}

.profile-banner::before {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -38px;
  width: 175px;
  height: 175px;
  background: url('/static/white-dino.png') center / contain no-repeat;
  opacity: .09;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 32px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: auto 0 0;
  padding: 14px max(28px, calc((100vw - 1184px) / 2));
  color: #b7bac7;
  background: #151724;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
}

.footer-wordmark .footer-favicon {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(230, 197, 140, .18));
}

.site-footer strong {
  color: #fff;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
}

.site-footer span,
.site-footer p {
  font-size: 10px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.site-footer .footer-links a,
.site-footer .footer-links button {
  color: #d3d5dd;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links button:hover {
  color: var(--blue-light);
}

.actubets-assistant.assistant-panel {
  top: 110px;
  right: 18px;
  bottom: auto;
  left: auto;
  width: min(360px, calc(100vw - 36px));
  height: auto;
  max-height: calc(100svh - 134px);
  z-index: 121;
  border-radius: 10px;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease;
}

.actubets-assistant.assistant-panel.open {
  transform: translateY(0) scale(1);
}

.actubets-assistant .assistant-head {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(120deg, #171927, #15392c);
}

.actubets-assistant .assistant-brand img {
  background: var(--blue-wash);
}

.actubets-assistant .assistant-title {
  color: #fff;
}

.actubets-assistant .assistant-subtitle {
  color: var(--blue-light);
}

.actubets-assistant .assistant-close {
  color: #fff;
}

.assistant-context {
  flex: 0 0 auto;
  padding: 8px 15px;
  color: #127144;
  background: var(--blue-wash);
  border-bottom: 1px solid rgba(21, 148, 91, .13);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}

.assistant-context i {
  margin-right: 5px;
}

.actubets-assistant .assistant-log {
  flex: 1 1 auto;
  min-height: 0;
}

.actubets-assistant .assistant-form {
  flex: 0 0 auto;
}

.assistant-disclaimer {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 15px 11px;
  color: var(--ink-dim);
  background: #fff;
  font-size: 9px;
  text-align: center;
}

.assistant-msg a {
  color: var(--blue-dark);
  font-weight: 700;
}

.modal {
  border: 1px solid rgba(255, 255, 255, .6);
}

.toast {
  bottom: 88px;
}

@media (max-width: 1080px) {
  .leaderboard-intro {
    grid-template-columns: 1fr 290px;
  }
}

@media (max-width: 820px) {
  .leaderboard-intro,
  .squads-hero {
    grid-template-columns: 1fr;
  }

  .leaderboard-intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .leaderboard-intro-stat.wide {
    grid-column: auto;
  }

  .squads-hero-copy {
    padding: 34px 28px;
  }

  .squads-hero-visual {
    min-height: 240px;
  }

  .squads-hero-visual img {
    height: 280px;
  }

  .squad-overview {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .app-nav {
    height: auto;
    min-height: 56px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link {
    flex: 1 0 auto;
    justify-content: center;
    padding: 8px 10px;
    background: none;
    font-size: 11px;
  }

  .mode-pill {
    margin-left: auto;
  }

  .page {
    padding-top: 32px;
  }

  .page-head h1,
  .leaderboard-intro h1,
  .squads-hero h1 {
    font-size: 38px;
    letter-spacing: -1.6px;
  }

  .leaderboard-intro {
    padding: 25px 20px 20px;
  }

  .leaderboard-intro-stats {
    grid-template-columns: 1fr 1fr;
  }

  .leaderboard-intro-stat.wide {
    grid-column: 1 / -1;
  }

  .leaderboard-tools,
  .squads-directory-head {
    align-items: stretch;
    flex-direction: column;
  }

  .squad-overview {
    margin: -25px 14px 25px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 18px 15px;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .site-footer > p {
    grid-column: 1;
  }

  .actubets-assistant.assistant-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: min(620px, calc(100svh - 16px));
    max-height: calc(100svh - 16px);
  }

  .toast {
    right: 12px;
    bottom: 73px;
    left: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-link i {
    display: none;
  }

  .squad-overview,
  .squad-card-stats {
    grid-template-columns: 1fr;
  }

  .squad-overview {
    margin-top: 12px;
  }

  .squads-hero-visual {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .mascot-image,
  .squads-hero-visual img {
    animation: none;
  }
}

/* FincTual leaderboard structure, translated to ActuBets performance data. */
.lb-page {
  min-height: calc(100vh - 265px);
  animation: view-in .28s ease both;
}

.lb-page .lb-row:focus-visible {
  outline: 3px solid rgba(53, 208, 127, .35);
  outline-offset: 2px;
  border-color: var(--blue-dark);
}

.lb-page .lb-profit.is-positive {
  color: #127144;
}

.lb-page .lb-profit.is-negative {
  color: var(--danger);
}

.lb-page .lb-placeholder {
  min-height: 280px;
  padding-top: 40px;
}

.lb-page .lb-placeholder p {
  margin: 8px auto 18px;
}

.lb-page .lb-search-wrap,
.lb-page .lb-row {
  grid-template-columns: 42px minmax(220px, 1fr) 124px 90px 90px;
}

.leaderboard-active .actubets-assistant.assistant-panel {
  top: 110px;
  bottom: auto;
  height: auto;
  max-height: calc(100svh - 134px);
  transform-origin: top right;
}

@media (min-width: 1180px) {
  .lb-page.assistant-open .lb-wrap {
    transform: translateX(max(-190px, calc((900px - 100vw) / 2)));
  }
}

@media (max-width: 700px) {
  .lb-page .lb-search-wrap,
  .lb-page .lb-row {
    grid-template-columns: 36px minmax(0, 1fr) 92px 76px;
  }

  .lb-page .lb-search-heading-average {
    grid-column: 3;
    grid-row: 2;
  }

  .lb-page .lb-search-heading-claims {
    display: block;
    grid-column: 4;
    grid-row: 2;
  }

  .lb-page .lb-search-heading-profit {
    display: none;
  }

  .lb-page .lb-profit {
    display: none;
  }

  .leaderboard-active .actubets-assistant.assistant-panel {
    top: auto;
    right: 12px;
    bottom: 14px;
    left: 12px;
    width: auto;
    height: auto;
    max-height: min(620px, calc(100svh - 40px));
  }
}

/* FincTual grading console, backed by ActuBets claim and account APIs. */
.check-claim-page {
  min-height: calc(100vh - 265px);
  animation: view-in .28s ease both;
}

.check-claim-page #claim-output {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.check-claim-page .audit-post-count {
  margin-top: 16px;
}

.check-claim-page .claim-loading-card {
  margin-top: 72px;
}

.check-claim-page .claim-receipt,
.check-claim-page .claim-receipt-block,
.check-claim-page .claim-verdict-block {
  display: block;
}

.check-claim-page .claim-status-line {
  margin: 5px 0 10px;
  text-align: center;
}

.check-claim-page .claim-receipt-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.check-claim-page .claim-receipt-actions button,
.check-claim-page .claim-receipt-actions a {
  border: 1px solid #b9b9b2;
  border-radius: 4px;
  padding: 7px 10px;
  background: transparent;
  color: var(--r-ink);
  font: 700 9px var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.check-claim-page .grade-account-output .job-status {
  margin-top: 14px;
}

/* Squads uses FincTual's lower Watchlist/mountain composition. */
.squads-watchlist-page .squads-mountain-section {
  margin-top: 0;
}

.squads-watchlist-page .watchlist-browse-btn {
  text-decoration: none;
}

.squads-watchlist-page .watchlist-item {
  color: inherit;
  text-decoration: none;
}

.squads-watchlist-page .watchlist-evaluate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.squads-watchlist-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--canvas-alt);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-faint);
}

.squads-watchlist-search:focus-within {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .1);
}

.squads-watchlist-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  outline: 0;
}

.squads-responsible-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 38px auto 0;
  color: var(--ink-dim);
  font-size: 10px;
  text-align: center;
}

.squads-responsible-note i {
  color: var(--blue-dark);
}

/* Keep FincTual's Discover card rhythm while adding ActuBets actions. */
.discover-results-head[hidden] {
  display: none;
}

.discover-actions .discover-profile-link {
  flex: 1;
  border: 1px solid var(--canvas-alt);
  border-radius: 6px;
  padding: 9px 8px;
  background: #fff;
  color: var(--ink-mid);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 700px) {
  .check-claim-page .claim-loading-card {
    margin-top: 20px;
  }

  .check-claim-page .claim-meta-row {
    grid-template-columns: 1fr;
  }

  .squads-watchlist-page .watchlist-row-actions {
    width: 100%;
  }
}

/* FincTual parity layer: the legacy wireframe stylesheet is still loaded for
   ActuBets-specific components, so reset its global layout leaks here. */
.app-nav {
  height: 56px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  gap: 8px;
}

.brand-name {
  font: 700 18px/1 var(--body);
  letter-spacing: .2px;
}

.brand-favicon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, .08));
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-favicon {
    width: 23px;
    height: 23px;
  }
}

.nav-links {
  position: static;
  left: auto;
  transform: none;
  margin-left: auto;
  gap: 4px;
}

.nav-link {
  min-width: 0;
  justify-content: initial;
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 28px 80px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
  padding: 0;
  border-bottom: 0;
}

.page-head-copy {
  max-width: 690px;
}

.page-head-copy > p:not(.eyebrow) {
  max-width: none;
  margin-top: 11px;
  font-size: 15px;
  line-height: 1.65;
}

.page-head .eyebrow {
  display: block;
}

.page-head::after {
  display: none;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -2.4px;
}

.card {
  border-radius: var(--radius);
}

.button {
  min-height: 0;
  border-radius: 6px;
  padding: 11px 16px;
  letter-spacing: .5px;
}

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

.metric-card {
  min-height: 106px;
}

.metric-card:nth-child(n + 5) {
  display: block;
}

.profile-banner {
  height: 168px;
}

.profile-banner::after {
  display: block;
}

.profile-info {
  margin-top: -45px;
}

.profile-copy {
  padding-top: 50px;
}

@media (max-width: 960px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-nav {
    height: auto;
    min-height: 56px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin: 0;
    padding-bottom: 2px;
  }

  .nav-link {
    flex: 1 0 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
  }

  .page {
    padding: 28px 15px 66px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

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

  .profile-banner {
    height: 130px;
  }

  .profile-info {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 17px 18px;
  }

  .profile-copy {
    padding-top: 51px;
    flex: 1;
  }
}

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