body {
  margin: 0;
  background: #141414;
  color: #fff;
  font-family: 'Onest', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html, body {
  -ms-overflow-style: none;     /* IE и Edge */
  scrollbar-width: none;        /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera */
}
.container {
  flex: 1;
  padding: 3vw;
  padding-bottom: 110px; /* чтобы контент не заезжал под footer */
}
.container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.top-bar {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  padding-right: 10px;
}

.lang-switch-card {
  display: flex;
  background: #333;
  border-radius: 999px;
  overflow: hidden;
  margin-right: 12rem;
}

.lang-switch-card button {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

.lang-switch-card .lang-active {
  background: #ffcc00;
  color: #000;
  border-radius: 30px;
  margin: 5px;
}

.balance-card {
  display: flex;
  align-items: center;
  background: #333;
  border-radius: 999px;
  padding: 6px 10px;
  gap: 6px;
}

.balance-card img {
  width: 5vw;
  height: 5vw;
}

.balance-card span {
  font-size: 0.8rem;
}
.container::-webkit-scrollbar {
  display: none;
}
/* Обертка по центру страницы */
.profile-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

/* Контейнер с аватаром */
.profile-container {
  display: inline-block;
}

/* Аватар по центру */
.avatar-img {
  display: block;
  width: 26vw;
  height: auto;
  margin: 0 auto;
}

/* Боковые карточки */
.profile-side {
  position: absolute;
  top: 6%;
  left: 140%; /* ставим справа от картинки */
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Блок с балансом */
.balance-card {
  display: flex;
  align-items: center;
  background: #333;
  border-radius: 999px;
  padding: 6px 10px;
  gap: 6px;
}

/* Иконка в балансе */
.balance-card img {
  width: 5vw;
  height: 5vw;
}

/* Текст баланса */
.balance-card span {
  font-size: 0.8rem;
}

/* Кнопка + */
.balance-card button {
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #2B2B2B;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Секция с балансами */
.balance-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 22px;
}

.balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 12px;
  border-right: 1px solid #555;
}

.balance-item:last-child {
  border-right: none;
}

.balance-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-top img {
  width: 20px;
  height: 20px;
}

.balance-value {
  font-size: 16px;
}

.balance-label {
  margin-top: 4px;
  color: #EBB312;
  font-size: 13px;
}

/* Остальные элементы */
.lang-switch {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 12px 0;
}

.lang-switch button {
  background: #333;
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.games-placeholder {
  background: #2B2B2B;
  border-radius: 33px;
  height: 150px;
  margin: 12px 0;
}

.games-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0;
}

.games-title {
  text-align: center;
  font-size: 1.3rem;
  margin: 1.2rem 0;
  color: white;
  font-weight: 600;
}

.game-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.game-card {
  width: 123px;
  height: 123px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: block; /* это ключ! */
}
/* Блок табов с общим фоном */
.tabs {
  display: flex;
  background: #2b2b2b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Каждый таб */
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
  margin: 5px;
}

/* Активный таб */
.tab.active {
  background: #444;
  border-radius: 30px;
  margin: 5px;
}

/* Таблица */
.table-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Одна строка таблицы */
.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 20px;
  background: #1e1e1e;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Чередующиеся строки */
.table-row:nth-child(even) {
  background: #2B2B2B;
}

/* Заголовок таблицы */
.table-header {
  font-weight: 600;
  color: #aaa;
  background: none;
  font-size: 1rem;
}

/* Цвет положительных и отрицательных выплат */
.positive {
  color: #4caf50;
  font-weight: 600;
}

.negative {
  color: #f44336;
  font-weight: 600;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #222;
  padding-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid #333;
  z-index: 100;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #777777;
}

.footer-item img {
  width: 7vw;
  height: 7vw;
  margin-bottom: 0.5rem;
}

.footer-item.active {
  color: #EBB312;
}

.footer-item.active img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(91%) saturate(474%) hue-rotate(1deg) brightness(98%) contrast(89%);
}
.games-video {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  background: #000; /* на случай загрузки */
}
.games-video-slider {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 соотношение */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.games-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(235, 179, 18, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: #EBB312;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.25); }
  50%  { transform: scale(0.9); }
  75%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.footer-item.animate {
  animation: bounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-switch {
  width: 62px;
  height: 34px;
  background-color: #434343;
  border-radius: 34px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-circle {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s, background-color 0.3s;
}

.toggle-switch.active .toggle-circle {
  left: 34px;
  background-color: #EBB312;
}

.lang-toggle {
  position: relative;
  width: 90px;
  height: 34px;
  background-color: #333;
  border-radius: 999px;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.lang-option {
  flex: 1;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.lang-option.active {
  color: #000;
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 42px;
  height: 28px;
  background-color: #ffcc00;
  border-radius: 999px;
  transition: left 0.3s ease;
  z-index: 0;
}
.lang-toggle{
  margin-right: 12.3rem;
}

@media screen and (min-width: 600px) {
  body {
    margin: 0;
    padding: 0;
    background-color: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
    overflow: hidden;
  }
  .lang-toggle{
    margin-right: 8.3rem;
  }

  .iphone-wrapper {
    width: 800px; /* Ставим ширину больше, чем Telegram даёт */
    height: 1730px; /* Пропорционально увеличиваем */
    transform: scale(0.5); /* Масштабируем вниз */
    transform-origin: top center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    border-radius: 30px;
  }
}

.comeback{
  text-decoration: none;
  color: #EBB312;
}
.finance-table-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 16px;
}

.finance-table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr 2fr;
  align-items: center;
  padding: 10px 12px;
  border-radius: 20px;
  background: #1e1e1e;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.finance-table-row:nth-child(even):not(.finance-table-header) {
  background: #2B2B2B;
}

.finance-table-header {
  color: #aaa;
  background: none;
}
