﻿/* Design modals — extracted from design/style.css */
/* ==========================================================================
   Wallet modal вЂ” Figma nodes 4603:14650вЂ“4603:17463
   ========================================================================== */

body.wallet-modal-open {
  overflow: hidden;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.wallet-modal[hidden] {
  display: none;
}

.wallet-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 14, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wallet-transition-smooth);
}

.wallet-modal--opening .wallet-modal__backdrop,
.wallet-modal:not(.wallet-modal--closing) .wallet-modal__backdrop {
  opacity: 1;
}

.wallet-modal--closing .wallet-modal__backdrop {
  opacity: 0;
}

.wallet-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--wallet-modal-width), 100%);
  max-height: calc(100dvh - 1.5rem);
  max-height: calc(100svh - 1.5rem);
  min-height: 0;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity var(--wallet-transition-smooth),
    transform var(--wallet-transition-smooth);
}

.wallet-modal--opening .wallet-modal__dialog,
.wallet-modal:not(.wallet-modal--closing) .wallet-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wallet-modal--closing .wallet-modal__dialog {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.wallet-modal__panel {
  display: flex;
  flex-direction: column;
  gap: var(--wallet-panel-gap);
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  padding: 1.25rem 1.5625rem 1.5625rem;
  background: var(--color-auth-surface);
  border-radius: var(--wallet-radius-modal);
  overflow: hidden;
}

.wallet-modal__header,
.wallet-modal__divider,
.wallet-deposit__heading,
.wallet-withdraw__heading {
  flex-shrink: 0;
}

.wallet-view {
  display: flex;
  flex-direction: column;
  gap: var(--wallet-view-gap);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wallet-view[hidden] {
  display: none;
}

.wallet-modal__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.wallet-modal__tabs {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.wallet-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--wallet-tab-height);
  padding: 0.75rem 0.875rem;
  border: 0;
  border-radius: var(--wallet-radius-tab);
  background: var(--color-referral-field-bg);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-tab:hover {
  color: var(--color-text);
}

.wallet-tab:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-tab:active {
  transform: scale(0.98);
}

.wallet-tab--active {
  background: var(--color-accent-2);
  color: #191820;
}

.wallet-tab--active:hover {
  color: #191820;
}

.wallet-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.8125rem;
  height: 1.8125rem;
  padding: 0;
  border: 0;
  border-radius: var(--auth-radius-close);
  background: var(--color-auth-close);
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-modal__close-icon {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
}

.wallet-modal__close:hover {
  background: var(--color-auth-close-hover);
  color: var(--color-text);
}

.wallet-modal__close:active {
  transform: scale(0.94);
}

.wallet-modal__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-modal__divider {
  width: 100%;
  height: 0.0625rem;
  margin: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: #393846;
}

.wallet-deposit__heading,
.wallet-withdraw__heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.wallet-deposit__layout,
.wallet-withdraw__layout {
  display: grid;
  grid-template-columns: minmax(0, var(--wallet-method-width)) auto minmax(0, 1fr);
  gap: 1rem 1.125rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wallet-deposit__methods-wrap,
.wallet-withdraw__methods-wrap {
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 0;
  margin-right: 0;
}

.wallet-deposit__methods-wrap::-webkit-scrollbar,
.wallet-withdraw__methods-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.wallet-deposit__methods-wrap::-webkit-scrollbar-track,
.wallet-withdraw__methods-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-deposit__methods-wrap::-webkit-scrollbar-thumb,
.wallet-withdraw__methods-wrap::-webkit-scrollbar-thumb {
  background: transparent;
}

.wallet-methods {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-methods__item {
  margin: 0;
}

.wallet-method {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: var(--wallet-method-height);
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid transparent;
  border-radius: var(--wallet-radius-tab);
  background: var(--color-referral-field-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--wallet-transition-fast),
    border-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-method:hover {
  background: var(--color-surface-hover);
}

.wallet-method:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-method:active {
  transform: scale(0.99);
}

.wallet-method--active {
  border-color: var(--wallet-method-active-end);
  background: var(--gradient-wallet-method-active);
}

.wallet-method--active:hover {
  background: var(--gradient-wallet-method-active);
}

.wallet-method--withdraw {
  justify-content: space-between;
}

.wallet-method__main {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.wallet-method__fast {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.wallet-method__icon {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.wallet-method__label {
  white-space: nowrap;
}

.wallet-deposit__split,
.wallet-withdraw__split {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-height: 0;
}

.wallet-deposit__scrollbar,
.wallet-withdraw__scrollbar {
  display: none;
}

.wallet-deposit__split-line,
.wallet-withdraw__split-line {
  display: block;
  width: 0.0625rem;
  background: #393846;
  border-radius: 0.3125rem;
}

.wallet-deposit__details,
.wallet-withdraw__details {
  display: flex;
  flex-direction: column;
  gap: var(--wallet-details-gap);
  width: 100%;
  max-width: var(--wallet-details-width);
  padding-top: 0;
  padding-right: 0;
}

.wallet-deposit__details {
  align-self: start;
  flex-shrink: 0;
  overflow: visible;
}

.wallet-withdraw__details {
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.wallet-withdraw__details::-webkit-scrollbar {
  width: 0.25rem;
}

.wallet-withdraw__details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.25rem;
}

.wallet-withdraw__details {
  gap: 1.25rem;
  padding-top: 0.3125rem;
}

.wallet-deposit__selected,
.wallet-withdraw__selected {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-muted);
}

.wallet-deposit__fiat {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.wallet-deposit__fiat[hidden] {
  display: none;
}

.wallet-deposit__amount-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.wallet-deposit__amounts,
.wallet-withdraw__amounts {
  display: flex;
  gap: 0.9375rem;
  width: 100%;
  align-items: flex-end;
}

.wallet-amount-field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: var(--wallet-amount-width);
}

.wallet-amount-field__label {
  display: block;
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: 1.25rem;
  min-height: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.wallet-amount-field__control {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--wallet-field-height);
  padding: 0.75rem 0.875rem 0.75rem 0.625rem;
  border-radius: var(--wallet-radius-field);
  background: var(--color-referral-field-bg);
}

.wallet-amount-field__control--readonly {
  padding-right: 0.9375rem;
}

.wallet-amount-field__icon {
  display: block;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  object-position: center;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.15);
}

.wallet-amount-field__input,
.wallet-amount-field__value {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  height: 1.5rem;
}

.wallet-amount-field__input:focus {
  outline: none;
}

.wallet-amount-field__input:focus-visible {
  outline: none;
}

.wallet-amount-field__control:focus-within {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.0625rem;
}

.wallet-deposit__presets {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3125rem;
  width: 100%;
}

.wallet-preset {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: var(--wallet-preset-width);
  padding: 0.5rem 0.375rem;
  border: 0;
  border-radius: var(--wallet-radius-preset);
  background: var(--color-referral-field-bg);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-preset:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.wallet-preset:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-preset:active {
  transform: scale(0.98);
}

.wallet-preset--active {
  color: var(--color-text);
}

.wallet-deposit__crypto {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
}

.wallet-deposit__crypto[hidden] {
  display: none;
}

.wallet-deposit__bonus[hidden],
.wallet-deposit__bonus-divider[hidden],
.wallet-deposit__bonus-block[hidden] {
  display: none;
}

.wallet-deposit__bonus-block {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  width: 100%;
  flex-shrink: 0;
}

.wallet-crypto-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.5625rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  min-height: 7.125rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--wallet-radius-field);
  background: var(--wallet-crypto-bg);
}

.wallet-crypto-card__qr {
  flex-shrink: 0;
  width: 5.5625rem;
  height: 5.5625rem;
  object-fit: cover;
}

.wallet-crypto-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0;
}

.wallet-crypto-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.05rem;
  color: var(--color-text);
}

.wallet-crypto-address {
  margin: 0;
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.0375rem;
  color: var(--wallet-crypto-text);
}

.wallet-crypto-address__part--bright {
  font-weight: 600;
  color: var(--wallet-crypto-text-bright);
}

.wallet-crypto-address__part--mid {
  font-weight: 500;
  color: var(--wallet-crypto-text-bright);
}

.wallet-crypto-card__copy-wrap {
  position: relative;
  align-self: flex-start;
}

.wallet-crypto-card__copy-tooltip {
  position: absolute;
  bottom: calc(100% + 0.4375rem);
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6875rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.625rem;
  background: var(--color-auth-tooltip);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  animation: wallet-copy-tooltip-in 0.2s ease;
}

.wallet-crypto-card__copy-tooltip[hidden] {
  display: none;
}

.wallet-crypto-card__copy-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.375rem;
  width: 0;
  height: 0;
  border-left: 0.375rem solid transparent;
  border-right: 0.375rem solid transparent;
  border-top: 0.375rem solid var(--color-auth-tooltip);
  transform: translateX(-50%);
}

@keyframes wallet-copy-tooltip-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.25rem);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.wallet-crypto-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.3125rem 0.625rem;
  border: 0;
  border-radius: var(--wallet-radius-preset);
  background: var(--color-accent-2);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.0375rem;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-crypto-card__copy:hover {
  background: var(--color-auth-submit-hover);
}

.wallet-crypto-card__copy:active {
  transform: scale(0.98);
}

.wallet-crypto-card__copy:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.125rem;
}

.wallet-crypto-min {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

.wallet-crypto-min strong {
  font-weight: 600;
}

.wallet-crypto-card__qr-wrap {
  flex-shrink: 0;
  width: 5.5625rem;
  height: 5.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-crypto-card__qr-wrap .wallet-crypto-card__qr,
.wallet-crypto-card__qr-wrap canvas,
.wallet-crypto-card__qr-wrap img {
  width: 5.5625rem !important;
  height: 5.5625rem !important;
}

.wallet-crypto-tag {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.wallet-crypto-tag__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.wallet-crypto-tag__row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.wallet-crypto-tag__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--color-surface-2, #2b2d40);
  color: var(--color-text);
  font: inherit;
}

.wallet-crypto-tag__copy {
  flex-shrink: 0;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--color-accent-2, #9fe870);
  color: #191820;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.wallet-crypto-warning {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-muted, #878cb2);
}

.wallet-crypto-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}

.wallet-modal--crypto-loading .wallet-crypto-card,
.wallet-modal--crypto-loading .wallet-crypto-tag,
.wallet-modal--crypto-loading .wallet-crypto-min,
.wallet-modal--crypto-loading .wallet-crypto-warning {
  opacity: 0.35;
  pointer-events: none;
}

.wallet-operators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.wallet-withdraw__details .wallet-operators {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(13.5rem, 32dvh);
  max-height: min(13.5rem, 32svh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  padding-right: 0.125rem;
}

.wallet-withdraw__details .wallet-operators::-webkit-scrollbar {
  width: 0.25rem;
}

.wallet-withdraw__details .wallet-operators::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.25rem;
}

.wallet-operators__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border: 0.09375rem solid transparent;
  border-radius: 0.75rem;
  background: #222434;
  color: #878cb2;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wallet-operators__btn:hover {
  opacity: 0.85;
}

.wallet-operators__btn--active {
  background: #2b2d40;
  color: #fff;
  font-weight: 500;
}

.wallet-operators__icon {
  flex-shrink: 0;
  width: 1.0625rem;
  height: 1.0625rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.wallet-wager-banner {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  background: rgba(255, 157, 52, 0.12);
  border: 0.0625rem solid rgba(255, 157, 52, 0.35);
  color: #ffd16f;
  font-size: 0.875rem;
  line-height: 1.4;
}

.wallet-withdraw-balance {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  background: #393846;
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted, #878cb2);
  font-size: 0.875rem;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.wallet-withdraw-balance[hidden] {
  display: none;
}

.wallet-withdraw-balance__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.wallet-withdraw-balance__text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-withdraw-balance__amount {
  color: #4ade80;
  font-weight: 600;
}

.wallet-withdraw-currency-warning {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-muted, #878cb2);
}

.wallet-deposit__bonus-divider {
  width: 100%;
  height: 0.0625rem;
  margin: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: #393846;
  flex-shrink: 0;
}

.wallet-deposit__bonus {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

.wallet-deposit__bonus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding-right: 0.125rem;
}

.wallet-deposit__bonus-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.wallet-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.125rem;
  height: 1.4375rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform var(--wallet-transition-fast);
}

.wallet-toggle:hover {
  transform: scale(1.03);
}

.wallet-toggle:active {
  transform: scale(0.97);
}

.wallet-toggle:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
  border-radius: 0.75rem;
}

.wallet-toggle__track {
  display: block;
  width: 3.125rem;
  height: 1.4375rem;
  object-fit: contain;
  pointer-events: none;
}

/* Wallet deposit bonus вЂ” Figma Banner 4603:17464 / 4603:17474 */
.bonus-card.bonus-card--wallet-deposit {
  width: 100%;
  max-width: var(--wallet-details-width);
  height: var(--wallet-bonus-height);
  flex: none;
  gap: 0;
  padding: 0.8125rem;
  border: 0.0625rem solid transparent;
  border-radius: var(--wallet-radius-bonus);
  background: var(--gradient-wallet-deposit-bonus);
  overflow: hidden;
}

.bonus-card--wallet-deposit-selected {
  box-shadow: inset 0 0 0 0.0625rem var(--color-text);
  border-color: transparent;
}

.bonus-card__content.bonus-card--wallet-deposit__content {
  justify-content: flex-start;
  gap: 0.5rem;
  height: 100%;
  min-height: 0;
}

.bonus-card--wallet-deposit__text {
  gap: 0.5rem;
  max-width: 56%;
}

.bonus-card--wallet-deposit__art {
  left: 57.06%;
  top: 0;
  right: auto;
  bottom: auto;
  width: 9.15rem;
  height: 6.25rem;
  object-fit: cover;
  object-position: 6% 31%;
  transform: rotate(-13.86deg);
  transform-origin: center center;
}

.bonus-card--wallet-deposit__expand {
  position: absolute;
  top: 0.5625rem;
  right: 0.5625rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5625rem;
  height: 1.5625rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform var(--wallet-transition-fast);
}

.bonus-card--wallet-deposit__expand[hidden] {
  display: none;
}

.bonus-card--wallet-deposit__expand:hover {
  transform: scale(1.05);
}

.bonus-card--wallet-deposit__expand:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
  border-radius: 50%;
}

.bonus-card--wallet-deposit__expand-icon {
  display: block;
  width: 1.5625rem;
  height: 1.5625rem;
  flex-shrink: 0;
}

.wallet-deposit__submit,
.wallet-deposit__footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

.wallet-deposit__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wallet-submit-height);
  padding: 0.75rem 0.875rem;
  border: 0;
  border-radius: var(--wallet-radius-tab);
  background: var(--color-accent-2);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-deposit__submit:hover {
  background: var(--color-auth-submit-hover);
}

.wallet-deposit__submit:active {
  transform: scale(0.99);
  background: var(--color-auth-submit-press);
}

.wallet-deposit__submit:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.125rem;
}

.wallet-deposit__footer {
  margin: 0;
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text-muted);
}

.wallet-deposit__footer strong {
  font-weight: 500;
  color: var(--color-text);
}

.wallet-modal:not(.wallet-modal--has-bonus) .wallet-deposit__submit {
  margin-top: 2rem;
}

.wallet-modal--has-bonus .wallet-deposit__details {
  gap: 1rem;
}

.wallet-modal--has-bonus .wallet-deposit__amount-panel {
  gap: 1.25rem;
}

.wallet-modal--has-bonus .wallet-deposit__bonus-block {
  gap: 0.9375rem;
  padding-top: 0.125rem;
}

/* Wallet withdraw вЂ” Figma nodes 4603:13699 / 4603:13855 */
.wallet-withdraw-account {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

.wallet-withdraw-account__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.wallet-withdraw-account__field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: var(--wallet-field-height);
  padding: 0.9375rem 0.625rem;
  border-radius: var(--wallet-radius-field);
  background: var(--color-referral-field-bg);
}

.wallet-withdraw-account__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.wallet-withdraw-account__prefix {
  flex-shrink: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.04375rem;
}

.wallet-withdraw-account__prefix[hidden],
.wallet-withdraw-account__prefix--hidden {
  display: none !important;
}

.wallet-withdraw-account__field:not(.wallet-withdraw-account__field--phone) .wallet-withdraw-account__prefix {
  display: none !important;
}

.wallet-withdraw-account__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.04375rem;
}

.wallet-withdraw-account__input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.wallet-withdraw-account__input:focus {
  outline: none;
}

.wallet-withdraw-account__input:focus-visible {
  outline: none;
}

.wallet-withdraw__amounts .wallet-amount-field {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--wallet-amount-width);
}

.wallet-amount-field__icon--withdraw {
  opacity: 0.55;
  filter: grayscale(1) brightness(1.15);
}

.wallet-withdraw__submit,
.wallet-withdraw__footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

.wallet-withdraw__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.0625rem;
  margin-top: auto;
  padding: 0.9375rem;
  border: 0;
  border-radius: var(--wallet-radius-tab);
  background: var(--color-accent-2);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-withdraw__submit:hover {
  background: var(--color-auth-submit-hover);
}

.wallet-withdraw__submit:active {
  transform: scale(0.99);
  background: var(--color-auth-submit-press);
}

.wallet-withdraw__submit:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.125rem;
}

.wallet-withdraw__footer {
  margin: 0;
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text-muted);
}

.wallet-withdraw__footer strong {
  font-weight: 500;
  color: var(--color-text);
}

/* ==========================================================================
   Wallet modal mobile — Figma 4603:10603 / 10684 / 10642 / 10716 / 10750 / 10836
   Class .wallet-modal--mobile is toggled by design-wallet.load.js on phones.
   ========================================================================== */

.wallet-modal--mobile {
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
}

.wallet-modal--mobile .wallet-modal__dialog {
  width: min(22.5rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

.wallet-modal--mobile .wallet-modal__panel {
  --wallet-details-width: 100%;
  position: relative;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 2.1875rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wallet-modal--mobile .wallet-modal__divider {
  display: none;
}

.wallet-modal--mobile .wallet-modal__header {
  position: relative;
  display: block;
  width: 100%;
  padding-right: 2.375rem;
}

.wallet-modal--mobile .wallet-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.wallet-modal--mobile .wallet-modal__tabs {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  width: 100%;
  min-width: 0;
}

.wallet-modal--mobile .wallet-tab {
  flex: 0 0 auto;
  height: 3.375rem;
  padding: 0.9375rem;
  font-size: 0.875rem;
}

.wallet-modal--mobile .wallet-tab[data-wallet-tab="deposit"] {
  width: 5.5rem;
}

.wallet-modal--mobile .wallet-tab[data-wallet-tab="withdraw"] {
  width: 4.5625rem;
}

.wallet-modal--mobile .wallet-tab[data-wallet-tab="transactions"] {
  width: 6.875rem;
}

.wallet-modal--mobile .wallet-view {
  gap: 1.25rem;
  overflow: visible;
  min-height: 0;
}

.wallet-modal--mobile .wallet-deposit__heading,
.wallet-modal--mobile .wallet-withdraw__heading {
  font-size: 1rem;
  margin-bottom: -0.625rem;
}

.wallet-modal--mobile .wallet-deposit__layout,
.wallet-modal--mobile .wallet-withdraw__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: visible;
  flex: 0 0 auto;
  min-height: 0;
  grid-template-columns: none;
}

.wallet-modal--mobile .wallet-deposit__split,
.wallet-modal--mobile .wallet-withdraw__split {
  display: none;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap:not(.wallet-deposit__methods-wrap--expanded) .wallet-method:not(.wallet-method--active),
.wallet-modal--mobile .wallet-withdraw__methods-wrap:not(.wallet-withdraw__methods-wrap--expanded) .wallet-method:not(.wallet-method--active) {
  display: none;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap:not(.wallet-deposit__methods-wrap--expanded),
.wallet-modal--mobile .wallet-withdraw__methods-wrap:not(.wallet-withdraw__methods-wrap--expanded) {
  max-height: none;
  overflow: visible;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap--expanded,
.wallet-modal--mobile .wallet-withdraw__methods-wrap--expanded {
  max-height: min(13.5rem, 34dvh);
  max-height: min(13.5rem, 34svh);
  overflow-y: auto;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap:not(.wallet-deposit__methods-wrap--expanded) .wallet-method--active,
.wallet-modal--mobile .wallet-withdraw__methods-wrap:not(.wallet-withdraw__methods-wrap--expanded) .wallet-method--active {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.9375rem;
  gap: 0.625rem;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap:not(.wallet-deposit__methods-wrap--expanded) .wallet-method--active::after,
.wallet-modal--mobile .wallet-withdraw__methods-wrap:not(.wallet-withdraw__methods-wrap--expanded) .wallet-method--active::after {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.375rem;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 6L6 1L11 6' stroke='%23868E9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap:not(.wallet-deposit__methods-wrap--expanded) .wallet-method--active::after {
  transform: rotate(180deg);
}

.wallet-modal--mobile .wallet-withdraw__methods-wrap:not(.wallet-withdraw__methods-wrap--expanded) .wallet-method--active .wallet-method__fast {
  display: none;
}

.wallet-modal--mobile .wallet-deposit__methods-wrap--expanded .wallet-method--active::after,
.wallet-modal--mobile .wallet-withdraw__methods-wrap--expanded .wallet-method--active::after {
  display: none;
}

.wallet-modal--mobile .wallet-method {
  width: 100%;
}

.wallet-modal--mobile .wallet-deposit__details,
.wallet-modal--mobile .wallet-withdraw__details {
  max-width: none;
  width: 100%;
  gap: 1.25rem;
}

.wallet-modal--mobile .wallet-deposit__details {
  overflow: visible;
  flex-shrink: 0;
}

.wallet-modal--mobile .wallet-withdraw__details {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: 0;
}

.wallet-modal--mobile.wallet-modal--withdraw-tab .wallet-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wallet-modal--mobile.wallet-modal--withdraw-tab .wallet-withdraw__heading {
  flex-shrink: 0;
}

.wallet-modal--mobile.wallet-modal--withdraw-tab .wallet-withdraw__layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wallet-modal--mobile.wallet-modal--withdraw-tab .wallet-modal__panel {
  overflow: hidden;
}

.wallet-modal--mobile .wallet-withdraw__details .wallet-operators {
  max-height: min(11rem, 28dvh);
  max-height: min(11rem, 28svh);
}

.wallet-modal--mobile .wallet-deposit__selected,
.wallet-modal--mobile .wallet-withdraw__selected {
  font-size: 1rem;
}

.wallet-modal--mobile .wallet-withdraw-balance {
  margin: 0 0 0.625rem;
  padding: 0.625rem 0.75rem;
  gap: 0.5rem;
  border-radius: 0.625rem;
  background: #393846;
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.wallet-modal--mobile .wallet-withdraw-balance__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.wallet-modal--mobile .wallet-withdraw-balance__text {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.wallet-modal--mobile .wallet-withdraw-balance__amount {
  font-size: inherit;
}

.wallet-modal--mobile .wallet-wager-banner {
  margin-bottom: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}

.wallet-modal--mobile .wallet-deposit__amounts,
.wallet-modal--mobile .wallet-withdraw__amounts {
  flex-direction: row;
  gap: 0.625rem;
  align-items: flex-end;
}

.wallet-modal--mobile .wallet-amount-field {
  flex: 1 1 0;
  max-width: none;
  width: auto;
}

.wallet-modal--mobile .wallet-deposit__presets {
  flex-wrap: nowrap;
  gap: 0.3125rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wallet-modal--mobile .wallet-deposit__presets::-webkit-scrollbar {
  display: none;
}

.wallet-modal--mobile .wallet-preset {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  max-width: 3.75rem;
  padding: 0.625rem 0.3125rem;
  font-size: 0.75rem;
}

.wallet-modal--mobile .wallet-deposit__amount-panel {
  gap: 0.625rem;
}

.wallet-modal--mobile .wallet-withdraw-account__label {
  font-size: 1rem;
}

.wallet-modal--mobile .wallet-withdraw-account__field {
  width: 100%;
}

.wallet-modal--mobile .wallet-withdraw-account__input {
  font-size: 1rem;
}

.wallet-modal--mobile.wallet-modal--withdraw-crypto .wallet-withdraw-account__input {
  font-size: 0.875rem;
  letter-spacing: -0.04375rem;
  color: var(--color-text-muted);
}

.wallet-modal--mobile .wallet-crypto-card {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

.wallet-modal--mobile.wallet-modal--crypto .wallet-crypto-min {
  font-size: 1rem;
}

.wallet-modal--mobile.wallet-modal--crypto .wallet-deposit__bonus-divider {
  margin-top: 0.625rem;
}

.wallet-modal--mobile .bonus-card.bonus-card--wallet-deposit {
  max-width: 19.9375rem;
  width: 100%;
  height: 7.125rem;
  margin: 0 auto;
}

.wallet-modal--mobile .wallet-deposit__submit,
.wallet-modal--mobile .wallet-withdraw__submit {
  width: 100%;
  max-width: 20rem;
  min-height: 3.0625rem;
  margin-left: auto;
  margin-right: auto;
}

.wallet-modal--mobile .wallet-deposit__footer,
.wallet-modal--mobile .wallet-withdraw__footer {
  font-size: 0.75rem;
  line-height: 1.35;
}

.wallet-modal--mobile:not(.wallet-modal--has-bonus) .wallet-deposit__submit {
  margin-top: 0;
}

.wallet-modal--mobile.wallet-modal--has-bonus .wallet-deposit__details {
  gap: 1.25rem;
}

.wallet-modal--mobile.wallet-modal--has-bonus .wallet-deposit__amount-panel {
  gap: 0.625rem;
}

.wallet-modal--mobile.wallet-modal--transactions-tab .wallet-modal__panel {
  overflow-x: hidden;
}

.wallet-modal--withdraw-tab .wallet-modal__panel {
  gap: var(--wallet-panel-gap);
}

/* Wallet transactions вЂ” Figma 4603:13992 / 4603:14032 / 4603:14320 */
.wallet-modal--transactions-tab .wallet-modal__panel,
.profile-modal--transactions .profile-modal__panel {
  gap: var(--wallet-panel-gap);
  overflow-x: hidden;
}

.wallet-transactions-history {
  container-type: inline-size;
  container-name: wallet-transactions;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, calc(100cqw * 16 / var(--wallet-transactions-ref-width)), 1rem);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.wallet-transactions-history .wallet-transactions__filters {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, calc(100cqw * 16 / var(--wallet-transactions-ref-width)), 1rem);
  width: 100%;
}

.wallet-transactions-history .wallet-transactions-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(2rem, calc(100cqw * 42 / var(--wallet-transactions-ref-width)), 2.625rem);
  padding: clamp(0.5rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.75rem);
  border: 0;
  border-radius: clamp(0.625rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.9375rem);
  background: var(--color-referral-field-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: clamp(0.8125rem, calc(100cqw * 14 / var(--wallet-transactions-ref-width)), 0.875rem);
  font-weight: 500;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.wallet-transactions-history .wallet-transactions-filter:hover {
  color: var(--color-text);
}

.wallet-transactions-history .wallet-transactions-filter:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-transactions-history .wallet-transactions-filter:active {
  transform: scale(0.98);
}

.wallet-transactions-history .wallet-transactions-filter--active {
  background: var(--wallet-transactions-filter-active-bg);
  color: var(--color-text);
}

.wallet-transactions-history .wallet-transactions-filter--active:hover {
  background: var(--wallet-transactions-filter-active-bg);
}

.wallet-transactions-history .wallet-transactions__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, calc(100cqw * 8 / var(--wallet-transactions-ref-width)), 0.625rem);
  width: 100%;
  flex: 1 1 auto;
  min-height: clamp(5rem, calc(100cqw * 140 / var(--wallet-transactions-ref-width)), 8rem);
  padding: clamp(0.375rem, calc(100cqw * 8 / var(--wallet-transactions-ref-width)), 0.5rem) 0
    clamp(0.75rem, calc(100cqw * 20 / var(--wallet-transactions-ref-width)), 1rem);
}

.wallet-transactions-history .wallet-transactions__empty-icon {
  width: clamp(3.25rem, calc(100cqw * 96 / var(--wallet-transactions-ref-width)), 6rem);
  height: clamp(3.25rem, calc(100cqw * 96 / var(--wallet-transactions-ref-width)), 6rem);
  object-fit: contain;
  flex-shrink: 0;
}

.wallet-transactions-history .wallet-transactions__empty-title {
  margin: 0;
  font-size: clamp(1.125rem, calc(100cqw * 28 / var(--wallet-transactions-ref-width)), 1.75rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: var(--color-text);
}

.wallet-transactions__empty[hidden],
.wallet-transactions__content[hidden],
.wallet-transactions__pagination[hidden] {
  display: none;
}

.wallet-transactions-history .wallet-transactions__content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, calc(100cqw * 10 / var(--wallet-transactions-ref-width)), 0.625rem);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
}

.wallet-transactions-history .wallet-transactions__scroll {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, calc(100cqw * 10 / var(--wallet-transactions-ref-width)), 0.625rem);
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wallet-transactions-history .wallet-transactions__scroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.wallet-transactions-history .wallet-transactions__table-head,
.wallet-transactions-history .wallet-transaction {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: clamp(2.5rem, calc(100cqw * 46 / var(--wallet-transactions-ref-width)), 3.0625rem);
  padding: clamp(0.5rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.9375rem);
  border-radius: clamp(0.625rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.9375rem);
}

.wallet-transactions-history .wallet-transactions__content--deposits .wallet-transactions__table-head,
.wallet-transactions-history .wallet-transactions__content--deposits .wallet-transaction {
  grid-template-columns:
    minmax(2.75rem, 0.75fr)
    minmax(4.5rem, 1.1fr)
    minmax(1.5rem, 0.55fr)
    minmax(5.5rem, 1.35fr)
    minmax(4rem, 0.95fr);
  column-gap: clamp(0.375rem, calc(100cqw * 8 / var(--wallet-transactions-ref-width)), 0.625rem);
  min-width: 38rem;
  width: 100%;
  box-sizing: border-box;
}

.wallet-transactions-history .wallet-transactions__content--withdrawals .wallet-transactions__table-head,
.wallet-transactions-history .wallet-transactions__content--withdrawals .wallet-transaction {
  grid-template-columns:
    minmax(2.5rem, 0.7fr)
    minmax(4rem, 1fr)
    minmax(1.5rem, 0.5fr)
    minmax(4rem, 1fr)
    minmax(5rem, 1.2fr)
    minmax(3.75rem, 0.9fr);
  column-gap: clamp(0.25rem, calc(100cqw * 6 / var(--wallet-transactions-ref-width)), 0.5rem);
  min-width: 46rem;
  width: 100%;
  box-sizing: border-box;
}

.wallet-transactions-history .wallet-transactions__table-head {
  flex-shrink: 0;
  background: var(--color-referral-field-bg);
}

.wallet-transactions-history .wallet-transactions__th {
  font-size: clamp(0.75rem, calc(100cqw * 13 / var(--wallet-transactions-ref-width)), 0.875rem);
  font-weight: 500;
  line-height: normal;
  text-align: center;
  color: #6d6981;
  white-space: nowrap;
}

.wallet-transactions-history .wallet-transactions__list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, calc(100cqw * 8 / var(--wallet-transactions-ref-width)), 0.625rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #393846 #191820;
}

.wallet-transactions-history .wallet-transactions__list::-webkit-scrollbar {
  width: 0.1875rem;
}

.wallet-transactions-history .wallet-transactions__list::-webkit-scrollbar-track {
  background: #191820;
  border-radius: 0.9375rem;
}

.wallet-transactions-history .wallet-transactions__list::-webkit-scrollbar-thumb {
  background: #393846;
  border-radius: 0.9375rem;
}

.wallet-transactions-history .wallet-transaction {
  background: var(--color-referral-field-bg);
}

.wallet-transactions-history .wallet-transaction__cell {
  min-width: 0;
  font-size: clamp(0.75rem, calc(100cqw * 13 / var(--wallet-transactions-ref-width)), 0.875rem);
  font-weight: 500;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
}

.wallet-transactions-history .wallet-transaction__method {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-transactions-history .wallet-transaction__method-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.wallet-transactions-history .wallet-transaction__status--success {
  color: var(--wallet-tx-status-success);
}

.wallet-transactions-history .wallet-transaction__status--pending {
  color: var(--wallet-tx-status-pending);
}

.wallet-transactions-history .wallet-transaction__status--cancel {
  color: var(--wallet-tx-status-cancel);
}

.wallet-transactions-history .wallet-transaction__status--rejected {
  color: var(--wallet-tx-status-rejected);
}

.wallet-transactions-history .wallet-transactions__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.375rem, calc(100cqw * 8 / var(--wallet-transactions-ref-width)), 0.625rem);
  width: 100%;
  flex-shrink: 0;
  padding-top: clamp(0.25rem, calc(100cqw * 6 / var(--wallet-transactions-ref-width)), 0.5rem);
}

.wallet-transactions-history .wallet-transactions__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(2rem, calc(100cqw * 40 / var(--wallet-transactions-ref-width)), 2.5rem);
  min-height: clamp(2rem, calc(100cqw * 40 / var(--wallet-transactions-ref-width)), 2.5rem);
  padding: clamp(0.375rem, calc(100cqw * 10 / var(--wallet-transactions-ref-width)), 0.625rem)
    clamp(0.5rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.9375rem);
  border: 0;
  border-radius: clamp(0.5rem, calc(100cqw * 10 / var(--wallet-transactions-ref-width)), 0.625rem);
  background: var(--color-referral-field-bg);
  color: #3f3d4b;
  font-family: inherit;
  font-size: clamp(0.75rem, calc(100cqw * 13 / var(--wallet-transactions-ref-width)), 0.875rem);
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

.wallet-transactions-history .wallet-transactions__page-btn--active {
  background: var(--color-accent-2);
  color: var(--color-bg);
}

.wallet-transactions-history .wallet-transactions__page-btn--arrow {
  width: clamp(2rem, calc(100cqw * 42 / var(--wallet-transactions-ref-width)), 2.625rem);
  height: clamp(2rem, calc(100cqw * 42 / var(--wallet-transactions-ref-width)), 2.625rem);
  min-width: clamp(2rem, calc(100cqw * 42 / var(--wallet-transactions-ref-width)), 2.625rem);
  padding: clamp(0.375rem, calc(100cqw * 10 / var(--wallet-transactions-ref-width)), 0.625rem);
  border-radius: clamp(0.625rem, calc(100cqw * 12 / var(--wallet-transactions-ref-width)), 0.9375rem);
}

.wallet-transactions-history .wallet-transactions__page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.wallet-transactions-history .wallet-transactions__page-btn:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wallet-transactions-history .wallet-transactions__page-arrow {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  object-fit: contain;
}

.wallet-transactions-history .wallet-transactions__page-arrow--prev {
  transform: rotate(90deg);
}

.wallet-transactions-history .wallet-transactions__page-arrow--next {
  transform: rotate(-90deg);
}

@media (max-height: 50rem) {
  .wallet-modal__panel {
    padding: 1rem;
    gap: 1rem;
  }

  .wallet-view {
    gap: 1rem;
  }
}

@media (max-height: 42rem) and (min-width: 48.0625rem) {
  .wallet-modal__panel {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .wallet-modal--withdraw-tab .wallet-modal__panel {
    overflow: hidden;
  }

  .wallet-modal--withdraw-tab .wallet-withdraw__details {
    max-height: min(26rem, calc(100dvh - 12rem));
    max-height: min(26rem, calc(100svh - 12rem));
  }
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wallet-modal {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

.wallet-modal button,
.wallet-modal input {
  font-family: inherit;
}

.wallet-modal label.wallet-amount-field__label {
  margin: 0;
}

.wallet-modal .wallet-amount-field__input {
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
  padding: 0.9375rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.bonus-card__timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.bonus-card__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3125rem;
  background: var(--color-timer-bg);
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.0375rem;
  color: var(--color-text);
  white-space: nowrap;
}

.bonus-card__info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.1875rem;
  height: 1.1875rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.bonus-card__info img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bonus-card__info:hover {
  opacity: 0.85;
}

.bonus-card__info:focus-visible {
  outline: 0.125rem solid var(--color-accent);
  outline-offset: 0.125rem;
  border-radius: 50%;
}

.bonus-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.25rem;
  min-height: 0;
  z-index: 1;
}

.bonus-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 16.25rem;
}

.bonus-card__name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.bonus-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text-soft);
}

.bonus-card__art {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__content {
  justify-content: flex-start;
  gap: 0.5rem;
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__name {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.05625rem;
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__desc {
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.034375rem;
  color: rgba(255, 255, 255, 0.75);
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__art.bonus-card--wallet-deposit__art {
  left: 57.06%;
  top: 0;
  right: auto;
  bottom: auto;
  width: 9.15rem;
  height: 6.25rem;
  object-fit: cover;
  object-position: 6% 31%;
  transform: rotate(-13.86deg);
  transform-origin: center center;
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__timer-wrap {
  gap: 0.5rem;
}

.bonus-card.bonus-card--wallet-deposit .bonus-card__timer {
  padding: 0.25rem 0.3125rem;
  font-size: 0.6875rem;
}

/* ==========================================================================
   Profile modal вЂ” Figma 4603:14579 / 4603:14497 / 4603:14605 / 4603:15207
   ========================================================================== */

body.profile-modal-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 14, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wallet-transition-smooth);
}

.profile-modal--opening .profile-modal__backdrop,
.profile-modal:not(.profile-modal--closing) .profile-modal__backdrop {
  opacity: 1;
}

.profile-modal--closing .profile-modal__backdrop {
  opacity: 0;
}

.profile-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--profile-modal-width), 100%);
  max-height: calc(100dvh - 1.5rem);
  max-height: calc(100svh - 1.5rem);
  min-height: 0;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity var(--wallet-transition-smooth),
    transform var(--wallet-transition-smooth);
}

.profile-modal--bets .profile-modal__dialog {
  width: min(var(--profile-modal-width-bets), 100%);
}

.profile-modal--transactions .profile-modal__dialog {
  width: min(var(--profile-modal-width-transactions), 100%);
}

.profile-modal--opening .profile-modal__dialog,
.profile-modal:not(.profile-modal--closing) .profile-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-modal--closing .profile-modal__dialog {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.profile-modal__panel {
  position: relative;
  container-type: inline-size;
  container-name: profile-modal;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  padding: 1.40625rem 0.625rem 0.5rem;
  background: var(--color-auth-surface);
  border-radius: var(--profile-radius-modal);
  font-size: calc(100cqw / var(--profile-ref-width) * 16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.profile-modal--bets .profile-modal__panel {
  --profile-ref-width: 864;
  font-size: calc(100cqw / 864 * 16px);
  padding: 1.5625rem 0.875rem 0.625rem;
  gap: 1.25rem;
  overflow: hidden;
}

.profile-modal--transactions .profile-modal__panel {
  --profile-ref-width: 710;
  font-size: calc(100cqw / 710 * 16px);
  padding: 1.5625rem 0.625rem 0.625rem;
  gap: 1.25rem;
  overflow-x: auto;
}

.profile-modal__close {
  position: absolute;
  top: 1.40625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8125rem;
  height: 1.8125rem;
  padding: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: #25242e;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.profile-modal__close:hover {
  background: #2d2c36;
}

.profile-modal__close:active {
  transform: scale(0.95);
}

.profile-modal__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.profile-modal__close-icon {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
}

.profile-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.profile-modal__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.profile-modal__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9375rem;
  width: 100%;
}

.profile-modal__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  width: 100%;
}

.profile-modal__bottom:has([data-profile-main-panel="tournaments"]:not([hidden])) {
  gap: 0.875rem;
}

.profile-view[hidden] {
  display: none;
}

.profile-view--wide {
  align-items: stretch;
  gap: 1.25rem;
  min-width: 0;
  overflow-x: auto;
}

.profile-modal__avatar-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9375rem;
  height: 5.5625rem;
  padding: 1.25rem;
  border-radius: 9.375rem;
  background: var(--color-referral-field-bg);
  flex-shrink: 0;
}

.profile-modal__avatar-initials {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: #868e9a;
  white-space: nowrap;
}

.profile-modal__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem;
  border: 0.0625rem solid #ff434a;
  border-radius: 3.125rem;
  background: linear-gradient(180deg, #22212a 54.724%, #ff434a 204.9%);
  color: #868e9a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--wallet-transition-fast),
    border-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.profile-modal__logout:hover {
  background: linear-gradient(180deg, #191820 9.608%, #ff434a 192.17%);
  border-color: #ff434a;
  color: #fff;
}

.profile-modal__logout:active {
  background: #ff434a;
  border-color: #ff434a;
  color: #fff;
  transform: scale(0.98);
}

.profile-modal__logout:focus-visible {
  outline: 0.125rem solid #ff434a;
  outline-offset: 0.125rem;
}

.profile-modal__logout-icon {
  display: block;
  width: 1.23525rem;
  height: 1.2055rem;
  flex-shrink: 0;
}

.profile-modal__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  width: 100%;
}

.profile-modal__name {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--color-text);
}

.profile-modal__reg-date {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #868e9a;
}

.profile-modal__quick-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.profile-modal__quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.625rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--profile-tab-inactive-bg);
  color: #868e9a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.profile-modal__quick-btn:hover {
  color: var(--color-text);
}

.profile-modal__quick-btn:active {
  transform: scale(0.98);
}

.profile-modal__quick-btn:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.profile-modal__section-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 25.25rem;
  max-width: 100%;
  height: 4.125rem;
  padding: 0 0.9375rem;
  border-radius: 0.9375rem;
  background: var(--profile-section-tab-bg);
  flex-shrink: 0;
}

.profile-modal__section-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 11.4375rem;
  width: 11.4375rem;
  max-width: calc(50% - 0.3125rem);
  padding: 0.9375rem;
  border: 0;
  border-radius: 0.9375rem;
  background: var(--profile-tab-inactive-bg);
  color: #868e9a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.profile-modal__section-tab--active {
  background: var(--profile-tab-active-bg);
  color: #191820;
}

.profile-modal__section-tab:hover {
  color: var(--color-text);
}

.profile-modal__section-tab--active:hover {
  color: #191820;
}

.profile-modal__section-tab:active {
  transform: scale(0.98);
}

.profile-modal__section-tab:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.profile-main-panel {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  width: 100%;
}

.profile-main-panel[hidden] {
  display: none;
}

.profile-stats-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  padding: 0 0.9375rem;
  box-sizing: border-box;
}

.profile-stats-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.profile-favorite-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.125rem;
  border-radius: 1.5625rem;
  background: var(--color-referral-field-bg);
  box-sizing: border-box;
}

.profile-favorite-game__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.profile-favorite-game__cover {
  flex-shrink: 0;
  width: 4rem;
  height: 5.25rem;
  border-radius: 0.625rem;
  object-fit: cover;
}

.profile-favorite-game__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.profile-favorite-game__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: 0.75rem;
  text-align: right;
}

.profile-favorite-game__meta-label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  color: #868e9a;
}

.profile-favorite-game__meta-value {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.profile-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  width: 100%;
  align-items: center;
}

.profile-stats-grid__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.9375rem;
  width: 100%;
}

.profile-stats-grid__row--secondary {
  gap: 0.625rem;
  width: 100%;
}

.profile-stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 4.375rem;
  padding: 1.09375rem 0.75rem;
  border-radius: 0.9375rem;
  background: var(--color-referral-field-bg);
  box-sizing: border-box;
}

.profile-stats-grid__row--secondary .profile-stats-card {
  flex: 1 1 0;
  width: auto;
}

.profile-stats-card__label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: #868e9a;
}

.profile-stats-card__value {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-text);
}

.profile-tournaments__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0 1.25rem;
}

.profile-tournaments__empty-icon {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.profile-tournaments__empty-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
}

.profile-tournaments__empty[hidden],
.profile-tournaments__content[hidden] {
  display: none !important;
}

.profile-tournaments__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 29.375rem;
  min-width: 0;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.profile-tournaments__table-head,
.profile-tournament {
  display: grid;
  grid-template-columns: 4.125rem 4.625rem minmax(0, 1.4fr) 2.375rem 4.375rem;
  align-items: center;
  justify-items: center;
  column-gap: 0.3125rem;
  width: 100%;
  min-width: 0;
  padding: 0.625rem 0.625rem;
  border-radius: 0.875rem;
  box-sizing: border-box;
}

.profile-tournaments__table-head {
  background: var(--color-referral-field-bg);
}

.profile-tournaments__th {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
}

.profile-tournaments__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-tournament {
  background: var(--color-referral-field-bg);
}

.profile-tournament__cell {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: #6d6981;
  white-space: nowrap;
  min-width: 0;
}

.profile-tournament__name {
  white-space: nowrap;
  line-height: 1.15;
}

.profile-tournament__prize-currency {
  font-weight: 700;
}

.profile-main-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  width: 100%;
}

.profile-main-loading .case-loader--icon {
  width: 8.4375rem;
}

.profile-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 12rem;
  text-align: center;
  color: #6d6981;
}

.profile-hidden b {
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
}

.profile-hidden span {
  font-size: 0.875rem;
  line-height: 1.3;
  max-width: 16rem;
}

.profile-modal__avatar-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-modal__quick-nav[hidden],
.profile-modal__logout[hidden],
[data-profile-favorite-section][hidden] {
  display: none !important;
}

.profile-tournaments__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
}

.profile-tournaments__page-btn {
  min-width: 5.5rem;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-referral-field-bg);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-tournaments__page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.profile-favorite-game__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

a.profile-modal__quick-btn {
  text-decoration: none;
  text-align: center;
}

.profile-bets__header,
.profile-transactions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  width: 100%;
  padding: 0;
  flex-shrink: 0;
}

.profile-bets__title,
.profile-transactions__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.profile-bets__table-head,
.profile-bet {
  display: grid;
  grid-template-columns:
    minmax(3.25rem, 0.42fr)
    minmax(9.5rem, 2.5fr)
    minmax(5rem, 0.9fr)
    minmax(5.75rem, 1fr)
    minmax(6.25rem, 1.05fr)
    minmax(9rem, 1.15fr);
  align-items: center;
  justify-content: stretch;
  gap: clamp(0.5rem, calc(100cqw * 12 / var(--profile-bets-ref-width)), 0.875rem);
  width: 100%;
  min-width: 48rem;
  padding: 0.9375rem 1rem;
  border-radius: 0.9375rem;
  box-sizing: border-box;
}

.profile-bets__table-head {
  background: var(--color-referral-field-bg);
  flex-shrink: 0;
}

.profile-bets__th {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 0;
}

.profile-bets__th:nth-child(2) {
  text-align: left;
}

.profile-bets__content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  min-width: 0;
}

.profile-modal--bets .profile-bets__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.profile-bets__scroll {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.profile-modal--bets .profile-bets__scroll {
  flex: 1 1 auto;
  min-height: 0;
}

.profile-bets__scroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.profile-bets__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 8rem;
  padding: 0.5rem 0 1rem;
}

.profile-bets__empty-icon {
  width: clamp(3.25rem, 12vw, 6rem);
  height: clamp(3.25rem, 12vw, 6rem);
  object-fit: contain;
}

.profile-bets__empty-title {
  margin: 0;
  font-size: clamp(1.125rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
}

.profile-bets__empty[hidden],
.profile-bets__content[hidden] {
  display: none !important;
}

.profile-bets__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #393846 #191820;
}

.profile-bets__list::-webkit-scrollbar {
  width: 0.1875rem;
}

.profile-bets__list::-webkit-scrollbar-track {
  background: #191820;
  border-radius: 0.9375rem;
}

.profile-bets__list::-webkit-scrollbar-thumb {
  background: #393846;
  border-radius: 0.9375rem;
}

.profile-bet {
  background: var(--color-referral-field-bg);
}

.profile-bet__cell {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #6d6981;
}

.profile-bet__id,
.profile-bet__bet,
.profile-bet__result,
.profile-bet__balance,
.profile-bet__date {
  white-space: nowrap;
}

.profile-bet__game {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.profile-bet__bet,
.profile-bet__balance {
  color: var(--color-text);
}

.profile-bet__game a {
  color: inherit;
  text-decoration: none;
  transition: color var(--wallet-transition-fast);
}

.profile-bet__game a:hover {
  color: var(--color-accent-2);
}

.profile-bet__result--win {
  color: #44fc75;
}

.profile-bet__result--lose {
  color: #ff5c5c;
}

.profile-bet__result--default {
  color: #6d6981;
}

.profile-bets__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  flex-shrink: 0;
  padding-top: 0;
}

.profile-bets__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 0.9375rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--color-referral-field-bg);
  color: #3f3d4b;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.profile-bets__page-btn--active {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.625rem;
  background: #44fc75;
  color: #191820;
}

.profile-bets__page-btn--arrow {
  width: 2.625rem;
  height: 2.625rem;
  min-width: 2.625rem;
  min-height: 2.625rem;
  padding: 0.625rem;
  border-radius: 0.9375rem;
}

.profile-bets__page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-bets__page-btn:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.profile-bets__page-arrow {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  object-fit: contain;
}

.profile-bets__page-arrow--prev {
  transform: rotate(90deg);
}

.profile-bets__page-arrow--next {
  transform: rotate(-90deg);
}

.profile-view[data-profile-view="bets"] {
  container-type: inline-size;
  container-name: profile-bets;
}

.profile-modal--bets .profile-view[data-profile-view="bets"] {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.profile-view[data-profile-view="transactions"] {
  min-width: 0;
}

.history-page {
  width: 100%;
  max-width: min(var(--profile-modal-width-bets), 100%);
  margin: 0 auto;
}

.design-page-stack--history {
  width: 100%;
  min-width: 0;
}

.history-page__panel {
  position: relative;
  width: 100%;
  padding: 1.5625rem 0.625rem 0.625rem;
  background: var(--color-auth-surface);
  border-radius: var(--profile-radius-modal);
  box-sizing: border-box;
}

.history-page__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8125rem;
  height: 1.8125rem;
  padding: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: #25242e;
  color: var(--color-text);
  cursor: pointer;
}

.history-page__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.history-page__close-icon {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
}

.history-page .profile-bets__header {
  padding-right: 2.5rem;
  flex-shrink: 0;
}

.history-page .profile-bets__content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.history-page .profile-bets__scroll {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-height: calc(100dvh - 11rem);
  max-height: calc(100svh - 11rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.history-page .profile-bets__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.history-page .profile-bets__table-head,
.history-page .profile-bet {
  min-width: 48rem;
  width: 100%;
  box-sizing: border-box;
}

.history-page .profile-bets__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 48.0625rem) {
@container profile-modal (max-width: 26rem) {
  .profile-modal__section-tabs {
    width: 100%;
    height: auto;
    min-height: 4.125rem;
    padding: 0.5rem 0.625rem;
  }

  .profile-modal__section-tab {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-height: 3rem;
  }

  .profile-favorite-game {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-favorite-game__meta {
    align-items: flex-start;
    text-align: left;
  }

  .profile-stats-grid__row,
  .profile-stats-grid__row--secondary {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .profile-stats-card,
  .profile-stats-grid__row--secondary .profile-stats-card {
    flex: 1 1 auto;
    width: 100%;
  }

  .profile-tournaments__content {
    width: 100%;
  }

  .profile-tournaments__table-head,
  .profile-tournament {
    grid-template-columns: 3.25rem 3.75rem minmax(0, 1.35fr) 2rem 3.75rem;
    column-gap: 0.25rem;
    padding: 0.5rem 0.375rem;
  }

  .profile-tournaments__th,
  .profile-tournament__cell {
    font-size: 0.75rem;
  }

  .profile-bets__table-head,
  .profile-bet {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@container profile-modal (max-width: 20rem) {
  .profile-modal__avatar-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 5.5625rem;
    border-radius: 1.5625rem;
  }
}
}

@media (max-width: 40rem) {
  .profile-modal--bets .profile-modal__dialog,
  .profile-modal--transactions .profile-modal__dialog {
    width: 100%;
  }
}

@media (max-height: 50rem) {
  .profile-modal__panel {
    padding: 1.25rem 0.625rem 0.625rem;
    gap: 1rem;
  }

  .profile-modal__dialog {
    max-height: calc(100dvh - 1rem);
    max-height: calc(100svh - 1rem);
  }

  .profile-view {
    gap: 0.625rem;
  }
}

/* ==========================================================================
   Wheel modal вЂ” Figma node 4603:12122
   ========================================================================== */

:root {
  --wheel-modal-width: 38.4375rem;
  --wheel-modal-ratio: 615 / 697;
  --wheel-modal-radius: 2.1875rem;
  --wheel-modal-bg: #191820;
  --wheel-modal-close-bg: #25242e;
  --wheel-modal-close-size: 1.8125rem;
  --wheel-modal-close-radius: 0.3125rem;
  --wheel-modal-title-size: 2rem;
  --wheel-modal-title-tracking: -0.1rem;
  --wheel-modal-logo-width: 5.9375rem;
  --wheel-modal-logo-height: 2.1875rem;
  --wheel-modal-transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --wheel-modal-wheel-width: 105%;
  --wheel-modal-wheel-top: 22.8%;
  --wheel-modal-wheel-left: calc(49.27% - var(--wheel-modal-wheel-width) / 2);
  --wheel-modal-wheel-ratio: 788 / 786;
  /* Figma node 4603:12463 вЂ” pointer between title and wheel */
  --wheel-modal-pointer-top: 26.4%;
  --wheel-modal-pointer-width: 16.94%;
  --wheel-modal-pointer-ratio: 104 / 95;
}

body.wheel-modal-open {
  overflow: hidden;
}

.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.wheel-modal[hidden] {
  display: none;
}

.wheel-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 14, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wheel-modal-transition);
}

.wheel-modal--opening .wheel-modal__backdrop,
.wheel-modal:not(.wheel-modal--closing) .wheel-modal__backdrop {
  opacity: 1;
}

.wheel-modal--closing .wheel-modal__backdrop {
  opacity: 0;
}

.wheel-modal__dialog {
  --wheel-modal-max-height: calc(100svh - 1.5rem);
  position: relative;
  width: min(
    var(--wheel-modal-width),
    100%,
    calc(var(--wheel-modal-max-height) * 615 / 697)
  );
  height: auto;
  aspect-ratio: var(--wheel-modal-ratio);
  max-height: var(--wheel-modal-max-height);
  background: var(--wheel-modal-bg);
  border-radius: var(--wheel-modal-radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity var(--wheel-modal-transition),
    transform var(--wheel-modal-transition);
}

.wheel-modal--opening .wheel-modal__dialog,
.wheel-modal:not(.wheel-modal--closing) .wheel-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wheel-modal--closing .wheel-modal__dialog {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.wheel-modal__cooldown {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 2rem 2rem;
  text-align: center;
  color: #fff;
}

.wheel-modal__cooldown[hidden] {
  display: none;
}

.wheel-modal__cooldown-icon {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.wheel-modal__cooldown-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.wheel-modal__cooldown-timer {
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff4d7d;
  font-variant-numeric: tabular-nums;
}

.wheel-modal__cooldown-hint {
  margin: 0;
  max-width: 18rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.wheel-modal__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wheel-modal__ring {
  position: absolute;
  left: 50%;
  border: 0.0625rem solid rgba(75, 72, 97, 0.22);
  border-radius: 50%;
  transform: translateX(-50%);
}

.wheel-modal__ring--1 {
  top: 2.87%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-modal__ring--2 {
  top: 11.48%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-modal__ring--3 {
  top: 19.8%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-modal__ring--4 {
  top: var(--wheel-modal-wheel-top);
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-modal__bokeh {
  position: absolute;
  left: 4.55%;
  top: 4.59%;
  width: 89.59%;
  height: auto;
  opacity: 0.9;
}

.wheel-modal__header {
  position: relative;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.25rem 3.5rem 0;
}

.wheel-modal__logo {
  display: block;
  width: var(--wheel-modal-logo-width);
  height: var(--wheel-modal-logo-height);
  object-fit: contain;
}

.wheel-modal__title {
  margin: 0;
  max-width: 22.8125rem;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: clamp(1.375rem, 3.4vw, var(--wheel-modal-title-size));
  font-weight: 500;
  line-height: 1.1875;
  letter-spacing: var(--wheel-modal-title-tracking);
  text-align: center;
}

.wheel-modal__close {
  position: absolute;
  top: 1.5625rem;
  right: 1.5625rem;
  z-index: 11;
  display: grid;
  place-items: center;
  width: var(--wheel-modal-close-size);
  height: var(--wheel-modal-close-size);
  padding: 0;
  border: 0;
  border-radius: var(--wheel-modal-close-radius);
  background: var(--wheel-modal-close-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-base);
}

.wheel-modal__close:hover {
  background: var(--color-surface-6);
  transform: scale(1.04);
}

.wheel-modal__close:active {
  transform: scale(0.96);
}

.wheel-modal__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wheel-modal__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-modal__stage > * {
  pointer-events: auto;
}

.wheel-modal__rotor-wrap {
  position: absolute;
  left: var(--wheel-modal-wheel-left);
  top: var(--wheel-modal-wheel-top);
  width: var(--wheel-modal-wheel-width);
  aspect-ratio: var(--wheel-modal-wheel-ratio);
  container-type: inline-size;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wheel-modal__rotor {
  position: absolute;
  inset: 0;
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-modal__disc {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.wheel-modal__pointer {
  position: absolute;
  top: var(--wheel-modal-pointer-top);
  left: 50%;
  z-index: 5;
  width: var(--wheel-modal-pointer-width);
  aspect-ratio: var(--wheel-modal-pointer-ratio);
  transform: translateX(-50%);
  pointer-events: none;
}

.wheel-modal__pointer-arrow {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.wheel-modal__rotor-wrap:focus-visible {
  outline: none;
}

.wheel-modal__rotor-wrap:focus-visible .wheel-modal__disc {
  filter: brightness(1.06);
}

.wheel-modal__rotor-wrap[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.92;
}

/* в”Ђв”Ђ Win modal (Figma 4603:12468 / 12818 / 13168) в”Ђв”Ђ */

.wheel-win-modal {
  position: fixed;
  inset: 0;
  z-index: 1003;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.wheel-win-modal[hidden] {
  display: none;
}

.wheel-win-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 14, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wheel-modal-transition);
}

.wheel-win-modal--opening .wheel-win-modal__backdrop,
.wheel-win-modal:not(.wheel-win-modal--closing) .wheel-win-modal__backdrop {
  opacity: 1;
}

.wheel-win-modal--closing .wheel-win-modal__backdrop {
  opacity: 0;
}

.wheel-win-modal__dialog {
  --wheel-win-max-height: calc(100svh - 1.5rem);
  --wheel-win-logo-offset: calc(1.25rem + var(--wheel-modal-logo-height));
  --wheel-win-label-offset: 36.3cqh;
  --wheel-win-arrow-width: 40.24cqw;
  --wheel-win-arrow-height: calc(var(--wheel-win-arrow-width) * 481 / 495);
  container-type: size;
  position: relative;
  width: min(
    var(--wheel-modal-width),
    100%,
    calc(var(--wheel-win-max-height) * 615 / 697)
  );
  height: auto;
  aspect-ratio: var(--wheel-modal-ratio);
  max-height: var(--wheel-win-max-height);
  background: var(--wheel-modal-bg);
  border-radius: var(--wheel-modal-radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity var(--wheel-modal-transition),
    transform var(--wheel-modal-transition);
}

.wheel-win-modal--opening .wheel-win-modal__dialog,
.wheel-win-modal:not(.wheel-win-modal--closing) .wheel-win-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wheel-win-modal--closing .wheel-win-modal__dialog {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.wheel-win-modal__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wheel-win-modal__ring {
  position: absolute;
  left: 50%;
  border: 0.0625rem solid rgba(75, 72, 97, 0.22);
  border-radius: 50%;
  transform: translateX(-50%);
}

.wheel-win-modal__ring--1 {
  top: 2.87%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-win-modal__ring--2 {
  top: 11.48%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-win-modal__ring--3 {
  top: 19.8%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-win-modal__ring--4 {
  top: 59.83%;
  width: 140.49%;
  aspect-ratio: 1;
}

.wheel-win-modal__bokeh {
  position: absolute;
  left: 4.55%;
  top: 4.59%;
  width: 89.59%;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
}

.wheel-win-modal__header {
  position: relative;
  z-index: 6;
  display: grid;
  justify-items: center;
  padding: 1.25rem 3.5rem 0;
}

.wheel-win-modal__logo {
  display: block;
  width: var(--wheel-modal-logo-width);
  height: var(--wheel-modal-logo-height);
  object-fit: contain;
}

.wheel-win-modal__close {
  position: absolute;
  top: 1.5625rem;
  right: 1.5625rem;
  display: grid;
  place-items: center;
  width: var(--wheel-modal-close-size);
  height: var(--wheel-modal-close-size);
  padding: 0;
  border: 0;
  border-radius: var(--wheel-modal-close-radius);
  background: var(--wheel-modal-close-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-base);
}

.wheel-win-modal__close:hover {
  background: var(--color-surface-6);
  transform: scale(1.04);
}

.wheel-win-modal__close:active {
  transform: scale(0.96);
}

.wheel-win-modal__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.wheel-win-modal__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--wheel-win-label-offset) - var(--wheel-win-logo-offset));
  gap: 0.875rem;
}

.wheel-win-modal__arrow {
  position: absolute;
  top: calc(
    (var(--wheel-win-logo-offset) + var(--wheel-win-label-offset)) / 2 - var(--wheel-win-arrow-height) / 2
  );
  left: 50%;
  z-index: 5;
  display: block;
  width: var(--wheel-win-arrow-width);
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.wheel-win-modal__label {
  margin: 0;
  color: #868e9a;
  font-family: var(--font-family);
  font-size: clamp(1.125rem, 3.4vw, 1.375rem);
  font-weight: 500;
  line-height: normal;
  text-align: center;
}

.wheel-win-modal__prize {
  margin: 0;
  color: #fff;
  font-family: var(--font-family);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.wheel-win-modal__prize--percent {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.wheel-win-modal__prize-main {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
}

.wheel-win-modal__prize-suffix {
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 600;
  line-height: 1;
}

.wheel-win-modal__note {
  margin: 0.5625rem 0 0;
  padding: 0.8125rem 0.9375rem;
  border-radius: 3.125rem;
  background: #252430;
  color: #acb7c7;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.wheel-win-modal__wheel-bg {
  position: absolute;
  left: 0;
  top: 59.83%;
  z-index: 3;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.wheel-win-modal__glow {
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 2;
  width: 133.66%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.wheel-win-modal__cta {
  position: absolute;
  left: 3.25%;
  right: 3.25%;
  bottom: 4.3%;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.0625rem;
  border: 0;
  border-radius: 0.9375rem;
  background: #44fc75;
  color: #0c0b0e;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease-in-out,
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.wheel-win-modal__cta:hover {
  background: #56ff85;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0 1.5rem rgba(68, 252, 117, 0.35);
}

.wheel-win-modal__cta:focus-visible {
  outline: 0.125rem solid #44fc75;
  outline-offset: 0.125rem;
}

.wheel-win-modal__cta:active {
  transform: translateY(0);
}

@media (max-width: 48rem) {
  .wheel-win-modal__header {
    padding: 0.875rem 2.75rem 0;
  }

  .wheel-win-modal__dialog {
    --wheel-win-logo-offset: calc(0.875rem + var(--wheel-modal-logo-height));
  }

  .wheel-win-modal__close {
    top: 0.875rem;
    right: 0.875rem;
  }

  .wheel-win-modal__wheel-bg {
    top: 59.5%;
    width: 100%;
  }

  .wheel-win-modal__note {
    font-size: 0.75rem;
    white-space: normal;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 40rem) {
  .wheel-win-modal__header {
    padding: 1rem 3rem 0;
  }

  .wheel-win-modal__dialog {
    --wheel-win-logo-offset: calc(1rem + var(--wheel-modal-logo-height));
  }

  .wheel-win-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .wheel-win-modal__wheel-bg {
    top: 59.83%;
    width: 100%;
  }

  .wheel-win-modal__note {
    font-size: 0.75rem;
    white-space: normal;
    max-width: calc(100% - 2.5rem);
  }
}

@media (max-height: 36rem) {
  .wheel-win-modal__dialog {
    --wheel-win-label-offset: 34cqh;
  }

  .wheel-win-modal__content {
    gap: 0.5rem;
  }

  .wheel-win-modal__wheel-bg {
    top: 58.5%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-win-modal__dialog,
  .wheel-win-modal__backdrop,
  .wheel-win-modal__close,
  .wheel-win-modal__cta {
    transition: none;
  }
}

/* ==========================================================================
   Canvas spin wheel вЂ” wheel.html
   ========================================================================== */

.wheel-spin-modal {
  position: fixed;
  inset: 0;
  z-index: 1004;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wheel-spin-modal[hidden] {
  display: none;
}

.wheel-spin-modal--open {
  opacity: 1;
  pointer-events: all;
}

.wheel-spin-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 5, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.wheel-spin-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.88) translateY(1rem);
  transition: transform 0.4s cubic-bezier(0.34, 1.52, 0.64, 1);
}

.wheel-spin-modal--open .wheel-spin-modal__panel {
  transform: scale(1) translateY(0);
}

.wheel-spin-modal__close {
  position: absolute;
  top: -3.5rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.wheel-spin-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.wheel-spin-wrap {
  position: relative;
  container-type: inline-size;
  width: min(49.25rem, calc(100vw - 2rem), calc(100svh - 8rem));
  aspect-ratio: 788 / 786;
  flex-shrink: 0;
}

.wheel-spin-rotor {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-spin-rotor--active .wheel-spin-disc {
  filter: blur(1.5px);
}

.wheel-spin-disc {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.wheel-spin-pointer {
  position: absolute;
  top: -1.2%;
  left: 50%;
  z-index: 20;
  width: 13.2%;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(185, 50, 110, 0.85));
}

.wheel-spin-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: 28.93%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wheel-spin-hub__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108.86%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  mix-blend-mode: hard-light;
  clip-path: circle(50% at 50% 50%);
  pointer-events: none;
}

.wheel-spin-hub__stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 152.63%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  clip-path: circle(50% at 50% 50%);
  pointer-events: none;
}

.wheel-spin-hub__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 49.12%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0.4;
  pointer-events: none;
}

.wheel-spin-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28.93%;
  height: 28.93%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease-in-out;
}

.wheel-spin-btn__text {
  position: relative;
  z-index: 1;
  font-family: "Inter", var(--font-family);
  font-weight: 900;
  font-style: italic;
  font-size: 4.06cqw;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 20px #000;
  transition: transform 0.15s ease-in-out;
}

.wheel-spin-btn__text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #1c1c1c;
  transform: translateY(0.09em);
  text-shadow: none;
  z-index: -1;
}

.wheel-spin-btn:hover:not(:disabled) .wheel-spin-btn__text {
  transform: scale(1.04);
}

.wheel-spin-btn:active:not(:disabled) .wheel-spin-btn__text {
  transform: scale(0.96);
}

.wheel-spin-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.wheel-spin-btn:focus-visible {
  outline: 0.125rem solid #44fc75;
  outline-offset: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .wheel-spin-modal,
  .wheel-spin-modal__panel {
    transition: none;
  }
}

@media (max-width: 48rem) {
  :root {
    --wheel-modal-width: calc(100vw - 1.5rem);
    --wheel-modal-radius: 1.5625rem;
    --wheel-modal-close-size: 2.25rem;
    --wheel-modal-logo-width: 5rem;
    --wheel-modal-logo-height: 1.875rem;
    --wheel-modal-title-size: 1.625rem;
    --wheel-modal-wheel-width: 100%;
    --wheel-modal-wheel-top: 21%;
    --wheel-modal-pointer-top: 24.5%;
    --wheel-modal-pointer-width: 16%;
  }

  .wheel-modal,
  .wheel-win-modal,
  .wheel-spin-modal {
    padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
      max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
  }

  body.design-nav-active .wheel-win-modal {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .wheel-modal__dialog {
    --wheel-modal-max-height: calc(100svh - 1rem);
    width: min(
      var(--wheel-modal-width),
      100%,
      calc(var(--wheel-modal-max-height) * 615 / 697)
    );
  }

  .wheel-win-modal__dialog {
    --wheel-win-max-height: calc(100svh - 1rem);
    width: min(
      var(--wheel-modal-width),
      100%,
      calc(var(--wheel-win-max-height) * 615 / 697)
    );
  }

  body.design-nav-active .wheel-win-modal__dialog {
    --wheel-win-max-height: calc(100svh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  body.design-nav-active .wheel-win-modal--opening .wheel-win-modal__dialog,
  body.design-nav-active .wheel-win-modal:not(.wheel-win-modal--closing) .wheel-win-modal__dialog {
    transform: translateY(0) scale(1);
  }

  body.design-nav-active .wheel-win-modal--closing .wheel-win-modal__dialog {
    transform: translateY(0.75rem) scale(0.98);
  }

  .wheel-modal__header,
  .wheel-win-modal__header {
    gap: 0.625rem;
    padding: 0.875rem 2.75rem 0;
  }

  .wheel-modal__close,
  .wheel-win-modal__close {
    top: 0.875rem;
    right: 0.875rem;
    width: var(--wheel-modal-close-size);
    height: var(--wheel-modal-close-size);
  }

  .wheel-modal__title {
    max-width: 100%;
    font-size: clamp(1.25rem, 5.4vw, var(--wheel-modal-title-size));
  }

  .wheel-modal__title br {
    display: none;
  }

  .wheel-modal__cooldown {
    padding: 3.25rem 1.25rem 1.5rem;
  }

  .wheel-modal__cooldown-icon {
    font-size: 3.25rem;
    margin-bottom: 1rem;
  }

  .wheel-modal__cooldown-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .wheel-modal__cooldown-timer {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }

  .wheel-modal__cooldown-hint {
    font-size: 0.875rem;
    max-width: 16rem;
  }

  .wheel-win-modal__dialog {
    --wheel-win-logo-offset: calc(0.875rem + var(--wheel-modal-logo-height));
  }

  .wheel-win-modal__content {
    gap: 0.625rem;
    padding-top: calc(var(--wheel-win-label-offset) - var(--wheel-win-logo-offset));
  }

  .wheel-win-modal__label {
    font-size: clamp(1rem, 3.8vw, 1.25rem);
  }

  .wheel-win-modal__prize {
    font-size: clamp(2rem, 9vw, 2.75rem);
    white-space: normal;
    text-align: center;
    max-width: calc(100% - 2rem);
  }

  .wheel-win-modal__note {
    font-size: 0.75rem;
    white-space: normal;
    max-width: calc(100% - 2rem);
    line-height: 1.35;
  }

  .wheel-win-modal__wheel-bg {
    top: 59.5%;
    width: 100%;
  }

  .wheel-win-modal__glow {
    width: 118%;
    bottom: -6%;
  }

  .wheel-win-modal__cta {
    left: 4%;
    right: 4%;
    bottom: 3.75%;
    height: 2.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }

  .wheel-spin-modal__panel {
    width: 100%;
    max-width: calc(100vw - 1rem);
  }

  .wheel-spin-modal__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 30;
    font-size: 1.125rem;
  }

  .wheel-spin-wrap {
    width: min(49.25rem, calc(100vw - 1rem), calc(100svh - 5.5rem));
    max-height: calc(100svh - 5.5rem);
  }
}

@media (max-width: 40rem) {
  :root {
    --wheel-modal-wheel-width: 102%;
    --wheel-modal-wheel-top: 21.1%;
    --wheel-modal-pointer-top: 25.2%;
  }

  .wheel-modal__header {
    gap: 0.75rem;
    padding: 1rem 3rem 0;
  }

  .wheel-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .wheel-modal__title br {
    display: none;
  }
}

@media (max-width: 24rem) {
  :root {
    --wheel-modal-width: calc(100vw - 1rem);
    --wheel-modal-radius: 1.25rem;
    --wheel-modal-title-size: 1.375rem;
    --wheel-modal-wheel-width: 98%;
    --wheel-modal-wheel-top: 20.5%;
    --wheel-modal-pointer-top: 23.8%;
    --wheel-modal-pointer-width: 15.5%;
  }

  .wheel-modal__header,
  .wheel-win-modal__header {
    padding: 0.75rem 2.5rem 0;
  }

  .wheel-modal__cooldown {
    padding: 2.75rem 1rem 1.25rem;
  }

  .wheel-modal__cooldown-timer {
    font-size: 2rem;
  }

  .wheel-win-modal__prize {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  }

  .wheel-spin-wrap {
    width: min(49.25rem, calc(100vw - 0.75rem), calc(100svh - 4.75rem));
    max-height: calc(100svh - 4.75rem);
  }
}

@media (max-height: 44rem) {
  :root {
    --wheel-modal-width: min(38.4375rem, calc(100vw - 1.5rem));
    --wheel-modal-wheel-width: 100%;
    --wheel-modal-wheel-top: 20.1%;
    --wheel-modal-pointer-top: 24.4%;
  }

  .wheel-spin-wrap {
    width: min(49.25rem, calc(100vw - 1rem), calc(100svh - 4.5rem));
    max-height: calc(100svh - 4.5rem);
  }
}

@media (max-height: 36rem) {
  :root {
    --wheel-modal-wheel-width: 94%;
    --wheel-modal-wheel-top: 18.1%;
    --wheel-modal-title-size: 1.5rem;
    --wheel-modal-pointer-top: 22.8%;
    --wheel-modal-pointer-width: 15.5%;
  }

  .wheel-modal__header {
    gap: 0.5rem;
    padding: 0.75rem 2.5rem 0;
  }

  .wheel-modal__cooldown {
    padding: 2.5rem 1rem 1rem;
  }

  .wheel-modal__cooldown-icon {
    font-size: 2.75rem;
  }

  .wheel-modal__cooldown-timer {
    font-size: 1.875rem;
  }

  .wheel-win-modal__dialog {
    --wheel-win-label-offset: 34cqh;
  }

  .wheel-win-modal__content {
    gap: 0.5rem;
  }

  .wheel-win-modal__wheel-bg {
    top: 58.5%;
  }

  .wheel-spin-wrap {
    width: min(49.25rem, calc(100vw - 0.75rem), calc(100svh - 3.75rem));
    max-height: calc(100svh - 3.75rem);
  }

  .wheel-spin-modal__close {
    top: 0.375rem;
    right: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Profile modal mobile — Figma 4603:11305 (360×624, content 320px) */
  .profile-modal {
    padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
      max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
  }

  .profile-modal__dialog,
  .profile-modal--bets .profile-modal__dialog,
  .profile-modal--transactions .profile-modal__dialog {
    width: min(22.5rem, calc(100vw - 1.5rem));
    max-height: calc(100svh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .profile-modal__panel {
    --profile-ref-width: 320;
    gap: 0.625rem;
    padding: 1.25rem;
    border-radius: 2.1875rem;
    font-size: 1rem;
  }

  .profile-modal--bets .profile-modal__panel,
  .profile-modal--transactions .profile-modal__panel {
    --profile-ref-width: 320;
    gap: 1.25rem;
    padding: 1.25rem;
    font-size: 1rem;
  }

  .profile-modal__close {
    top: 1.25rem;
    right: 1.25rem;
    width: 1.8125rem;
    height: 1.8125rem;
    border-radius: 0.3125rem;
  }

  .profile-modal__close-icon {
    width: 0.625rem;
    height: 0.625rem;
  }

  .profile-view {
    align-items: center;
    gap: 0.625rem;
  }

  .profile-modal__main {
    align-items: center;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-modal__intro {
    align-items: center;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-modal__bottom {
    align-items: center;
    gap: 1.25rem;
    width: 100%;
  }

  .profile-modal__avatar-bar {
    width: auto;
    max-width: 100%;
    height: 5.5625rem;
    flex-wrap: nowrap;
    padding: 1.25rem;
    gap: 0.9375rem;
    border-radius: 9.375rem;
  }

  .profile-modal__avatar-initials {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    color: #868e9a;
  }

  .profile-modal__logout {
    gap: 0.625rem;
    padding: 0.625rem;
    border-radius: 3.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
  }

  .profile-modal__logout-icon {
    width: 1.23525rem;
    height: 1.2055rem;
  }

  .profile-modal__identity {
    gap: 0;
    width: 100%;
  }

  .profile-modal__name {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
  }

  .profile-modal__reg-date {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
  }

  .profile-modal__quick-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-modal__quick-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    color: #868e9a;
  }

  .profile-modal__quick-btn[data-profile-nav="bets"] {
    width: 8.5625rem;
  }

  .profile-modal__quick-btn[data-profile-nav="transactions"] {
    width: 10.8125rem;
  }

  .profile-modal__section-tabs {
    width: 100%;
    height: 4.125rem;
    min-height: 4.125rem;
    padding: 0 0.9375rem;
    gap: 0.625rem;
    border-radius: 0.9375rem;
  }

  .profile-modal__section-tab {
    flex: 0 0 8.125rem;
    width: 8.125rem;
    max-width: 8.125rem;
    min-height: 0;
    padding: 0.9375rem;
    border-radius: 0.9375rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
  }

  .profile-main-panel {
    align-items: stretch;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-stats-section {
    align-self: stretch;
    width: 100%;
    padding: 0;
    gap: 0.625rem;
  }

  .profile-main-panel .profile-stats-section:last-of-type {
    padding-right: 0.9375rem;
    box-sizing: border-box;
  }

  .profile-stats-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
  }

  .profile-favorite-game {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9375rem;
    border-radius: 1.5625rem;
    gap: 0.625rem;
  }

  .profile-favorite-game__main {
    gap: 0.625rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .profile-favorite-game__cover {
    width: 3rem;
    height: 3.9375rem;
    border-radius: 0.625rem;
  }

  .profile-favorite-game__title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
  }

  .profile-favorite-game__meta {
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    margin-left: 0.625rem;
  }

  .profile-favorite-game__meta-label {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .profile-favorite-game__meta-value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .profile-stats-grid {
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-stats-grid__row,
  .profile-stats-grid__row--secondary {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.625rem;
    width: 100%;
  }

  .profile-stats-card,
  .profile-stats-grid__row--secondary .profile-stats-card {
    flex: 0 0 9.6875rem;
    width: 9.6875rem;
    min-width: 9.6875rem;
    height: 3.3125rem;
    min-height: 3.3125rem;
    padding: 0.625rem;
    border-radius: 0.9375rem;
    gap: 0.3125rem;
  }

  .profile-stats-card__label {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
  }

  .profile-stats-card__value {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
  }

  .profile-tournaments__content {
    width: 100%;
    padding: 0;
    gap: 0.625rem;
  }

  .profile-tournaments__empty {
    gap: 0.625rem;
    padding: 0 0 1.25rem;
  }

  .profile-tournaments__empty-icon {
    width: 5rem;
    height: 5rem;
  }

  .profile-tournaments__empty-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
  }

  .profile-tournaments__table-head,
  .profile-tournament {
    grid-template-columns: 2.5625rem 2.875rem minmax(0, 1fr) 1.5rem 3.25rem;
    column-gap: 0.8125rem;
    padding: 0.9375rem;
    border-radius: 0.9375rem;
  }

  .profile-tournaments__th,
  .profile-tournament__cell {
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.15;
    color: #6d6981;
  }

  .profile-tournaments__th {
    font-weight: 400;
    color: var(--color-text);
  }

  .profile-bets__title,
  .profile-transactions__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
  }

  .profile-view--wide {
    align-items: stretch;
    gap: 1.25rem;
    overflow-x: visible;
    min-width: 0;
  }

  .wallet-transactions-history.profile-view--wide {
    overflow-x: visible;
  }

  .profile-modal--bets .profile-bets__table-head,
  .profile-modal--bets .profile-bet {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1.75rem minmax(0, 1.45fr) 2.5rem 2.25rem 2.75rem 3rem;
    column-gap: 0.625rem;
    padding: 0.9375rem;
    border-radius: 0.9375rem;
  }

  .profile-modal--bets .profile-bets__th {
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1;
  }

  .profile-modal--bets .profile-bet__cell {
    font-size: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
  }

  .profile-modal--bets .profile-bets__pagination {
    gap: 0.625rem;
    padding-top: 0;
  }

  .profile-modal--bets .profile-bets__page-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.625rem 0.9375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.625rem;
  }

  .profile-modal--bets .profile-bets__page-btn--active {
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 0.625rem;
    background: #44fc75;
    color: #191820;
  }

  .profile-modal--bets .profile-bets__page-btn--arrow {
    width: 2.625rem;
    height: 2.625rem;
    min-width: 2.625rem;
    min-height: 2.625rem;
    padding: 0.625rem;
    border-radius: 0.9375rem;
  }

  .profile-modal--bets .profile-bets__page-arrow {
    width: 0.375rem;
    height: 0.75rem;
  }

  body.history-page-open .page {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .history-page .profile-bets__table-head,
  .history-page .profile-bet {
    min-width: 48rem;
    grid-template-columns:
      minmax(3.25rem, 0.42fr)
      minmax(9.5rem, 2.5fr)
      minmax(5rem, 0.9fr)
      minmax(5.75rem, 1fr)
      minmax(6.25rem, 1.05fr)
      minmax(9rem, 1.15fr);
    column-gap: 0.625rem;
    padding: 0.9375rem 1rem;
    border-radius: 0.9375rem;
  }

  .history-page .profile-bets__th,
  .history-page .profile-bet__cell {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
  }

  .history-page .profile-bets__th {
    font-weight: 400;
    font-size: 0.875rem;
  }

  .wallet-transactions-history {
    --wallet-transactions-ref-width: 320;
  }

  .wallet-transactions-history .wallet-transactions__filters {
    gap: 0.625rem;
  }

  .wallet-transactions-history .wallet-transactions-filter {
    min-height: 2.625rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
  }

  .wallet-transactions-history .wallet-transactions__table-head,
  .wallet-transactions-history .wallet-transaction {
    padding: 0.9375rem;
    border-radius: 0.9375rem;
    font-size: 0.75rem;
  }

  .wallet-transactions-history .wallet-transactions__content--deposits .wallet-transactions__table-head,
  .wallet-transactions-history .wallet-transactions__content--deposits .wallet-transaction {
    min-width: 38rem;
  }

  .wallet-transactions-history .wallet-transactions__content--withdrawals .wallet-transactions__table-head,
  .wallet-transactions-history .wallet-transactions__content--withdrawals .wallet-transaction {
    min-width: 46rem;
  }

  .wallet-transactions-history .wallet-transactions__empty-icon {
    width: 5rem;
    height: 5rem;
  }

  .wallet-transactions-history .wallet-transactions__empty-title {
    font-size: 1.25rem;
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-modal__dialog,
  .wheel-modal__backdrop,
  .wheel-modal__rotor,
  .wheel-modal__close {
    transition: none;
  }
}

/* ==========================================================================
   Payment / check link modal
   ========================================================================== */

body.payment-link-modal-open {
  overflow: hidden;
}

.payment-link-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.payment-link-modal[hidden] {
  display: none;
}

.payment-link-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 14, 0.82);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--wallet-transition-smooth);
}

.payment-link-modal--opening .payment-link-modal__backdrop,
.payment-link-modal:not(.payment-link-modal--closing) .payment-link-modal__backdrop {
  opacity: 1;
}

.payment-link-modal--closing .payment-link-modal__backdrop {
  opacity: 0;
}

.payment-link-modal__dialog {
  position: relative;
  width: min(22.5rem, 100%);
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity var(--wallet-transition-smooth),
    transform var(--wallet-transition-smooth);
}

.payment-link-modal--opening .payment-link-modal__dialog,
.payment-link-modal:not(.payment-link-modal--closing) .payment-link-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.payment-link-modal--closing .payment-link-modal__dialog {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.payment-link-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  padding: 1.5rem 1.375rem 1.375rem;
  background: var(--color-auth-surface);
  border-radius: var(--wallet-radius-modal);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.42);
}

.payment-link-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8125rem;
  height: 1.8125rem;
  padding: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: var(--color-auth-close);
  color: var(--color-text);
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.payment-link-modal__close:hover {
  background: var(--color-auth-close-hover);
}

.payment-link-modal__close:active {
  transform: scale(0.95);
}

.payment-link-modal__close:focus-visible {
  outline: 0.125rem solid var(--color-accent-2);
  outline-offset: 0.125rem;
}

.payment-link-modal__close-icon {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
}

.payment-link-modal__title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: var(--color-text);
}

.payment-link-modal__subtitle {
  margin: -0.25rem 0 0.25rem;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  color: var(--color-text-muted);
}

.payment-link-modal__field {
  position: relative;
  display: grid;
  grid-template-columns: auto 0.0625rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.0625rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--wallet-radius-field);
  background: var(--color-bg);
}

.payment-link-modal__field-label {
  flex-shrink: 0;
  font-size: var(--font-md);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.payment-link-modal__field-divider {
  width: 0.0625rem;
  height: 2rem;
  background: var(--color-auth-credential-divider);
}

.payment-link-modal__field-input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  outline: none;
}

.payment-link-modal__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
  transition:
    opacity var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.payment-link-modal__copy img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.payment-link-modal__field:hover .payment-link-modal__copy,
.payment-link-modal__field--copied .payment-link-modal__copy {
  opacity: 1;
}

.payment-link-modal__copy:hover {
  transform: scale(1.06);
}

.payment-link-modal__copy:active {
  transform: scale(0.94);
}

.payment-link-modal__tooltip {
  position: absolute;
  top: -1.4375rem;
  right: 0.75rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.5rem;
  background: var(--color-auth-tooltip);
  font-size: var(--font-xs);
  font-weight: 500;
  line-height: normal;
  color: var(--color-text-dark);
  white-space: nowrap;
  pointer-events: none;
}

.payment-link-modal__tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.3125rem;
  width: 0;
  height: 0;
  border-left: 0.375rem solid transparent;
  border-right: 0.375rem solid transparent;
  border-top: 0.375rem solid var(--color-auth-tooltip);
  transform: translateX(-50%);
}

.payment-link-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wallet-submit-height);
  margin-top: 0.25rem;
  padding: 0.75rem 0.875rem;
  border: 0;
  border-radius: var(--wallet-radius-tab);
  background: var(--color-accent-2);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--wallet-transition-fast),
    transform var(--wallet-transition-fast);
}

.payment-link-modal__submit:hover {
  background: var(--color-auth-submit-hover);
}

.payment-link-modal__submit:active {
  transform: scale(0.99);
  background: var(--color-auth-submit-press);
}

.payment-link-modal__submit:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.125rem;
}

@media (max-width: 24rem) {
  .payment-link-modal__field {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.625rem;
  }

  .payment-link-modal__field-label,
  .payment-link-modal__field-divider {
    display: none;
  }

  .payment-link-modal__field-input {
    grid-column: 1;
    grid-row: 1;
  }

  .payment-link-modal__copy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-link-modal__dialog,
  .payment-link-modal__backdrop,
  .payment-link-modal__close,
  .payment-link-modal__copy,
  .payment-link-modal__submit {
    transition: none;
  }
}

/* ==========================================================================
   Alert confirm modals — Bootstrap #modal-logout, #modal-forfeit-confirm
   ========================================================================== */

body:has(#modal-logout.in) .modal-backdrop.in,
body:has(#modal-forfeit-confirm.in) .modal-backdrop.in,
body:has(#modal-forfeit-confirm.show) .modal-backdrop.show {
  background-color: rgba(12, 11, 14, 0.8);
  opacity: 1;
}

#modal-logout.modal,
#modal-forfeit-confirm.modal {
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
}

#modal-logout .modal-dialog,
#modal-forfeit-confirm .modal-dialog {
  max-width: 27.25rem;
  width: 100%;
  margin: 0 auto;
}

#modal-logout .modal-content,
#modal-forfeit-confirm .modal-content {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#modal-logout .alert-modal__panel,
#modal-forfeit-confirm .alert-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5625rem;
  background: #191820;
  border-radius: 2.1875rem;
  font-family: var(--font-family);
}

#modal-logout .alert-modal__title,
#modal-forfeit-confirm .alert-modal__title {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

#modal-forfeit-confirm .alert-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#modal-forfeit-confirm .alert-modal__title {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.5rem;
}

#modal-forfeit-confirm .alert-modal__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.8125rem;
  height: 1.8125rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.3125rem;
  background: #25242e;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease;
}

#modal-forfeit-confirm .alert-modal__close:hover {
  background: #2f2d3a;
}

#modal-forfeit-confirm .alert-modal__close:focus-visible {
  outline: 0.125rem solid #44fc75;
  outline-offset: 0.125rem;
}

#modal-forfeit-confirm .alert-modal__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.9375rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

#modal-forfeit-confirm .alert-modal__notice--danger {
  background: rgba(221, 65, 54, 0.14);
  border: 0.0625rem solid rgba(221, 65, 54, 0.38);
  color: #ff8a84;
}

#modal-forfeit-confirm .alert-modal__notice-icon {
  flex-shrink: 0;
  margin-top: 0.0625rem;
  color: #dd4136;
}

#modal-forfeit-confirm .alert-modal__notice-text {
  margin: 0;
  color: #ffb4af;
}

#modal-logout .alert-modal__actions,
#modal-forfeit-confirm .alert-modal__actions {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  padding: 0;
  border: 0;
}

#modal-logout .alert-modal__actions--split .alert-modal__btn,
#modal-forfeit-confirm .alert-modal__actions--split .alert-modal__btn {
  flex: 1 1 0;
  min-width: 0;
}

#modal-logout .alert-modal__btn,
#modal-forfeit-confirm .alert-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 0.9375rem 1rem;
  border: 0;
  border-radius: 0.9375rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

#modal-logout .alert-modal__btn--primary,
#modal-forfeit-confirm .alert-modal__btn--primary {
  background: #44fc75;
  color: #0c0b0e;
}

#modal-logout .alert-modal__btn--primary:hover,
#modal-forfeit-confirm .alert-modal__btn--primary:hover {
  filter: brightness(1.05);
  opacity: 1;
}

#modal-logout .alert-modal__btn--secondary {
  background: #25242e;
  color: #ffffff;
}

#modal-logout .alert-modal__btn--secondary:hover {
  background: #2f2d3a;
  opacity: 1;
}

#modal-forfeit-confirm .alert-modal__btn--danger {
  background: rgba(221, 65, 54, 0.18);
  border: 0.0625rem solid rgba(221, 65, 54, 0.42);
  color: #ff9b95;
}

#modal-forfeit-confirm .alert-modal__btn--danger:hover {
  background: rgba(221, 65, 54, 0.28);
  color: #ffc4c0;
}

#modal-logout .alert-modal__btn:active,
#modal-forfeit-confirm .alert-modal__btn:active {
  transform: scale(0.99);
}

#modal-logout .alert-modal__btn:focus-visible,
#modal-forfeit-confirm .alert-modal__btn--primary:focus-visible {
  outline: 0.125rem solid #44fc75;
  outline-offset: 0.125rem;
}

#modal-forfeit-confirm .alert-modal__btn--danger:focus-visible {
  outline: 0.125rem solid rgba(221, 65, 54, 0.75);
  outline-offset: 0.125rem;
}

@media (max-width: 48rem) {
  #modal-logout .alert-modal__panel,
  #modal-forfeit-confirm .alert-modal__panel {
    padding: 1.25rem 1rem;
    gap: 1rem;
    border-radius: 1.5rem;
  }

  #modal-logout .alert-modal__title,
  #modal-forfeit-confirm .alert-modal__title {
    font-size: 1.25rem;
  }

  #modal-logout .alert-modal__actions,
  #modal-forfeit-confirm .alert-modal__actions {
    gap: 0.625rem;
  }

  #modal-logout .alert-modal__btn,
  #modal-forfeit-confirm .alert-modal__btn {
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 24rem) {
  #modal-logout .alert-modal__panel,
  #modal-forfeit-confirm .alert-modal__panel {
    padding: 1rem 0.875rem;
    border-radius: 1.25rem;
  }

  #modal-logout .alert-modal__title,
  #modal-forfeit-confirm .alert-modal__title {
    font-size: 1.125rem;
  }

  #modal-logout .alert-modal__btn,
  #modal-forfeit-confirm .alert-modal__btn {
    min-height: 2.75rem;
    font-size: 0.875rem;
  }
}

@media (max-height: 32rem) {
  #modal-logout .alert-modal__panel,
  #modal-forfeit-confirm .alert-modal__panel {
    gap: 0.875rem;
    padding-top: 1rem;
    padding-bottom: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #modal-logout .alert-modal__btn,
  #modal-forfeit-confirm .alert-modal__btn,
  #modal-forfeit-confirm .alert-modal__close {
    transition: none;
  }
}
