/* BetMetric app overrides — self-host friendly (no Google Fonts CDN) */
:root {
  --bm-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bm-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --bm-navy: #0a1628;
  --bm-navy-2: #12233a;
  --bm-cyan: #2ee6c5;
  --bm-cyan-dim: rgba(46, 230, 197, 0.18);
  --bm-fg: #e7ecf1;
  --bm-muted: #8b9aab;
  --bm-ink: #12233a;
  --bm-paper: #f3f6f9;
  --bm-header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--bm-font);
}

.bm-brand-mark {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
}

.bm-brand-mark--sm {
  max-height: 32px;
}

/* —— Public shell (independent of admin kit layout) —— */
.bm-public {
  min-height: 100vh;
  background: var(--bm-paper);
  color: var(--bm-ink);
}

.bm-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bm-main {
  flex: 1 0 auto;
  width: 100%;
}

.bm-public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--bm-header-h);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 230, 197, 0.12);
}

.bm-public-header__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bm-public-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bm-nav-toggle {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(46, 230, 197, 0.35);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--bm-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bm-public-nav-wrap {
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .bm-public-nav-wrap {
    flex-basis: auto;
    margin-left: auto;
    display: block !important;
  }

  .bm-nav-toggle {
    display: none;
  }
}

.bm-public-nav {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .bm-public-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
  }
}

.bm-public-nav a,
.bm-public-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  color: var(--bm-fg);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: transparent;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
}

.bm-public-nav a:hover,
.bm-public-nav a:focus,
.bm-public-nav button:hover,
.bm-public-nav button:focus {
  color: var(--bm-cyan);
}

.bm-nav-cta {
  border: 1px solid rgba(46, 230, 197, 0.45) !important;
}

.bm-nav-form {
  margin: 0;
  display: inline;
}

.bm-locale {
  list-style: none;
}

.bm-locale__list {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid rgba(46, 230, 197, 0.28);
  border-radius: 0.4rem;
}

.bm-locale__link {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0.35rem 0.55rem !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(232, 241, 255, 0.72) !important;
}

.bm-locale__link.is-active,
.bm-locale__link[aria-current="true"] {
  color: var(--bm-navy) !important;
  background: var(--bm-cyan);
  border-radius: 0.28rem;
}

.bm-locale__link:hover,
.bm-locale__link:focus {
  color: var(--bm-cyan) !important;
}

.bm-locale__link.is-active:hover,
.bm-locale__link.is-active:focus,
.bm-locale__link[aria-current="true"]:hover,
.bm-locale__link[aria-current="true"]:focus {
  color: var(--bm-navy) !important;
}

.bm-page-head {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.5rem;
}

.bm-page-head__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--bm-navy);
  letter-spacing: 0.02em;
}

.bm-page-head__lead {
  margin: 0;
  color: #6b7c8f;
  line-height: 1.45;
}

.bm-public-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 2.5rem;
  min-height: 40vh;
}

.bm-compliance {
  flex-shrink: 0;
  background: #08111f;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.1rem 1rem;
}

.bm-compliance__inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.bm-compliance__badge {
  margin: 0;
  flex: 0 0 auto;
  min-width: 2.5rem;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 230, 197, 0.12);
  border: 1px solid rgba(46, 230, 197, 0.28);
  color: var(--bm-cyan);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.bm-compliance__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--bm-muted);
}

.bm-compliance__text strong {
  color: var(--bm-fg);
  font-weight: 700;
}

.bm-compliance__text a {
  color: var(--bm-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.bm-compliance__text a:hover,
.bm-compliance__text a:focus {
  color: var(--bm-cyan);
}

.bm-public-footer {
  flex-shrink: 0;
  background: var(--bm-navy);
  color: var(--bm-muted);
  border-top: 1px solid rgba(46, 230, 197, 0.1);
  padding: 1.15rem 1rem 1.4rem;
}

.bm-public-footer__inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.bm-public-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.15rem;
}

.bm-public-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: var(--bm-fg);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0.35rem;
}

.bm-public-footer__nav a:hover,
.bm-public-footer__nav a:focus {
  color: var(--bm-cyan);
}

.bm-public-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bm-public-footer__age {
  color: var(--bm-cyan);
  font-weight: 700;
}

@media (min-width: 768px) {
  .bm-public-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .bm-public-footer__nav {
    justify-content: flex-start;
  }

  .bm-public-footer__copy {
    text-align: right;
  }
}

/* —— Legal document —— */
.bm-legal {
  color: var(--bm-ink);
  line-height: 1.65;
}

.bm-legal__meta {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #6b7c8f;
}

.bm-legal__block {
  margin-bottom: 1.75rem;
}

.bm-legal__block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--bm-navy);
}

.bm-legal__block p {
  margin: 0 0 0.75rem;
  color: #4a5568;
}

.bm-legal__block strong {
  color: var(--bm-navy);
  font-weight: 700;
}

.bm-legal__notice {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(10, 22, 40, 0.2);
  border-radius: 0.4rem;
  background: rgba(46, 230, 197, 0.14);
  color: var(--bm-navy);
  font-size: 0.95rem;
}

/* —— Landing —— */
.bm-landing {
  background: var(--bm-navy);
  color: var(--bm-fg);
}

.bm-landing .bm-public-content,
.bm-landing-root {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.bm-hero {
  position: relative;
  min-height: calc(100vh - var(--bm-header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1.25rem 3rem;
}

.bm-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 35%, rgba(46, 230, 197, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 12% 75%, rgba(61, 156, 240, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, #07101c 0%, var(--bm-navy) 45%, var(--bm-navy-2) 100%);
  z-index: 0;
}

.bm-hero__grid {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .bm-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }
}

.bm-hero__copy {
  text-align: center;
}

@media (min-width: 960px) {
  .bm-hero__copy {
    text-align: left;
  }
}

.bm-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bm-cyan);
  opacity: 0;
  transform: translateY(12px);
  animation: bm-rise 0.7s ease forwards 0.05s;
}

.bm-hero__title {
  margin: 0 0 1rem;
  font-family: var(--bm-display);
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--bm-fg);
  opacity: 0;
  transform: translateY(14px);
  animation: bm-rise 0.8s ease forwards 0.15s;
}

.bm-hero__tagline {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--bm-muted);
  opacity: 0;
  transform: translateY(12px);
  animation: bm-rise 0.8s ease forwards 0.3s;
}

@media (min-width: 960px) {
  .bm-hero__tagline {
    margin-left: 0;
    margin-right: 0;
  }
}

.bm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  animation: bm-rise 0.8s ease forwards 0.45s;
}

@media (min-width: 960px) {
  .bm-hero__actions {
    justify-content: flex-start;
  }
}

.bm-btn-primary,
.bm-btn-ghost {
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bm-btn-primary {
  background: var(--bm-cyan);
  color: #062018;
  border: none;
}

.bm-btn-primary:hover,
.bm-btn-primary:focus {
  background: #5cffd7;
  color: #04140f;
}

.bm-btn-ghost {
  background: transparent;
  color: var(--bm-fg);
  border: 1px solid rgba(231, 236, 241, 0.35);
}

.bm-btn-ghost:hover,
.bm-btn-ghost:focus {
  border-color: var(--bm-cyan);
  color: var(--bm-cyan);
}

/* Hero match preview card */
.bm-preview {
  background: rgba(18, 35, 58, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.1rem 1.15rem;
  opacity: 0;
  transform: translateY(18px);
  animation: bm-rise 0.85s ease forwards 0.35s;
}

.bm-preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.bm-preview__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.bm-preview__dot:nth-child(1) { background: #f87171; }
.bm-preview__dot:nth-child(2) { background: #fbbf24; }
.bm-preview__dot:nth-child(3) { background: #34d399; }

.bm-preview__label {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-muted);
}

.bm-preview__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.bm-preview__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.bm-preview__crest {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #062018;
  background: linear-gradient(145deg, #2ee6c5, #3d9cf0);
}

.bm-preview__crest--alt {
  background: linear-gradient(145deg, #93c5fd, #6366f1);
  color: #0a1628;
}

.bm-preview__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bm-fg);
}

.bm-preview__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.bm-preview__kickoff {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bm-cyan);
}

.bm-preview__league {
  font-size: 0.72rem;
  color: var(--bm-muted);
}

.bm-preview__metrics {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.bm-preview__metrics li {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.85rem;
}

.bm-preview__metric-label {
  color: var(--bm-muted);
  font-weight: 600;
}

.bm-preview__metric-value,
.bm-preview__metric-pair {
  color: var(--bm-fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

.bm-preview__metrics li:nth-child(2),
.bm-preview__metrics li:nth-child(3),
.bm-preview__metrics li:nth-child(4) {
  grid-template-columns: 5.5rem 1fr;
}

.bm-preview__metrics li:nth-child(2) .bm-preview__metric-pair,
.bm-preview__metrics li:nth-child(3) .bm-preview__form,
.bm-preview__metrics li:nth-child(4) .bm-preview__odds {
  justify-self: end;
}

.bm-preview__bar {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.bm-preview__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bm-cyan), #3d9cf0);
  width: 0;
}

.bm-preview__bar-fill--62 {
  width: 62%;
}

.bm-preview__form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.bm-preview__form > span:not(.bm-preview__form-sep) {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.bm-preview__form .is-w { background: #059669; }
.bm-preview__form .is-d { background: #64748b; }
.bm-preview__form .is-l { background: #dc2626; }

.bm-preview__form-sep {
  margin: 0 0.25rem;
  font-size: 0.7rem;
  color: var(--bm-muted);
  font-weight: 600;
}

.bm-preview__odds {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bm-preview__odds > span {
  min-width: 3.1rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bm-fg);
}

.bm-preview__odds em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bm-muted);
  letter-spacing: 0.04em;
}

.bm-preview__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  border-radius: 0.5rem;
  background: rgba(46, 230, 197, 0.12);
  border: 1px solid rgba(46, 230, 197, 0.35);
  color: var(--bm-cyan);
  font-weight: 700;
  text-decoration: none;
}

.bm-preview__cta:hover,
.bm-preview__cta:focus {
  background: rgba(46, 230, 197, 0.2);
  color: #5cffd7;
}

.bm-section {
  background: #0d1a2b;
  padding: 3.5rem 1.25rem 4rem;
  border-top: 1px solid rgba(46, 230, 197, 0.1);
}

.bm-section--fixtures {
  background: #0b1524;
}

.bm-section__inner {
  max-width: 1120px;
  margin-inline: auto;
}

.bm-section__head {
  margin-bottom: 1.75rem;
}

.bm-section__title {
  font-family: var(--bm-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.65rem;
  color: var(--bm-fg);
}

.bm-section__lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--bm-muted);
  line-height: 1.5;
}

.bm-section__head .bm-section__lead {
  margin-bottom: 0;
}

/* Fixtures proof cards */
.bm-fixtures {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 720px) {
  .bm-fixtures {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.bm-fixture {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(18, 35, 58, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease;
}

.bm-fixture.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-fixture:hover,
.bm-fixture:focus-within {
  border-color: rgba(46, 230, 197, 0.35);
}

.bm-fixture__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bm-fixture__league {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-cyan);
}

.bm-fixture__time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bm-muted);
  font-variant-numeric: tabular-nums;
}

.bm-fixture__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.bm-fixture__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  min-width: 0;
}

.bm-fixture__crest {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #062018;
  background: linear-gradient(145deg, #2ee6c5, #3d9cf0);
}

.bm-fixture__crest--b { background: linear-gradient(145deg, #f472b6, #6366f1); color: #fff; }
.bm-fixture__crest--c { background: linear-gradient(145deg, #60a5fa, #1e3a8a); color: #fff; }
.bm-fixture__crest--d { background: linear-gradient(145deg, #f87171, #7f1d1d); color: #fff; }
.bm-fixture__crest--e { background: linear-gradient(145deg, #fbbf24, #b45309); color: #1a1200; }
.bm-fixture__crest--f { background: linear-gradient(145deg, #dc2626, #1e293b); color: #fff; }

.bm-fixture__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bm-fg);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bm-fixture__vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bm-fixture__stats {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 0.45rem;
}

.bm-fixture__stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.bm-fixture__stats span {
  color: var(--bm-muted);
  font-weight: 600;
}

.bm-fixture__stats strong {
  color: var(--bm-fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bm-fixture__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: var(--bm-cyan);
  color: #062018;
  font-weight: 700;
  text-decoration: none;
}

.bm-fixture__cta:hover,
.bm-fixture__cta:focus {
  background: #5cffd7;
  color: #04140f;
}

.bm-section--why {
  background: #0d1a2b;
}

.bm-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bm-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.bm-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 0.75rem;
  background: rgba(18, 35, 58, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bm-feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-feature:hover,
.bm-feature:focus-within {
  border-color: rgba(46, 230, 197, 0.32);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.bm-feature__icon {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--bm-cyan-dim);
  color: var(--bm-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 230, 197, 0.22);
}

.bm-feature__icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.bm-feature__title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  color: var(--bm-fg);
  letter-spacing: 0.01em;
}

.bm-feature__text {
  margin: 0;
  color: var(--bm-muted);
  line-height: 1.5;
  font-size: 0.94rem;
  flex: 1 1 auto;
}

.bm-feature__chips {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bm-feature__chips li {
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bm-fg);
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.bm-section__cta {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes bm-rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-hero__eyebrow,
  .bm-hero__title,
  .bm-hero__tagline,
  .bm-hero__actions,
  .bm-preview,
  .bm-feature,
  .bm-fixture {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 576px) {
  .bm-hero {
    min-height: 0;
    padding-top: 1.35rem;
    padding-bottom: 2rem;
  }

  .bm-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-hero__actions .btn {
    width: 100%;
  }

  .bm-preview__metrics li {
    grid-template-columns: 4.75rem 1fr auto;
    gap: 0.4rem;
  }

  .bm-preview__metrics li:nth-child(2),
  .bm-preview__metrics li:nth-child(3),
  .bm-preview__metrics li:nth-child(4) {
    grid-template-columns: 4.75rem 1fr;
  }

  .bm-section {
    padding: 2.5rem 1rem 3rem;
  }

  .bm-section__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-section__cta .btn {
    width: 100%;
  }

  .bm-compliance__inner {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .bm-compliance__text a {
    white-space: normal;
  }

  .bm-public-footer__nav {
    width: 100%;
  }
}

/* —— Auth / error —— */
.bm-auth-page {
  min-height: 100vh;
  background: var(--bm-navy);
  margin: 0;
}

.bm-auth-page .login-card {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.bm-auth-page .login-main {
  width: min(100%, 26rem);
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.bm-auth-page .theme-form h3 {
  margin-top: 0;
  color: var(--bm-navy);
}

.bm-auth-page .theme-form p,
.bm-auth-page .theme-form .text-muted {
  color: #6b7c8f;
}

.bm-auth-page .form-label {
  font-weight: 600;
  color: var(--bm-navy);
}

.bm-auth-page .btn-primary {
  background: var(--bm-cyan);
  border-color: var(--bm-cyan);
  color: #062018;
  font-weight: 700;
  min-height: 44px;
}

.bm-auth-page .btn-primary:hover,
.bm-auth-page .btn-primary:focus {
  background: #5cffd7;
  border-color: #5cffd7;
  color: #04140f;
}

.bm-auth-page a {
  color: var(--bm-navy);
  font-weight: 600;
}

.bm-error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f4f6f8;
  margin: 0;
  font-family: var(--bm-font);
}

.bm-error {
  text-align: center;
  padding: 2rem;
}

.bm-error h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  color: #0a1628;
}

.bm-error p {
  color: #4a5568;
}

.bm-error a {
  color: #0a1628;
  font-weight: 600;
}

.bm-update-output {
  max-height: 24rem;
  overflow: auto;
  background: #0a1628;
  color: #e7ecf1;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.bm-stat-card .f-26 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0a1628;
}

@media (max-width: 576px) {
  .bm-stat-card .card-body {
    padding: 1rem;
  }
}

/* —— Public matches —— */
.bm-matches,
.bm-match {
  width: 100%;
}

.bm-matches__note,
.bm-card__note {
  font-size: 0.9rem;
  color: #6b7c8f;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.bm-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7c8f;
  border: 1px dashed rgba(10, 22, 40, 0.2);
  border-radius: 0.5rem;
  background: #fff;
}

.bm-empty--soft {
  border-style: solid;
  border-color: rgba(10, 22, 40, 0.08);
  background: #f8fafb;
  padding: 1.25rem;
}

.bm-match-day {
  margin-bottom: 1.75rem;
}

.bm-match-day__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #0a1628;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bm-match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bm-match-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: #12233a;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 0.55rem;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.bm-match-row:hover,
.bm-match-row:focus {
  border-color: rgba(46, 230, 197, 0.65);
  color: #0a1628;
  transform: translateY(-1px);
}

.bm-match-row__time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #4a5568;
}

.bm-match-row__pair {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.bm-match-row__league {
  display: block;
  font-size: 0.8rem;
  color: #6b7c8f;
  margin-top: 0.2rem;
}

.bm-match-row__score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--bm-navy);
}

/* Match detail */
.bm-match__crumb {
  margin: 0 0 1rem;
}

.bm-match__crumb a {
  color: var(--bm-navy);
  font-weight: 600;
  text-decoration: none;
}

.bm-match__crumb a:hover,
.bm-match__crumb a:focus {
  color: #0d7a68;
  text-decoration: underline;
}

.bm-match__hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.5rem 1rem 1.35rem;
  margin: 0 0 1.15rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(46, 230, 197, 0.18), transparent 55%),
    linear-gradient(160deg, #07101c 0%, #0a1628 48%, #12233a 100%);
  color: #e7ecf1;
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.28);
}

.bm-match__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.bm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e7ecf1;
}

.bm-pill--muted {
  color: #8b9aab;
}

.bm-pill--accent {
  background: rgba(46, 230, 197, 0.16);
  border-color: rgba(46, 230, 197, 0.35);
  color: #2ee6c5;
}

.bm-match__when {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: #8b9aab;
}

.bm-match__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.bm-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.bm-match__side--away {
  /* keep centered on mobile too */
}

.bm-match__crest {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #062018;
  background: linear-gradient(145deg, #5cffd7, #2ee6c5);
  box-shadow: 0 8px 20px rgba(46, 230, 197, 0.25);
}

.bm-match__name {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  line-height: 1.25;
  word-break: break-word;
}

.bm-match__mid {
  padding: 0 0.25rem;
}

.bm-match__score {
  display: inline-block;
  min-width: 3.5rem;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  color: #2ee6c5;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.bm-match__score--vs {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  color: #8b9aab;
  text-transform: lowercase;
}

.bm-match__legal {
  margin: 1.15rem 0 0;
  font-size: 0.8rem;
  color: #8b9aab;
}

.bm-card {
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 0.85rem;
  padding: 1.15rem 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
}

.bm-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #0a1628;
}

.bm-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}

.bm-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bm-facts li:first-child {
  padding-top: 0;
}

.bm-facts__label {
  color: #6b7c8f;
  font-weight: 700;
  font-size: 0.88rem;
}

.bm-facts__value {
  color: #12233a;
  font-weight: 600;
}

.bm-odds {
  display: grid;
  gap: 0.75rem;
}

.bm-odds__row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  background: #f7fafb;
  border: 1px solid rgba(10, 22, 40, 0.06);
}

.bm-odds__book {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.bm-odds__book strong {
  color: #0a1628;
}

.bm-odds__book span {
  color: #6b7c8f;
  font-size: 0.85rem;
}

.bm-odds__vals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bm-odd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(46, 230, 197, 0.14);
  border: 1px solid rgba(46, 230, 197, 0.28);
  font-size: 0.88rem;
}

.bm-odd-chip em {
  font-style: normal;
  color: #4a5568;
  font-weight: 600;
}

.bm-odd-chip strong {
  color: #0a1628;
  font-variant-numeric: tabular-nums;
}

.bm-card__note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.88rem;
  color: #6b7c8f;
}

.bm-empty--soft {
  padding: 0.35rem 0;
  color: #6b7c8f;
}

.bm-events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-events__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}

.bm-events__item:last-child {
  border-bottom: 0;
}

.bm-events__min {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #2a9d8f;
}

.bm-events__body {
  display: grid;
  gap: 0.15rem;
}

.bm-events__body strong {
  color: #0a1628;
  font-size: 0.95rem;
}

.bm-events__body span {
  color: #12233a;
  font-size: 0.9rem;
}

.bm-events__body em {
  font-style: normal;
  color: #6b7c8f;
  font-size: 0.82rem;
}

.bm-stats-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7c8f;
}

.bm-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.bm-stats__vals {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}

.bm-stats__vals > span:first-child,
.bm-stats__vals > span:last-child {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0a1628;
}

.bm-stats__vals > span:last-child {
  text-align: right;
}

.bm-stats__type {
  text-align: center;
  color: #6b7c8f;
  font-weight: 600;
  font-size: 0.8rem;
}

.bm-stats__bar {
  display: flex;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef3;
}

.bm-stats__bar > span:first-child {
  background: #2ee6c5;
}

.bm-stats__bar > span:last-child {
  background: #0a1628;
}

.bm-lineups {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bm-lineups {
    grid-template-columns: 1fr 1fr;
  }
}

.bm-lineup__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
}

.bm-lineup__title span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2a9d8f;
}

.bm-lineup__coach {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #6b7c8f;
}

.bm-lineup__label {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b9aab;
}

.bm-lineup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.bm-lineup__list li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
  color: #12233a;
}

.bm-lineup__list--subs li {
  color: #4a5568;
  font-size: 0.85rem;
}

.bm-lineup__num {
  min-width: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #2a9d8f;
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  .bm-match-row {
    grid-template-columns: 2.75rem 1fr;
  }

  .bm-match-row__score {
    grid-column: 2;
    justify-self: start;
    font-size: 0.95rem;
    color: #4a5568;
  }

  .bm-facts li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .bm-match__crest {
    width: 2.6rem;
    height: 2.6rem;
  }
}

/* Admin: keep header profile readable */
.page-wrapper .page-header .btn-outline-light {
  min-height: 36px;
  white-space: nowrap;
}
