/* Exchange-only header and account-page layout. Betting handlers and routes remain native. */
.exchange-review-classic .exchange-classic-strip {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  color: var(--ex-text);
  background: #070f16;
  border-bottom: 1px solid var(--ex-line);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .25);
}

.exchange-review-classic .exchange-classic-strip__brand {
  display: flex;
  order: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ex-yellow);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
}

.exchange-review-classic .exchange-classic-strip__logo {
  display: block;
  width: 42px;
  height: 34px;
  flex: 0 0 42px;
  border-radius: 3px;
  object-fit: cover;
  object-position: right center;
}

.exchange-review-classic .exchange-classic-strip__mark {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #071017;
  background: var(--ex-yellow);
  border-radius: 3px;
  font-weight: 900;
}

.exchange-review-classic .exchange-classic-strip__sports {
  display: flex;
  order: 1;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
  gap: 3px;
  overflow: auto;
}

.exchange-review-classic .exchange-classic-strip__sports a {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 12px;
  color: #c7d2d9;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.exchange-review-classic .exchange-classic-strip__sports a[aria-current="page"] {
  color: var(--ex-yellow);
  border-bottom-color: var(--ex-yellow);
  font-weight: 700;
}

.exchange-review-classic .exchange-classic-strip__account-actions {
  display: flex;
  order: 3;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.exchange-review-classic .exchange-classic-strip__account-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
  color: #e3edf2;
  background: #0e1b25;
  border: 1px solid #314957;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.exchange-review-classic .exchange-classic-strip__account-link:hover {
  border-color: var(--ex-yellow);
}

.exchange-review-classic .exchange-classic-strip__account-link:focus-visible,
.exchange-review-classic .exchange-classic-strip__my-bets:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.exchange-review-classic .exchange-classic-strip__wallet {
  max-width: 160px;
  color: #111820;
  background: var(--ex-yellow);
  border-color: var(--ex-yellow);
}

.exchange-review-classic .exchange-classic-strip__balance {
  max-width: 90px;
  overflow: hidden;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-review-classic .exchange-classic-strip__my-bets {
  display: inline-flex;
  order: 2;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 38px;
  margin-left: auto;
  padding: 0 14px;
  color: #e3edf2;
  background: #101e28;
  border: 1px solid #314957;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.exchange-review-classic.exchange-auth-signed-out .exchange-classic-strip__my-bets {
  margin-right: 170px;
}

.exchange-review-classic .exchange-sport-icon {
  display: none;
}

/* Keep native login and registration handlers, positioned in the header. */
.exchange-review-classic .exchange-native-header-source,
.exchange-review-classic .exchange-native-header-source .vip-header {
  display: contents !important;
}

.exchange-review-classic .exchange-native-header-source .vip-mobile-brand,
.exchange-review-classic .exchange-native-header-source .vip-header-tagline,
.exchange-review-classic .exchange-native-header-source .vip-header-actions {
  display: none !important;
}

.exchange-review-classic.exchange-auth-signed-out .exchange-native-header-source .vip-header-actions {
  position: fixed !important;
  z-index: 12000 !important;
  top: 8px !important;
  right: 18px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

.exchange-review-classic.exchange-auth-signed-out .vip-login,
.exchange-review-classic.exchange-auth-signed-out .vip-signup {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.exchange-review-classic.exchange-auth-signed-out .vip-signup {
  color: #111820;
  background: var(--ex-yellow);
  border-color: var(--ex-yellow);
}

/* Account screens use the native account content without the trading shell. */
.exchange-review-classic:not(.exchange-shell-route) .vip-bottom-navigation,
.exchange-review-classic:not(.exchange-shell-route) .redesign-rail,
.exchange-review-classic:not(.exchange-shell-route) .exchange-navigation,
.exchange-review-classic:not(.exchange-shell-route) .vip-bet-slip {
  display: none !important;
}

.exchange-review-classic:not(.exchange-shell-route) .redesign-frame {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.exchange-review-classic:not(.exchange-shell-route) .redesign-main-column {
  width: 100% !important;
  min-width: 0 !important;
  padding: 16px clamp(12px, 3vw, 32px) !important;
}

.exchange-review-classic.exchange-account-route .redesign-promotions,
.exchange-review-classic.exchange-account-route .pb-promotions,
.exchange-review-classic.exchange-account-route .pb-promotion-carousel,
.exchange-review-classic.exchange-account-route .pb-promotion-loading,
.exchange-review-classic.exchange-account-route .approved-home-hero,
.exchange-review-classic.exchange-account-route .hot-events,
.exchange-review-classic.exchange-account-route .featured-cricket {
  display: none !important;
}

/* Bet history gets a focused account layout instead of inheriting the lobby's empty space. */
.exchange-review-classic.exchange-account-route .vip-history-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 10px 0 28px;
}

.exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child {
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid #263b45;
  border-radius: 14px;
  background: linear-gradient(115deg, #10212a, #0c171d 72%);
}

.exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child h1 {
  margin: 0;
  color: #f3f6f7;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.025em;
}

.exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child > div:last-child {
  padding: 8px 11px;
  border: 1px solid #584923;
  border-radius: 10px;
  background: #1d1a10;
  font-variant-numeric: tabular-nums;
}

.exchange-review-classic.exchange-account-route .vip-history-page > div:nth-child(2) {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #203640;
  border-radius: 14px;
  background: #0b151b;
}

/* This product has one betting history. Keep the optional date filter, but remove
   the Sports/Casino selector so it cannot imply a second product. */
.exchange-review-classic.exchange-account-route .vip-history-page
  > div:nth-child(2) > div:nth-child(2) > div:first-child [role="combobox"] {
  display: none !important;
}

/* Settled history is all-time by default; don't show date inputs that suggest
   older settled records are being filtered out. */
.exchange-review-classic.exchange-account-route .vip-history-page:has(
  .vip-history-tabs button:nth-child(2)[aria-pressed="true"]
) > div:nth-child(2) > div:nth-child(2) > div:first-child > div.flex.gap-3.items-center {
  display: none !important;
}

.exchange-review-classic.exchange-account-route .vip-history-page .vip-history-tabs {
  width: min(100%, 360px);
  padding: 4px;
  border: 1px solid #263c46;
  border-radius: 11px;
  background: #081116;
}

.exchange-review-classic.exchange-account-route .vip-history-page .vip-history-tabs button {
  min-height: 42px;
  border-radius: 8px !important;
}

.exchange-review-classic.exchange-account-route .vip-history-page .ant-empty {
  margin: 0;
}

.exchange-review-classic.exchange-account-route .vip-history-page .ant-empty-image {
  height: 42px;
  margin-bottom: 8px;
}

.exchange-review-classic.exchange-account-route .vip-history-page .ant-empty-description {
  color: #a9bac2 !important;
}

.exchange-review-classic.exchange-account-route .vip-history-page div:has(> .ant-empty) {
  min-height: 180px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  padding: 24px 16px !important;
  border: 1px dashed #344b55;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #14232b 0, #0c161b 70%);
}

@media (max-width: 900px) {
  .exchange-review-classic .exchange-classic-strip {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
    height: 50px;
  }

  .exchange-review-classic .exchange-classic-strip__sports a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .exchange-review-classic .exchange-classic-info {
    grid-template-columns: 1fr;
    margin: 8px 10px;
  }

  .exchange-review-classic .exchange-info-card:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 600px) {
  .exchange-review-classic .exchange-classic-strip {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 3px;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 4px 6px;
    overflow: hidden;
  }

  .exchange-review-classic .exchange-classic-strip__brand {
    width: max-content;
    min-width: 28px;
    gap: 0;
  }

  .exchange-review-classic .exchange-classic-strip__brand > span:not(.exchange-classic-strip__mark) {
    display: none;
  }

  .exchange-review-classic .exchange-classic-strip__logo {
    width: 28px;
    height: 30px;
    flex-basis: 28px;
  }

  .exchange-review-classic .exchange-classic-strip__sports {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    gap: 0;
    overflow: hidden;
  }

  .exchange-review-classic .exchange-classic-strip__sports a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    min-width: max-content;
    min-height: 38px;
    padding: 0 3px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: clamp(8px, 2.6vw, 10px);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
  }

  .exchange-review-classic .exchange-classic-strip__sports a[aria-current="page"] {
    color: var(--ex-yellow);
    border-bottom-color: var(--ex-yellow);
    font-weight: 700;
  }

  .exchange-review-classic .exchange-classic-strip__account-actions {
    gap: 4px;
  }

  .exchange-review-classic .exchange-classic-strip__account-actions:empty {
    display: none;
  }

  .exchange-review-classic .exchange-classic-strip__account-link {
    min-height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 10px;
  }

  .exchange-review-classic .exchange-classic-strip__wallet {
    max-width: 96px;
  }

  .exchange-review-classic .exchange-classic-strip__balance {
    max-width: 58px;
    font-size: 9px;
  }

  .exchange-review-classic .exchange-classic-strip__my-bets {
    min-width: 58px;
    min-height: 34px;
    margin: 0;
    padding: 0 6px;
    font-size: 10px;
  }

  .exchange-review-classic.exchange-auth-signed-out .exchange-classic-strip__my-bets {
    margin-right: 128px;
  }

  .exchange-review-classic.exchange-auth-signed-out .exchange-native-header-source .vip-header-actions {
    top: 10px !important;
    right: 12px !important;
  }

  .exchange-review-classic.exchange-auth-signed-out .vip-login,
  .exchange-review-classic.exchange-auth-signed-out .vip-signup {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .exchange-review-classic.exchange-account-route .redesign-app {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
  }

  .exchange-review-classic.exchange-account-route .redesign-frame,
  .exchange-review-classic.exchange-account-route .redesign-main-column,
  .exchange-review-classic.exchange-account-route .redesign-page,
  .exchange-review-classic.exchange-account-route .redesign-workspace,
  .exchange-review-classic.exchange-account-route .redesign-scroll,
  .exchange-review-classic.exchange-account-route .redesign-canvas,
  .exchange-review-classic.exchange-account-route .account-refresh,
  .exchange-review-classic.exchange-account-route .wallet-summary,
  .exchange-review-classic.exchange-account-route .wallet-crypto-banner,
  .exchange-review-classic.exchange-account-route .profile-columns,
  .exchange-review-classic.exchange-account-route .profile-details,
  .exchange-review-classic.exchange-account-route .profile-balance-panel {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .exchange-review-classic.exchange-account-route .redesign-main-column,
  .exchange-review-classic.exchange-account-route .redesign-scroll {
    min-height: 0 !important;
    overflow: visible !important;
  }

  .exchange-review-classic.exchange-account-route .redesign-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .exchange-review-classic.exchange-account-route .account-refresh {
    margin: 0 auto !important;
    padding: 18px 12px 32px !important;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page {
    padding: 8px 0 20px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child {
    min-height: 0;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child h1 {
    font-size: 21px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page > .flex.items-center.justify-between:first-child > div:last-child {
    flex: 0 0 auto;
    padding: 7px 8px;
    font-size: 11px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page > div:nth-child(2) {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page .vip-history-tabs {
    width: 100%;
    margin-bottom: 10px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page .vip-history-tabs button {
    min-height: 40px;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page div:has(> .ant-empty) {
    min-height: 150px;
    margin-top: 8px;
    padding: 20px 12px !important;
  }

  .exchange-review-classic.exchange-account-route .vip-history-page .ant-empty-image {
    height: 34px;
  }
}

@media (max-width: 360px) {
  .exchange-review-classic .exchange-classic-strip {
    gap: 2px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .exchange-review-classic .exchange-classic-strip__brand,
  .exchange-review-classic .exchange-classic-strip__logo {
    width: 24px;
    min-width: 24px;
    flex-basis: 24px;
  }

  .exchange-review-classic .exchange-classic-strip__sports a {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 8px;
  }

  .exchange-review-classic .exchange-classic-strip__my-bets {
    min-width: 52px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 9px;
  }

  .exchange-review-classic.exchange-auth-signed-out .exchange-classic-strip__my-bets {
    margin-right: 96px;
  }

  .exchange-review-classic .exchange-classic-strip__account-actions {
    flex: 0 0 auto;
    gap: 2px;
  }

  .exchange-review-classic .exchange-classic-strip__account-link {
    min-height: 30px;
    max-width: 76px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 9px;
  }

  .exchange-review-classic .exchange-classic-strip__wallet {
    max-width: 76px;
  }

  .exchange-review-classic .exchange-classic-strip__balance {
    max-width: 46px;
    font-size: 8px;
  }

  .exchange-review-classic.exchange-auth-signed-out .exchange-native-header-source .vip-header-actions {
    right: 4px !important;
    gap: 3px;
  }

  .exchange-review-classic.exchange-auth-signed-out .exchange-classic-strip__my-bets {
    margin-right: 96px;
  }

  .exchange-review-classic.exchange-auth-signed-out .vip-login,
  .exchange-review-classic.exchange-auth-signed-out .vip-signup {
    min-height: 30px;
    padding: 4px 5px;
    font-size: 9px;
  }
}
