/* Общие стили */

@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/SFProText-Regular.ttf') format('truetype');
  /* Путь к Regular */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/SFProText-Bold.ttf') format('truetype');
  /* Путь к Bold */
  font-weight: bold;
  font-style: normal;
}

:root {
  --font-family-display: -apple-system, "SF Pro Display", "SF Pro Text", sans-serif;
  --font-family-text: -apple-system, "SF Pro Text", sans-serif;
  --font-family-mono: -apple-system, "SF Mono", monospace;
  --color-text-secondary: var(--color-n70);
}

* {
  font-family: var(--font-family-text) !important;
}

body, html {
    /* background-image: linear-gradient(315deg, #16191d 0%, #252a2e 100%) !important; */
    background-color: var(--main-background-color, #090f1e) !important;
    /* height: max-content !important; */
}

body {
  margin: 0;
  font-family: var(--font-family-text) !important;
  /* background-color: #090f1e; */
  /* background-image: linear-gradient(315deg, #16191d 0%, #252a2e 100%); */
}

html {
  touch-action: manipulation;
}

.input {
  width: 100% !important;
}

#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(102, 102, 102, 0.5);
  /* Полупрозрачный серый */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  visibility: hidden;
  /* Скрыто по умолчанию */
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #090f1e;
  /* Цвет фона */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #141b2e;
  gap: 1em;
}

.jet-nav-promt img {
  vertical-align: middle;
  height: 20px;
}

.logo img {
  width: 90px;
  height: auto;
}

.header-content-left {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-start;
  z-index: 10000;
}

.header-content-center {
  display: flex;
  margin-top: .5em;
}

.header-content-right {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  min-height: 70px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.settings__logout {
  margin-top: auto;
  /* Размещает кнопку внизу */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.logout-btn:hover {
  opacity: 0.8;
}

.settings__logout .settings__icon {
  margin-right: 10px;
  color: #ff4d4f;
  /* Красный цвет для иконки выхода */
}

.btn-primary {
  background: linear-gradient(263.87deg, #0095ff 0%, #0855c4 100%);
  box-shadow: rgba(25, 201, 245, 0.1) 0px 10px 20px, rgba(92, 36, 252, 0.1) 0px 10px 20px, #0095ff 0px -2px 4px inset, #0855c4 0px -8px 8px inset;
  font-weight: 600 !important;
  border-radius: 10px;
}

.dropdown-toggle::after {
  display: none !important;
}

.btn-success {
  position: relative;
  background: linear-gradient(263.87deg, #31bc69 0%, #058541 100%);
  box-shadow: rgba(25, 201, 245, 0.1) 0px 10px 20px, rgba(92, 36, 252, 0.1) 0px 10px 20px, #31bc69 0px -2px 4px inset, #058541 0px -8px 8px inset;
  font-weight: 600 !important;
  border-radius: 10px;
  overflow: hidden;
}

.btn-success:before {
  background-color: #fff3;
  bottom: 0;
  content: "";
  position: absolute;
  top: 0;
  transform: skew(-30deg);
  width: 30px;
  will-change: left;
  z-index: 1;
  animation: flare 5s infinite ease;
}

@keyframes flare {
  0% {
    left: -45px
  }

  20% {
    left: calc(100% + 15px)
  }

  to {
    left: calc(100% + 15px)
  }
}

.user-id-container {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-weight: bold;
  color: #999999;
  cursor: pointer;
}

.copy-icon {
  width: 15px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.user-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: bold;
  font-size: 14px;
}

.btn:hover {
  opacity: 0.8;
}

.carousel-caption {
  padding: 15px;
  border-radius: 8px;
}

.carousel-caption h5 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  margin-bottom: 10px;
}

.carousel-caption p {
  color: #97a3cb;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.btn-rules {
  margin-bottom: 20px;
}

.modal.fade {
  opacity: 1;
  padding: 8px;
  pointer-events: all;
}

.custom-modal-dialog {
  max-width: 100%;
  /* Оставляем полный размер */
  margin: 0;
  /* Убираем отступы */
  display: flex;
  align-items: center;
  /* Выравниваем по центру */
  justify-content: center;
}

/* Делаем modal-content гибким */
.custom-modal-content {
  background: #181b2c;
  border-radius: 12px;
  max-width: 500px;
}

.custom-modal-content-login {
  background: none;
  border: none;
}

.modal-rules {
  display: flex !important;
  align-items: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: rgba(9, 15, 30, .7);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: .5s;
  width: 100vw;
  z-index: 4000
}

.modal-rules.active {
  opacity: 1;
  padding: 8px;
  pointer-events: all;
}

.modal__content {
  background: #181b2c;
  border-radius: 12px;
  width: 500px;
}

.modal__header {
  background: #21293f;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
}

.modal__close {
  align-items: center;
  background: rgba(151, 163, 203, .1);
  border-radius: 8px;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.modal__body {
  background: #192137;
  border-radius: 0 0 12px 12px;
  padding: 10px 15px 15px;
}

.modal__body-wrapper {
  align-items: center;
  border-radius: 12px;
  justify-content: center;
  position: relative;
}

.modal__body-wrapper-item {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.text-danger {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important;
  font-size: 12px;
  margin-top: -10px;
}

.carousel,
.carousel-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-items: center;
}

.carousel-slides {
  background: #0a0f1d;
  border-radius: 8px;
  display: flex;
  min-height: 384px;
  overflow: hidden;
}

.carousel-slides__next,
.carousel-slides__prev {
  width: 0;
}

.carousel-slides__current {
  position: relative;
  top: -40px;
}

.carousel-slides__current img {
  max-width: 460px;
}

.carousel-slides__next,
.carousel-slides__prev {
  width: 0;
}

.carousel-body {
  bottom: 0;
  padding: 30px;
  position: absolute;
  width: 100%;
}

.carousel-text__header {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.carousel-text {
  font-family: SF Pro Display, sans-serif;
  font-style: normal;
  width: 100%;
}

.carousel-text__body {
  color: #97a3cb;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 30px;
  margin-top: 10px;
  max-width: 400px;
  text-align: center;
}

.carousel-controls {
  align-items: center;
  color: #fff;
  display: flex;
}

.carousel-controls__slides {
  align-items: center;
  display: flex;
}

.carousel-controls__slides div.activated {
  background-image: url("/static/media/circle-carousel-activated.png") !important;
  background-position: 50%;
  background-size: 24px 24px;
  height: 24px;
  width: 24px;
}

.carousel-controls__slides div {
  background-image: url("/static/media/circle-carousel.png");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  height: 24px;
  width: 24px;
}

.carousel-controls__prev.disabled {
  -webkit-filter: opacity(.3);
  filter: opacity(.3);
  pointer-events: none;
}

.carousel-controls__next {
  background-image: url("/static/media/arrow-right.png");
  background-repeat: no-repeat;
  height: 15px;
  margin-left: 35px;
  transition: all .15s ease-out;
  width: 19px;
}

.carousel-controls__prev {
  background-image: url("/static/media/arrow-left.png");
  background-repeat: no-repeat;
  height: 15px;
  margin-right: 35px;
  transition: all .15s ease-out;
  width: 19px;
}

.d-flex {
  width: 100%;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-content-right {
    justify-content: center;
  }

  .header-content-left {
    justify-content: space-between;
  }

  .auth-buttons {
    width: 100%;
    margin-top: 10px;
  }

  .header-content-right,
  .header-content-left {
    width: 100%;
  }

  .btn-success {
    min-width: 200px;
  }

  .carousel-caption {
    bottom: 5px;
    /* Еще ниже для маленьких экранов */
  }
}

.PaymentsRow__title-crypto {
  opacity: .3;
  font-weight: 500;
  color: #090f1e;
  font-size: 9px;
  margin-top: 15px;
  margin-bottom: 5px;
}

#usdt-buttom {
  pointer-events: auto !important;
}



#withdrawalWalletInput {
  width: 100%;
}

.withdrawal-error {
  color: #ff4d4f;
  font-size: 10px;
  text-align: center;
  display: none;
  margin: 0 !important;
}

#deposit-usdt-buttoms,
#deposit-crypto-buttoms,
#deposit-crypto-payment,
#deposit-networks-buttoms,
#deposit-first-slide,
#deposit-second-slide,
#deposit-third-slide,
#deposit-fourth-slide,
#withdrawal-networks-buttoms,
#withdrawal-crypto-buttoms,
#withdrawal-first-slide,
#withdrawal-second-slide,
#withdrawal-third-slide,
#withdrawal-fourth-slide {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#txid-submit {
  width: 100%;
}

.custom-height {
  min-height: unset !important;
  height: auto !important;
  transition: min-height 0.3s ease;
}

.custom-margin-bottom {
  margin-bottom: -120px;
}

.CryptoGroup_tile_CVNZC {
  transition: all 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  height: 100%;
  margin: 10px 0;
  overflow: hidden;
}

.CryptoGroup_tile_CVNZC.hidden {
  opacity: 0;
  transform: translateY(-20px);
  height: 0;
  margin: 0;
  top: 0;
  pointer-events: none;
  transition: height 0.3s ease, opacity 0.3s ease;
  display: none;
}

.CryptoGroup_bottom_Forfe {
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.copy-icon {
  cursor: pointer;
  width: 14px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.copy-icon:hover {
  opacity: 1;
}

.copyable-wrapper {
  display: flex;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.Deposit_depositPageFormButton_NDgNc.disabled {
  opacity: 0.5;
  /* Делаем кнопку полупрозрачной */
  cursor: not-allowed;
  /* Меняем курсор на "недоступно" */
  background-color: #ccc;
  /* Серый цвет фона */
  color: #666;
  /* Серый цвет текста */
}

.HeaderBalanceInfo_mobile_WlxOi .HeaderBalanceInfo_name_u2NJV {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12px;
  line-height: 14px;
  font-weight: 400;
}

.HeaderBalanceInfo_name_u2NJV {
  color: var(--color-text-secondary);
}

.modal-backdrop {
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #00000059;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition-duration: .2s;
  width: 100%;
  z-index: 300 !important;
}

.transaccions-content-body {
  display: flex;
  justify-content: center;
  height: max-content;
  /* или auto */
  min-height: max(300px, 100%);
  /* Выбирает большее значение из 300px и 100% высоты содержимого */
  margin-bottom: 100px;
}

.modal-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 12px 1px #0003;
  color: #101011;
  display: flex;
  padding: 1em 1.5em;
  position: relative;
  max-width: 90%;
}

.modal-tx-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 500px;
}

.Detailing {
  display: flex;
  flex-direction: column;
  flex: 1 0;
  overflow: hidden;
}

.Detailing__tabs {
  display: flex;
  flex-shrink: 0;
  padding: 0 0px 10px;
  border-bottom: 1px solid #edf0f7;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 0 15px 15px #fff;
}

.Detailing__tabs-item {
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.Detailing__tabs-item--active {
  background-image: linear-gradient(103deg, #108de7 -30%, #0855c4 100%);
  color: #fff;
}

.Detailing__tabs-item:not(:last-child) {
  margin-right: 5px;
}

.Detailing__content {
  display: flex;
  flex-direction: column;
  flex: 1 0;
  overflow: auto;
  padding: 20px 0px 0;
  min-height: 300px;
}

.Detailing__content-list-title {
  color: #6a7690a6;
  font-size: 11px;
  margin-bottom: 10px;
}

.DetailingItem {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.Detailing__detailing-item:not(:last-of-type) {
  margin-bottom: 10px;
}

.DetailingItem__left {
  display: flex;
  align-items: flex-start;
  flex-grow: 1;
  flex-direction: column;
}

.DetailingItem__primary-description {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.DetailingItem__comment {
  color: red;
  font-size: 0.6rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: .3em;
}

.DetailingItem__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: auto;
}

.top-row {
  font-size: 12px;
  color: #6a7690;
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 7px;
}

.amount-container {
  display: flex;
  font-size: .9em;
  font-weight: 600;
  color: #000;
  flex-direction: row;
  align-content: center;
  align-items: center;
}

.DetailingMoney_root_CO3y3 {
  margin-right: 2px;
}

.icon.status {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon.clock {
  height: 16px;
  mask: url(/static/media/icon-clock.svg) no-repeat center / contain;
  -webkit-mask: url(/static/media/icon-clock.svg) no-repeat center / contain;
  width: 16px;
}

.icon.success {
  height: 16px;
  mask: url(/static/media/icon-success.svg) no-repeat center / contain;
  -webkit-mask: url(/static/media/icon-success.svg) no-repeat center / contain;
  width: 16px;
}

.icon.reject {
  height: 16px;
  mask: url(/static/media/icon-reject.svg) no-repeat center / contain;
  -webkit-mask: url(/static/media/icon-reject.svg) no-repeat center / contain;
  width: 16px;
}

.settings__title_wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.settind__title-id {
  margin-right: 25px;
  display: flex;
  font-size: 12px;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1.7rem;
  opacity: 0.7;
  gap: 5px;
}

.instruction-title-wrapper {
  display: flex;
}

.Annotation_text_dBBwn span {
  font-family: 'Montserrat';
  font-weight: 800;
  font-size: 14px;
}

/* Основные стили */
.deposit-screenshot-upload {
  margin-top: 20px;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.screenshot-upload-label {
  display: block;
  cursor: pointer;
}

.upload-title {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  color: #555;
  font-weight: 500;
}

.upload-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Стили для кнопки выбора файла */
.file-input-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-input-label:hover {
  background-color: #e9ecef;
  border-color: #ccc;
}

.upload-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-text {
  white-space: nowrap;
}

/* Стили для информации о файле */
.file-info {
  flex-grow: 1;
}

.file-name {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
}

/* Стили для превью изображения */
.image-preview {
  margin-top: 12px;
  display: none;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-image-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.remove-image-btn svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
}

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  position: relative;
  padding: 15px 40px 15px 60px;
  border-radius: 8px;
  background: #2A2E35;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
  max-width: 350px;
  border-left: 4px solid #FF4757;
  font-family: 'Segoe UI', sans-serif;
}

.notification._success {
  border-left-color: #2ED573;
}

.notification__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification__close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  transition: color 0.2s;
}

.notification__close:hover {
  color: white;
}

.notification__title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 15px;
}

.notification__message {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.account-banned-banner {
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #FF3B30 0%, #E53935 100%);
  color: white;
  padding: 5px 20px;
  font-size: 10px;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-banned-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.account-banned-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: white;
}

.account-banned-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.icon-comision {
  filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(500%) hue-rotate(360deg);
}

.commission-payment-block {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #eee;
}

.commission-header {
  margin-bottom: 15px;
}

.commission-header h4 {
  color: #E9AB0F;
  margin-bottom: 5px;
}

.commission-header p {
  color: #666;
  font-size: 14px;
}

.payment-methods-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.payment-method-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-method-item:hover {
  border-color: #085DCC;
}

.payment-method-item.active {
  border-color: #085DCC;
  background: #f0f7ff;
}

.payment-method-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 5px;
}

.icon-comision {
  filter: brightness(0.8) sepia(1) hue-rotate(10deg) saturate(5);
}

#default-payment-methods, #currency-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    transform: translate(0);
}

/* .language-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
} */

.language-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 15px;
}

.language-picker_root {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #23262b;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.language-picker_root:hover {
    background: #2d3137;
}

.language-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 2px #bbb;
}

.language-picker_arrowIcon {
    margin-left: 4px;
    transition: transform 0.2s;
    fill: #fff;
}

.language-picker-container.open .language-picker_arrowIcon {
    transform: rotate(180deg);
}

/* .language-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 170px;
    background: #23262b;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
} */

.language-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    left: auto;
    min-width: 170px;
    max-width: 90vw;
    background: #23262b;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
    overflow-x: auto;
}

/* .language-picker-container.open .language-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
} */

.language-picker-container.open .language-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.language-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 15px;
    color: #fff;
}

.language-dropdown li span {
    display: inline-block;
    max-width: 110px;    
    white-space: nowrap;   
    overflow: hidden;      
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: normal;
}

.language-dropdown li:hover {
    background: #2d3137;
}

.language-dropdown li.active {
    background: #1a1d21;
    font-weight: 700;
}

/* Кнопки справа */
.game-header__buttons {
    align-items: center;
    margin-left: 10px;
    display: flex;
}

.game-header__button {
    border: none;
    background: none;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.game-header__button--inner {
    background: linear-gradient(320.64deg, #17191c -42.09%, #32383e 167.71%);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.game-header__button:hover {
    background: #23262b;
}

.language-picker_root,
.game-header__button,
.game-header__balance {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
}

.game-header__balance-text span {
    font-size: .7rem;
    opacity: 0.7;
}

#user_balance {
    font-size: .9rem;
    opacity: 1;
}

@media (max-width: 600px) {
    .language-picker_root,
    .game-header__button,
    .game-header__balance {
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        min-width: auto;
    }
    .game-header__balance {
        margin-right: 40px;
    }
    #user_balance{
        font-size: .7rem;
    }
    .game-header__balance-text span {
        font-size: .6rem;
    }
}

.language-picker_root {
    padding-top: 0;
    padding-bottom: 0;
}

.language-dropdown {
    position: absolute;
    top: 110%;
    right: 0;       
    left: auto;
    min-width: 170px;
    max-width: 90vw;
    background: #23262b;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
    overflow-x: auto;
}

.language-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

@media (max-width: 600px) {
    .language-dropdown {
        left: auto;
        right: 0;
        min-width: 140px;
        max-width: 98vw;
    }
}

@media (max-width: 900px) {    
    .game-header__balance-title {
        display: none;
    }
}