:root {
  --black: #111310;
  --surface: #1a1c18;
  --surface2: #242721;
  --paper: #f1f0eb;
  --white: #f8f8f3;
  --line: #34372f;
  --muted: #92958b;
  --lime: #24c779;
  --orange: #ff7049;
  --field: #20251d;
  --barlow: 'Barlow Condensed',sans-serif;
  --mono: 'DM Mono',monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font: 13px Manrope,Arial,sans-serif;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

.wrap {
  max-width: 1500px;
  margin: auto;
  padding: 0 30px;
}

.header {
  height: 70px;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid #2a2c27;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font: 800 23px var(--barlow);
  letter-spacing: .035em;
}

.brand-mark {
  height: 29px;
  width: 29px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  display: grid;
  place-items: center;
  font: 800 15px var(--barlow);
  transform: rotate(-10deg);
}

.brand em {
  font-style: normal;
  color: var(--lime);
}

.nav {
  display: flex;
  height: 100%;
  gap: 25px;
}

.nav a {
  display: flex;
  align-items: center;
  position: relative;
  color: #97998f;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

.nav a.active {
  color: #fff;
}

.nav a.active:after {
  content: '';
  height: 3px;
  background: var(--lime);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.head-spacer {
  flex: 1;
}

.balance {
  color: #b6baad;
  font: 10px var(--mono);
  padding-right: 12px;
}

.button-dark, .button-lime {
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.button-dark {
  background: transparent;
  color: #e1e3db;
  border: 1px solid #4a4d43;
}

.button-lime {
  border: 0;
  background: var(--lime);
  color: #171912;
}

.ticker {
  height: 34px;
  background: #22251f;
  color: #abb0a0;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-in {
  display: flex;
  gap: 26px;
  align-items: center;
  font: 9px var(--mono);
  letter-spacing: .03em;
}

.ticker strong {
  color: var(--lime);
  font-size: 9px;
}

.ticker span b {
  color: #f4f4ee;
}

.ticker .live {
  color: #ff765a;
}

.layout {
  display: grid;
  grid-template-columns: 178px minmax(450px,1fr) 292px;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.sidebar {
  padding: 8px 0;
}

.side-title {
  font: 700 10px var(--mono);
  letter-spacing: .12em;
  color: #8c9083;
  text-transform: uppercase;
  padding: 0 10px;
  margin: 0 0 10px;
}

.sport-nav {
  display: grid;
  gap: 3px;
}

.sport-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #52564d;
  font-weight: 800;
  font-size: 11px;
}

.sport-link span:first-child {
  width: 19px;
  text-align: center;
  font-size: 15px;
}

.sport-link small {
  margin-left: auto;
  color: #96998f;
  font: 9px var(--mono);
}

.sport-link.selected {
  background: var(--black);
  color: var(--lime);
}

.sport-link.selected small {
  color: #b3bd89;
}

.league-list {
  border-top: 1px solid #d6d6ce;
  margin-top: 19px;
  padding-top: 15px;
}

.league {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #6d7168;
  font-size: 10px;
  font-weight: 700;
}

.league i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6b9ae;
}

.league.active {
  color: #20231e;
}

.league.active i {
  background: var(--orange);
}

.side-note {
  margin-top: 18px;
  padding: 14px 13px;
  background: #e4e2d9;
  border-radius: 7px;
}

.side-note b {
  font: 700 14px var(--barlow);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.side-note p {
  font-size: 9px;
  line-height: 1.6;
  color: #73766e;
  margin: 7px 0 0;
}

.main {
  min-width: 0;
}

.feature {
  height: 248px;
  background: var(--black);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 23px 27px;
}

.feature:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 48%,#465025 0,transparent 35%),linear-gradient(110deg,transparent 0 47%,#24c7790b 47% 48%,transparent 48% 100%);
  pointer-events: none;
}

.feature:after {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid #24c77934;
  border-radius: 50%;
  right: 8%;
  top: -12px;
  box-shadow: 0 0 0 27px #24c77910,0 0 0 55px #24c7790b,0 0 0 83px #24c77907;
}

.feature-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-tag {
  font: 500 9px var(--mono);
  letter-spacing: .08em;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-tag i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px #ff7049;
}

.feature-date {
  font: 9px var(--mono);
  color: #999e8f;
}

.feature-body {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 15px;
}

.comp-label {
  color: #a8ad9c;
  font: 9px var(--mono);
  letter-spacing: .12em;
}

.feature h1 {
  font: 800 clamp(37px,4vw,54px)/.88 var(--barlow);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 11px 0 14px;
}

.feature h1 em {
  color: var(--lime);
  font-style: normal;
}

.feature-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-link {
  background: var(--lime);
  color: #13150f;
  border: 0;
  border-radius: 4px;
  padding: 10px 13px;
  font-size: 10px;
  font-weight: 800;
}

.feature-caption {
  color: #979b8e;
  font: 9px var(--mono);
}

.versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.crest {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #282d21;
  border: 1px solid #424735;
  display: grid;
  place-items: center;
  font-size: 31px;
  box-shadow: 0 8px 20px #0005;
}

.vs {
  font: 700 18px var(--barlow);
  color: var(--lime);
  font-style: italic;
}

.feature-odds {
  position: absolute;
  right: 27px;
  bottom: 19px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.feature-odds .odd {
  width: 66px;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 13px;
}

.filters {
  display: flex;
  gap: 5px;
}

.filter-btn {
  border: 1px solid #d9dad2;
  border-radius: 4px;
  background: transparent;
  color: #656a60;
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 800;
}

.filter-btn.active {
  background: var(--black);
  color: var(--lime);
  border-color: var(--black);
}

.date-select {
  border: 0;
  background: none;
  color: #777b72;
  font: 9px var(--mono);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 15px 0 8px;
}

.section-title h2 {
  font: 800 21px var(--barlow);
  text-transform: uppercase;
  letter-spacing: .025em;
  margin: 0;
}

.section-title span {
  font: 9px var(--mono);
  color: #85897e;
}

.match-group {
  margin-top: 8px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: #e3e2d9;
  color: #73786f;
  font: 500 9px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
}

.group-head .flag {
  font-size: 12px;
}

.match {
  display: grid;
  grid-template-columns: minmax(175px,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  background: #fbfaf6;
  border-bottom: 1px solid #e9e8e0;
  transition: .15s;
}

.match:hover {
  background: white;
}

.match.is-live {
  border-left: 3px solid var(--orange);
  padding-left: 7px;
}

.match-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #95988e;
  font: 9px var(--mono);
  margin-bottom: 8px;
}

.match-meta .live-label {
  color: #d95636;
  font-weight: 500;
}

.teams {
  display: grid;
  gap: 5px;
}

.team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
}

.team .flag {
  font-size: 12px;
}

.score {
  margin-left: auto;
  font: 500 11px var(--mono);
  color: #262920;
}

.markets {
  display: flex;
  gap: 4px;
}

.odd {
  min-width: 54px;
  height: 40px;
  border: 1px solid #e1e2d9;
  background: #f2f2eb;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.odd span {
  font: 8px var(--mono);
  color: #84897d;
}

.odd b {
  font: 500 11px var(--mono);
  color: #24271f;
}

.odd:hover, .odd.chosen {
  border-color: #657d24;
  background: #edf3d9;
}

.odd.chosen b {
  color: #425815;
}

.more-odds {
  font: 8px var(--mono);
  align-self: center;
  color: #8a8e83;
  margin-left: 2px;
}

.side-panel {
  margin-top: 13px;
  border-radius: 6px;
  background: #dfe3d0;
  padding: 14px;
}

.side-panel small {
  font: 9px var(--mono);
  letter-spacing: .12em;
  color: #677638;
}

.side-panel h3 {
  font: 800 21px/.92 var(--barlow);
  text-transform: uppercase;
  margin: 10px 0 7px;
}

.side-panel p {
  font-size: 9px;
  line-height: 1.5;
  color: #73796a;
  margin: 0;
}

.footer {
  background: #e6e5dd;
  padding: 17px 0;
  color: #74786e;
  font-size: 9px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%,15px);
  opacity: 0;
  pointer-events: none;
  background: #191b16;
  color: white;
  border-left: 4px solid var(--lime);
  padding: 12px 17px;
  font-size: 10px;
  font-weight: 800;
  transition: .2s;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

@media(max-width:1050px) {
  .wrap {
    padding: 0 20px;
  }

  .layout {
    grid-template-columns: 145px minmax(390px,1fr) 265px;
    gap: 13px;
  }

  .feature-body {
    grid-template-columns: 1fr 175px;
  }

  .crest {
    width: 54px;
    height: 54px;
  }

  .odd {
    min-width: 49px;
  }

  .more-odds {
    display: none;
  }
}

@media(max-width:790px) {
  .wrap {
    padding: 0 14px;
  }

  .header {
    height: 60px;
  }

  .header-inner {
    gap: 15px;
  }

  .brand {
    font-size: 21px;
  }

  .nav {
    display: none;
  }

  .balance {
    display: none;
  }

  .ticker {
    height: 30px;
  }

  .layout {
    display: flex;
    flex-direction: column;
    padding-top: 13px;
    gap: 17px;
  }

  .sidebar {
    display: none;
  }

  .feature {
    height: 214px;
    padding: 18px;
  }

  .feature-body {
    grid-template-columns: 1fr 115px;
    margin-top: 19px;
  }

  .feature h1 {
    font-size: 42px;
  }

  .crest {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .versus {
    gap: 6px;
  }

  .vs {
    font-size: 13px;
  }

  .feature-odds {
    right: auto;
    left: 18px;
    bottom: 12px;
  }

  .feature-odds .odd {
    width: 51px;
    height: 34px;
  }

  .feature-date {
    font-size: 8px;
  }

  .filter-row {
    margin: 13px 0 10px;
  }

  .filter-btn {
    padding: 8px 9px;
    font-size: 8px;
  }

  .date-select {
    font-size: 8px;
  }

  .section-title h2 {
    font-size: 19px;
  }

  .match {
    grid-template-columns: minmax(112px,1fr) auto;
    gap: 5px;
    padding: 10px 7px;
  }

  .match.is-live {
    padding-left: 4px;
  }

  .match-meta {
    font-size: 8px;
    gap: 5px;
    flex-wrap: wrap;
  }

  .team {
    font-size: 9px;
  }

  .odd {
    min-width: 41px;
    height: 37px;
  }

  .odd span {
    font-size: 7px;
  }

  .odd b {
    font-size: 10px;
  }

  .side-panel {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .button-dark, .button-lime {
    padding: 9px 10px;
    font-size: 9px;
  }
}

/* Let the league market menu extend beyond the match card instead of clipping it. */
.match-group.market-menu-open {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.match-group.market-menu-open .group-head {
  position: relative;
  z-index: 101;
  overflow: visible;
}

.odd-label-mobile,
.mobile-market-set {
  display: none;
}

@media (max-width: 790px) {
  .match,
  .match-details > summary.match {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    min-height: 88px;
    padding: 9px 8px;
  }

  .match-teams {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .match-meta {
    gap: 5px;
    margin-bottom: 7px;
    font-size: 9px;
    line-height: 1.3;
  }

  .team-pair {
    gap: 8px;
  }

  .team-pair .teams {
    min-width: 0;
    flex: 1;
  }

  .team-pair .team {
    font-size: 14px;
    line-height: 1.3;
  }

  .team-pair .score {
    min-width: 24px;
    padding-left: 7px;
    border-left: 1px solid #080a08;
    color: #f1d629;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .match > .odds-set:nth-child(2) {
    display: none;
  }

  .match > .odds-set:nth-child(3),
  .match > .btts-set {
    display: none;
  }

  .match > .mobile-market-set {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: stretch;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
  }

  .mobile-market-set .odd,
  .mobile-market-set .btts-pick {
    display: flex;
    width: clamp(48px, 16vw, 68px);
    min-width: clamp(48px, 16vw, 68px);
    height: 58px;
    flex: 0 1 clamp(48px, 16vw, 68px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 2px;
    border: 0;
    border-radius: 6px;
    background: #111311;
    color: #d8ddd7;
  }

  .mobile-market-set .odd-label-desktop {
    display: none;
  }

  .mobile-market-set .odd-label-mobile {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #c5cac4;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-market-set .odd b,
  .mobile-market-set .btts-pick strong {
    color: #e9ece7;
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-market-set .btts-pick span {
    max-width: 100%;
    overflow: hidden;
    color: #c5cac4;
    font: 8px var(--mono);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-market-set .odd.chosen,
  .mobile-market-set .btts-pick.chosen {
    box-shadow: inset 0 -4px #527e35;
    background: #101210;
    color: #fff;
  }

  .mobile-market-set .market-empty {
    align-self: center;
    color: #e9c82c;
    font-size: 10px;
    white-space: nowrap;
  }

  .match-expand-cue {
    top: 4px;
    right: 6px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .match,
  .match-details > summary.match {
    column-gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .team-pair .team {
    font-size: 12px;
  }

  .mobile-market-set {
    gap: 3px;
  }

  .mobile-market-set .odd,
  .mobile-market-set .btts-pick {
    width: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }
}

/* Mobile coupon opens as a single full-screen sheet from the ticket control. */
@media (max-width: 790px) {
  body.mobile-slip-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  #kupon.slip.coupon-open {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #171a17;
    box-shadow: none;
  }

  #kupon.slip.coupon-open::before {
    content: none;
  }

  #kupon .slip-head {
    min-height: 72px;
    padding: 14px 20px;
  }

  #kupon .slip-head h2 {
    font-size: 20px;
  }

  #kupon .mobile-slip-close {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 30px;
  }

  #kupon .slip-types {
    min-height: 68px;
    gap: 8px;
    padding: 12px 18px;
  }

  #kupon .slip-type {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 16px;
  }

  #kupon #picks {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #kupon .selection {
    padding: 18px 20px;
  }

  #kupon .selection-top,
  #kupon .selection-top button {
    font-size: 12px;
  }

  #kupon .selection-name {
    font-size: 17px;
  }

  #kupon .selection-market {
    font-size: 15px;
  }

  #kupon .selection-odd {
    font-size: 17px;
  }

  #kupon .bet-message {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid #714349;
    background: #392327;
    color: #ffb5bc;
    font-size: 14px;
    line-height: 1.45;
  }

  #kupon .stake-wrap {
    flex: 0 0 auto;
    padding: 16px 20px 12px;
    border-top: 1px solid #343b35;
    background: #20251f;
  }

  #kupon .stake-label,
  #kupon .payout {
    font-size: 13px;
  }

  #kupon .stake-input {
    height: 52px;
    font-size: 17px;
  }

  #kupon .payout b {
    font-size: 17px;
  }

  #kupon .submit {
    min-height: 62px;
    font-size: 18px;
  }

  #kupon .slip-foot {
    flex: 0 0 auto;
    padding: 9px 16px 12px;
    background: #171a17;
    font-size: 11px;
  }

  body.mobile-slip-open .mobile-coupon-button {
    display: none;
  }

  #mobileCouponButton[hidden] {
    display: none;
  }

  .mobile-coupon-button {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .nav a[href="#kupon"] {
    display: none;
  }
}

.sport-link, .league {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.sport-link:focus-visible, .league:focus-visible, .filter-btn:focus-visible, .odd:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.data-state {
  padding: 25px 16px;
  background: #fbfaf6;
  color: #777b72;
  border: 1px dashed #c9cbbf;
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
}

.data-state.error {
  color: #a8402c;
  border-color: #e3b8a9;
}

.powered-by {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #85897e;
  font: 9px var(--mono);
  padding: 10px 2px;
}

.powered-by a {
  color: #30352b;
  font: 700 9px Manrope,sans-serif;
  text-decoration: underline;
}

.market-empty {
  align-self: center;
  color: #a14630;
  font: 8px var(--mono);
  white-space: nowrap;
  padding: 0 7px;
}

.date-popover {
  position: absolute;
  right: 30px;
  margin-top: 4px;
  padding: 9px;
  background: #1a1c18;
  border: 1px solid #34372f;
  border-radius: 5px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.date-popover button {
  border: 1px solid #40433b;
  background: #242721;
  color: #eee;
  border-radius: 3px;
  padding: 7px 9px;
  font-size: 9px;
}

.filter-row {
  position: relative;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.refresh-button {
  border: 1px solid #d9dad2;
  border-radius: 4px;
  background: transparent;
  color: #656a60;
  padding: 8px 10px;
  font: 700 9px var(--mono);
}

.refresh-button:hover {
  border-color: var(--black);
  color: var(--black);
}

.match-list {
  min-height: 50px;
}

.match .markets {
  flex-wrap: nowrap;
}

.feature .feature-bottom {
  margin-top: 16px;
}

#leagueNav {
  max-height: 390px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9baaf transparent;
}

.league-loading {
  padding: 8px 10px;
  color: #84887e;
  font-size: 9px;
  line-height: 1.5;
}

#leagueCount {
  float: right;
  color: #999c91;
  font: 9px var(--mono);
}

.league.active {
  font-weight: 800;
}

#leagueNav {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ONUR BET sportsbook layout: compact live-score board */ :root {
  --black: #111310;
  --surface: #1a1b19;
  --surface2: #252723;
  --paper: #111210;
  --white: #f4f5ef;
  --line: #343630;
  --muted: #a1a49b;
  --lime: #e8c928;
  --orange: #ff6453;
  --field: #20221e;
}

body {
  background: #111210;
  color: #eceee8;
}

.wrap {
  max-width: 1540px;
  padding-left: 12px;
  padding-right: 12px;
}

.header {
  height: 52px;
  background: #213d0b;
  border-bottom: 3px solid #e2c318;
}

.header-inner {
  gap: 22px;
}

.brand {
  font-size: 24px;
}

.brand-mark {
  background: #f2d51c;
  color: #15200b;
}

.button-dark, .button-lime {
  border-radius: 4px;
  font-size: 10px;
  padding: 8px 12px;
}

.button-dark {
  border-color: #8b9a70;
}

.button-lime {
  background: #f0d21a;
  color: #191b13;
}

.nav {
  gap: 22px;
}

.nav a.active:after {
  background: #e7ca1b;
}

.ticker {
  height: 38px;
  background: #1d1e1b;
  color: #d1d2cc;
  border-bottom: 1px solid #33342f;
}

.ticker strong {
  color: #e8cb23;
}

.layout {
  grid-template-columns: minmax(0,1fr) 294px;
  gap: 9px;
  padding-top: 9px;
  padding-bottom: 24px;
}

.main {
  min-width: 0;
}

.feature {
  height: 195px;
  border-radius: 3px;
  padding: 19px 22px;
  background: #14290b;
}

.feature:before {
  background: radial-gradient(ellipse at 78% 50%,#60851a 0,transparent 34%),radial-gradient(ellipse at 15% 95%,#1f5a1b 0,transparent 40%),linear-gradient(115deg,#102309 0%,#1e4210 54%,#10190d 100%);
}

.feature:after {
  width: 215px;
  height: 215px;
  right: 9%;
  top: -15px;
  border-color: #f1db4240;
  box-shadow: 0 0 0 23px #f1db4214,0 0 0 48px #f1db420c,0 0 0 73px #f1db4207;
}

.feature h1 {
  font-size: clamp(34px,3vw,47px);
  margin: 8px 0 10px;
}

.feature-body {
  margin-top: 12px;
  grid-template-columns: 1fr 210px;
}

.feature-link {
  background: #efd323;
  color: #1a1d14;
  border-radius: 3px;
}

.live-tag {
  color: #f2d62a;
}

.sport-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 7px 0 5px;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.sport-link {
  flex: 0 0 86px;
  min-height: 56px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 23px 1fr;
  column-gap: 5px;
  row-gap: 1px;
  align-content: center;
  background: #20211e;
  color: #e0e1da;
  border-radius: 3px;
  font-size: 10px;
}

.sport-link span:first-child {
  grid-row: span 2;
  font-size: 19px;
  width: auto;
}

.sport-link small {
  margin: 0;
  color: #f0d21b;
  font-size: 8px;
}

.sport-link.selected {
  background: #355516;
  color: #f4f6ee;
  box-shadow: inset 0 -3px #e9cd20;
}

.league-list {
  border: 0;
  margin: 3px 0 0;
  padding: 0;
  background: #1b1c19;
}

.league-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 4px;
}

.side-title {
  padding: 0;
  margin: 0;
  color: #b3b6ac;
  font: 700 9px var(--mono);
  letter-spacing: .08em;
}

#leagueCount {
  color: #a7aa9f;
  font: 9px var(--mono);
}

.country-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 8px;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #53544e transparent;
}

.country-chip {
  border: 0;
  border-radius: 14px;
  background: #2b2d29;
  color: #c3c5be;
  padding: 7px 11px;
  font-size: 9px;
  font-weight: 700;
}

.country-chip.active {
  background: #415d19;
  color: #f8f6e4;
  box-shadow: inset 0 0 0 1px #8a9f33;
}

.league-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 2px 8px 9px;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #53544e transparent;
}

.league {
  width: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #aaada4;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 600;
}

.league:hover, .league.active {
  background: #35372f;
  color: #f0d31e;
}

.filter-row {
  margin: 7px 0 0;
  padding: 7px 8px;
  background: #1c1d1a;
  border-bottom: 1px solid #363732;
}

.filters {
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.filter-btn {
  padding: 5px 3px;
  border: 0;
  border-radius: 0;
  color: #c0c2ba;
  font-size: 9px;
  background: transparent;
}

.filter-btn.active {
  background: transparent;
  color: #24c779;
  border-bottom: 2px solid #24c779;
}

.filter-actions {
  gap: 5px;
}

.date-select {
  color: #d1d2cc;
}

.refresh-button {
  padding: 5px 8px;
  border-color: #464840;
  color: #e0e0d9;
}

.market-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  background: #252622;
  color: #c9cbc3;
  font: 700 9px var(--mono);
  letter-spacing: .04em;
}

.market-columns small {
  display: inline-block;
  margin-left: 8px;
  color: #96998f;
  font: 8px var(--mono);
}

.match-group {
  margin-top: 5px;
  background: #1c1d1a;
}

.group-head {
  padding: 7px 10px;
  background: #292a26;
  color: #d4d5cf;
  border-radius: 0;
  font-size: 9px;
  border-bottom: 1px solid #3a3b35;
}

.match {
  grid-template-columns: minmax(160px,1fr) auto;
  gap: 8px;
  padding: 8px 9px;
  background: #1b1c1a;
  border-bottom: 1px solid #30312d;
  color: #e3e4dd;
}

.match:hover {
  background: #242521;
}

.match.is-live {
  border-left: 3px solid #e6c820;
  padding-left: 6px;
}

.match-meta {
  margin-bottom: 5px;
  color: #a1a49b;
  font-size: 8px;
}

.match-meta .live-label {
  color: #e5d022;
}

.team {
  font-size: 9px;
  color: #e5e6df;
}

.team .flag {
  font-size: 10px;
}

.score {
  color: #24c779;
  font-weight: 700;
}

.markets {
  gap: 3px;
}

.odd {
  min-width: 55px;
  width: 55px;
  height: 37px;
  border: 1px solid #3a3b35;
  border-radius: 2px;
  background: #292a26;
  color: #f0f0eb;
}

.odd span {
  color: #aaaCA3;
}

.odd b {
  color: #24c779;
}

.odd:hover, .odd.chosen {
  border-color: #d9c41e;
  background: #39451e;
}

.odd.chosen b {
  color: #fff044;
}

.more-odds {
  color: #9fa196;
}

.market-empty {
  color: #b0b2a9;
}

.footer {
  background: #191a17;
  color: #9b9e95;
  border-top: 1px solid #33342f;
}

#leagueNav {
  max-height: none;
  overflow: visible;
}

.data-state {
  background: #1c1d1a;
  border-color: #454740;
  color: #c1c3bb;
  border-radius: 2px;
}

.data-state.error {
  color: #ff9b84;
  border-color: #8c4d3c;
}

@media(max-width:900px) {
  .layout {
    grid-template-columns: minmax(0,1fr) 265px;
    gap: 7px;
  }

  .wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .feature-body {
    grid-template-columns: 1fr 150px;
  }

  .crest {
    width: 48px;
    height: 48px;
  }

  .odd {
    min-width: 47px;
    width: 47px;
  }
}

@media(max-width:700px) {
  .layout {
    display: flex;
    flex-direction: column;
  }

  .main {
    order: 0;
  }

  .header-inner {
    gap: 9px;
  }

  .nav {
    display: none;
  }

  .button-dark, .button-lime {
    padding: 7px 8px;
  }

  .feature {
    height: 175px;
    padding: 15px;
  }

  .feature-body {
    grid-template-columns: 1fr 105px;
    margin-top: 11px;
  }

  .feature h1 {
    font-size: 35px;
  }

  .crest {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .versus {
    gap: 5px;
  }

  .vs {
    font-size: 13px;
  }

  .sport-link {
    flex-basis: 80px;
    min-height: 52px;
  }

  .market-columns {
    padding: 7px;
  }

  .match {
    grid-template-columns: minmax(100px,1fr) auto;
    gap: 4px;
    padding: 8px 5px;
  }

  .team {
    font-size: 8px;
  }

  .odd {
    width: 38px;
    min-width: 38px;
    height: 35px;
  }

  .odd span {
    font-size: 7px;
  }

  .odd b {
    font-size: 9px;
  }

  .more-odds {
    display: none;
  }

  .filter-btn {
    font-size: 8px;
  }

  .filter-actions {
    gap: 2px;
  }

  .refresh-button {
    padding: 5px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Separate stakes for each selection in single mode. */
#kupon .selection-single-stake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 10px;
  margin: 10px 0 0 22px;
}

#kupon .selection-single-stake label,
#kupon .single-potential {
  color: #aeb7ad;
  font-size: 10px;
}

#kupon .selection-single-stake .single-stake-input {
  width: 105px;
  height: 32px;
  text-align: right;
}

#kupon .single-potential {
  grid-column: 1 / -1;
  justify-self: end;
  color: #e6c522;
  font-weight: 700;
}

#kupon .single-stake-summary {
  margin: 9px 0;
  color: #c4c9c2;
  font-size: 10px;
  text-align: right;
}

#kupon .single-stake-summary[hidden] { display: none; }

.match, .market-columns {
  display: grid;
  grid-template-columns: minmax(150px,1fr) 225px 150px;
  align-items: center;
}

.market-columns {
  gap: 8px;
}

.match {
  gap: 8px;
}

.market-name-head {
  justify-self: center;
  text-align: center;
  font-size: 8px;
}

.market-name-head small {
  display: block;
  margin-top: 3px;
  color: #979a90;
  font: 8px var(--mono);
}

.match-teams {
  min-width: 0;
}

.team-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-pair .teams {
  min-width: 0;
  flex: 1;
}

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

.team-pair .score {
  line-height: 1.6;
  text-align: right;
  min-width: 18px;
}

.odds-set {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.total-line {
  min-width: 22px;
  text-align: center;
  color: #c5c7bf;
  font: 9px var(--mono);
}

.day-filter {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c0c2ba;
  padding: 5px 3px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.day-filter.active {
  color: #24c779;
  border-bottom: 2px solid #24c779;
}

.market-empty {
  color: #b0b2a9;
  font: 8px var(--mono);
}

@media(max-width:1000px) {
  .match, .market-columns {
    grid-template-columns: minmax(130px,1fr) 195px 130px;
  }

  .odd {
    min-width: 48px;
    width: 48px;
  }

  .match {
    gap: 5px;
  }

  .odds-set {
    gap: 2px;
  }
}

@media(max-width:700px) {
  .match, .market-columns {
    grid-template-columns: minmax(82px,1fr) 132px 94px;
    gap: 3px;
  }

  .match {
    padding-left: 5px;
    padding-right: 4px;
  }

  .odd {
    min-width: 40px;
    width: 40px;
    height: 34px;
  }

  .odd span {
    font-size: 6px;
  }

  .odd b {
    font-size: 9px;
  }

  .total-line {
    min-width: 14px;
    font-size: 8px;
  }

  .market-name-head {
    font-size: 7px;
  }

  .market-name-head small {
    font-size: 7px;
  }

  .match-meta {
    font-size: 7px;
  }

  .team-pair {
    gap: 3px;
  }

  .team-pair .team {
    font-size: 8px;
  }
}

.show-more {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 11px;
  border: 1px solid #41433a;
  background: #22231f;
  color: #24c779;
  font: 700 9px var(--mono);
  letter-spacing: .06em;
  cursor: pointer;
}

.show-more:hover {
  background: #30332a;
  border-color: #a99b28;
}

.country-chip, .day-filter, .filter-btn, .sport-link, .league {
  transition: background .15s,color .15s,border-color .15s;
}

/* ONUR BET palette refresh */ :root {
  --black: #111713;
  --surface: #19211b;
  --surface2: #222b23;
  --paper: #111713;
  --white: #f2f7fc;
  --line: #354238;
  --muted: #9aaac0;
  --lime: #24c779;
  --orange: #ff7184;
  --field: #202b23;
}

body {
  background: #111713;
  color: #eaf1f8;
}

.header {
  background: linear-gradient(100deg,#101e35 0%,#1a2b1e 62%,#152119 100%);
  border-bottom: 2px solid #24c779;
}

.brand-mark {
  background: #24c779;
  color: #08202b;
  transform: none;
  border-radius: 8px;
}

.brand em {
  color: #24c779;
}

.button-lime, .feature-link {
  background: #24c779;
  color: #112018;
}

.button-lime:hover, .feature-link:hover {
  background: #58df9a;
}

.ticker {
  background: #101a2a;
  border-bottom-color: #354238;
  color: #b9c6d6;
}

.ticker strong, .live-tag, .feature h1 em, .vs {
  color: #24c779;
}

.feature {
  background: #141e17;
  border: 1px solid #263b58;
  border-radius: 8px;
  box-shadow: 0 10px 26px #03091655;
}

.feature:before {
  background: radial-gradient(ellipse at 78% 50%,#126e88 0,transparent 36%),radial-gradient(ellipse at 12% 95%,#243f78 0,transparent 39%),linear-gradient(115deg,#121a14 0%,#12344a 58%,#131c37 100%);
}

.feature:after {
  border-color: #24c7793b;
  box-shadow: 0 0 0 23px #24c77914,0 0 0 48px #24c7790c,0 0 0 73px #24c77907;
}

.sport-link {
  background: #151f30;
  border: 1px solid #26354a;
  border-radius: 7px;
  color: #d3deea;
}

.sport-link:hover {
  background: #1c2c42;
}

.sport-link.selected {
  background: #17364a;
  color: #eefcff;
  box-shadow: inset 0 -3px #24c779;
  border-color: #28566a;
}

.league-list {
  background: #18211b;
  border: 1px solid #23344a;
  border-radius: 7px;
  overflow: hidden;
}

.country-chip {
  background: #263229;
  color: #cbd6e2;
}

.country-chip.active {
  background: #214b34;
  color: #e8fff2;
  box-shadow: inset 0 0 0 1px #24c779;
}

.league {
  border-radius: 5px;
  color: #b1c0d1;
}

.league:hover, .league.active {
  background: #1b3144;
  color: #58dce9;
}

.filter-row {
  background: #18211b;
  border: 1px solid #25364c;
  border-radius: 6px;
}

.filter-btn {
  color: #b9c5d4;
}

.filter-btn.active, .day-filter.active {
  color: #42d88c;
  border-bottom-color: #24c779;
}

.day-filter {
  color: #bac5d3;
}

.date-select {
  color: #c4cfdd;
}

.refresh-button {
  color: #c8d4e2;
  border-color: #3b4a5f;
  border-radius: 5px;
}

.market-columns, .group-head {
  background: #182437;
  color: #dce7f2;
  border-color: #2c3c51;
}

.market-columns small {
  color: #91a3b8;
}

.match-group {
  background: #111c2b;
  border: 1px solid #25354a;
  border-radius: 6px;
  overflow: hidden;
}

.match {
  background: #121e2e;
  border-bottom-color: #26364a;
  color: #e6edf5;
}

.match:hover {
  background: #1b261e;
}

.match.is-live {
  border-left-color: #ff7184;
}

.match-meta {
  color: #9cacbf;
}

.match-meta .live-label {
  color: #ff8390;
}

.team {
  color: #eaf1f8;
}

.score {
  color: #f3f7ff;
}

.odd {
  background: #1a2940;
  border-color: #334863;
  border-radius: 5px;
  color: #f2f7fc;
}

.odd span {
  color: #a8b8cb;
}

.odd b {
  color: #55d895;
}

.odd:hover, .odd.chosen {
  border-color: #24c779;
  background: #1b442e;
}

.odd.chosen b {
  color: #a7f2c3;
}

.odd.unavailable {
  background: #182334;
  color: #79899d;
}

.total-line {
  color: #c0ccda;
}

.market-empty {
  color: #91a4ba;
}

.data-state {
  background: #18211b;
  border-color: #35475f;
  color: #bac8d8;
  border-radius: 7px;
}

.data-state.error {
  color: #ff9ba4;
  border-color: #78424a;
}

.show-more {
  background: #1b261e;
  border-color: #405044;
  color: #49d38c;
  border-radius: 6px;
}

.show-more:hover {
  background: #253a2b;
  border-color: #24c779;
}

.footer {
  background: #0e1827;
  color: #9eafc3;
  border-top-color: #26364b;
}

.toast {
  background: #1b261e;
  border-left-color: #24c779;
}

@media(max-width:700px) {
  .feature {
    border-radius: 7px;
  }

  .sport-link {
    border-radius: 6px;
  }

  .match-group {
    border-radius: 5px;
  }
}

.banner-emblem {
  position: relative;
  min-height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-ball {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid #24c7797a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#245e76,#12263e 68%);
  font-size: 48px;
  box-shadow: 0 0 35px #24c7792a,inset 0 0 20px #24c7791b;
}

.banner-emblem .vs {
  font: 800 17px/1.05 var(--barlow);
  font-style: normal;
  text-align: left;
  letter-spacing: .08em;
}

.banner-live-pill {
  position: absolute;
  bottom: 2px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #24c7794d;
  border-radius: 20px;
  background: #0c1a29;
  color: #a9f7fa;
  font: 700 8px var(--mono);
  letter-spacing: .08em;
}

.banner-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7184;
  box-shadow: 0 0 9px #ff7184;
}

@media(max-width:700px) {
  .banner-emblem {
    min-height: 90px;
    gap: 6px;
  }

  .banner-ball {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }

  .banner-emblem .vs {
    font-size: 13px;
  }

  .banner-live-pill {
    right: 0;
    bottom: -5px;
    padding: 5px 7px;
    font-size: 7px;
  }
}

/* Daha yüksek canlı maç bannerı */ .feature {
  height: 260px;
}

@media(max-width:700px) {
  .feature {
    height: 220px;
  }
}

/* OTO BAHİS amblemi ve özel futbol topu */ .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg,#62e4ed,#22a9c3);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px #24c7792b;
  transform: none;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-shield {
  fill: #10243a;
  stroke: #d8fcff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.brand-flare {
  fill: #24c779;
}

.brand-core {
  fill: #f2ffff;
}

.banner-ball {
  font-size: 0;
}

.banner-ball svg {
  display: block;
  width: 70%;
  height: 70%;
  filter: drop-shadow(0 3px 5px #06142180);
}

@media(max-width:700px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-mark svg {
    width: 27px;
    height: 27px;
  }
}

.sport-link .soccer-emoji {
  width: 25px!important;
  font-size: 21px!important;
  line-height: 1;
}

.banner-ball .soccer-emoji {
  font-family: "Noto Color Emoji","Apple Color Emoji",sans-serif;
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 3px 3px #06142160);
}

@media(max-width:700px) {
  .banner-ball .soccer-emoji {
    font-size: 34px;
  }
}

.market-columns[hidden], .match-list[hidden] {
  display: none!important;
}

/* Clear date selection and explicit unavailable-price states */ .filter-row {
  position: relative;
}

.date-popover {
  position: absolute;
  z-index: 20;
  right: 105px;
  top: calc(100% + 5px);
  min-width: 190px;
  padding: 12px;
  border: 1px solid #3a5069;
  border-radius: 7px;
  background: #142238;
  box-shadow: 0 12px 30px #020916b8;
  color: #e8f2fa;
}

.date-shortcuts {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.date-shortcuts button {
  flex: 1;
  padding: 7px;
  border: 1px solid #34516b;
  border-radius: 5px;
  background: #1a3048;
  color: #64e1ec;
  font-size: 10px;
  font-weight: 800;
}

.date-popover label {
  display: block;
  margin-bottom: 5px;
  color: #aebdd0;
  font-size: 10px;
}

.date-popover input {
  width: 100%;
  padding: 8px;
  border: 1px solid #465647;
  border-radius: 5px;
  background: #151e17;
  color: #f2f7fc;
  color-scheme: dark;
}

.odd.unavailable {
  cursor: help;
  border-style: dashed;
  opacity: .8;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.35;
}

.match-meta span:nth-child(2) {
  color: #bdcada;
}

@media(max-width:700px) {
  .date-popover {
    right: 0;
    top: calc(100% + 5px);
  }
}

/* Larger sportsbook controls for comfortable reading */ .league-heading {
  padding: 12px 12px 6px;
}

.side-title {
  font-size: 11px;
  letter-spacing: .09em;
}

#leagueCount {
  font-size: 10px;
}

.country-nav {
  gap: 7px;
  padding: 8px 10px 10px;
}

.country-chip {
  font-size: 10px;
  padding: 9px 13px;
  border-radius: 18px;
}

.league-strip {
  gap: 5px;
  padding: 4px 10px 11px;
}

.league {
  font-size: 10px;
  padding: 8px 10px;
}

.filter-row {
  padding: 10px 12px;
  margin-top: 9px;
}

.filters {
  gap: 16px;
}

.filter-btn, .day-filter {
  font-size: 10px;
  padding: 7px 4px;
}

.date-select, .refresh-button {
  font-size: 10px;
}

.refresh-button {
  padding: 8px 11px;
}

.market-columns {
  padding: 11px 13px;
  min-height: 44px;
  font-size: 10px;
}

.market-columns small {
  font-size: 9px;
}

.match-group {
  margin-top: 7px;
}

.group-head {
  padding: 10px 13px;
  font-size: 10px;
  min-height: 38px;
}

.match {
  min-height: 76px;
  padding: 11px 12px;
  gap: 10px;
}

.match-meta {
  font-size: 9px;
  margin-bottom: 7px;
}

.team-pair .team, .team {
  font-size: 11px;
}

.team-pair .score {
  font-size: 13px;
  line-height: 1.45;
}

.odds-set {
  gap: 5px;
}

.odd {
  min-width: 58px;
  width: 58px;
  height: 44px;
}

.odd span {
  font-size: 8px;
}

.odd b {
  font-size: 12px;
}

.total-line {
  font-size: 10px;
  min-width: 24px;
}

.market-empty {
  font-size: 9px;
}

@media(max-width:1000px) {
  .country-chip {
    font-size: 9px;
    padding: 8px 11px;
  }

  .match {
    min-height: 72px;
  }

  .odd {
    min-width: 50px;
    width: 50px;
    height: 40px;
  }
}

@media(max-width:700px) {
  .side-title {
    font-size: 10px;
  }

  .country-chip {
    font-size: 9px;
    padding: 8px 11px;
  }

  .league {
    font-size: 9px;
    padding: 7px 9px;
  }

  .filter-row {
    padding: 8px 7px;
  }

  .filters {
    gap: 10px;
  }

  .filter-btn, .day-filter {
    font-size: 8px;
  }

  .market-columns {
    padding: 9px 7px;
  }

  .match {
    min-height: 70px;
  }

  .team-pair .team {
    font-size: 9px;
  }

  .odd {
    min-width: 40px;
    width: 40px;
    height: 37px;
  }

  .odd span {
    font-size: 6px;
  }

  .odd b {
    font-size: 9px;
  }
}

/* Sports tiles: sport symbol above the title */ .sport-nav {
  align-items: stretch;
  gap: 6px;
}

.sport-link {
  display: flex;
  flex: 0 0 86px;
  min-height: 69px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 5px;
  text-align: center;
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
}

.sport-link span:first-child {
  display: block;
  width: auto;
  min-width: 0;
  font-size: 22px;
  line-height: 1.05;
}

.sport-link small {
  display: none;
}

@media(max-width:700px) {
  .sport-link {
    flex-basis: 76px;
    min-height: 64px;
    font-size: 9px;
    padding: 6px 4px;
  }

  .sport-link span:first-child {
    font-size: 21px;
  }
}

.sport-link .fifa-mark {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #dbc84b;
  border-radius: 50%;
  background: linear-gradient(145deg,#f4df54 0%,#edd233 45%,#304c9b 46%,#172e73 100%);
  color: #fff;
  font: 900 14px/1 Manrope,Arial,sans-serif;
  text-shadow: 0 1px 2px #17213b;
}

.api-setup {
  margin: 12px 0;
  padding: 15px 17px;
  border: 1px solid #34536a;
  border-radius: 7px;
  background: #12263a;
  color: #e6f2fb;
}

.api-setup[hidden] {
  display: none;
}

.api-setup>b {
  font-size: 12px;
  color: #65e2ed;
}

.api-setup p {
  margin: 6px 0 10px;
  color: #a9bbce;
  font-size: 10px;
}

.api-setup form {
  display: flex;
  gap: 7px;
  max-width: 530px;
}

.api-setup input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #465647;
  border-radius: 5px;
  background: #151e17;
  color: #f1f7fc;
  font: 11px var(--mono);
}

.api-setup button {
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  background: #24c779;
  color: #112018;
  font-size: 10px;
  font-weight: 900;
}

.api-setup button:disabled {
  opacity: .65;
}

.api-setup small {
  display: block;
  margin-top: 8px;
  color: #94a9bd;
  font-size: 9px;
}

.sport-symbol {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
}

.sport-symbol svg {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 1px 2px #06101b88);
}

.sport-link .fifa-mark {
  all: unset;
}

/* One inline country-filter row, without a separate league card */ .league-list {
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.league-heading, .league-strip {
  display: none!important;
}

.country-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #53667a transparent;
}

.country-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  white-space: normal;
  padding: 10px 12px;
  border: 1px solid #39483b;
  border-radius: 7px;
  background: #152338;
}

.country-label {
  flex: 0 0 auto;
  color: #b9c8d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.country-label span {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 10px;
  background: #243952;
  color: #49d38c;
  font-size: 9px;
}

.country-select {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #465647;
  border-radius: 5px;
  background: #101c2b;
  color: #e8f2fb;
  font-size: 11px;
}

.country-select:focus {
  outline: 2px solid #24c779;
  outline-offset: 1px;
}

@media(max-width:700px) {
  .country-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .country-label {
    font-size: 9px;
  }

  .country-select {
    width: 100%;
    flex: auto;
  }
}

/* Registration and account dialog */ [hidden] {
  display: none!important;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #050b16c9;
  backdrop-filter: blur(5px);
}

.auth-dialog {
  position: relative;
  width: min(100%,420px);
  padding: 30px;
  border: 1px solid #405044;
  border-radius: 12px;
  background: linear-gradient(145deg,#1c2820,#151e17);
  box-shadow: 0 24px 80px #0009;
  color: #edf5fb;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #405044;
  border-radius: 7px;
  background: #253328;
  color: #d8e6f3;
  font-size: 22px;
  cursor: pointer;
}

.auth-eyebrow {
  color: #52deea;
  font: 700 10px var(--mono);
  letter-spacing: .14em;
}

.auth-dialog h2 {
  margin: 8px 0;
  font: 800 28px "Barlow Condensed",sans-serif;
  letter-spacing: .03em;
}

.auth-description {
  margin: 0 0 22px;
  color: #a9bbce;
  font-size: 12px;
}

.auth-dialog form label, .auth-dialog>div>label {
  display: block;
  margin: 13px 0 6px;
  color: #b8c8d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.auth-dialog input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #465647;
  border-radius: 6px;
  outline: none;
  background: #111813;
  color: #f2f8fc;
  font: 13px Manrope,Arial,sans-serif;
}

.auth-dialog input:focus {
  border-color: #24c779;
  box-shadow: 0 0 0 3px #24c77922;
}

.auth-submit {
  width: 100%;
  height: 43px;
  margin-top: 17px;
  border: 0;
  border-radius: 6px;
  background: #24c779;
  color: #112018;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-switch {
  display: block;
  margin: 13px auto 17px;
  border: 0;
  background: transparent;
  color: #66e0ea;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-note {
  display: block;
  color: #8fa4ba;
  font-size: 10px;
  line-height: 1.55;
}

.auth-message {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #864d5a;
  border-radius: 5px;
  background: #3a202c;
  color: #ffb0b9;
  font-size: 11px;
}

.account-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 19px;
  padding: 9px;
  border: 1px solid #334c67;
  border-radius: 7px;
  background: #111813;
}

.account-id-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #58df9a;
  font: 11px var(--mono);
}

.account-id-row button {
  padding: 8px;
  border: 1px solid #3a6074;
  border-radius: 5px;
  background: #203a2a;
  color: #58df9a;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.profile-view {
  display: grid;
  gap: 13px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 0 8px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid #4e718c;
  border-radius: 50%;
  background: linear-gradient(145deg,#20485d,#142539);
  color: #5ce3ef;
  font: 800 23px "Barlow Condensed",sans-serif;
  text-transform: uppercase;
}

.profile-identity h2 {
  margin: 3px 0 4px;
  font-size: 25px;
  overflow-wrap: anywhere;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a6c5c9;
  font-size: 10px;
}

.profile-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59dba2;
  box-shadow: 0 0 9px #59dba277;
}

.profile-card {
  padding: 13px;
  border: 1px solid #405044;
  border-radius: 8px;
  background: #1a241c;
}

.profile-card-label {
  color: #91a7bc;
  font: 700 9px var(--mono);
  letter-spacing: .12em;
}

.profile-card .account-id-row {
  margin: 9px 0 8px;
}

.profile-card p {
  margin: 0;
  color: #91a7bc;
  font-size: 10px;
  line-height: 1.5;
}

.profile-balance-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #cad7e2;
  font-size: 13px;
}

.auth-dialog.admin-open {
  width: min(100%,720px);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.admin-view h2 {
  margin: 8px 0;
}

.admin-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.admin-search-form input {
  flex: 1;
  min-width: 0;
}

.admin-search-form button {
  height: 42px;
  padding: 0 16px;
  border: 1px solid #3a6074;
  border-radius: 6px;
  background: #203a2a;
  color: #58df9a;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-results {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #405044;
  border-radius: 7px;
  background: #171f19;
}

.admin-empty {
  margin: 0;
  padding: 17px;
  color: #91a7bc;
  font-size: 11px;
  text-align: center;
}

.admin-user-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #293e55;
  background: transparent;
  color: #edf5fb;
  text-align: left;
  cursor: pointer;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-row:hover, .admin-user-row.selected {
  background: #1b3047;
}

.admin-user-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-main strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-user-main small, .admin-user-balance {
  color: #9eb2c7;
  font-size: 10px;
}

.admin-user-balance {
  white-space: nowrap;
  color: #64e3ed;
  font: 500 11px var(--mono);
}

.admin-credit-form {
  margin: 13px 0 0;
  padding: 13px;
  border: 1px solid #405044;
  border-radius: 8px;
  background: #1a241c;
}

.admin-selected {
  display: grid;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid #2a4057;
}

.admin-selected span:first-child {
  color: #91a7bc;
  font: 700 9px var(--mono);
  letter-spacing: .1em;
}

.admin-selected strong {
  font-size: 13px;
}

.admin-selected code {
  color: #58df9a;
  font: 11px var(--mono);
}

.admin-selected span:last-child {
  color: #b5c6d6;
  font-size: 10px;
}

.admin-credit-form>label {
  margin-top: 10px!important;
}

.admin-credit-form .auth-submit {
  margin-top: 12px;
}

.admin-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.admin-wallet-actions .auth-submit {
  margin-top: 0;
}

.admin-wallet-actions button {
  min-height: 42px;
}

.admin-wallet-debit {
  border: 1px solid #9a5260;
  border-radius: 6px;
  background: #402532;
  color: #ffc0c9;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-wallet-debit:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.admin-wallet-clear {
  grid-column: 1/-1;
  min-height: 39px;
  border: 1px solid #75404a;
  border-radius: 6px;
  background: #2a1b25;
  color: #f1a4af;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-wallet-clear:hover {
  filter: brightness(1.12);
}

.admin-wallet-actions button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.admin-success {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #34795f;
  border-radius: 5px;
  background: #17382f;
  color: #a6f0ca;
  font-size: 11px;
  line-height: 1.5;
}

body.auth-open {
  overflow: hidden;
}

@media(max-width:700px) {
  .auth-actions {
    gap: 5px;
  }

  .auth-dialog {
    padding: 25px 20px;
  }

  .button-dark, .button-lime {
    font-size: 9px;
  }
}

.filter-btn[data-filter="live"].active {
  color: #ff7d8b;
  border-bottom-color: #ff7d8b;
}

.country-nav {
  display: block;
  overflow: hidden;
  padding: 10px 11px;
  background: #18221a;
  border: 1px solid #2c435d;
  border-radius: 7px;
}

.country-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.country-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6e3ef;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
}

.country-label small {
  padding: 3px 7px;
  border-radius: 12px;
  background: #263b54;
  color: #55d895;
  font-size: 9px;
  letter-spacing: 0;
}

.country-modes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.country-mode {
  padding: 6px 10px;
  border: 1px solid #405044;
  border-radius: 15px;
  background: #243126;
  color: #c4d1df;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.country-mode:hover {
  border-color: #24c779;
  color: #e7fcff;
}

.country-mode.active {
  border-color: #24c779;
  background: #214b34;
  color: #e8fff2;
}

.country-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #667568 transparent;
}

.country-chip {
  flex: 0 0 auto;
  border: 1px solid #39483b;
  border-radius: 15px;
  background: #26332a;
  color: #d1dce7;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.country-chip:hover, .country-chip.active {
  border-color: #24c779;
  background: #1f4b32;
  color: #e8fff2;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.country-flag {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  font-family: system-ui,sans-serif;
  font-size: 13px;
  line-height: 1;
}

.country-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.country-hint {
  padding: 7px 4px;
  color: #a6b8c9;
  font-size: 10px;
}

.sport-link small {
  display: block;
  color: #8ea5bb;
  font-size: 8px;
  line-height: 1;
}

.sport-link.selected small {
  color: #55d895;
}

@media(max-width:700px) {
  .country-nav-head {
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
  }

  .country-modes {
    width: auto;
    flex: 0 0 auto;
  }

  .country-mode {
    flex: 0 0 auto;
    text-align: center;
  }

  .country-label {
    white-space: nowrap;
  }
}

/* Country and league filters populated from the API's real match catalogue. */ .fixture-filters {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #39483b;
  border-radius: 7px 7px 0 0;
  background: #1b261e;
}

.fixture-filters .filter-btn {
  color: #b9c8d8;
}

.fixture-filters .filter-btn.active {
  color: #42d88c;
  border-bottom-color: #24c779;
}

#countryNav {
  border-radius: 0 0 7px 7px;
  margin-bottom: 5px;
}

.league-strip#leagueNav {
  display: flex!important;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 9px 9px;
  border: 1px solid #39483b;
  border-radius: 7px;
  background: #18221a;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #667568 transparent;
}

.league-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #39483b;
  border-radius: 14px;
  background: #26332a;
  color: #cbd6e2;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.league-chip:hover, .league-chip.active {
  border-color: #24c779;
  background: #1f4b32;
  color: #e8fff2;
}

.powered-by {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media(max-width:700px) {
  .fixture-filters {
    gap: 10px;
    padding: 7px;
  }

  .fixture-filters .filter-btn {
    font-size: 8px;
  }

  .league-chip {
    font-size: 8px;
    padding: 7px 9px;
  }
}

/* Account, wallet and ticket history */ .header-inner>.balance {
  padding: 9px 12px;
  border: 1px solid #35506c;
  border-radius: 7px;
  background: #14243a;
  color: #42d88c;
  font: 700 10px var(--mono);
  white-space: nowrap;
}

#openAccount {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  color: #e9f7fc;
}

.auth-dialog.account-open {
  width: min(1100px,100%);
  height: min(900px,calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 36px;
  background: linear-gradient(145deg,#1c2820,#151e17);
}

.account-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0 44px 18px 0;
  border-bottom: 1px solid #405044;
}

.account-page-heading h2 {
  font-size: 34px;
  margin: 6px 0;
}

.account-page-heading p {
  margin: 0;
  color: #9db2c7;
  font-size: 12px;
}

.account-close {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #405044;
  border-radius: 6px;
  background: #253328;
  color: #d8e6f3;
  font-size: 10px;
  font-weight: 800;
}

.profile-view {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 14px;
}

.profile-head {
  grid-column: 1/-1;
}

.bet-history-card {
  grid-column: 1/-1;
  min-width: 0;
}

.bet-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bet-history-heading h3 {
  margin: 5px 0 0;
  font: 700 20px "Barlow Condensed",sans-serif;
  color: #edf5fb;
}

.bet-history-heading button {
  padding: 8px 10px;
  border: 1px solid #38516b;
  border-radius: 6px;
  background: #16283d;
  color: #55d895;
  font-size: 9px;
  font-weight: 900;
}

.account-bets {
  display: grid;
  gap: 9px;
}

.bets-empty {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px dashed #465647;
  border-radius: 7px;
  text-align: center;
  color: #9bb0c5;
  font-size: 11px;
}

.bets-empty b {
  color: #edf5fb;
  font-size: 13px;
}

.bet-history-item {
  padding: 13px;
  border: 1px solid #304861;
  border-radius: 8px;
  background: #0f1b2b;
}

.bet-history-top, .bet-history-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bet-history-top strong {
  font-size: 12px;
}

.bet-status {
  padding: 4px 8px;
  border-radius: 20px;
  background: #303d50;
  color: #d4e4f2;
  font-size: 9px;
  font-weight: 800;
}

.bet-status.won {
  background: #173c31;
  color: #8bf0bc;
}

.bet-status.lost {
  background: #442831;
  color: #ff9aaa;
}

.bet-history-selections {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #354238;
  border-bottom: 1px solid #354238;
}

.bet-history-selections div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
}

.bet-history-selections span, .bet-history-bottom {
  color: #91a7bc;
  font-size: 9px;
}

.bet-history-bottom b {
  color: #e9f3fa;
}

.footer {
  padding: 24px 0 16px;
  background: #0c1727;
  color: #a7b8c9;
  border-top: 1px solid #2c4058;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

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

.footer-brand .brand-mark {
  background: #24c779;
  color: #091a26;
}

.footer-brand>span:last-child {
  display: grid;
  gap: 2px;
}

.footer-brand b {
  font: 800 16px "Barlow Condensed",sans-serif;
  letter-spacing: .05em;
}

.footer-brand small {
  color: #8fa5ba;
  font-size: 9px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a, .footer-links button, .footer-links span {
  padding: 0;
  border: 0;
  background: none;
  color: #a7b8c9;
  text-decoration: none;
  font-size: 10px;
}

.footer-links a:hover, .footer-links button:hover {
  color: #58dce8;
}

.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #24384e;
  color: #70859a;
  font-size: 9px;
}

@media(max-width:700px) {
  .header-inner>.balance {
    padding: 6px 7px;
    font-size: 8px;
  }

  .auth-dialog.account-open {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 26px 18px;
  }

  .profile-view {
    grid-template-columns: 1fr;
  }

  .account-page-heading h2 {
    font-size: 28px;
  }

  .bet-history-bottom {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-bottom {
    grid-column: 1;
  }
}

.auth-backdrop:has(.auth-dialog.account-open) {
  display: block;
  padding: 0;
  overflow: auto;
}

.auth-dialog.account-open {
  width: 100%;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: clamp(24px,5vw,64px) max(18px,calc((100vw - 1100px)/2));
}

.auth-dialog.account-open .auth-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
}

.auth-dialog.account-open .profile-view {
  grid-template-columns: minmax(0,1fr);
  max-width: 1100px;
  margin: auto;
}

.auth-dialog.account-open .account-page-heading {
  max-width: 1100px;
  margin: 0 auto 26px;
}

.admin-view h2 {
  font-size: 32px;
  letter-spacing: .02em;
}

.admin-view .auth-description {
  max-width: 560px;
  margin: 0 0 20px;
}

.admin-search-form {
  padding: 12px;
  border: 1px solid #304760;
  border-radius: 9px;
  background: #1a241c;
}

.admin-search-form input {
  font-family: var(--mono);
  letter-spacing: .08em;
}

.admin-search-form button, .admin-credit-form .auth-submit {
  transition: filter .15s,transform .15s;
}

.admin-search-form button:hover, .admin-credit-form .auth-submit:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.admin-results {
  box-shadow: 0 8px 24px #0002;
}

.admin-credit-form {
  box-shadow: inset 0 1px #ffffff08,0 12px 28px #0002;
}

@media(max-width:700px) {
  .auth-dialog.account-open {
    padding: 25px 16px;
  }

  .auth-dialog.account-open .account-page-heading {
    padding-right: 42px;
  }
}

.auth-dialog.account-open #closeAuth {
  display: none;
}

.provider-badge {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #536277;
  border-radius: 12px;
  background: #263449;
  color: #e1eaf4;
  font: 700 8px var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}

.provider-badge.api-football, .provider-badge.highlightly-provider {
  border-color: #258a74;
  background: #163c39;
  color: #a9f2d9;
}

.provider-badge.fallback-provider {
  border-color: #9b7135;
  background: #44351e;
  color: #ffdda2;
}

.odds-more {
  margin-top: 8px;
  background: #1b261e;
  border-color: #405044;
  color: #49d38c;
  border-radius: 6px;
}

.odds-more:hover {
  background: #253a2b;
  border-color: #24c779;
}

@media(max-width:700px) {
  .provider-badge {
    font-size: 7px;
    padding: 4px 6px;
  }
}

.all-match-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.all-match-toolbar strong {
  flex: 1;
}

.all-markets {
  grid-column: 1/-1;
  border-top: 1px solid #30312d;
  padding-top: 7px;
  margin-top: 2px;
  color: #b7baaf;
  font: 8px var(--mono);
}

.all-markets summary {
  cursor: pointer;
  list-style: none;
  color: #b7c876;
  font-weight: 700;
  letter-spacing: .04em;
}

.all-markets summary::-webkit-details-marker {
  display: none;
}

.all-markets summary:after {
  content: "＋";
  float: right;
}

.all-markets[open] summary:after {
  content: "−";
}

.all-market-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 7px;
  margin-top: 8px;
}

.all-market-item {
  border: 1px solid #353730;
  border-radius: 4px;
  padding: 7px;
}

.all-market-item>b {
  display: block;
  color: #e0e2d9;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.all-market-item>div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.all-market-pick {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #242620;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 5px;
  color: #a9ad9f;
  font: inherit;
  cursor: pointer;
}

.all-market-pick strong {
  color: #24c779;
  font-weight: 500;
}

.all-market-pick:hover, .all-market-pick.chosen {
  border-color: #24c779;
  background: #1b442e;
  color: #fff;
}

.all-market-pick.chosen strong {
  color: #a7f2c3;
}

/* Bigger, open country selector styled like a horizontal sportsbook filter row. */ #countryNav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#countryNav .country-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 8px 2px 11px;
  align-items: center;
  overflow-x: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

#countryNav .country-scroll::-webkit-scrollbar {
  display: none;
}

#countryNav .country-scroll-arrow {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #405044;
  border-radius: 50%;
  background: #243126;
  color: #d9e6f3;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#countryNav .country-scroll-arrow:hover:not(:disabled) {
  border-color: #24c779;
  background: #214b34;
  color: #e8fff2;
}

#countryNav .country-scroll-arrow:disabled {
  opacity: .35;
  cursor: default;
}

#countryNav .country-mode, #countryNav .country-chip {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 11px;
  font-weight: 800;
}

#countryNav .country-flag {
  min-width: 18px;
  font-size: 17px;
}

@media(max-width:700px) {
  #countryNav {
    gap: 0;
  }

  #countryNav .country-scroll {
    flex: 1 1 auto;
    width: 100%;
    gap: 7px;
    padding: 7px 1px 10px;
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #countryNav .country-scroll::-webkit-scrollbar {
    display: none;
  }

  #countryNav .country-scroll-arrow {
    display: none;
  }

  #countryNav .country-mode, #countryNav .country-chip {
    min-height: 39px;
    padding: 8px 12px;
    font-size: 10px;
  }
}

@media(hover:none) and (pointer:coarse) {
  #countryNav .country-scroll {
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  #countryNav .country-scroll-arrow {
    display: none;
  }
}

/* Sportsbook navigation controls */ .sport-nav {
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid #354238;
  border-radius: 7px;
  background: #19211b;
}

.sport-nav .sport-link {
  border: 1px solid #354238;
  border-radius: 6px;
  background: #222b23;
  color: #edf5fb;
}

.sport-nav .sport-link.selected {
  border-color: #24c779;
  background: #214b34;
  box-shadow: inset 0 -3px #24c779;
}

.fixture-filters {
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.fixture-filters .filter-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.fixture-filters .filter-btn.active {
  background: #222b23;
}

.league-strip#leagueNav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 9px 10px;
  border: 1px solid #354238;
  border-radius: 7px;
  background: #19211b;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #667568 transparent;
}

.league-nav .league-chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #354238;
  border-radius: 18px;
  background: #222b23;
  color: #d8e6f3;
  font-size: 10px;
  font-weight: 700;
}

.league-nav .league-chip:hover, .league-nav .league-chip.active {
  border-color: #24c779;
  background: #214b34;
  color: #e8fff2;
}

@media(max-width:700px) {
  .sport-nav {
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .fixture-filters {
    gap: 0;
    padding: 5px;
  }

  .fixture-filters .filter-btn {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 8px;
  }

  .league-strip#leagueNav {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .league-nav .league-chip {
    font-size: 8px;
    padding: 7px 9px;
  }
}

/* Oto Bahis sportsbook visual theme: slate panels, cyan controls, green odds */ :root {
  --black: #111923;
  --surface: #192433;
  --surface2: #202e40;
  --paper: #101720;
  --white: #f2f6fb;
  --line: #304157;
  --muted: #9aabc0;
  --lime: #42d2e2;
  --orange: #ff687d;
  --field: #152131;
}

html {
  background: #101720;
}

body {
  background: #101720;
  color: #e9f0f7;
}

.wrap {
  max-width: 1600px;
  padding-left: 22px;
  padding-right: 22px;
}

.header {
  height: 62px;
  background: #111923;
  border-bottom: 1px solid #2b3a4e;
}

.brand-mark {
  background: linear-gradient(145deg,#5ce2ec,#20a9c1);
  box-shadow: 0 0 15px #42d2e22a;
}

.brand-flare {
  fill: #42d2e2;
}

.nav a {
  color: #a1afbf;
}

.nav a.active {
  color: #f5f8fb;
}

.nav a.active:after {
  background: #42d2e2;
}

.button-dark {
  border-color: #40536b;
  background: #1a2737;
  color: #e4edf6;
}

.button-dark:hover {
  border-color: #42d2e2;
  color: #65e1eb;
}

.button-lime, .feature-link {
  background: #42d2e2;
  color: #09212b;
}

.button-lime:hover, .feature-link:hover {
  filter: brightness(1.08);
}

.ticker {
  background: #172231;
  color: #aab9ca;
  border-bottom: 1px solid #2d3e54;
}

.ticker strong {
  color: #42d2e2;
}

.ticker span b {
  color: #f2f6fb;
}

.layout {
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 32px;
}

.feature {
  border: 1px solid #31445d;
  border-radius: 8px;
  background: #15263a;
  color: #f3f7fb;
}

.feature:before {
  background: radial-gradient(ellipse at 77% 48%,#16708788 0,transparent 34%),linear-gradient(110deg,#182b42 0%,#173b50 54%,#18283b 100%);
}

.feature:after {
  border-color: #42d2e233;
  box-shadow: 0 0 0 27px #42d2e20d,0 0 0 55px #42d2e20a,0 0 0 83px #42d2e207;
}

.live-tag {
  color: #62dce8;
}

.feature-date, .comp-label, .feature-caption {
  color: #9fb2c7;
}

.feature h1 em, .vs {
  color: #42d2e2;
}

.feature-link {
  border-radius: 5px;
}

.banner-ball {
  border-color: #42d2e27a;
  background: radial-gradient(circle at 35% 30%,#286a7c,#15283e 68%);
  box-shadow: 0 0 35px #42d2e22a,inset 0 0 20px #42d2e21b;
}

.banner-live-pill {
  border-color: #42d2e255;
  background: #111d2a;
  color: #b6f7f8;
}

.sport-nav {
  margin: 9px 0 10px;
  padding: 8px;
  border: 1px solid #2e4158;
  border-radius: 8px;
  background: #182433;
}

.sport-nav .sport-link {
  border: 1px solid #31445d;
  border-radius: 7px;
  background: #202d3d;
  color: #dce6f0;
}

.sport-nav .sport-link:hover {
  border-color: #42d2e2;
  background: #24384b;
}

.sport-nav .sport-link.selected {
  border-color: #42d2e2;
  background: #173d50;
  box-shadow: inset 0 -3px #42d2e2;
  color: #effcff;
}

.sport-link small, .sport-link.selected small {
  color: #9eb4c8;
}

.filter-row {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #2e4158;
  border-radius: 7px 7px 0 0;
  background: #1b2838;
  color: #e8f0f7;
}

.all-match-toolbar strong {
  font: 800 11px var(--mono);
  letter-spacing: .035em;
}

.refresh-button {
  border-color: #40536b;
  border-radius: 5px;
  background: #1d2b3c;
  color: #dce7f2;
}

.refresh-button:hover {
  border-color: #42d2e2;
  color: #42d2e2;
}

.fixture-filters {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #2e4158;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #1b2838;
}

.fixture-filters .filter-btn {
  color: #b9c8d8;
}

.fixture-filters .filter-btn.active {
  background: transparent;
  color: #55dce8;
  border-bottom-color: #42d2e2;
}

#countryNav {
  margin: 8px 0 6px;
  padding: 9px 11px;
  border: 1px solid #2e4158;
  border-radius: 8px;
  background: #182433;
}

.country-label {
  color: #e1ebf4;
}

.country-label small {
  background: #263b52;
  color: #6ce2e9;
}

.country-mode {
  border-color: #3b4f66;
  background: #202e40;
  color: #d0dce8;
}

.country-mode:hover, .country-mode.active {
  border-color: #42d2e2;
  background: #173d50;
  color: #eaffff;
}

.country-chip {
  border-color: #344960;
  background: #243246;
  color: #d9e4ef;
}

.country-chip:hover, .country-chip.active {
  border-color: #42d2e2;
  background: #173e50;
  color: #effdff;
}

#countryNav .country-scroll-arrow {
  border-color: #3b4f66;
  background: #223144;
  color: #dce8f2;
}

#countryNav .country-scroll-arrow:hover:not(:disabled) {
  border-color: #42d2e2;
  background: #173e50;
  color: white;
}

.league-strip#leagueNav {
  border-color: #2e4158;
  border-radius: 8px;
  background: #182433;
}

.league-nav .league-chip {
  border-color: #344960;
  background: #243246;
  color: #d1deeb;
}

.league-nav .league-chip:hover, .league-nav .league-chip.active {
  border-color: #42d2e2;
  background: #173e50;
  color: #effdff;
}

.market-columns {
  background: #202d3e;
  color: #dce7f1;
  border: 1px solid #30445c;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.market-columns small {
  color: #96a9bd;
}

.match-group {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #2e4158;
  border-radius: 7px;
  background: #192535;
}

.group-head {
  min-height: 40px;
  padding: 10px 13px;
  background: #202e40;
  color: #dbe6f0;
  border-bottom: 1px solid #31445c;
  border-radius: 0;
}

.match {
  grid-template-columns: minmax(180px,1fr) auto;
  min-height: 74px;
  padding: 10px 13px;
  background: #192535;
  color: #e7eef6;
  border-bottom: 1px solid #2b3c51;
}

.match:last-child {
  border-bottom: 0;
}

.match:hover {
  background: #1e2c3e;
}

.match.is-live {
  border-left: 3px solid #ff687d;
  padding-left: 10px;
}

.match-meta {
  color: #9dafc3;
}

.match-meta .live-label {
  color: #ff7789;
}

.match-meta span:nth-child(2) {
  color: #b4c3d2;
}

.team {
  color: #eef4fa;
}

.score {
  color: #f0f6fb;
}

.odd {
  border-color: #344b65;
  border-radius: 5px;
  background: #213146;
  color: #eef4fa;
}

.odd span {
  color: #9eb1c5;
}

.odd b {
  color: #55dce8;
}

.odd:hover, .odd.chosen {
  border-color: #42d2e2;
  background: #173e50;
}

.odd.chosen b {
  color: #b5f7fb;
}

.odd.unavailable {
  background: #192636;
  color: #7f91a6;
}

.total-line, .more-odds {
  color: #bdcbd9;
}

.market-empty {
  color: #ff9aa8;
}

.data-state {
  background: #192535;
  border-color: #41556d;
  color: #bdcad8;
}

.data-state.error {
  color: #ff9eaa;
  border-color: #8d4b59;
}

.show-more, .odds-more {
  border-color: #3d536a;
  background: #202f42;
  color: #56dce8;
}

.show-more:hover, .odds-more:hover {
  border-color: #42d2e2;
  background: #173d50;
}

.footer {
  border-top: 1px solid #2c3e54;
  background: #111923;
  color: #a7b8c9;
}

.footer-brand {
  color: #edf5fb;
}

.footer-brand .brand-mark {
  background: linear-gradient(145deg,#5ce2ec,#20a9c1);
}

.footer-links a, .footer-links button, .footer-links span {
  color: #a9bbcd;
}

.footer-links a:hover, .footer-links button:hover {
  color: #56dce8;
}

.footer-bottom {
  border-top-color: #26384d;
  color: #8094aa;
}

.toast {
  border-left-color: #42d2e2;
  background: #1b293a;
}

.date-popover {
  border-color: #3b5068;
  background: #172638;
  color: #e8f2fa;
}

.date-shortcuts button {
  border-color: #3c526a;
  background: #22364b;
  color: #59dce8;
}

.date-popover input {
  border-color: #40546b;
  background: #152131;
}

.api-setup {
  border-color: #344b63;
  background: #19283a;
  color: #e6f2fb;
}

.api-setup>b {
  color: #56dce8;
}

.api-setup input {
  border-color: #40546b;
  background: #152131;
}

.api-setup button {
  background: #42d2e2;
  color: #09212b;
}

.provider-badge {
  border-color: #40566e;
  background: #25364a;
  color: #e0eaf3;
}

.provider-badge.api-football, .provider-badge.highlightly-provider {
  border-color: #2b826c;
  background: #163c39;
  color: #a9f2d9;
}

.provider-badge.fallback-provider {
  border-color: #92713e;
  background: #3e321f;
  color: #ffdda2;
}

.all-markets {
  border-color: #30445c;
  color: #bdcad8;
}

.all-markets summary {
  color: #6ee19a;
}

.all-market-item {
  border-color: #364a60;
}

.all-market-item>b {
  color: #e1eaf3;
}

.all-market-pick {
  background: #243246;
  color: #bac9d8;
}

.all-market-pick strong {
  color: #69dc93;
}

.all-market-pick:hover, .all-market-pick.chosen {
  border-color: #42d2e2;
  background: #173e50;
  color: #fff;
}

.all-market-pick.chosen strong {
  color: #b5f7fb;
}

/* Account overlays share the same navy and cyan visual language. */ .auth-backdrop {
  background: #07101bd9;
}

.auth-dialog, .auth-dialog.account-open {
  border-color: #354b65;
  background: linear-gradient(145deg,#1d2c40,#152131);
  color: #edf5fb;
}

.auth-close, .account-close {
  border-color: #3d536c;
  background: #24364b;
  color: #e0eaf4;
}

.auth-dialog input {
  border-color: #3d536b;
  background: #121e2c;
  color: #f2f7fb;
}

.auth-dialog input:focus {
  border-color: #42d2e2;
  box-shadow: 0 0 0 3px #42d2e222;
}

.auth-submit {
  background: #42d2e2;
  color: #09212b;
}

.auth-switch {
  color: #60dce7;
}

.auth-note {
  color: #9badc1;
}

.account-id-row {
  border-color: #354c65;
  background: #142132;
}

.account-id-row code, .admin-selected code {
  color: #60dce7;
}

.account-id-row button, .admin-search-form button, .bet-history-heading button {
  border-color: #3b596f;
  background: #1d3446;
  color: #61dce7;
}

.profile-avatar {
  border-color: #3d657e;
  background: linear-gradient(145deg,#20506a,#172a41);
  color: #69e1e9;
}

.profile-card, .admin-credit-form {
  border-color: #354b64;
  background: #1c2b3e;
}

.profile-card-label {
  color: #9fb3c8;
}

.profile-card p, .account-page-heading p {
  color: #9fb2c7;
}

.bet-history-heading h3 {
  color: #edf5fb;
}

.bet-history-item {
  border-color: #344a61;
  background: #142235;
}

.bet-history-selections {
  border-color: #34475c;
}

.admin-search-form, .admin-results {
  border-color: #354b63;
  background: #172638;
}

.admin-user-row {
  border-bottom-color: #2d4157;
  color: #edf5fb;
}

.admin-user-row:hover, .admin-user-row.selected {
  background: #20354c;
}

.admin-user-main small, .admin-user-balance {
  color: #a8b9cc;
}

.admin-user-balance {
  color: #63dce8;
}

.admin-selected {
  border-bottom-color: #354b62;
}

.admin-wallet-debit {
  border-color: #8d5360;
  background: #3b2633;
  color: #ffc0c9;
}

.admin-wallet-clear {
  border-color: #754c58;
  background: #2c202c;
  color: #f1a4af;
}

.admin-success {
  border-color: #34795f;
  background: #17382f;
  color: #a6f0ca;
}

@media(max-width:1000px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .layout {
    grid-template-columns: minmax(0,1fr) 290px;
    gap: 12px;
  }

  .match {
    grid-template-columns: minmax(145px,1fr) auto;
  }

  .odd {
    min-width: 49px;
    width: 49px;
  }
}

@media(max-width:790px) {
  .wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    height: 56px;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 10px;
  }

  .feature {
    height: 220px;
    padding: 15px;
    border-radius: 7px;
  }

  .feature-body {
    grid-template-columns: minmax(0,1fr) 110px;
  }

  .feature h1 {
    font-size: 40px;
  }

  .sport-nav {
    margin: 7px 0;
    padding: 6px;
    border-radius: 7px;
  }

  .filter-row {
    padding: 8px;
    border-radius: 6px 6px 0 0;
  }

  .fixture-filters {
    padding: 4px;
    overflow-x: auto;
  }

  .fixture-filters .filter-btn {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 8px;
  }

  #countryNav {
    padding: 7px 8px;
    margin-top: 7px;
  }

  .country-mode, #countryNav .country-chip {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .league-strip#leagueNav {
    padding: 6px 7px;
  }

  .market-columns {
    padding: 8px 7px;
    font-size: 8px;
  }

  .match-group {
    margin-top: 6px;
    border-radius: 6px;
  }

  .group-head {
    min-height: 34px;
    padding: 8px;
    font-size: 8px;
  }

  .match {
    grid-template-columns: minmax(90px,1fr) auto;
    gap: 4px;
    min-height: 68px;
    padding: 8px 6px;
  }

  .match.is-live {
    padding-left: 3px;
  }

  .team, .team-pair .team {
    font-size: 9px;
  }

  .odd {
    width: 39px;
    min-width: 39px;
    height: 36px;
  }

  .odd span {
    font-size: 6px;
  }

  .odd b {
    font-size: 9px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Account controls are compact on mobile; keep the live balance visible in the header. */ .account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-logout {
  display: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #637044;
  border-radius: 6px;
  background: #29351f;
  color: #f0d83a;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.auth-dialog.account-open {
  background: linear-gradient(145deg,#1d2a20,#141b16);
}

.auth-dialog.account-open .profile-card {
  border-color: #3c4a39;
  background: #1b241d;
}

.auth-dialog.account-open .profile-avatar {
  border-color: #87902f;
  background: linear-gradient(145deg,#3b4d22,#1a2a1c);
  color: #f3dc38;
}

.auth-dialog.account-open .profile-balance-card strong {
  color: #f2d83a;
  font: 700 24px var(--mono);
}

.auth-dialog.account-open .account-id-row code {
  color: #f0d83a;
}

.auth-dialog.account-open .account-id-row button, .auth-dialog.account-open .bet-history-heading button {
  border-color: #536044;
  background: #263323;
  color: #d8ed69;
}

@media(max-width:700px) {
  .auth-backdrop:has(.auth-dialog.account-open) {
    display: grid;
    padding: 0;
  }

  .auth-dialog.account-open {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 22px 16px;
    border: 0;
    border-radius: 0;
  }

  .auth-dialog.account-open .auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .password-fields {
    grid-template-columns: 1fr;
  }

  .auth-dialog.admin-open {
    width: min(100%, 620px);
    padding: 20px 16px;
  }
}

/* Refined brand mark and readable mobile account header. */
.brand-logo {
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

@media(max-width:700px) {
  .header {
    height: auto;
    min-height: 82px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand balance" "actions actions";
    align-content: center;
    gap: 7px 9px;
    height: auto;
    min-height: 82px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    gap: 7px;
    font-size: 20px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nav,
  .head-spacer {
    display: none;
  }

  .header-inner > .balance {
    grid-area: balance;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: min(45vw, 190px);
    min-height: 36px;
    padding: 7px 10px !important;
    overflow: visible;
    color: #ffe34b;
    font: 700 13px/1.15 var(--mono);
    letter-spacing: 0;
    white-space: nowrap;
    border: 1px solid #53613c;
    border-radius: 7px;
    background: #1d281b;
  }

  #headerBalance[hidden] {
    display: none !important;
  }

  #guestActions,
  #userActions {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
  }

  #guestActions[hidden],
  #userActions[hidden] {
    display: none !important;
  }

  #userActions #openAccount {
    max-width: min(62vw, 280px);
    min-height: 36px;
    padding: 8px 14px;
    overflow: hidden;
    color: #f4f3e9;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #userActions #openAdmin {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 10px;
  }

  #guestActions .button-dark,
  #guestActions .button-lime {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media(max-width:700px) {
  .header-inner>.balance {
    display: inline-flex!important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 7px;
    font-size: 7px;
    letter-spacing: -.02em;
  }

  #headerBalance[hidden] {
    display: none!important;
  }

  .head-spacer {
    flex: 1 1 auto;
    min-width: 0;
  }

  #userActions {
    flex: 0 0 auto;
    gap: 4px;
  }

  #userActions #openAccount {
    max-width: 82px;
    padding: 7px 6px;
    font-size: 8px;
  }

  #userActions #openAdmin {
    padding: 7px 6px;
    font-size: 8px;
  }

  #userActions #logout {
    display: none;
  }

  .auth-dialog.account-open .account-page-heading {
    align-items: flex-start;
    gap: 8px;
    padding-right: 34px;
  }

  .auth-dialog.account-open .account-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 6px;
  }

  .auth-dialog.account-open .account-logout {
    display: block;
  }

  .auth-dialog.account-open .account-close, .auth-dialog.account-open .account-logout {
    height: 32px;
    padding: 0 9px;
    font-size: 9px;
    white-space: nowrap;
  }
}

@media(max-width:380px) {
  .header-inner {
    gap: 5px;
  }

  .brand {
    gap: 5px;
    font-size: 17px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .header-inner>.balance {
    max-width: 88px;
    padding: 5px;
    font-size: 6px;
  }

  #userActions #openAccount {
    max-width: 62px;
  }
}

@media(max-width:380px) {
  .wrap {
    padding-left: 7px;
    padding-right: 7px;
  }

  .header-inner {
    gap: 6px;
  }

  .brand {
    font-size: 18px;
    gap: 6px;
  }

  .auth-actions {
    gap: 4px;
  }

  .button-dark, .button-lime {
    padding: 7px 6px;
    font-size: 8px;
  }

  .odd {
    width: 34px;
    min-width: 34px;
  }

  .match {
    grid-template-columns: minmax(78px,1fr) auto;
  }
}

/* Sports page hierarchy refresh: compact banner, clear filters, denser match board */ .feature {
  height: 205px;
  padding: 17px 22px;
  border-radius: 6px;
}

.feature-body {
  margin-top: 9px;
  grid-template-columns: minmax(0,1fr) 205px;
}

.feature h1 {
  font-size: clamp(32px,3.2vw,44px);
  margin: 6px 0 9px;
}

.feature .feature-bottom {
  margin-top: 10px;
}

.banner-emblem {
  min-height: 112px;
}

.banner-ball {
  width: 78px;
  height: 78px;
}

.sport-nav {
  min-height: 0;
  margin: 8px 0 7px;
  padding: 5px;
  border-radius: 6px;
  background: #172231;
}

.sport-nav .sport-link {
  flex-basis: 78px;
  min-height: 60px;
  gap: 3px;
  padding: 5px 4px;
}

.sport-nav .sport-link span:first-child {
  font-size: 20px;
}

.filter-row {
  min-height: 45px;
  margin-top: 6px;
  padding: 7px 11px;
}

.fixture-filters {
  min-height: 43px;
}

#countryNav {
  padding: 7px 9px;
  margin: 7px 0 5px;
}

#countryNav .country-scroll-arrow {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 22px;
}

#countryNav .country-mode, #countryNav .country-chip {
  min-height: 35px;
  padding: 7px 11px;
  font-size: 10px;
}

#countryNav .country-flag {
  font-size: 15px;
}

/* Keep the match list focused on fixtures; country selection remains available. */ #leagueNav {
  display: none!important;
}

.market-columns {
  min-height: 40px;
  padding: 8px 12px;
}

.match-group {
  margin-top: 6px;
  border-radius: 5px;
}

.group-head {
  min-height: 35px;
  padding: 8px 12px;
}

.match {
  min-height: 68px;
  padding: 8px 12px;
}

.match.is-live {
  padding-left: 9px;
}

.odd {
  height: 40px;
}

@media(max-width:1000px) {
  .feature {
    height: 190px;
  }

  .feature-body {
    grid-template-columns: minmax(0,1fr) 160px;
  }
}

@media(max-width:700px) {
  .feature {
    height: 184px;
    padding: 13px;
    border-radius: 6px;
  }

  .feature-body {
    grid-template-columns: minmax(0,1fr) 98px;
    margin-top: 9px;
  }

  .feature h1 {
    font-size: 34px;
    margin: 6px 0;
  }

  .feature-caption {
    font-size: 8px;
  }

  .banner-emblem {
    min-height: 75px;
  }

  .banner-ball {
    width: 53px;
    height: 53px;
  }

  .sport-nav {
    min-height: 0;
    margin: 6px 0;
    padding: 4px;
  }

  .sport-nav .sport-link {
    flex-basis: 67px;
    min-height: 55px;
  }

  #countryNav {
    padding: 5px 6px;
  }

  #countryNav .country-scroll-arrow {
    display: none;
  }

  #countryNav .country-mode, #countryNav .country-chip {
    min-height: 33px;
    padding: 6px 9px;
    font-size: 8px;
  }

  .market-columns {
    min-height: 35px;
  }

  .match {
    min-height: 62px;
    padding: 7px 5px;
  }
}

.header-inner>.balance {
  color: #58dce8;
  border-color: #35516b;
  background: #19283a;
}

.brand em {
  color: #42d2e2;
}

/* Match the compact sportsbook rhythm and green/gold contrast, retaining Oto Bahis identity. */ :root {
  --lime: #39d353;
  --orange: #f4c542;
  --black: #111313;
  --paper: #111313;
  --surface: #1b1d1d;
  --surface2: #252828;
  --line: #343939;
  --field: #191c1c;
}

body {
  background: #111313;
  color: #e9ecea;
}

.wrap {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}

.header {
  height: 54px;
  background: #174c19;
  border-bottom: 3px solid #e6c522;
}

.header-inner {
  gap: 24px;
}

.brand {
  font-size: 23px;
}

.brand em {
  color: #f2d533;
}

.brand-mark {
  background: linear-gradient(145deg,#f6dc30,#d4ad0a);
  box-shadow: none;
}

.brand-shield {
  fill: #173b19;
  stroke: #f8e36a;
}

.brand-flare {
  fill: #f5db32;
}

.nav a.active:after {
  background: #f0d32b;
}

.header-inner>.balance {
  border-color: #557044;
  background: #19351d;
  color: #f3dd42;
}

.button-dark {
  border-color: #536254;
  background: #222724;
  color: #e8ece8;
}

.button-dark:hover {
  border-color: #e4ca29;
  color: #f3dd42;
}

.button-lime, .feature-link {
  background: #e9cf25;
  color: #131611;
}

.ticker {
  height: 32px;
  background: #171a18;
  border-bottom: 1px solid #343938;
  color: #adb6af;
}

.ticker strong {
  color: #e7d033;
}

.layout {
  grid-template-columns: minmax(0,2fr) minmax(300px,1fr);
  gap: 9px;
  padding-top: 9px;
  padding-bottom: 24px;
}

.feature {
  height: 238px;
  padding: 19px 22px;
  border: 1px solid #354b39;
  border-radius: 5px;
  background: #113615;
}

.feature:before {
  background: radial-gradient(ellipse at 76% 50%,#277f2e 0,transparent 36%),linear-gradient(115deg,#0d310f 0%,#17481b 55%,#102814 100%);
}

.feature:after {
  border-color: #f1dc3150;
  box-shadow: 0 0 0 25px #e8d12618,0 0 0 52px #e8d1260d,0 0 0 79px #e8d12608;
}

.live-tag {
  color: #f0dc43;
}

.feature-date, .comp-label, .feature-caption {
  color: #b9c7b8;
}

.feature h1 em, .vs {
  color: #f4d634;
}

.feature-link {
  font-weight: 900;
}

.banner-ball {
  border-color: #e5cf3980;
  background: radial-gradient(circle at 35% 30%,#438746,#132a16 70%);
  box-shadow: 0 0 28px #67c84b32;
}

.banner-live-pill {
  border-color: #d8c53066;
  background: #112517;
  color: #f3dc53;
}

.sport-nav {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin: 7px 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sport-nav .sport-link {
  flex-basis: 72px;
  min-height: 65px;
  border: 1px solid #334633;
  border-radius: 4px;
  background: #202923;
  color: #e7ece6;
}

.sport-nav .sport-link.selected {
  border-color: #e6ce29;
  background: #315d20;
  box-shadow: inset 0 -3px #e6ce29;
  color: #fff;
}

.sport-link small, .sport-link.selected small {
  color: #d3d9cb;
}

.filter-row {
  margin: 6px 0 0;
  padding: 8px 11px;
  border: 1px solid #343c38;
  border-radius: 4px 4px 0 0;
  background: #1b1e1d;
  color: #e9ecea;
}

.all-match-toolbar strong {
  font: 800 10px var(--mono);
  letter-spacing: .04em;
}

.refresh-button {
  border-color: #555d58;
  border-radius: 3px;
  background: #262b28;
  color: #d9dfda;
}

.refresh-button:hover {
  border-color: #e5cf2d;
  color: #f1dc42;
}

.fixture-filters {
  min-height: 37px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #343c38;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #1b1e1d;
}

.fixture-filters .filter-btn {
  min-height: 31px;
  padding: 6px 10px;
  color: #c5cbc6;
  font-size: 10px;
}

.fixture-filters .filter-btn.active {
  background: transparent;
  color: #f1da38;
  border-bottom-color: #e8cf2b;
}

#countryNav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 5px;
  padding: 4px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#countryNav .country-scroll {
  overflow-x: hidden;
  padding: 3px 0 5px;
  scrollbar-width: none;
}

#countryNav .country-scroll-arrow {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid #3d4740;
  border-radius: 3px;
  background: #222824;
  color: #dfe6df;
  font-size: 21px;
}

#countryNav .country-scroll-arrow:hover:not(:disabled) {
  border-color: #e2cc2c;
  background: #294d22;
  color: #fff;
}

#countryNav .country-mode, #countryNav .country-chip {
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid #424a44;
  border-radius: 16px;
  background: #282d29;
  color: #d7ded8;
  font-size: 9px;
}

#countryNav .country-mode.active, #countryNav .country-chip.active {
  border-color: #e2ca2b;
  background: #345d20;
  color: #fff;
}

#countryNav .country-flag {
  font-size: 14px;
}

#leagueNav {
  display: none!important;
}

.market-columns {
  min-height: 37px;
  padding: 7px 10px;
  border: 1px solid #343c38;
  border-radius: 3px 3px 0 0;
  background: #242827;
  color: #e1e6e2;
  font-size: 9px;
}

.market-columns small {
  color: #acb5ae;
}

.match-group {
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid #343c38;
  border-radius: 3px;
  background: #1b1e1d;
}

.group-head {
  min-height: 32px;
  padding: 7px 10px;
  border-bottom: 1px solid #3a423d;
  background: #242827;
  color: #d7ded8;
  font-size: 9px;
}

.match {
  grid-template-columns: minmax(155px,1fr) auto;
  min-height: 58px;
  padding: 7px 9px;
  border-bottom: 1px solid #303734;
  background: #1b1e1d;
  color: #e5eae6;
}

.match:hover {
  background: #252a27;
}

.match.is-live {
  padding-left: 6px;
  border-left: 3px solid #e2c927;
}

.match-meta {
  margin-bottom: 4px;
  color: #a5b0a8;
  font-size: 8px;
}

.match-meta .live-label {
  color: #f0d448;
}

.match-meta span:nth-child(2) {
  color: #b9c2bb;
}

.team {
  color: #e9eeea;
  font-size: 10px;
}

.score {
  color: #f5f6f3;
}

.markets {
  gap: 3px;
}

.odd {
  min-width: 51px;
  width: 51px;
  height: 38px;
  border: 1px solid #3d4840;
  border-radius: 3px;
  background: #292e2b;
  color: #f1f4f1;
}

.odd span {
  color: #a8b2aa;
}

.odd b {
  color: #a2e56a;
  font-size: 11px;
}

.odd:hover, .odd.chosen {
  border-color: #e5cf2b;
  background: #304525;
}

.odd.chosen b {
  color: #f5e459;
}

.odd.unavailable {
  border-color: #39423b;
  background: #202522;
  color: #78827a;
}

.total-line, .more-odds {
  color: #c1c9c2;
}

.market-empty {
  color: #f0d451;
}

.data-state {
  border-color: #414a43;
  border-radius: 3px;
  background: #1c201e;
  color: #c4ccc6;
}

.show-more, .odds-more {
  border-color: #49554b;
  border-radius: 3px;
  background: #242b25;
  color: #d7e78a;
}

.show-more:hover, .odds-more:hover {
  border-color: #dfc82b;
  background: #314925;
}

.footer {
  border-top: 1px solid #363e39;
  background: #171a18;
  color: #aeb7b0;
}

.footer-bottom {
  border-top-color: #343c37;
}

.toast {
  border-left-color: #e5ce28;
  background: #242a27;
}

.date-popover {
  border-color: #455148;
  border-radius: 4px;
  background: #1d2520;
}

.date-shortcuts button {
  border-color: #525d51;
  border-radius: 3px;
  background: #2b362c;
  color: #e8d64d;
}

.date-popover input {
  border-color: #505a51;
  border-radius: 3px;
  background: #171b19;
}

.api-setup {
  border-color: #455148;
  border-radius: 4px;
  background: #202722;
}

.api-setup>b {
  color: #e8d64d;
}

.api-setup input {
  border-color: #4b564c;
  border-radius: 3px;
  background: #171b19;
}

.api-setup button {
  border-radius: 3px;
  background: #e3cc28;
  color: #171a13;
}

.provider-badge {
  border-radius: 12px;
}

.all-markets {
  border-color: #343d37;
  color: #bac3bc;
}

.all-markets summary {
  color: #d8df69;
}

.all-market-item {
  border-color: #39433b;
  border-radius: 3px;
}

.all-market-pick {
  border-radius: 3px;
  background: #2a302c;
  color: #c6cec8;
}

.all-market-pick strong {
  color: #a5e56b;
}

.all-market-pick:hover, .all-market-pick.chosen {
  border-color: #e3cd2c;
  background: #344b25;
  color: #fff;
}

.all-market-pick.chosen strong {
  color: #f3e55a;
}

@media(max-width:1000px) {
  .wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .layout {
    grid-template-columns: minmax(0,1.75fr) minmax(285px,1fr);
    gap: 7px;
  }

  .match {
    grid-template-columns: minmax(130px,1fr) auto;
    padding-left: 7px;
    padding-right: 7px;
  }

  .odd {
    width: 45px;
    min-width: 45px;
  }

  #countryNav .country-mode, #countryNav .country-chip {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media(max-width:700px) {
  .wrap {
    padding-left: 7px;
    padding-right: 7px;
  }

  .header {
    height: 50px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    font-size: 19px;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 7px;
  }

  .feature {
    height: 180px;
    padding: 13px;
    border-radius: 3px;
  }

  .feature-body {
    grid-template-columns: minmax(0,1fr) 95px;
    margin-top: 8px;
  }

  .feature h1 {
    font-size: 34px;
    margin: 5px 0;
  }

  .banner-emblem {
    min-height: 76px;
  }

  .banner-ball {
    width: 52px;
    height: 52px;
  }

  .sport-nav {
    width: 100%;
    overflow-x: auto;
    padding: 0;
    margin: 5px 0;
  }

  .sport-nav .sport-link {
    flex-basis: 62px;
    min-height: 54px;
  }

  .filter-row {
    padding: 6px 7px;
  }

  .fixture-filters {
    overflow-x: auto;
    padding: 2px 4px;
  }

  .fixture-filters .filter-btn {
    min-height: 29px;
    padding: 5px 7px;
    font-size: 8px;
  }

  #countryNav {
    gap: 0;
    padding: 2px 0;
  }

  #countryNav .country-scroll {
    overflow-x: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  #countryNav .country-scroll-arrow {
    display: none;
  }

  #countryNav .country-mode, #countryNav .country-chip {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .market-columns {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 8px;
  }

  .match-group {
    margin-top: 3px;
  }

  .group-head {
    min-height: 29px;
    padding: 6px 7px;
    font-size: 8px;
  }

  .match {
    grid-template-columns: minmax(84px,1fr) auto;
    gap: 3px;
    min-height: 54px;
    padding: 6px 4px;
  }

  .match.is-live {
    padding-left: 2px;
  }

  .match-meta {
    font-size: 7px;
  }

  .team {
    font-size: 8px;
  }

  .odd {
    width: 35px;
    min-width: 35px;
    height: 34px;
  }

  .odd span {
    font-size: 6px;
  }

  .odd b {
    font-size: 8px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

#countryNav:empty {
  display: none!important;
}

/* Compact fixture board with click to expand each match's additional markets. */ .market-columns, .match {
  grid-template-columns: minmax(190px,1fr) 174px 145px 142px 36px;
  gap: 6px;
}

.market-columns {
  min-height: 38px;
  padding: 6px 9px;
  background: #202321;
  border-color: #363d38;
}

.market-name-head {
  font-size: 9px;
  color: #d4dad5;
}

.market-name-head small {
  font-size: 8px;
  color: #99a49c;
}

.match-group {
  margin-top: 4px;
  border-color: #343a36;
  border-radius: 3px;
  background: #191c1a;
}

.group-head {
  min-height: 29px;
  padding: 6px 9px;
  background: #101211;
  color: #cdd4ce;
  border-bottom-color: #343a36;
  font-size: 9px;
}

.group-head small {
  margin-left: auto;
  color: #98a49b;
  font: 8px var(--mono);
}

.match-details {
  border-bottom: 1px solid #303632;
}

.match-details:last-child {
  border-bottom: 0;
}

.match-details>summary.match {
  list-style: none;
  cursor: pointer;
}

.match-details>summary.match::-webkit-details-marker {
  display: none;
}

.match-details>summary.match::marker {
  content: "";
}

.match-details>summary.match:hover {
  background: #252a27;
}

.match {
  min-height: 62px;
  padding: 7px 8px;
  border-bottom: 1px solid #303632;
  background: #1b1e1c;
}

.match:last-child {
  border-bottom: 0;
}

.match.is-live {
  padding-left: 6px;
  border-left: 3px solid #e0c82b;
}

.match-meta {
  margin-bottom: 4px;
  font-size: 8px;
  gap: 5px;
}

.match-meta span:nth-child(n+3) {
  display: none;
}

.team-pair {
  gap: 5px;
}

.team-pair .team {
  font-size: 10px;
  line-height: 1.2;
}

.team-pair .score {
  min-width: 17px;
  font-size: 11px;
  color: #f0d82c;
}

.odds-set {
  gap: 3px;
}

.odd {
  width: 48px;
  min-width: 48px;
  height: 38px;
  border-radius: 2px;
  background: #242825;
  border-color: #393f3a;
}

.odd span {
  font-size: 7px;
}

.odd b {
  font-size: 10px;
}

.total-line {
  min-width: 22px;
  font-size: 8px;
}

.btts-set {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.btts-pick {
  display: flex;
  min-width: 0;
  width: 66px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #393f3a;
  border-radius: 2px;
  background: #242825;
  color: #b8c1ba;
  cursor: pointer;
}

.btts-pick span {
  font: 7px var(--mono);
  color: #a6b0a8;
}

.btts-pick strong {
  font: 500 10px var(--mono);
  color: #a3e46b;
}

.btts-pick:hover, .btts-pick.chosen {
  border-color: #dfc928;
  background: #314224;
}

.btts-pick.chosen strong {
  color: #f2dc3c;
}

.match-expand-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #c5d28c;
  font: 8px var(--mono);
}

.match-expand-cue b {
  font: 700 15px/1 Manrope,sans-serif;
  color: #b6c0b8;
  transition: transform .18s;
}

.match-details[open]>.match .match-expand-cue b {
  transform: rotate(180deg);
  color: #e7ce2d;
}

.match-details[open]>.match {
  background: #222724;
  border-bottom-color: #444c46;
}

.expanded-markets {
  padding: 10px 11px 12px;
  background: #141715;
  border-top: 1px solid #3a403b;
}

.expanded-markets-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: #e0d04a;
  font: 800 9px var(--mono);
  letter-spacing: .06em;
}

.expanded-markets-title span {
  padding: 3px 7px;
  border: 1px solid #4b573b;
  border-radius: 10px;
  background: #263021;
  color: #bdcc91;
  font-size: 8px;
}

.all-market-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 7px;
  margin: 0;
}

.all-market-item {
  min-width: 0;
  padding: 8px;
  border: 1px solid #343c36;
  border-radius: 3px;
  background: #1e231f;
}

.all-market-item>b {
  display: block;
  min-height: 24px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #343c36;
  color: #d9e0da;
  font: 700 8px var(--mono);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.all-market-item>div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.all-market-pick {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #282e29;
  color: #c0c9c1;
  font: 8px Manrope,Arial,sans-serif;
  cursor: pointer;
}

.all-market-pick strong {
  color: #a4e56d;
  font: 600 9px var(--mono);
}

.all-market-pick:hover, .all-market-pick.chosen {
  border-color: #dcca30;
  background: #354a27;
  color: #f6f8f2;
}

.all-market-pick.chosen strong {
  color: #f3e24b;
}

@media(max-width:1000px) {
  .market-columns, .match {
    grid-template-columns: minmax(140px,1fr) 150px 125px 112px 27px;
    gap: 4px;
  }

  .odd {
    width: 43px;
    min-width: 43px;
  }

  .btts-pick {
    width: 52px;
  }
}

@media(max-width:700px) {
  .market-columns, .match {
    grid-template-columns: minmax(78px,1fr) 120px 103px 25px;
    gap: 3px;
  }

  .market-columns .market-btts-head, .match .btts-set {
    display: none;
  }

  .market-name-head {
    font-size: 7px;
  }

  .market-name-head small {
    font-size: 6px;
  }

  .match {
    min-height: 55px;
    padding: 6px 4px;
  }

  .match.is-live {
    padding-left: 2px;
  }

  .match-meta {
    font-size: 7px;
    gap: 3px;
  }

  .team-pair .team {
    font-size: 8px;
  }

  .team-pair .score {
    min-width: 13px;
    font-size: 9px;
  }

  .odd {
    width: 36px;
    min-width: 36px;
    height: 33px;
  }

  .odd span {
    font-size: 6px;
  }

  .odd b {
    font-size: 8px;
  }

  .total-line {
    min-width: 17px;
    font-size: 7px;
  }

  .match-expand-cue {
    font-size: 7px;
  }

  .expanded-markets {
    padding: 8px 6px;
  }

  .all-market-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .all-market-item {
    padding: 7px;
  }
}

/* Desktop sportsbook: popular leagues, match board, and ticket in three columns. */ .left-sidebar {
  display: none;
  min-width: 0;
}

.popular-leagues {
  position: sticky;
  top: 10px;
  overflow: hidden;
  background: #171916;
  color: #e9ebe4;
}

.popular-leagues-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 5px;
  border-bottom: 1px solid #343630;
}

.popular-leagues-head h2 {
  margin: 0;
  color: #e8eae2;
  font: 800 11px var(--barlow);
  letter-spacing: .08em;
}

.popular-leagues-head>span {
  color: #a4a79c;
  font: 8px var(--mono);
}

.popular-league-nav {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 115px);
  overflow-y: auto;
  padding: 3px 0;
  scrollbar-width: thin;
  scrollbar-color: #575a50 transparent;
}

.popular-league {
  display: grid;
  grid-template-columns: 19px minmax(0,1fr) 19px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 29px;
  padding: 4px 5px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #c9cbc3;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.popular-league:hover, .popular-league.active {
  border-left-color: #e8c928;
  background: #252720;
  color: #fff;
}

.popular-league-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.popular-league-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-league-flag {
  justify-self: end;
  font-family: system-ui,sans-serif;
  font-size: 14px;
  line-height: 1;
}

.popular-league-empty {
  padding: 12px 5px;
  color: #a4a79c;
  font-size: 10px;
  line-height: 1.5;
}

.league-strip#leagueNav {
  display: none!important;
}

@media(min-width:1200px) {
  .layout {
    grid-template-columns: 205px minmax(0,1fr) 300px;
    gap: 12px;
    align-items: start;
  }

  .left-sidebar {
    display: block;
    height: calc(100vh - 110px);
  }

  .popular-leagues {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .popular-league-nav {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .main {
    min-width: 0;
  }
}

@media(max-width:1199px) {
  .left-sidebar {
    display: none;
  }

  .layout {
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 10px;
  }
}

@media(max-width:700px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
}

/* Remove the market-heading strip above the match list. */ .market-columns {
  display: none!important;
}

.header-inner>.balance:before {
  content: "BAKİYE ";
}

@media(max-width:700px) {
  .header-inner>.balance {
    max-width: 110px!important;
    padding: 7px 8px!important;
    font-size: 11px!important;
    letter-spacing: 0!important;
    flex: 0 1 auto;
  }

  .header-inner>.balance:before {
    content: none;
  }
}

/* Oto Bahis logo image and removal of the secondary ticker strip */ .brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f4;
  border: 1px solid #ffffff30;
}

.footer-brand .brand-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

/* Mobile-only match search and quick access to the bet slip */ .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-search-toggle {
  display: none;
}

.mobile-search[hidden] {
  display: none!important;
}

@media(max-width:700px) {
  .toolbar-actions {
    gap: 5px;
  }

  .mobile-search-toggle {
    display: inline-grid;
    width: 33px;
    height: 31px;
    place-items: center;
    border: 1px solid #4a554d;
    border-radius: 4px;
    background: #232a25;
    color: #f0d839;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-search-toggle[aria-expanded="true"] {
    border-color: #e4ce2a;
    background: #33422c;
  }

  .mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    padding: 6px;
    border: 1px solid #454f47;
    border-radius: 5px;
    background: #1c211e;
  }

  .mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f2f4f1;
    font: 13px Manrope,Arial,sans-serif;
  }

  .mobile-search input::placeholder {
    color: #8d9990;
  }

  .mobile-search button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    background: #303832;
    color: #d6dfd7;
    font-size: 21px;
  }
}

/* Larger Turkish match board and per-league market selector. */ @media(min-width:791px) {
  .match-group {
    margin-top: 9px;
    border-radius: 5px;
  }

  .group-head {
    display: grid;
    grid-template-columns: minmax(190px,1fr) 174px 145px 142px 36px;
    gap: 6px;
    min-height: 44px;
    padding: 6px 11px;
    background: #242824;
    color: #e8ece7;
  }

  .group-league-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  .group-league-title .flag {
    flex: none;
    font-size: 15px;
  }

  .group-league-title b {
    overflow: hidden;
    color: #e6ebe6;
    font: 700 10px var(--mono);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .group-column-label {
    color: #c8d0ca;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
  }

  .group-column-label small {
    display: block;
    margin-top: 3px;
    color: #9aa69d;
    font: 8px var(--mono);
  }

  .market-picker {
    position: relative;
    min-width: 0;
  }

  .market-picker-trigger {
    display: flex;
    width: 100%;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #444d46;
    border-radius: 4px;
    background: #1d221f;
    color: #f0d83a;
    text-align: left;
    font-size: 9px;
    font-weight: 800;
  }

  .market-picker-trigger b {
    font-size: 14px;
    line-height: 1;
  }

  .market-picker.open .market-picker-trigger {
    border-color: #e0c82b;
  }

  .market-picker-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 20;
    display: none;
    width: 225px;
    padding: 5px;
    border: 1px solid #3b423d;
    border-radius: 4px;
    background: #101211;
    box-shadow: 0 8px 24px #0009;
  }

  .market-picker.open .market-picker-menu {
    display: grid;
  }

  .market-menu-option {
    display: flex;
    min-height: 31px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #cbd2cc;
    text-align: left;
    font-size: 10px;
  }

  .market-menu-option:hover,.market-menu-option.selected {
    background: #242a25;
    color: #f3dc2a;
  }

  .market-radio {
    width: 14px;
    height: 14px;
    flex: none;
    border: 1px solid #89928b;
    border-radius: 50%;
  }

  .market-menu-option.selected .market-radio {
    border: 4px solid #e2ca2b;
  }

  .match {
    min-height: 76px;
    padding: 10px 11px;
  }

  .match-meta {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .team-pair .team {
    font-size: 12px;
    line-height: 1.3;
  }

  .team-pair .score {
    font-size: 13px;
  }

  .odd {
    width: 51px;
    min-width: 51px;
    height: 44px;
  }

  .odd span {
    font-size: 8px;
  }

  .odd b {
    font-size: 12px;
  }

  .total-line {
    font-size: 9px;
  }

  .btts-pick {
    width: 70px;
    height: 44px;
  }

  .btts-pick span {
    font-size: 8px;
  }

  .btts-pick strong {
    font-size: 12px;
  }
}

@media(min-width:701px) and (max-width:1000px) {
  .group-head, .match {
    grid-template-columns: minmax(140px,1fr) 150px 125px 112px 27px;
    gap: 4px;
  }

  .market-picker-trigger {
    padding: 4px 5px;
    font-size: 8px;
  }

  .odd {
    width: 43px;
    min-width: 43px;
  }

  .btts-pick {
    width: 52px;
  }
}

@media(max-width:790px) {
  .match-group {
    margin-top: 7px;
  }

  .group-head {
    display: flex;
    min-height: 38px;
    gap: 5px;
    padding: 5px 7px;
  }

  .group-league-title {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .group-league-title .flag {
    font-size: 13px;
  }

  .group-league-title b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
  }

  .group-column-label {
    display: none;
  }

  .market-picker {
    position: relative;
    width: 126px;
    flex: none;
  }

  .market-picker-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 5px;
    border: 1px solid #414941;
    border-radius: 3px;
    background: #1c211e;
    color: #eed734;
    font-size: 8px;
  }

  .market-picker-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    display: none;
    width: 200px;
    padding: 4px;
    border: 1px solid #3b423d;
    background: #101211;
    box-shadow: 0 6px 18px #0009;
  }

  .market-picker.open .market-picker-menu {
    display: grid;
  }

  .market-menu-option {
    display: flex;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #d2d8d3;
    text-align: left;
    font-size: 9px;
  }

  .market-menu-option.selected {
    color: #f3dc2a;
  }

  .market-radio {
    width: 13px;
    height: 13px;
    flex: none;
    border: 1px solid #8b958d;
    border-radius: 50%;
  }

  .market-menu-option.selected .market-radio {
    border: 4px solid #e2ca2b;
  }
}

@media(max-width:790px) {
  .match, .match-details>summary.match {
    position: relative;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    min-height: 0;
    padding: 12px 10px 11px;
  }

  .match-teams {
    min-width: 0;
    padding-right: 25px;
  }

  .match-meta {
    margin-bottom: 7px;
    font-size: 9px;
    gap: 7px;
    flex-wrap: wrap;
  }

  .team-pair {
    align-items: center;
    gap: 12px;
  }

  .teams {
    gap: 6px;
  }

  .team-pair .team {
    font-size: 12px;
    line-height: 1.35;
  }

  .team-pair .score {
    min-width: 24px;
    font-size: 13px;
    line-height: 1.4;
  }

  .odds-set {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    min-height: 42px;
  }

  .odd {
    width: 64px;
    min-width: 64px;
    height: 42px;
    border-radius: 4px;
  }

  .odd span {
    font-size: 9px;
  }

  .odd b {
    font-size: 12px;
  }

  .total-line {
    min-width: 32px;
    font-size: 10px;
  }

  .match-expand-cue {
    position: absolute;
    top: 14px;
    right: 9px;
    font-size: 9px;
  }

  .group-head {
    min-height: 43px;
    padding: 7px;
  }

  .group-league-title b {
    font-size: 9px;
  }

  .market-picker {
    width: 122px;
  }

  .market-picker-trigger {
    min-height: 32px;
    font-size: 9px;
  }
}

@media(min-width:791px) {
}

@media(max-width:790px) {
}

@media(max-width:380px) {
  .match, .match-details>summary.match {
    padding-right: 7px;
    padding-left: 7px;
  }

  .odd {
    width: 58px;
    min-width: 58px;
  }

  .total-line {
    min-width: 27px;
  }

  .match-expand-cue {
    right: 6px;
  }
}

/* Account and admin panels use the same charcoal, green, and gold palette. */
.auth-backdrop {
  background: rgb(7 10 7 / 84%);
}

.auth-dialog, .auth-dialog.account-open {
  border-color: #3c473b;
  background: linear-gradient(145deg, #20271f, #151815);
  color: #eef1e9;
}

.auth-dialog .auth-eyebrow, .auth-dialog .auth-switch {
  color: #f4d33d;
}

.auth-dialog .auth-description, .auth-dialog .auth-note, .auth-dialog form label, .auth-dialog > div > label, .auth-dialog .profile-card-label, .auth-dialog .profile-card p, .auth-dialog .account-page-heading p, .auth-dialog .admin-empty, .auth-dialog .admin-selected span, .auth-dialog .admin-user-main small, .auth-dialog .bets-empty, .auth-dialog .bet-history-selections span, .auth-dialog .bet-history-bottom {
  color: #a9b2a6;
}

.auth-dialog .auth-close, .auth-dialog .account-close {
  border-color: #465244;
  background: #262e25;
  color: #e9eee4;
}

.auth-dialog input {
  border-color: #3e493d;
  background: #131713;
  color: #f2f4ed;
}

.auth-dialog input:focus {
  border-color: #39d353;
  box-shadow: 0 0 0 3px rgb(57 211 83 / 16%);
}

.auth-dialog .auth-submit {
  background: #e6c92e;
  color: #171a13;
}

.auth-dialog .auth-submit:hover {
  filter: brightness(1.08);
}

.auth-dialog .account-id-row, .auth-dialog .admin-search-form, .auth-dialog .admin-results, .auth-dialog .profile-card, .auth-dialog .admin-credit-form, .auth-dialog .bet-history-item {
  border-color: #384337;
  background: #1a2019;
}

.auth-dialog .account-id-row code, .auth-dialog .admin-selected code, .auth-dialog .profile-balance-card strong, .auth-dialog .bet-history-heading h3, .auth-dialog .bets-empty b, .auth-dialog .bet-history-bottom b, .auth-dialog .admin-user-balance {
  color: #f0d33b;
}

.auth-dialog .account-id-row button, .auth-dialog .admin-search-form button, .auth-dialog .bet-history-heading button {
  border-color: #4a5a3d;
  background: #253323;
  color: #dce94a;
}

.auth-dialog .account-id-row button:hover, .auth-dialog .admin-search-form button:hover, .auth-dialog .bet-history-heading button:hover {
  background: #30432c;
}

.auth-dialog .profile-avatar {
  border-color: #65753a;
  background: linear-gradient(145deg, #344626, #1d271b);
  color: #f0d33b;
}

.auth-dialog .profile-status {
  color: #b2c5af;
}

.auth-dialog .profile-status i {
  background: #39d353;
  box-shadow: 0 0 9px rgb(57 211 83 / 38%);
}

.auth-dialog .admin-user-row {
  border-bottom-color: #303a2f;
  color: #eef1e9;
}

.auth-dialog .admin-user-row:hover, .auth-dialog .admin-user-row.selected {
  background: #263323;
}

.auth-dialog .admin-selected, .auth-dialog .bet-history-selections {
  border-color: #354134;
}

.auth-dialog .bet-history-top, .auth-dialog .bet-status {
  color: #e9eee4;
}

.auth-dialog .bet-history-item {
  background: #1d251d;
}

.auth-dialog .bet-status {
  background: #30382c;
}

.auth-dialog .bet-status.won {
  background: #1d3a22;
  color: #7ee38c;
}

.auth-dialog .bet-status.lost {
  background: #392520;
  color: #f1a28d;
}

.auth-dialog .admin-wallet-debit, .auth-dialog .admin-wallet-clear {
  border-color: #805044;
  background: #30211d;
  color: #f0ad91;
}

.auth-dialog .admin-success {
  border-color: #397746;
  background: #1b3020;
  color: #a9e8ad;
}

.auth-dialog :focus-visible {
  outline: 2px solid #e6c92e;
  outline-offset: 2px;
}
/* Coupon panel: one source of truth for desktop and mobile layout. */
#kupon {
  min-width: 0;
}

#kupon.slip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #394139;
  border-radius: 4px;
  background: #1b1d1d;
  color: #e9ecea;
  box-shadow: none;
}

#kupon .slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  border-bottom: 2px solid #e6c522;
  background: #252828;
}

#kupon .slip-head h2 {
  margin: 0;
  color: #f0f2ef;
  font: 700 16px var(--barlow);
  letter-spacing: .04em;
  text-transform: uppercase;
}

#kupon .slip-count {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: #e6c522;
  color: #171a16;
  font: 500 9px var(--mono);
  vertical-align: 2px;
}

#kupon .slip-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

#kupon .slip-menu {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #4d574f;
  border-radius: 3px;
  background: #292e2b;
  color: #d8dfd9;
  font: 9px var(--mono);
  font-weight: 700;
}

#kupon .slip-menu:hover {
  border-color: #e4cc2a;
  color: #f4dc3e;
}

#kupon .slip-types {
  display: flex;
  gap: 3px;
  padding: 9px 11px;
  border-bottom: 1px solid #363e39;
  background: #1b1f1d;
}

#kupon .slip-type {
  min-height: 30px;
  padding: 7px 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #acb6ae;
  font-size: 9px;
  font-weight: 800;
}

#kupon .slip-type.active {
  background: #343a36;
  color: #f0d838;
}

#kupon #picks {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#kupon .empty {
  padding: 28px 12px;
  text-align: center;
}

#kupon .empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #26382a;
  color: #c6e66a;
  font-size: 19px;
}

#kupon .empty b {
  color: #e9ecea;
  font-size: 10px;
}

#kupon .empty p {
  margin: 6px 0 0;
  color: #a5afa7;
  font-size: 9px;
  line-height: 1.6;
}

#kupon .selection {
  padding: 12px 14px;
  border-bottom: 1px solid #343d37;
}

#kupon .selection-top {
  display: flex;
  justify-content: space-between;
  color: #a5afa7;
  font: 8px var(--mono);
}

#kupon .selection-top button {
  padding: 5px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #a5afa7;
  font: 700 8px var(--mono);
  cursor: pointer;
}

#kupon .selection-name {
  margin: 9px 0 4px;
  color: #e8ede9;
  font-size: 10px;
  font-weight: 800;
}

#kupon .selection-market {
  color: #b4beb6;
  font-size: 9px;
}

#kupon .selection-odd {
  float: right;
  color: #a7e56c;
  font: 500 11px var(--mono);
}

#kupon .stake-wrap {
  padding: 13px;
}

#kupon .stake-label,
#kupon .payout {
  display: flex;
  justify-content: space-between;
  color: #b6b8af;
  font-size: 9px;
}

#kupon .stake-label {
  margin-bottom: 6px;
}

#kupon .stake-input {
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #484a42;
  border-radius: 4px;
  outline: 0;
  background: #282b27;
  color: #f1f2ec;
  font: 500 11px var(--mono);
}

#kupon .stake-input:focus {
  border-color: #e6c522;
}

#kupon .payout {
  margin: 11px 0 12px;
}

#kupon .payout b {
  color: #a7e56c;
  font: 500 12px var(--mono);
}

#kupon .submit {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: #e6c522;
  color: #171a16;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#kupon .submit:disabled {
  background: #45463f;
  color: #a1a39b;
  cursor: not-allowed;
}

#kupon .slip-foot {
  flex: 0 0 auto;
  padding: 0 13px 13px;
  color: #a5afa7;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

#kupon .mobile-slip-close {
  display: none;
}

@media (min-width: 791px) {
  .layout > #kupon.slip {
    top: 10px;
    align-self: start;
    width: 100%;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
  }
}

@media (max-width: 790px) {
  #kupon.slip {
    display: none;
  }

  #kupon.slip.coupon-open {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: flex;
    width: 100%;
    height: auto;
    max-height: 84dvh;
    padding: 0;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 35px #0008;
  }

  #kupon.slip.coupon-open::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: #05080bb8;
    content: "";
  }

  #kupon .mobile-slip-close {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #4e5b4f;
    border-radius: 50%;
    background: #2a302b;
    color: #f2f4f1;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-coupon-button {
    position: fixed;
    z-index: 35;
    right: 16px;
    bottom: 18px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid #7fe6ed;
    border-radius: 50%;
    background: #43d2df;
    color: #06252a;
    box-shadow: 0 5px 20px #0008;
  }

  .mobile-coupon-button svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-coupon-button span {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #131c27;
    border-radius: 20px;
    background: #f0d52c;
    color: #161a16;
    font: 700 10px var(--mono);
  }
}

/* Mobile match rows: team and score on the left, selected market odds on the right. */
.odd-label-mobile,
.mobile-market-set {
  display: none;
}

@media (max-width: 790px) {
  .match,
  .match-details > summary.match {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    min-height: 88px;
    padding: 9px 8px;
  }

  .match-teams {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 0;
  }

  .match-meta {
    gap: 5px;
    margin-bottom: 7px;
    font-size: 9px;
    line-height: 1.3;
  }

  .team-pair {
    gap: 8px;
  }

  .team-pair .teams {
    min-width: 0;
    flex: 1;
  }

  .team-pair .team {
    font-size: 14px;
    line-height: 1.3;
  }

  .team-pair .score {
    min-width: 24px;
    padding-left: 7px;
    border-left: 1px solid #080a08;
    color: #f1d629;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .match > .odds-set:nth-child(2),
  .match > .odds-set:nth-child(3),
  .match > .btts-set {
    display: none;
  }

  .match > .mobile-market-set {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: stretch;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
  }

  .mobile-market-set .odd,
  .mobile-market-set .btts-pick {
    display: flex;
    width: clamp(48px, 16vw, 68px);
    min-width: clamp(48px, 16vw, 68px);
    height: 58px;
    flex: 0 1 clamp(48px, 16vw, 68px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 2px;
    border: 0;
    border-radius: 6px;
    background: #111311;
    color: #d8ddd7;
  }

  .mobile-market-set .odd-label-desktop {
    display: none;
  }

  .mobile-market-set .odd-label-mobile {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #c5cac4;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-market-set .odd b,
  .mobile-market-set .btts-pick strong {
    color: #e9ece7;
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-market-set .btts-pick span {
    max-width: 100%;
    overflow: hidden;
    color: #c5cac4;
    font: 8px var(--mono);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-market-set .odd.chosen,
  .mobile-market-set .btts-pick.chosen {
    box-shadow: inset 0 -4px #527e35;
    background: #101210;
    color: #fff;
  }

  .mobile-market-set .market-empty {
    align-self: center;
    color: #e9c82c;
    font-size: 10px;
    white-space: nowrap;
  }

  .match-expand-cue {
    top: 4px;
    right: 6px;
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .match,
  .match-details > summary.match {
    column-gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .team-pair .team {
    font-size: 12px;
  }

  .mobile-market-set {
    gap: 3px;
  }

  .mobile-market-set .odd,
  .mobile-market-set .btts-pick {
    width: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }
}

/* Mobile coupon: use one viewport-sized panel opened by the ticket button. */
@media (max-width: 790px) {
  body.mobile-slip-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  #kupon.slip.coupon-open {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #171a17;
    box-shadow: none;
  }

  #kupon.slip.coupon-open::before {
    content: none;
  }

  #kupon .slip-head {
    min-height: 72px;
    padding: 14px 20px;
  }

  #kupon .slip-head h2 {
    font-size: 20px;
  }

  #kupon .mobile-slip-close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 6px;
    font-size: 30px;
  }

  #kupon .slip-types {
    min-height: 68px;
    gap: 8px;
    padding: 12px 18px;
  }

  #kupon .slip-type {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 16px;
  }

  #kupon #picks {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #kupon .selection {
    padding: 18px 20px;
  }

  #kupon .selection-name {
    font-size: 17px;
  }

  #kupon .selection-market {
    font-size: 15px;
  }

  #kupon .selection-odd {
    font-size: 17px;
  }

  #kupon .bet-message {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid #714349;
    background: #392327;
    color: #ffb5bc;
    font-size: 14px;
    line-height: 1.45;
  }

  #kupon .bet-message[hidden] {
    display: none;
  }

  #kupon .stake-wrap {
    flex: 0 0 auto;
    padding: 16px 20px 12px;
    border-top: 1px solid #343b35;
    background: #20251f;
  }

  #kupon .stake-label,
  #kupon .payout {
    font-size: 13px;
  }

  #kupon .stake-input {
    height: 52px;
    font-size: 17px;
  }

  #kupon .payout b {
    font-size: 17px;
  }

  #kupon .submit {
    min-height: 62px;
    font-size: 18px;
  }

  #kupon .slip-foot {
    flex: 0 0 auto;
    padding: 9px 16px 12px;
    font-size: 11px;
  }

  body.mobile-slip-open .mobile-coupon-button,
  #mobileCouponButton[hidden],
  .nav a[href="#kupon"] {
    display: none;
  }

  .mobile-coupon-button {
    position: fixed;
    z-index: 35;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid #7fe6ed;
    border-radius: 50%;
    background: #43d2df;
    color: #06252a;
    box-shadow: 0 5px 20px #0008;
  }
}

/* Account bet history: expandable ticket cards with a clear settlement state. */
.account-bets .bet-history-item {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #39483a;
  border-radius: 8px;
  background: #1c241e;
}

.bet-history-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.bet-history-summary::-webkit-details-marker {
  display: none;
}

.bet-card-date {
  color: #aab5a8;
  font-size: 11px;
}

.bet-history-summary .bet-status {
  justify-self: end;
  padding: 5px 9px;
  background: #394332;
  color: #f0d629;
  font-size: 10px;
  letter-spacing: .04em;
}

.bet-history-summary .bet-status.won {
  background: #194632;
  color: #78e0a1;
}

.bet-history-summary .bet-status.lost {
  background: #542b2c;
  color: #ff9a91;
}

.bet-card-type {
  color: #f1f4ef;
  font-size: 14px;
}

.bet-card-caret {
  color: #c4d12f;
  font-size: 19px;
  transition: transform .16s ease;
}

.bet-history-item[open] .bet-card-caret {
  transform: rotate(180deg);
}

.bet-history-content {
  padding: 0 15px 14px;
  border-top: 1px solid #39483a;
}

.bet-history-content .bet-history-selections {
  margin: 0;
  padding: 4px 0;
  border: 0;
}

.bet-leg-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bet-leg {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #303b32;
}

.bet-leg-number {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #29342a;
  color: #c9d633;
  font-size: 10px;
  font-weight: 800;
}

.bet-leg-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bet-leg-copy strong {
  overflow-wrap: anywhere;
  color: #edf2eb;
  font-size: 12px;
  line-height: 1.35;
}

.bet-leg-copy span {
  color: #a8b2a7;
  font-size: 11px;
}

.bet-leg-odd {
  color: #c8d933;
  font: 700 13px var(--mono);
}

.bet-history-content .bet-history-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #39483a;
}

.bet-history-bottom > div {
  display: grid;
  gap: 5px;
}

.bet-history-content .bet-history-bottom span {
  color: #aab5a8;
  font-size: 10px;
}

.bet-history-content .bet-history-bottom b {
  color: #f2d735;
  font: 700 13px var(--mono);
}

.bet-history-note {
  margin: 12px 0 0;
  color: #aab5a8;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .bet-history-summary {
    padding: 13px 12px;
  }

  .bet-card-date {
    font-size: 12px;
  }

  .bet-history-summary .bet-status {
    font-size: 10px;
  }

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

  .bet-history-content {
    padding: 0 12px 13px;
  }

  .bet-leg {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 13px 0;
  }

  .bet-leg-copy strong {
    font-size: 14px;
  }

  .bet-leg-copy span {
    font-size: 12px;
  }

  .bet-leg-odd {
    font-size: 14px;
  }

  .bet-history-content .bet-history-bottom span {
    font-size: 11px;
  }

  .bet-history-content .bet-history-bottom b {
    font-size: 13px;
  }
}
/* Masaüstünde sabit ana pazarlar zaten tabloda görünüyor; menüde tekrar etmesin. */
@media (min-width: 791px) {
  .market-menu-option[data-market-choice="match_result"],
  .market-menu-option[data-market-choice="total_goals"] {
    display: none;
  }

  .group-column-label .result-outcome-labels {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    white-space: nowrap;
    font-size: 7px;
  }

  .market-trigger-mobile {
    display: none;
  }

  .odd-label-desktop {
    max-width: 100%;
    overflow: hidden;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(5.5px, 0.45vw, 7px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    text-overflow: clip;
    white-space: nowrap;
  }
}

@media (max-width: 790px) {
  .group-column-label .result-outcome-labels {
    display: none;
  }

  .market-trigger-desktop {
    display: none;
  }
}

/* Account center follows the sportsbook charcoal and gold palette. */
.auth-dialog.account-open {
  border-color: #343939;
  background: #111313;
  color: #e9ecea;
}

.auth-dialog.account-open .account-page-heading {
  border-bottom-color: #343939;
}

.auth-dialog.account-open .account-page-heading p,
.auth-dialog.account-open .profile-card p,
.auth-dialog.account-open .bet-card-date,
.auth-dialog.account-open .bet-leg-copy span,
.auth-dialog.account-open .bet-history-bottom,
.auth-dialog.account-open .bet-history-note {
  color: #a5aaa6;
}

.auth-dialog.account-open .profile-card,
.auth-dialog.account-open .account-id-row,
.auth-dialog.account-open .bet-history-item {
  border-color: #343939;
  background: #1b1d1d;
}

.auth-dialog.account-open .account-id-row code,
.auth-dialog.account-open .bet-history-content,
.auth-dialog.account-open .bet-history-content .bet-history-bottom {
  border-color: #343939;
}

.auth-dialog.account-open .profile-card-label,
.auth-dialog.account-open .profile-balance-card strong,
.auth-dialog.account-open .bet-history-heading h3,
.auth-dialog.account-open .bet-history-content .bet-history-bottom b,
.auth-dialog.account-open .bet-leg-odd,
.auth-dialog.account-open .bet-card-caret {
  color: #e6c522;
}

.auth-dialog.account-open .profile-avatar,
.auth-dialog.account-open .account-close,
.auth-dialog.account-open .account-id-row button,
.auth-dialog.account-open .bet-history-heading button,
.auth-dialog.account-open .bet-leg-number {
  border-color: #454a40;
  background: #252828;
  color: #e6c522;
}

.auth-dialog.account-open .profile-status i {
  background: #39d353;
  box-shadow: 0 0 8px rgb(57 211 83 / 30%);
}

.auth-dialog.account-open .bet-history-content .bet-history-selections {
  display: block;
  background: transparent;
}

.auth-dialog.account-open .bet-leg-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.auth-dialog.account-open .bet-leg {
  width: 100%;
  border-bottom-color: #343939;
}

/* Kupon panelindeki açık/sonuçlanan bahisler */
#kupon .slip-coupon-view {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

#kupon .slip-panel-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

#kupon .slip-panel-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #aeb7b0;
  font: 700 12px var(--barlow);
  text-transform: uppercase;
  cursor: pointer;
}

#kupon .slip-panel-tab.active {
  border-bottom-color: #e6c522;
  color: #f0d838;
}

#kupon .slip-panel-tab .slip-count {
  width: 18px;
  height: 18px;
  margin: 0 0 0 2px;
}

#kupon .slip-bets-view {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #171a18;
}

#kupon .slip-bet-filters {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
  border-bottom: 1px solid #343a36;
  scrollbar-width: thin;
}

#kupon .slip-bet-filter,
#kupon .slip-bet-result-filter {
  display: inline-flex;
  min-height: 29px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #b5beb7;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

#kupon .slip-bet-filter span {
  color: #838d86;
  font: 9px var(--mono);
}

#kupon .slip-bet-filter.active,
#kupon .slip-bet-result-filter.active {
  border-color: #555844;
  background: #30372f;
  color: #f0d838;
}

#kupon .slip-bet-subfilters {
  display: flex;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid #343a36;
}

#kupon .slip-bet-subfilters[hidden] {
  display: none;
}

#kupon .slip-bet-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 9px;
  overscroll-behavior: contain;
}

#kupon .slip-bet-card {
  margin: 0 0 9px;
  border-color: #343a36;
  border-radius: 4px;
  background: #1d211e;
}

#kupon .slip-bet-card .bet-history-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  padding: 10px;
}

#kupon .slip-bet-card .bet-card-date {
  font: 10px var(--mono);
}

#kupon .slip-bet-card .bet-status {
  padding: 4px 7px;
  border-radius: 3px;
  background: #34382d;
  color: #ecd32c;
  font-size: 9px;
  font-weight: 900;
}

#kupon .slip-bet-card .bet-status.won {
  background: #183c29;
  color: #5bd782;
}

#kupon .slip-bet-card .bet-status.lost {
  background: #481e22;
  color: #ff5964;
}

#kupon .slip-bet-card .bet-card-type {
  font-size: 12px;
}

#kupon .slip-bet-card .bet-history-content {
  padding: 0 10px 10px;
}

#kupon .slip-bet-card .bet-leg {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 9px 0;
}

#kupon .slip-bet-card .bet-leg-result {
  align-self: start;
  padding-top: 1px;
  font-size: 14px;
  line-height: 1;
}

#kupon .slip-bet-card .bet-leg-copy {
  gap: 3px;
}

#kupon .slip-bet-card .bet-leg-copy strong {
  font-size: 11px;
}

#kupon .slip-bet-card .bet-leg-copy > span:not(.bet-leg-live) {
  color: #d1d6d1;
  font-size: 10px;
}

#kupon .slip-bet-card .bet-leg-live {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: #b4beb7;
  font: 9px var(--mono);
}

#kupon .slip-bet-card .bet-leg-live b {
  color: #f0d838;
  font-weight: 800;
}

#kupon .slip-bet-card .bet-leg-odd {
  font-size: 10px;
}

#kupon .slip-ticket-meta {
  display: grid;
  gap: 5px;
  padding: 8px 0;
  border-top: 1px solid #343a36;
  color: #b5beb7;
  font: 9px var(--mono);
  overflow-wrap: anywhere;
}

#kupon .slip-bet-card .bet-history-content .bet-history-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 8px;
}

#kupon .slip-bet-card .bet-history-content .bet-history-bottom span {
  font-size: 9px;
}

#kupon .slip-bet-card .bet-history-content .bet-history-bottom b {
  font-size: 10px;
}

#kupon .slip-bet-card .bet-history-note {
  margin-top: 7px;
  font-size: 9px;
}

#kupon .slip-bets-view .bets-empty {
  display: grid;
  min-height: 130px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px 12px;
  color: #aab3ac;
  text-align: center;
  font-size: 11px;
}

#kupon .slip-bets-login {
  padding: 8px 12px;
  border: 1px solid #555844;
  border-radius: 4px;
  background: #30372f;
  color: #f0d838;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 790px) {
  #kupon .slip-panel-tab {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 13px;
  }

  #kupon .slip-bet-filter {
    min-height: 36px;
    font-size: 10px;
  }

  #kupon .slip-bet-list {
    padding: 10px;
  }

  #kupon .slip-bet-card .bet-leg-copy strong {
    font-size: 14px;
  }

  #kupon .slip-bet-card .bet-leg-copy > span:not(.bet-leg-live) {
    font-size: 12px;
  }

  #kupon .slip-bet-card .bet-leg-live {
    font-size: 11px;
  }
}

/* Final account/admin layout overrides: compact account center, no duplicate bet/balance panel. */
.auth-backdrop:has(.auth-dialog.account-open) {
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
}

.auth-dialog.account-open {
  width: min(100%, 700px);
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 36px);
  margin: auto;
  padding: 24px;
  border: 1px solid #394139;
  border-radius: 10px;
  overflow: auto;
}

.auth-dialog.account-open .auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-dialog.account-open .account-page-heading {
  max-width: none;
  margin: 0 0 16px;
  padding: 0 44px 13px 0;
}

.auth-dialog.account-open .account-page-heading h2 {
  font-size: 27px;
}

.auth-dialog.account-open .profile-view {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.auth-dialog.account-open .profile-head {
  padding: 0 0 4px;
}

.auth-dialog.account-open .profile-avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 20px;
}

.auth-dialog.account-open .profile-card {
  padding: 12px;
}

.auth-dialog.account-open .profile-card p {
  font-size: 11px;
}

.password-card h3 {
  margin: 5px 0 4px;
  font: 700 20px "Barlow Condensed", sans-serif;
}

.password-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin-top: 8px;
}

.password-fields label {
  margin: 9px 0 5px !important;
}

.password-fields input {
  height: 39px;
}

.password-card .auth-submit {
  margin-top: 12px;
}

.password-success {
  margin: 10px 0 0;
}

.auth-dialog.admin-open {
  width: min(100%, 620px);
  padding: 24px;
}

.auth-dialog.admin-open .admin-view h2 {
  margin: 5px 0;
  font-size: 27px;
}

.auth-dialog.admin-open .admin-view .auth-description {
  margin-bottom: 12px;
}

.auth-dialog.admin-open .admin-search-form {
  margin-bottom: 5px;
  padding: 8px;
}

.admin-search-hint {
  display: block;
  margin: 0 2px 10px;
  color: #a9b2a6;
  font-size: 10px;
}

.auth-dialog.admin-open .admin-results {
  max-height: 180px;
}

.auth-dialog.admin-open .admin-credit-form {
  margin-top: 10px;
  padding: 11px;
}

.admin-amount-shortcuts {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.admin-amount-shortcuts button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #42483a;
  border-radius: 5px;
  background: #252920;
  color: #f0d33b;
  font-size: 11px;
  cursor: pointer;
}

.admin-amount-shortcuts button:hover {
  border-color: #e6c92e;
  background: #303222;
}

/* Compact coupon / bet-history tabs, matching the requested ticket layout. */
#kupon .slip-head {
  min-height: 48px;
  padding: 0 8px 0 0;
  gap: 6px;
  border-bottom: 1px solid #4a4e3d;
  background: #20241f;
}

#kupon .slip-panel-tabs {
  align-self: stretch;
  gap: 0;
}

#kupon .slip-panel-tab {
  min-width: 0;
  flex: 1 1 50%;
  padding: 9px 8px;
  border-bottom: 2px solid transparent;
  color: #bec3bb;
  font: 500 12px var(--barlow);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

#kupon .slip-panel-tab.active {
  border-bottom-color: #f0d838;
  color: #f0d838;
}

#kupon .slip-panel-tab .slip-count {
  width: auto;
  height: auto;
  min-width: 18px;
  margin: 0 0 0 3px;
  padding: 2px 5px;
  border-radius: 10px;
  background: #3c4b2a;
  color: #f0d838;
  font: 700 9px var(--mono);
  vertical-align: middle;
}

#kupon .slip-bets-view {
  background: #181b18;
}

#kupon .slip-bet-filters {
  display: flex;
  gap: 2px;
  margin: 10px 12px;
  padding: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #222b1b;
  scrollbar-width: none;
}

#kupon .slip-bet-filter {
  min-width: 0;
  min-height: 30px;
  flex: 1 1 0;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #d1d5cc;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

#kupon .slip-filter-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#kupon .slip-bet-filter span:not(.slip-filter-label) {
  flex: 0 0 auto;
  color: inherit;
  font: 9px var(--mono);
  opacity: .78;
}

#kupon .slip-bet-filter.active {
  background: #5d8338;
  color: #f4dc3e;
}

#kupon .slip-bet-subfilters {
  padding: 0 12px 8px;
}

@media (max-width: 790px) {
  #kupon .slip-head {
    min-height: 54px;
    padding-right: 7px;
  }

  #kupon .slip-panel-tab {
    min-height: 52px;
    padding-inline: 5px;
    font-size: 13px;
  }

  #kupon .slip-head-actions .slip-menu {
    min-height: 30px;
    padding-inline: 7px;
    font-size: 8px;
  }

  #kupon .slip-bet-filters {
    margin: 10px 8px;
    padding: 4px;
  }

  #kupon .slip-bet-filter {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 10px;
  }
}

@media(max-width:700px) {
  .auth-backdrop:has(.auth-dialog.account-open) {
    display: grid;
    padding: 0;
  }

  .auth-dialog.account-open {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    padding: 22px 16px;
    border: 0;
    border-radius: 0;
  }

  .auth-dialog.account-open .auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .password-fields {
    grid-template-columns: 1fr;
  }

  .auth-dialog.admin-open {
    width: min(100%, 620px);
    padding: 20px 16px;
  }
}

/* Canlı oran hareket yönü */
.odd-trend {
  display: inline-block;
  margin-left: 4px;
  font-size: .72em;
  font-style: normal;
  vertical-align: .12em;
}
.odd-trend.up { color: #35d39a; }
.odd-trend.down { color: #ff6378; }

/* Oran hareketi: kısa süreli yeşil yükseliş / kırmızı düşüş vurgusu */
.odd.odd-moved-up,
.all-market-pick.odd-moved-up,
.btts-pick.odd-moved-up {
  border-color: #35d39a !important;
  background-color: rgba(53, 211, 154, .18) !important;
  animation: odd-move-up 1.1s ease-out;
}

.odd.odd-moved-down,
.all-market-pick.odd-moved-down,
.btts-pick.odd-moved-down {
  border-color: #ff6378 !important;
  background-color: rgba(255, 99, 120, .18) !important;
  animation: odd-move-down 1.1s ease-out;
}

@keyframes odd-move-up {
  0% { box-shadow: 0 0 0 3px rgba(53, 211, 154, .32); }
  100% { box-shadow: 0 0 0 0 rgba(53, 211, 154, 0); }
}

@keyframes odd-move-down {
  0% { box-shadow: 0 0 0 3px rgba(255, 99, 120, .32); }
  100% { box-shadow: 0 0 0 0 rgba(255, 99, 120, 0); }
}

/* Mobile quick bar: search on the left, coupon/bets tabs on the right. */
.mobile-quickbar {
  display: none;
}

@media (max-width: 790px) {
  .mobile-quickbar {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 48px;
    align-items: stretch;
    gap: 10px;
    padding: 5px 10px;
    border-bottom: 1px solid #3e473e;
    background: #1c211e;
  }

  .mobile-quick-search {
    display: inline-flex;
    min-width: 74px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #454f47;
    border-radius: 5px;
    background: #252b26;
    color: #e5cc2b;
    font: 700 12px var(--barlow);
    cursor: pointer;
  }

  .mobile-quick-search span:first-child {
    font: 24px/1 Arial, sans-serif;
  }

  .mobile-quick-search[aria-expanded="true"] {
    border-color: #e6c522;
    background: #30392b;
  }

  .mobile-quick-tabs {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    min-width: 0;
    padding: 3px;
    border: 1px solid #353e37;
    border-radius: 6px;
    background: #171b18;
  }

  .mobile-quick-tab {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #c0c8c1;
    font: 700 12px var(--barlow);
    cursor: pointer;
  }

  .mobile-quick-tab.active {
    background: #35472d;
    color: #f0d838;
  }

  .mobile-quick-tab span {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 9px;
    background: #e6c522;
    color: #171a16;
    font: 500 9px var(--mono);
  }

  .toolbar-actions .mobile-search-toggle,
  .mobile-coupon-button {
    display: none !important;
  }

  .nav a[href="#kupon"] {
    display: none !important;
  }
}
/* Coupon lives behind one ticket button so it never takes match-list space. */
@media (min-width: 791px) {
  .layout {
    grid-template-columns: minmax(145px, 205px) minmax(0, 1fr) !important;
  }

  .layout > .main {
    grid-column: 2;
  }
}

@media (max-width: 790px) {
  #kupon.slip:not(.coupon-open) {
    display: none !important;
  }
}

#kupon.slip.coupon-open {
  position: fixed !important;
  z-index: 1300 !important;
  inset: 0 !important;
  display: flex !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 0 !important;
  flex-direction: column;
  padding: env(safe-area-inset-top) max(0px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px, env(safe-area-inset-left)) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #171a17 !important;
  box-shadow: none !important;
}

/* Mobile match and tournament search dialog. */
.search-modal,
.search-modal[hidden] {
  display: none !important;
}

.visually-hidden {
  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;
}

@media (max-width: 790px) {
  body.search-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .search-modal:not([hidden]) {
    position: fixed;
    z-index: 1600;
    inset: 0;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: max(9vh, 74px) 12px max(18px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .76);
  }

  .search-dialog {
    display: flex;
    width: min(100%, 680px);
    max-height: 78dvh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #353a35;
    border-radius: 10px;
    background: #171917;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .48);
  }

  .search-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px 16px;
  }

  .search-input-row input {
    width: 100%;
    min-width: 0;
    height: clamp(58px, 12vw, 82px);
    padding: 0 16px;
    border: 2px solid #454545;
    border-radius: 8px;
    outline: none;
    background: #454545;
    color: #f3f3f3;
    font: 500 clamp(22px, 5vw, 32px) var(--body-font, Arial, sans-serif);
  }

  .search-input-row input:focus {
    border-color: #e6c522;
  }

  .search-input-row input::placeholder {
    color: #b8b8b8;
  }

  .search-input-row > button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #d4d4d4;
    font: 400 42px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .search-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 8px 14px 0;
    border-bottom: 1px solid #353535;
  }

  .search-tabs button {
    min-width: 0;
    min-height: 58px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #080908;
    color: #aaa;
    font: 500 clamp(16px, 4vw, 22px) var(--body-font, Arial, sans-serif);
    cursor: pointer;
  }

  .search-tabs button[aria-selected="true"] {
    border-bottom-color: #e6c522;
    background: #33472c;
    color: #f1d529;
  }

  .search-tabs button span {
    margin-left: 6px;
    color: inherit;
  }

  .search-results {
    min-height: 150px;
    max-height: 56dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 14px 12px;
  }

  .search-prompt {
    display: grid;
    min-height: 150px;
    place-items: center;
    margin: 0;
    padding: 22px;
    color: #ddd;
    text-align: center;
    font-size: clamp(16px, 4vw, 22px);
  }

  .search-result {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid #343634;
    background: transparent;
    color: #eee;
    text-align: left;
    cursor: pointer;
  }

  .search-result:active {
    background: #283326;
  }

  .search-result-icon {
    flex: 0 0 26px;
    font-size: 22px;
    text-align: center;
  }

  .search-result-country {
    font-size: 20px;
    line-height: 1;
  }

  .search-result-main {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
  }

  .search-result-main strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-result-main strong i {
    color: #a4a99f;
    font-style: normal;
  }

  .search-result-main small {
    overflow: hidden;
    color: #a3aaa1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-result-count {
    min-width: 24px;
    color: #e6c522;
    font: 500 13px var(--mono);
    text-align: right;
  }

  .search-result-arrow {
    color: #b4b9b4;
    font-size: 24px;
  }
}

.search-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #444b3c;
  border-radius: 5px;
  background: #20251f;
  color: #e6c522;
  font: 700 11px var(--mono);
}

.search-focus-head .show-more {
  width: auto;
  margin: 0;
  padding: 8px 10px;
}

body.coupon-overlay-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#kupon .slip-coupon-view,
#kupon .slip-bets-view {
  min-height: 0;
  flex: 1 1 auto;
}

#kupon .slip-coupon-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#kupon .slip-bets-view {
  overflow: auto;
  overscroll-behavior: contain;
}

#kupon .mobile-slip-close {
  display: inline-grid !important;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #4e574e;
  border-radius: 50%;
  background: #252b26;
  color: #f2f4f1;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quickbar-ticket {
  display: none;
}

.mobile-coupon-button,
.mobile-coupon-button[hidden] {
  position: fixed !important;
  z-index: 1290 !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  display: grid !important;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid #e6c522;
  border-radius: 50%;
  background: #e6c522;
  color: #171a16;
  box-shadow: 0 5px 20px #0008;
  cursor: pointer;
}

#mobileCouponButton[hidden],
body.coupon-overlay-open .mobile-coupon-button {
  display: none !important;
}

.mobile-coupon-button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-coupon-button span {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #1d241c;
  border-radius: 20px;
  background: #20251f;
  color: #f0d83a;
  font: 700 10px var(--mono);
}

@media (max-width: 790px) {
  .mobile-quick-search {
    flex: 1 1 auto;
  }

  .quickbar-ticket {
    display: grid;
    width: 48px;
    min-width: 48px;
    place-items: center;
    border: 1px solid #59634e;
    border-radius: 6px;
    background: #252b26;
    color: #e6c522;
    cursor: pointer;
  }

  .quickbar-ticket:hover,
  .quickbar-ticket:focus-visible {
    border-color: #e6c522;
    background: #30392b;
  }

  .quickbar-ticket svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 790px) {
  #kupon.slip.coupon-open {
    padding-top: env(safe-area-inset-top) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

/* Final mobile header sizing and logo treatment. */
.brand-logo {
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
}

/* Keep the signed-in name as readable as the existing balance badge. */
#userActions #openAccount {
  max-width: 180px;
  min-height: 36px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid #557044;
  border-radius: 7px;
  background: #19351d;
  color: #f3dd42;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas: "brand account balance" ". admin logout" !important;
    gap: 5px 7px !important;
    height: auto !important;
    min-height: 82px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .header-inner > .brand { grid-area: brand !important; }
  .header-inner > #userActions { display: contents !important; }
  #userActions #openAccount { grid-area: account !important; }
  #userActions #openAdmin { grid-area: admin !important; }
  #userActions #logout { grid-area: logout !important; }
  .header-inner > .balance {
    grid-area: balance !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: min(30vw, 132px) !important;
    min-height: 36px !important;
    padding: 7px 8px !important;
    overflow: hidden !important;
    font: 700 11px/1.2 var(--mono) !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  #headerBalance[hidden] { display: none !important; }
  .header-inner > #guestActions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 38px !important;
  }

  #guestActions[hidden], #userActions[hidden] { display: none !important; }
  #userActions #openAccount {
    justify-self: end !important;
    max-width: min(27vw, 112px) !important;
    min-height: 36px !important;
    padding: 7px 8px !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #userActions #openAdmin,
  #userActions #logout {
    justify-self: end !important;
    min-height: 30px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
  }

  .header-inner > #guestActions {
    grid-area: 2 / 2 / 3 / 4 !important;
    justify-self: end !important;
  }

  #guestActions .button-dark,
  #guestActions .button-lime {
    min-height: 36px !important;
    padding: 8px 11px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  .header-inner > .balance { max-width: 30vw !important; }
  #userActions #openAccount { max-width: 25vw !important; }
}

/* Desktop: keep the coupon visible in the right grid column. */
@media (min-width: 791px) {
  .layout {
    grid-template-columns: minmax(145px, 205px) minmax(0, 1fr) 300px !important;
    align-items: start;
  }

  .layout > .left-sidebar {
    display: block;
    grid-column: 1;
  }

  .layout > .main {
    grid-column: 2;
    min-width: 0;
  }

  .layout > #kupon.slip:not(.coupon-open) {
    position: static !important;
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    align-self: start;
    width: 100%;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
    min-height: 0;
  }

  /* The close control is only for the mobile full-screen coupon. */
  #kupon .mobile-slip-close {
    display: none !important;
  }
}

@media (min-width: 791px) and (max-width: 1199px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  .layout > .left-sidebar {
    display: none;
  }

  .layout > .main {
    grid-column: 1;
  }

  .layout > #kupon.slip:not(.coupon-open) {
    grid-column: 2;
  }
}
