* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #0a0a0a;
  color: white;
}

.container {
  padding: 30px 24px 40px;
}

/* HERO */

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  width: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.36));
  animation: logoFade 0.6s ease;
}

@keyframes logoFade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero {
  padding: 50px 20px;
  border-radius: 24px;
  background: #111;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero p {
  color: #aaa;
  margin-bottom: 20px;
}

/* BUTTON */
.btn {
  padding: 12px 24px;
  border-radius: 14px;
  background: #1a1a1a;
  color: white;
  border: none;
  transition: all 0.25s ease;
}

.btn:hover {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.05);
}

.btn:active {
  transform: scale(0.95);
}

.btn-glow {
  animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  }
}

/* FLOATING CARD */
.floating-card {
  margin-top: -20px;
  padding: 14px;
  border-radius: 16px;
  background: #111;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: float 3s ease-in-out infinite;
}

.floating-card span {
  color: #aaa;
  font-size: 14px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Эффект при наведении на кнопку Start Trading — реверсивный */
.btn-glow {
  background: #ffffffeb;
  color: #000;
  border-color: #fff;
}

/* SECTION */
.section {
  margin-top: 30px;
}

.section h2 {
  margin-bottom: 12px;
}

/* HORIZONTAL CARDS WITH TRANSPARENCY */
.cards-container {
  position: relative;
  overflow-x: auto;
  padding: 0 40px;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 в ряд */
  gap: 16px;
  overflow: visible;
  /* чтобы не обрезалось ВЕРХУШКА */
}

.cards-container {
  overflow: visible;
  /* чтобы не обрезалось ВЕРХУШКА */
  width: 100%;
  /*padding: 0 16px;*/
  /* отступы по бокам */
  box-sizing: border-box;
  padding: 8px 8px 20px 8px;
}

.card {
  background: #111;
  border-radius: 16px;
  padding: 10px;
  height: 130px;
}

.card:last-child {
  grid-column: span 2;
  /* height: 160px;*/
}

.card img {
  width: 100%;
  height: 50px;
  /* было больше → стало ниже */
  object-fit: contain;
  margin-bottom: 6px;
}

/* Эффект при наведении на карточку 
.card:hover {
  transform: translateY(-5px);
  /* Чуть выше поднимаем для эффектности 
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  /* Немного пружинистая 
}
*/

/* Hover работает ТОЛЬКО на компьютерах (с мышкой) */
@media (hover: hover) {
  .card:hover {
    transform: scale(0.97);
    background: #484848;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.08s ease;
  }
}

.card:active {
  transform: scale(0.93);
  background: #e6e6e6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.08s ease;
  /* быстрый отклик */
}

/* for simple text zone */
.heroText {
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* 
   FEAR & GREED INDEX */

/* Карточка */
.fear-greed-container {
  background: #111111;
  border-radius: 20px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Хедер */
.fear-greed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* заголовок */
.fear-greed-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0px;
  text-transform: none;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* обнова времени */
.update-time {
  font-size: 11px;
  color: #666;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* Внутренний блок */
.inner-gradient-box {
  background: #0a0a0a;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

/* Шкала */
.meter-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.meter-scale span:first-child {
  color: #ff6b6b;
}

.meter-scale span:last-child {
  color: #6bff6b;
}

/* Полоса прогресса */
.meter-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 6px;
  overflow: visible;
  margin-bottom: 20px;
  box-shadow: none;
}

.meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  background: linear-gradient(90deg, #ff4d4d, #ffa500, #ffd700, #9acd32, #00ff00);
  position: relative;
}

/* Ползунок */
.meter-fill::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.2);
  transition: right 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Значение индекса */
.index-value {
  position: relative;
  text-align: center;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Полоска снизу  */
.index-value::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d4d, #ffa500, #ffd700, #9acd32, #00ff00, transparent);
  border-radius: 2px;
}

.index-value .number {
  font-size: 56px;
  font-weight: 800;
  display: block;
  line-height: 1;
  transition: color 0.3s ease;
  letter-spacing: -2px;
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

.index-value .classification {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-top: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  color: #888;
}

/* Атрибуция */
.data-attribution {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  position: relative;
  z-index: 2;
}

.attribution-text {
  color: #555;
  font-weight: 400;
}

.attribution-text a {
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.attribution-text a:hover {
  color: #999;
  border-bottom-color: #ffa500;
}

/* Динамические цвета для цифры */
.number-extreme-fear {
  color: #ff4d4d;
  text-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

.number-fear {
  color: #ffa500;
  text-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.number-neutral {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.number-greed {
  color: #9acd32;
  text-shadow: 0 0 15px rgba(154, 205, 50, 0.3);
}

.number-extreme-greed {
  color: #00ff00;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.classification-extreme-fear {
  color: #ff4d4d;
}

.classification-fear {
  color: #ffa500;
}

.classification-neutral {
  color: #ffd700;
}

.classification-greed {
  color: #9acd32;
}

.classification-extreme-greed {
  color: #00ff00;
}

/* VIDEO SLIDER */

.video-slider-name h2 {
  margin-top: 16px;
  /* Отступ сверху */
  margin-bottom: 16px;
  /* Отступ снизу перед видео */
}

.video-slider-container {
  position: relative;
  border-radius: 16px;
  background: #111;
  padding: 12px 0;
  margin-top: 20px;
}

.video-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.video-slide {
  min-width: 250px;
  height: 400px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}



.video-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /**/
  display: block;
  border-radius: 16px;
  /*на случай черных полос*/
  background: #000;
  /* центрируем */
  margin: 0 auto;
}

/* Точки навигации */
.video-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  z-index: 10;
}

/* Стиль точек */
.video-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Активная точка */
.video-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Эффект при наведении на точку */
.video-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Название видео (внизу слева) */
.video-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

/*
   АДАПТАЦИЯ ПОД ТЕЛЕФОН
*/

@media (max-width: 768px) {
  .video-slider-name {
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .video-slider-name h2 {
    font-size: 20px;
  }

  .video-slider {
    gap: 12px;
    padding: 0 16px;

    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .video-slide {
    min-width: 260px;
    height: 340px;
    border-radius: 16px;
  }

  .video-dots {
    bottom: 12px;
    gap: 8px;
    padding: 6px 12px;
  }

  .video-dots .dot {
    width: 6px;
    height: 6px;
  }

  .video-dots .dot.active {
    width: 20px;
  }

  .video-title {
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Для очень маленьких телефонов */
@media (max-width: 480px) {
  .video-slide {
    min-width: 240px;
    height: 300px;
  }

  .video-slider {
    gap: 10px;
    padding: 0 12px;
  }
}

/* 
   PHOTO SLIDER — ЦЕНТРИРОВАННАЯ КАРУСЕЛЬ
*/

.photo-slider-name {
  margin-top: 40px;
  margin-bottom: 20px;
}

.photo-slider-name h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

/* Контейнер слайдера */
.photo-slider-container {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 20px 0;
  margin-top: 20px;
  overflow: hidden;
}

/* Горизонтальный скролл с центрированием */
.photo-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Центрирование: padding создает отступы, чтобы первый и последний элемент были видны наполовину */
  padding: 0 calc(50% - 140px);
  /* 140px = половина ширины карточки (280px/2) */

  /* Убираем скроллбар */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.photo-slider::-webkit-scrollbar {
  display: none;
}

/* Карточка фото */
.photo-slide {
  min-width: 280px;
  width: 280px;
  height: 380px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: center;
  /* Центрируем активное фото */
  background: #1a1a1a;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
  /* Боковые фото затемнены */
  transform: scale(0.85);
  /* Боковые фото уменьшены */
}

/* Активное фото (которое по центру) */
.photo-slide[data-active="true"] {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* Точки навигации */
.photo-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  z-index: 10;
}

.photo-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Hover только на мышке */
@media (hover: hover) {
  .photo-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
  }
}

/* 
   АДАПТАЦИЯ ПОД ТЕЛЕФОН
 */

@media (max-width: 768px) {
  .photo-slide {
    min-width: 260px;
    width: 260px;
    height: 340px;
  }

  .photo-slider {
    gap: 12px;
    padding: 0 calc(50% - 130px);
    /* 130px = половина ширины карточки (260px/2) */
  }

  .photo-dots {
    bottom: 12px;
    gap: 8px;
    padding: 6px 12px;
  }

  .photo-dots .dot {
    width: 6px;
    height: 6px;
  }

  .photo-dots .dot.active {
    width: 20px;
  }
}


/* Team Members H2 */

.members h2 {
  margin: 0;
  margin-top: 32px;
  margin-bottom: 24px;
}


/* trader LIST */
.traders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.trader-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.trader-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* затемнение + текст поверх */
.trader-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  padding: 12px;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.trader-info h3 {
  margin: 0;
  font-size: 16px;
}

.trader-info p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

.follow-btn {
  background: #eff1f2;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: rgb(25, 25, 25);
  font-weight: bold;
  cursor: pointer;
}

.follow-btn:hover {
  opacity: 0.9;
}


/* SOCIALS VERTICAL */
.socials-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  padding: 14px 0;
  width: 100%;
  border-radius: 16px;
  border: none;
  background: #111;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background 0.15s ease;
  cursor: pointer;
}

.social-btn:active {
  transform: scale(0.95);
  background: #1a1a1a;
}

.social-btn i {
  pointer-events: none;
}

/* Эффект при наведении на карточку */
.social-btn:hover {
  transform: translateY(-4px);
  /* Поднимаем карточку вверх на 4px */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Усиливаем тень при наведении */
}

/* 
   БЛОК: ПОСЛЕДНИЕ ВИДЕО С YOUTUBE
 */

/* САМА НАДПИСЬ БЛОКА 'Latest Videos' */
.video-tab h2 {
  margin-top: 32px;
  /* Отступ сверху  */
  margin-bottom: 24px;
  /* Отступ снизу перед видео */
}

/* Контейнер сетки видео */
.video-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* ровно 3 колонки */
  gap: 10px;
}

/* скрываем полоску скролла (по желанию) */
.video-list::-webkit-scrollbar {
  display: none;
}

/* Карточка отдельного видео */
.video-item {
  border-radius: 10px;
  overflow: hidden;
  background: #151515;
}

/* Эффект при наведении на карточку */
.video-item:hover {
  transform: translateY(-4px);
  /* Поднимаем карточку вверх на 4px */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Усиливаем тень при наведении */
}

/* Ссылка внутри карточки — занимает всю карточку */
.video-item a {
  text-decoration: none;
  /* Убираем подчеркивание ссылки */
  color: inherit;
  /* Наследуем цвет текста от родителя */
  display: block;
  /* Ссылка занимает всю ширину блока */
}

/* Превью видео (обложка) */
.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-item h3 {
  font-size: 0.7rem;
  padding: 8px 8px 4px;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  max-height: 3.5em;
  /* 2 строки * 1.75 */
  overflow: hidden;
  text-overflow: ellipsis;
  /* Альтернатива без -webkit-line-clamp */
  display: block;
  word-break: break-word;
}

.video-item p {
  font-size: 0.6rem;
  padding: 0 6px 6px;
}

/* адаптация под маленькие экраные делает
 2 видео в ряд а третье под первым

@media (max-width: 400px) {
  .video-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
*/

/* НОВАЯ АДАПТАЦИЯ ПОД МАЛЕНЬКИЙ ЭКРАН
   уменьшаем размер текста */
@media (max-width: 400px) {
  .video-item h3 {
    font-size: 0.6rem;
  }

  .video-item p {
    font-size: 0.55rem;
  }
}

/* Загрузка видео */
.video-skeleton {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 15px;
  background: linear-gradient(90deg,
      #1e1e1e 25%,
      #2a2a2a 50%,
      #1e1e1e 75%);
  background-size: 200% 100%;
  animation: loading 1.2s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/*
######################################################

ВКЛАДКИ С ГЛАВНОГО МЕНЮ ПОЙДУТ ЗДЕСЬ

#######################################################

/* ============================================
   INTRA PAGE — с тремя прогресс-барами по месяцам (MODERN PROP STYLE)
   ============================================ */

.intra-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Hero Card */
.intra-hero {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* КАРТИНКА С АНИМАЦИЕЙ*/

.intra-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  opacity: 0;
  animation: imageFadeIn 0.3s ease forwards;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.intra-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.intra-hero-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.intra-season-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.intra-months-labels {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* 3 Month Progress Bars — МОДНЫЙ ДИЗАЙН (больше высота, градиент) */
.intra-months-progress {
  background: linear-gradient(135deg, #1a1d2e, #0f111a);
  border-radius: 28px;
  padding: 20px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.month-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.month-progress-item:last-child {
  margin-bottom: 0;
}

.month-name {
  width: 55px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.month-bar-bg {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.month-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
  background-size: 200% 100%;
  border-radius: 20px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.month-percent {
  width: 45px;
  font-size: 13px;
  font-weight: 600;
  color: #4caf50;
  text-align: right;
  letter-spacing: 0.3px;
}

/* Mentors Button — СТЕКЛЯННЫЙ IOS СТИЛЬ */
.intra-mentor-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 60px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.2s;
  width: 100%;
}

.intra-mentor-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

/* Description — БЕЗ ПЛАШКИ */
.intra-description {
  background: transparent;
  border-radius: 0;
  padding: 0 0 24px 0;
  font-size: 15px;
  line-height: 1.55;
  color: #bbbbbb;
  margin-bottom: 20px;
}

/* Two Buttons */
.intra-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.intra-btn-trial,
.intra-btn-join {
  flex: 1;
  padding: 14px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Кнопка Trial */
.intra-btn-trial {
  background: transparent;
  border: 1.5px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.intra-btn-trial:active {
  transform: scale(0.96);
  background: rgba(76, 175, 80, 0.08);
}

/* Кнопка Join — ГРАДИЕНТ + СВЕЧЕНИЕ */
.intra-btn-join {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border: none;
  color: #fff;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.intra-btn-join:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, #3d8b40, #1b5e20);
}

/* Back Button */
.intra-back-wrapper {
  text-align: center;
  margin-top: 8px;
}

.intra-back {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.intra-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.1);
}

/* ========== МОДАЛКА — плавный выезд снизу + плавное исчезновение фона ========== */
.intra-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), backdrop-filter 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.intra-modal.active {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.intra-modal-content {
  background: linear-gradient(135deg, #1a1d2e, #0f111a);
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intra-modal.active .intra-modal-content {
  transform: translateY(0);
}

.intra-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.intra-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.intra-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8e8e93;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.15s;
}

.intra-modal-close:active {
  transform: scale(0.9);
}

.intra-modal-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.mentor-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mentor-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.mentor-avatar {
  font-size: 32px;
}

.mentor-info {
  flex: 1;
}

.mentor-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.mentor-role {
  font-size: 12px;
  color: #aaaaaa;
}

.mentor-chat {
  font-size: 20px;
  color: #4caf50;
}

/* ========== TRIAL MODAL ========== */
.trial-modal-body {
  text-align: center;
  padding: 28px 24px !important;
}

.trial-image {
  margin-bottom: 20px;
}

.trial-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.trial-message p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #dddddd;
}

.trial-message .trial-hint {
  font-size: 13px;
  color: #4caf50;
  margin-top: 16px;
  font-weight: 600;
}

/* ============================================
   ПЛАВНЫЕ ПЕРЕХОДЫ
   ============================================ */

/* Убираем анимацию появления страницы — мгновенно */
.page-transition {
  animation: none;
  opacity: 1;
}

/* Анимация ухода страницы (при нажатии Back) оставляем */
.page-transition.exit {
  animation: fadeOutDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Анимация закрытия модалки */
.intra-modal.closing {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.intra-modal.closing .intra-modal-content {
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Убираем поэлементные анимации — всё появляется сразу */
.intra-hero,
.intra-months-progress,
.intra-mentor-btn,
.intra-description,
.intra-buttons,
.intra-back-wrapper {
  animation: none;
  opacity: 1;
}

/* Кнопка Back — эффект нажатия */
.intra-back {
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.intra-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

/* Кнопки Mentors, Trial, Join — плавные */
.intra-mentor-btn,
.intra-btn-trial,
.intra-btn-join {
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.intra-mentor-btn:active,
.intra-btn-trial:active,
.intra-btn-join:active {
  transform: scale(0.96);
}

/* Прогресс-бары — плавное заполнение */
.month-bar-fill {
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ============================================
   INTRA PAGE — АДАПТАЦИЯ ПОД ПЛАНШЕТЫ И КОМПЬЮТЕРЫ
   ============================================ */

/* Планшеты (горизонтальная ориентация) */
@media (min-width: 768px) and (max-width: 1023px) {
  .intra-container {
    max-width: 100%;
    padding: 30px 30px 50px;
  }

  .intra-hero-img {
    height: 350px;
  }

  .intra-season-title {
    font-size: 34px;
  }

  .intra-months-labels {
    font-size: 16px;
    gap: 30px;
  }

  .intra-months-progress {
    padding: 24px;
  }

  .month-name {
    width: 70px;
    font-size: 16px;
  }

  .month-percent {
    width: 55px;
    font-size: 15px;
  }

  .month-bar-bg {
    height: 14px;
  }

  .intra-mentor-btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
  }

  .intra-description {
    padding: 0 0 24px 0;
    font-size: 16px;
  }

  .intra-buttons {
    gap: 16px;
  }

  .intra-btn-trial,
  .intra-btn-join {
    padding: 16px;
    font-size: 16px;
  }

  /* Модалка на планшетах — на всю ширину */
  .intra-modal-content {
    max-width: 100%;
    width: 100%;
    border-radius: 28px 28px 0 0;
  }
}

/* Компьютеры (десктоп) */
@media (min-width: 1024px) {
  .intra-container {
    max-width: 100%;
    padding: 40px 40px 60px;
  }

  .intra-hero {
    border-radius: 32px;
    margin-bottom: 32px;
  }

  .intra-hero-img {
    height: 450px;
  }

  .intra-hero-text {
    bottom: 30px;
    left: 30px;
    right: 30px;
  }

  .intra-season-title {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .intra-months-labels {
    font-size: 18px;
    gap: 40px;
  }

  .intra-months-progress {
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 28px;
  }

  .month-progress-item {
    gap: 16px;
    margin-bottom: 20px;
  }

  .month-name {
    width: 80px;
    font-size: 18px;
  }

  .month-percent {
    width: 65px;
    font-size: 17px;
  }

  .month-bar-bg {
    height: 16px;
    border-radius: 20px;
  }

  .intra-mentor-btn {
    padding: 16px 28px;
    font-size: 17px;
    width: 100%;
    border-radius: 60px;
  }

  .intra-mentor-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
  }

  .intra-description {
    padding: 0 0 28px 0;
    font-size: 17px;
    margin-bottom: 28px;
  }

  .intra-buttons {
    gap: 20px;
    margin-bottom: 28px;
  }

  .intra-btn-trial,
  .intra-btn-join {
    padding: 18px;
    font-size: 17px;
    border-radius: 60px;
  }

  .intra-btn-trial:hover {
    background: rgba(76, 175, 80, 0.12);
    border-color: #66bb6a;
  }

  .intra-btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  }

  .intra-back {
    padding: 12px 28px;
    font-size: 15px;
  }

  .intra-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  /* Модалка на компьютере — на всю ширину */
  .intra-modal-content {
    max-width: 100%;
    width: 100%;
    border-radius: 32px 32px 0 0;
  }

  .intra-modal-header {
    padding: 24px;
  }

  .intra-modal-header h3 {
    font-size: 20px;
  }

  .intra-modal-body {
    padding: 16px 24px 24px;
  }

  .mentor-item {
    padding: 18px;
    gap: 16px;
    border-radius: 20px;
  }

  .mentor-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
  }

  .mentor-avatar {
    font-size: 36px;
  }

  .mentor-name {
    font-size: 18px;
  }

  .mentor-role {
    font-size: 14px;
  }

  .mentor-chat {
    font-size: 22px;
  }
}

/* Большие экраны (4K и более) */
@media (min-width: 1600px) {
  .intra-container {
    max-width: 100%;
    padding: 50px 60px 70px;
  }

  .intra-hero-img {
    height: 550px;
  }

  .intra-season-title {
    font-size: 52px;
  }

  .intra-months-labels {
    font-size: 20px;
  }

  .month-name {
    width: 100px;
    font-size: 20px;
  }

  .month-percent {
    width: 80px;
    font-size: 19px;
  }
}

/* ============================================
   УНИВЕРСАЛЬНАЯ ЗАГРУЗКА
   ============================================ */

#universal-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderFadeIn 0.2s ease;
}

#universal-loader.fade-out {
  animation: loaderFadeOut 0.2s ease forwards;
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes loaderFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(8px);
  }

  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

#universal-loader .loader-overlay {
  text-align: center;
  animation: loaderScale 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes loaderScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

#universal-loader .loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #4caf50;
  border-radius: 50%;
  animation: spinnerSpin 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) infinite;
  margin: 0 auto 16px;
}

@keyframes spinnerSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#universal-loader .loader-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}


/* ============================================
   NEWS HORIZONTAL CARD
   ============================================ */

/* ============================================
   NEWS HORIZONTAL CARD - с большой картинкой
   ============================================ */

.news-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* АНИМАЦИЯ НАЖАТИЯ НА КАРТОЧКУ NEWS */

/* Эффект нажатия на всю карточку */
.news-card:active {
  transform: scale(0.95);
  transition: transform 0.1s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ПОЯВЛЕНИЕ КАРТИНКИ БЕЗ АНИМАЦИИ - СРАЗУ СТОЯЛО
.news-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}*/

/* ПОЯВЛЕНИЕ КАРТИНКИ С АНИМАЦИЕЙ ИЗ ЧЕРНОГО */
.news-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
  /* тёмный фон пока грузится */
  opacity: 0;
  animation: imageFadeIn 0.23s ease forwards;
}

/* АНИМАЦИЯ ДЛЯ КАРТИНКИ КАРТОЧКИ NEWS*/
@keyframes imageFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.news-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.news-card-text h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.news-card-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ДЛЯ ТЕЛЕФОНА АДАПТАЦИЯ */
@media (max-width: 768px) {
  .news-card-image {
    height: 140px;
  }

  .news-card-text h2 {
    font-size: 24px;
  }

  .news-card-text p {
    font-size: 12px;
  }
}

/* ============================================
   NEWS PAGE — MODERN STYLE
   ============================================ */

/* Общий контейнер для страницы новостей */
.news-page {
  padding-bottom: 40px;
}

/* Заголовок страницы */
.news-header {
  margin-bottom: 28px;
  padding-top: 90px;
  /* ← добавляем отступ сверху */
}

.news-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-subtitle {
  color: #8e8e93;
  font-size: 15px;
  margin: 0;
}

/* Список новостей */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточка новости */
.news-item {
  background: #1c1c1e;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-item:active {
  transform: scale(0.98);
  background: #2c2c2e;
}

/* Картинка новости */
.news-item-image {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  background: #2c2c2e;
}

/* Контент новости */
.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Заголовок новости */
.news-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Дата новости */
.news-item-date {
  font-size: 11px;
  color: #8e8e93;
}

/* Скелетон загрузки */
.news-skeleton {
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
  background-size: 200% 100%;
  animation: loading 1.2s infinite;
}

/* Время обновления */
.news-update-time {
  text-align: center;
  font-size: 11px;
  color: #555;
  margin-top: 20px;
  padding: 8px;
}

/* Кнопка назад — внизу по центру */
.news-back-wrapper {
  text-align: center;
  margin-top: 24px;
}

.back-btn-news {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-btn-news:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Анимация загрузки */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Адаптация под телефон */
@media (max-width: 768px) {
  .news-title {
    font-size: 28px;
  }

  .news-item {
    padding: 14px;
  }

  .news-item-image {
    width: 52px;
    height: 52px;
  }

  .news-item-title {
    font-size: 14px;
  }

  .back-btn-news {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* ============================================
   NEWS MODAL — ПЛАВНЫЙ ВЪЕЗД СНИЗУ (ФИКС)
   ============================================ */

.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
}

.news-modal.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.news-modal-content {
  background: #1c1c1e;
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);

  margin-bottom: 20px;
  /* ОТСТУП СНИЗУ в модалке */
}

.news-modal.active .news-modal-content {
  transform: translateY(0);
}

.news-modal-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 20px 20px 8px;
  line-height: 1.4;
}

.news-modal-date {
  font-size: 12px;
  color: #8e8e93;
  margin: 0 20px 12px;
}

.news-modal-description {
  font-size: 14px;
  line-height: 1.5;
  color: #aaa;
  margin: 0 20px 16px;
}

.news-modal-source {
  font-size: 12px;
  color: #666;
  margin: 0 20px 20px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-modal-source a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 500;
}

/* read full article КНОПКА — GLASS EFFECT (ПРОЗРАЧНАЯ) */
.news-modal-read-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: calc(100% - 40px);
  margin: 0 20px 24px;
  padding: 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-modal-read-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Источник внизу страницы */
.news-source {
  text-align: center;
  font-size: 11px;
  color: #666;
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.news-source a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.news-source a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== FOREX FACTORY EVENTS ========== */

.forex-events-wrapper {
  margin-bottom: 24px;
  width: 100%;
}

.forex-events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
  padding: 0;
}

.forex-events-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.forex-events-subtitle {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

.forex-events-badge {
  font-size: 10px;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.forex-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Пустое сообщение */
.forex-events-empty {
  text-align: center;
  padding: 32px 20px;
  color: #8e8e93;
  font-size: 14px;
}

.forex-events-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.forex-events-empty-text {
  font-weight: 400;
  font-size: 14px;
  color: #999;
}

.forex-events-empty-hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Карточка события — как новость */
.forex-event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #1c1c1e;
  border-radius: 20px;
  transition: background 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.forex-event-item:active {
  background: #2c2c2e;
}

.forex-event-flag {
  font-size: 24px;
  min-width: 36px;
  text-align: center;
  line-height: 1;
}

.forex-event-date {
  min-width: 80px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.3;
}

.forex-event-date span {
  font-size: 10px;
  color: #8e8e93;
  display: block;
  margin-top: 2px;
}

.forex-event-content {
  flex: 1;
  min-width: 0;
}

.forex-event-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.forex-event-desc {
  font-size: 11px;
  color: #8e8e93;
}

/* Три белых быка */
.forex-event-impact {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  justify-content: center;
}

.impact-bull {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.7;
}

.forex-event-skeleton {
  height: 64px;
  background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ========== ECONOMIC CALENDAR WIDGET ========== */

.economic-calendar-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.economic-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.economic-calendar-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.economic-calendar-subtitle {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

.tradingview-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 14px;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.3);
}

.tradingview-widget-container iframe,
.tradingview-widget-container>div {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: none !important;
  background: #0a0a0c !important;
}

.tradingview-widget-container::-webkit-scrollbar {
  display: none;
}

/* Адаптив */
@media (max-width: 640px) {
  .economic-calendar-wrapper {
    padding: 14px;
    border-radius: 16px;
  }

  .economic-calendar-title {
    font-size: 15px;
  }

  .economic-calendar-subtitle {
    font-size: 11px;
  }
}

/* Подпись о часовом поясе */
.forex-events-timezone {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-top: 12px;
  letter-spacing: 0.2px;
}

/* Заголовок перед новостями */
.crypto-news-header {
  margin-top: 32px;
  margin-bottom: 16px;
}

.crypto-news-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.crypto-news-subtitle {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

/* ============================================
   PROP PAGE STYLES
   ============================================ */

.prop-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.prop-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 24px;
  background: #111;
}

.prop-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prop-description {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 28px;
  font-size: 15px;
}

/* Дополнительный блок о проп-трейдинге */
.prop-info-block {
  background: linear-gradient(135deg, #1a1d2e, #0f111a);
  border-radius: 28px;
  padding: 24px 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prop-info-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prop-info-block h3 i {
  color: #ffffff;
  font-size: 24px;
}

.prop-info-text {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.prop-info-text strong {
  color: #ffffff;
}

.prop-highlight {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  border-left: 3px solid #ffffff;
}

.prop-highlight p {
  color: #dddddd;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.prop-highlight p:last-child {
  margin-bottom: 0;
}

/* Карточки преимуществ — картинка видна, затемнение минимальное */
.prop-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.prop-feature-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 260px;
}

.prop-feature-card:active {
  transform: scale(0.98);
}

.prop-feature-bg {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.prop-feature-card:hover .prop-feature-bg {
  transform: scale(1.05);
}

/* Градиент — лёгкое затемнение снизу, чтобы текст читался, но картинка видна */
.prop-feature-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

/* Текст поверх градиента */
.prop-feature-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
}

.prop-feature-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.prop-feature-text p {
  font-size: 13px;
  color: #f0f0f0;
  line-height: 1.4;
  opacity: 0.95;
}

/* Сотрудничество с Upscale */
.prop-partner {
  background: linear-gradient(135deg, #1a1c24, #121318);
  border-radius: 24px;
  padding: 24px 20px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.prop-partner h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.prop-partner p {
  color: #bbbbbb;
  font-size: 14px;
  line-height: 1.5;
}


/* Кнопка Start Prop Trading — фиолетово-розовый как Upscale со свечением */
.prop-btn-join {
  width: 100%;
  background: linear-gradient(135deg, #9b4dff, #d43f9d);
  border: none;
  padding: 16px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(155, 77, 255, 0.4);
}

.prop-btn-join:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, #8a3de0, #b83088);
  box-shadow: 0 0 20px rgba(155, 77, 255, 0.6);
}

/* Кнопка Back */
.prop-back-wrapper {
  text-align: center;
  margin-top: 8px;
}

.prop-back {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prop-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Адаптация для планшетов */
@media (min-width: 768px) {
  .prop-container {
    max-width: 700px;
    margin: 0 auto;
  }

  .prop-hero-img {
    height: 320px;
  }

  .prop-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .prop-feature-bg {
    height: 240px;
  }

  .prop-feature-card {
    min-height: 240px;
  }

  .prop-feature-text h3 {
    font-size: 18px;
  }

  .prop-feature-text p {
    font-size: 12px;
  }
}

/* Адаптация для компьютеров — ТОЛЬКО ДЛЯ PROP СТРАНИЦЫ */
@media (min-width: 1024px) {

  /* Фоновая картинка только для страницы prop */
  body.prop-page {
    /*background-image: url('assets/images/bg-pattern.jpg');*/
    background: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .prop-container {
    max-width: 1000px;
    padding: 40px 40px 60px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .prop-hero-img {
    height: 400px;
  }

  .prop-title {
    font-size: 42px;
  }

  .prop-description {
    font-size: 17px;
  }

  .prop-feature-bg {
    height: 280px;
  }

  .prop-feature-card {
    min-height: 280px;
  }

  .prop-feature-text h3 {
    font-size: 22px;
  }

  .prop-feature-text p {
    font-size: 14px;
  }

  .prop-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  .prop-btn-join:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
  }
}

/* 
   PROP PAGE — АНИМАЦИЯ ПОЯВЛЕНИЯ
 */

/* Начальное состояние контейнера (скрыт до загрузки картинок) */
.prop-container {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Видимое состояние (добавляется JS после загрузки картинок) */
.prop-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Плавное появление для карточек с небольшой задержкой */
.prop-feature-card {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.prop-container.loaded .prop-feature-card {
  opacity: 1;
  transform: translateY(0);
}

/* Постепенное появление карточек друг за другом */
.prop-container.loaded .prop-feature-card:nth-child(1) {
  transition-delay: 0.05s;
}

.prop-container.loaded .prop-feature-card:nth-child(2) {
  transition-delay: 0.10s;
}

.prop-container.loaded .prop-feature-card:nth-child(3) {
  transition-delay: 0.15s;
}

.prop-container.loaded .prop-feature-card:nth-child(4) {
  transition-delay: 0.20s;
}

/* Плавное появление для остальных элементов */
.prop-hero-img,
.prop-title,
.prop-description,
.prop-info-block,
.prop-partner,
.prop-btn-join,
.prop-back-wrapper {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.prop-container.loaded .prop-hero-img {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.00s;
}

.prop-container.loaded .prop-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.prop-container.loaded .prop-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.10s;
}

.prop-container.loaded .prop-info-block {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.prop-container.loaded .prop-partner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.prop-container.loaded .prop-btn-join {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.30s;
}

.prop-container.loaded .prop-back-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Анимация выхода — более плавный вариант */
.prop-container {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.prop-container.fade-out {
  opacity: 0;
  transform: scale(0.96) translateY(-15px);
}

/* Затемнение фона при выходе */
body {
  transition: background 0.35s ease;
}

.prop-container.fade-out~body,
body:has(.prop-container.fade-out) {
  background: #000000;
}

/* ============================================
   TRADER PAGE STYLES (для всех трейдеров)
   ============================================ */

body.trader-page {
  background: #0a0a0a;
}

.trader-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 40px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.trader-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

.trader-page-hero {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 24px;
  background: #111;
}

/* Trader's name */
.trader-page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

/* text about trader's */
.trader-page-description {
  margin-bottom: 24px;
}

.trader-page-description p {
  color: #aaa;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 12px;
}

.trader-page-description p:last-child {
  margin-bottom: 0;
}

/* Видео — универсальный контейнер */
.trader-video-wrapper {
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
}

.trader-video-container {
  position: relative;
  width: 100%;
  background: #000;
  transition: padding-bottom 0.2s ease;
}

.trader-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Кнопки */
.trader-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* Personal Mentorship */
.trader-btn-mentor {
  width: 100%;
  background: linear-gradient(135deg, #ffffff, #e8e8e8);
  border: none;
  padding: 16px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.trader-btn-mentor:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, #f0f0f0, #d5d5d5);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}

.trader-btn-follow {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.trader-btn-follow:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Кнопка Back */
.trader-back-wrapper {
  text-align: center;
  margin-top: 8px;
}

.trader-back {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trader-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Адаптация для планшетов */
@media (min-width: 768px) {
  .trader-container {
    max-width: 700px;
    margin: 0 auto;
  }

  .trader-page-hero {
    height: 380px;
  }

  .trader-page-title {
    font-size: 38px;
  }

  .trader-buttons {
    flex-direction: row;
    gap: 16px;
  }
}

/* Адаптация для компьютеров */
@media (min-width: 1024px) {
  .trader-container {
    max-width: 900px;
    padding: 40px 40px 60px;
  }

  .trader-page-hero {
    height: 450px;
  }

  .trader-page-title {
    font-size: 46px;
  }

  .trader-page-description p {
    font-size: 17px;
  }

  .trader-btn-mentor:hover,
  .trader-btn-follow:hover {
    transform: translateY(-2px);
  }
}

/* ============================================
   TRADER PAGE LOADER
   ============================================ */

/* ============================================
   TRADER PAGE LOADER (как в universal)
   ============================================ */

#trader-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderFadeIn 0.2s ease;
  /* ← ДОБАВИТЬ */
}

#trader-loader.fade-out {
  animation: loaderFadeOut 0.2s ease forwards;
  /* ← ДОБАВИТЬ */
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes loaderFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(8px);
  }

  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

#trader-loader .loader-overlay {
  text-align: center;
  animation: loaderScale 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes loaderScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

#trader-loader .loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #4caf50;
  border-radius: 50%;
  animation: spinnerSpin 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) infinite;
  margin: 0 auto 16px;
}

@keyframes spinnerSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#trader-loader .loader-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

@keyframes loaderScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spinnerSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Анимация выхода страницы */
.trader-container.fade-out {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TRADING MODAL — выбор биржи
   ============================================ */

.trading-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
}

.trading-modal.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.trading-modal-content {
  background: #1c1c1e;
  width: 90%;
  max-width: 340px;
  border-radius: 28px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    opacity 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.trading-modal.active .trading-modal-content {
  transform: scale(1);
  opacity: 1;
}

.trading-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trading-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.trading-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #8e8e93;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.trading-modal-close:active {
  transform: scale(0.9);
}

.trading-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trading-exchange-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.trading-exchange-btn:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.12);
}

.exchange-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #0a0a0a;
}

.exchange-info {
  flex: 1;
  text-align: left;
}

.exchange-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.exchange-desc {
  font-size: 12px;
  color: #8e8e93;
}

.trading-exchange-btn i {
  font-size: 16px;
  color: #4caf50;
}



/* ============================================
   TOURNAMENT MODAL 
   ============================================ */

.tournament-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
}

.tournament-modal.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.tournament-modal-content {
  background: #1c1c1e;
  width: 90%;
  max-width: 320px;
  border-radius: 28px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    opacity 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-align: center;
}

.tournament-modal.active .tournament-modal-content {
  transform: scale(1);
  opacity: 1;
}

.tournament-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.tournament-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #8e8e93;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.tournament-modal-close:active {
  transform: scale(0.9);
}

.tournament-modal-body {
  padding: 20px;
}

.tournament-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.tournament-modal-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.tournament-modal-body p {
  color: #8e8e93;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.tournament-stay-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tournament-stay-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}


/* ============================================
   STRATEGY PAGE
   ============================================ */

.strategy-page {
  background: #0a0a0a;
}

.strategy-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.strategy-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 24px;
  background: #111;
}

.strategy-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.strategy-description {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 28px;
  font-size: 15px;
}

/* ============================================
   ДОРОЖНАЯ КАРТА (без контейнера, с пунктирными линиями)
   ============================================ */

.strategy-roadmap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
}

.roadmap-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.roadmap-item.completed .roadmap-dot {
  background: #2c2c2e;
  color: #4caf50;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

.roadmap-item.locked .roadmap-dot {
  background: #2c2c2e;
  color: #666;
  box-shadow: none;
}

.roadmap-dot i {
  font-size: 18px;
}

.roadmap-content {
  flex: 1;
  text-align: left;
}

.roadmap-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.roadmap-desc {
  font-size: 11px;
  color: #8e8e93;
}

/* Пунктирная линия между точками */
.roadmap-line {
  width: 2px;
  height: 30px;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.2) 0px,
      rgba(255, 255, 255, 0.2) 6px,
      transparent 6px,
      transparent 12px);
  margin: 4px 0;
}

/* ============================================
   УРОКИ
   ============================================ */

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.lesson-card {
  background: #1c1c1e;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-header {
  padding: 16px 16px 0;
}

.lesson-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.lesson-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 12px 0;
}

.locked-player {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lock-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lock-overlay i {
  font-size: 48px;
  color: #666;
}

.lesson-footer {
  padding: 0 16px 16px;
}

.lesson-description {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.5;
  margin: 0;
}

.lesson-card.locked {
  cursor: pointer;
}

/* ============================================
   КНОПКА BACK
   ============================================ */

.strategy-back-wrapper {
  text-align: center;
  margin-top: 8px;
}

.strategy-back {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strategy-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ============================================
   МОДАЛКА (одна кнопка Cancel)
   ============================================ */

.strategy-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
}

.strategy-modal.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.strategy-modal-content {
  background: #1c1c1e;
  width: 85%;
  max-width: 300px;
  border-radius: 32px;
  padding: 28px 20px;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    opacity 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.strategy-modal.active .strategy-modal-content {
  transform: scale(1);
  opacity: 1;
}

.strategy-modal-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.strategy-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.strategy-modal-content p {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.5;
  margin-bottom: 24px;
}

.strategy-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.strategy-modal-cancel:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   STRATEGY PAGE - АНИМАЦИИ (как на prop странице)
   ============================================ */

/* Начальное состояние контейнера (скрыт до загрузки) */
.strategy-container {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Видимое состояние (добавляется JS после загрузки) */
.strategy-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация выхода — только когда есть класс fade-out */
.strategy-container.fade-out {
  opacity: 0 !important;
  transform: scale(0.96) translateY(-15px) !important;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none;
}

/* ============================================
   АДАПТАЦИЯ
   ============================================ */

@media (min-width: 768px) {
  .strategy-container {
    max-width: 700px;
    margin: 0 auto;
  }

  .strategy-title {
    font-size: 38px;
  }
}

@media (min-width: 1024px) {
  .strategy-container {
    max-width: 900px;
    padding: 40px 40px 60px;
  }

  .strategy-hero-img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .strategy-title {
    font-size: 28px;
  }

  .roadmap-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .roadmap-title {
    font-size: 14px;
  }

  .roadmap-desc {
    font-size: 10px;
  }
}

/* Запрещаем анимации на strategy странице когда открыта модалка */
body.modal-open .strategy-container {
  transition: none !important;
  transform: none !important;
}


/* Когда любая модалка открыта — запрещаем скролл у body */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ============================================
   iOS-STYLE FLOATING BACK BUTTON
   ============================================ */

.floating-back-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 500;

  background: rgba(30, 30, 32, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);

  padding: 12px 24px;
  border-radius: 60px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;

  opacity: 1;
  transition:
    opacity 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    background 0.3s ease,
    border-color 0.3s ease;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-back-btn.hidden {
  opacity: 0.15;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  background: rgba(30, 30, 32, 0.25);
}

.floating-back-btn:active {
  transform: translateX(-50%) scale(0.94);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  transition: transform 0.1s ease, background 0.1s ease;
}

/* Для десктопа — чуть больше */
@media (min-width: 1024px) {
  .floating-back-btn {
    padding: 14px 28px;
    font-size: 15px;
    bottom: 24px;
  }
}

/* Убираем старые back-wrapper (они больше не нужны) */
.intra-back-wrapper,
.news-back-wrapper,
.prop-back-wrapper,
.strategy-back-wrapper,
.trader-back-wrapper {
  display: none;
}

/* ============================================
   BOTTOM NAVIGATION PILL — iOS DRAG STYLE (только главная)
   ============================================ */

.bottom-nav-wrapper {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 600;

  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1);

  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6));
}

.bottom-nav-wrapper.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Скрытие при скролле */
.bottom-nav-wrapper.hidden {
  opacity: 0.1 !important;
  transform: translateX(-50%) translateY(20px) !important;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Сама закруглённая плашка */
.bottom-nav-pill {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 3px;

  /* iOS glass effect */
  background: rgba(26, 26, 28, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);

  border-radius: 32px;

  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Элемент навигации */
.nav-pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 16px;
  min-height: 48px;
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

/* Активный элемент — белый цвет + свечение */
.nav-pill-item.active {
  color: #ffffff;
  background: transparent;
}

.nav-pill-item.active .nav-pill-icon {
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
}

.nav-pill-icon {
  font-size: 20px;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    filter 0.3s ease;
  pointer-events: none;
}

.nav-pill-item:active .nav-pill-icon {
  transform: scale(0.8);
}

.nav-pill-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  pointer-events: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.25s ease,
    max-height 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

/* У активного элемента показываем текст */
.nav-pill-item.active .nav-pill-label {
  opacity: 1;
  max-height: 14px;
}

/* Адаптация для десктопа */
@media (min-width: 1024px) {
  .bottom-nav-wrapper {
    bottom: 20px;
  }

  .nav-pill-item {
    padding: 6px 18px;
    min-height: 52px;
    gap: 3px;
  }

  .nav-pill-icon {
    font-size: 22px;
  }

  .nav-pill-label {
    font-size: 10px;
  }

  .nav-pill-item.active .nav-pill-label {
    max-height: 16px;
  }
}

/* Адаптация safe-area для iPhone X+ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav-wrapper {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   PROFILE PAGE — iOS MINIMAL STYLE
   ============================================ */

.profile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

/* Avatar */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  margin-bottom: 20px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.profile-username {
  font-size: 15px;
  color: #8e8e93;
  margin: 0;
}

/* Settings List */
.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

.profile-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-setting-item:first-child {
  border-radius: 16px 16px 0 0;
}

.profile-setting-item:last-child {
  border-radius: 0 0 16px 16px;
}

.profile-setting-item:only-of-type {
  border-radius: 16px;
}

.profile-setting-item:active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-setting-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.profile-setting-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
}

.profile-setting-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-setting-value {
  font-size: 16px;
  color: #8e8e93;
}

.profile-setting-arrow {
  font-size: 12px;
  color: #555;
}

/* ============================================
   ACTION SHEET — iOS STYLE
   ============================================ */

.profile-actionsheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
}

.profile-actionsheet-overlay.active {
  visibility: visible;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-actionsheet {
  background: #1c1c1e;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.profile-actionsheet-overlay.active .profile-actionsheet {
  transform: translateY(0);
}

.profile-actionsheet-header {
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-actionsheet-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-actionsheet-list {
  padding: 8px 0;
  max-height: 50vh;
  overflow-y: auto;
}

.profile-actionsheet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 17px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-actionsheet-option:active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-actionsheet-option.active {
  color: #ffffff;
  font-weight: 600;
}

.profile-actionsheet-option i {
  font-size: 14px;
  color: #ffffff;
}

.profile-actionsheet-cancel {
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-actionsheet-cancel:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Share Button */
.profile-share {
  margin-top: 32px;
  padding: 0 4px;
}

.profile-share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-share-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.98);
}

.profile-share-btn i {
  font-size: 18px;
  opacity: 0.8;
}

/* Connected Accounts */
.profile-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 32px 4px 12px;
}

.profile-connected {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-connected-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

.profile-connected-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #0a0a0a;
}

.profile-connected-info {
  flex: 1;
}

.profile-connected-name {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
}

/* ============================================
   PROFILE PAGE — АДАПТАЦИЯ
   ============================================ */

@media (min-width: 768px) {
  .profile-container {
    max-width: 600px;
    padding: 80px 30px 50px;
  }

  .profile-avatar-ring {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .profile-container {
    max-width: 700px;
    padding: 100px 40px 60px;
  }
}

/* ============================================
   TOAST — iOS STYLE
   ============================================ */

.profile-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 3000;

  background: rgba(30, 30, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);

  padding: 10px 22px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;

  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);

  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-connected-status {
  min-width: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   PROFILE PAGE — АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================ */

/* Анимация появления контейнера */
.profile-container {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.profile-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация для аватара */
.profile-avatar-ring {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.profile-container.loaded .profile-avatar-ring {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.05s;
}

/* Анимация для имени и username */
.profile-name,
.profile-username {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.profile-container.loaded .profile-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.10s;
}

.profile-container.loaded .profile-username {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* Анимация для пунктов меню (последовательно) */
.profile-setting-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-container.loaded .profile-setting-item:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.10s;
}

.profile-container.loaded .profile-setting-item:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

.profile-container.loaded .profile-setting-item:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.20s;
}

/* Анимация для секции Connected Accounts */
.profile-section-title {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-container.loaded .profile-section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.20s;
}

/* Анимация для элементов Connected Accounts */
.profile-connected-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-container.loaded .profile-connected-item:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.25s;
}

.profile-container.loaded .profile-connected-item:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.30s;
}

/* Анимация для кнопки Share */
.profile-share {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-container.loaded .profile-share {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Анимация выхода со страницы */
.profile-container.fade-out {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   EXCHANGE PAGES — BYBIT & BINGX
   ============================================ */

.exchange-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;

  /* Отступы для iPhone */
  padding-top: calc(40px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exchange-container.ready {
  opacity: 1;
}

.exchange-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;

  /* Отступ для iPhone с чёлкой */
  padding-top: env(safe-area-inset-top, 20px);
}

.exchange-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  background: #1c1c1e;
  margin-bottom: 16px;
}

.exchange-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.exchange-subtitle {
  font-size: 15px;
  color: #8e8e93;
  margin: 0;
}

/* Экраны */
.exchange-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
}

.exchange-screen-hidden {
  display: none;
}

.exchange-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 8px;
}

.exchange-hint {
  font-size: 14px;
  color: #8e8e93;
  text-align: center;
  margin: 0 0 8px;
}

/* Кнопки */
.exchange-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.exchange-btn:active {
  transform: scale(0.97);
}

.exchange-btn-primary {
  background: #ffffff;
  color: #1a1a1a;
}

.exchange-btn-primary:active {
  background: #e0e0e0;
}

.exchange-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.exchange-btn-secondary:active {
  background: rgba(255, 255, 255, 0.15);
}

.exchange-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.exchange-btn-outline:active {
  background: rgba(255, 255, 255, 0.05);
}

.exchange-btn-back {
  background: transparent;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
}

.exchange-btn-back:active {
  color: #ffffff;
}

.exchange-btn i {
  font-size: 18px;
}

/* Поле ввода */
.exchange-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.exchange-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
  letter-spacing: 2px;
}

.exchange-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.exchange-input::placeholder {
  color: #555;
  letter-spacing: 0;
}

.exchange-input-hint {
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* Инструкция */
.exchange-instruction {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 8px;
}

.exchange-instruction p {
  font-size: 14px;
  color: #bbbbbb;
  line-height: 1.5;
  margin: 0 0 12px;
}

.exchange-instruction ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.exchange-instruction li {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 6px;
}

.exchange-instruction strong {
  color: #ffffff;
}

.exchange-note {
  font-size: 13px !important;
  color: #8e8e93 !important;
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Результат */
.exchange-result-icon {
  font-size: 56px;
  margin-bottom: 16px;
  text-align: center;
}

.exchange-result-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  text-align: center;
}

.exchange-result-text {
  font-size: 14px;
  color: #8e8e93;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 24px;
}

/* Лоадер */
.exchange-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1000;
}

.exchange-loader.visible {
  display: flex;
}

.exchange-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.exchange-loader p {
  font-size: 14px;
  color: #8e8e93;
}

/* Анимация ошибки */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(8px);
  }

  75% {
    transform: translateX(-4px);
  }
}

/* Адаптация */
@media (min-width: 768px) {
  .exchange-container {
    max-width: 500px;
    padding: 60px 30px;
  }

  .exchange-logo {
    width: 100px;
    height: 100px;
  }

  .exchange-title {
    font-size: 34px;
  }
}

/* ============================================
   SPLASH SCREEN — ПЕРВАЯ ЗАГРУЗКА ПРИЛОЖЕНИЯ
   ============================================ */

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#splash-screen.splash-fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.splash-logo {
  width: 100px;
  height: 100px;
  animation: logoFloat 2.5s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.25));
}

/* Три белые свечи */
.splash-candles {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 52px;
}

.splash-candle {
  width: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  animation: candleBreath 1.5s ease-in-out infinite;
  position: relative;
}

/* Фитиль */
.splash-candle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.splash-candle:nth-child(1) {
  animation-delay: 0s;
}

.splash-candle:nth-child(2) {
  animation-delay: 0.5s;
}

.splash-candle:nth-child(3) {
  animation-delay: 1s;
}

@keyframes candleBreath {

  0%,
  100% {
    height: 10px;
    opacity: 0.3;
  }

  50% {
    height: 38px;
    opacity: 1;
  }
}

/* ============================================
   OFFLINE SCREEN — JAPANESE CANDLES PATTERN
   ============================================ */

#offline-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: offlineFadeIn 0.5s ease;
}

@keyframes offlineFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#offline-screen.offline-fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.offline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.offline-oops {
  font-size: 50px;
  /* ранее было 64*/
  font-weight: 600;
  /*ранее было 800*/
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}

/* Контейнер для трёх японских свечей */
.offline-candles {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 24vh;
  min-height: 180px;
  margin: 8px 0;
}

/* Одна японская свеча */
.offline-candle.japanese {
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: candleAppear 0.8s ease-out forwards;
  opacity: 0;
}

/* Тени */
.candle-wick-top,
.candle-wick-top-short {
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  margin-bottom: -1px;
}

.candle-wick-top {
  height: 16px;
}

.candle-wick-top-short {
  height: 6px;
  background: rgba(255, 80, 80, 0.35);
}

.candle-wick-bottom {
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  margin-top: -1px;
}

.candle-wick-bottom-long {
  width: 2px;
  height: 65px;
  background: rgba(255, 80, 80, 0.4);
  border-radius: 1px;
  margin-top: -1px;
}

/* Тело свечи */
.candle-body {
  width: 100%;
  border-radius: 4px;
}

.candle-body.bull {
  background: rgba(255, 255, 255, 0.55);
}

.candle-body.bear {
  background: rgba(255, 80, 80, 0.55);
  animation: bearBodyDrop 2.5s ease-in-out 1.2s infinite;
}

/* Свеча 1 — на своём уровне */
.candle-1 {
  margin-top: 28px;
}

.candle-1 .candle-body {
  height: 85px;
}

/* Свеча 2 — чуть выше */
.candle-2 {
  margin-top: 10px;
}

.candle-2 .candle-body {
  height: 72px;
}

/* Свеча 3 — намного ниже */
.candle-3 {
  margin-top: 90px;
}

.candle-3 .candle-body {
  height: 80px;
}

/* Анимация тела третьей свечи: падает вниз и возвращается */
@keyframes bearBodyDrop {

  0%,
  100% {
    height: 50px;
  }

  40% {
    height: 120px;
  }

  75% {
    height: 55px;
  }
}

/* Появление */
@keyframes candleAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.candle-1 {
  animation-delay: 0.1s;
}

.candle-2 {
  animation-delay: 0.3s;
}

.candle-3 {
  animation-delay: 0.5s;
}

.offline-title {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  letter-spacing: 0.3px;
}

.offline-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  margin: -12px 0 0;
  letter-spacing: 0.3px;
}

/* ============================================
   TOURNAMENTS PAGE — GOLD PREMIUM STYLE
   ============================================ */

.tournaments-page {
  padding-bottom: 40px;
}

.tournaments-header {
  margin-bottom: 28px;
  padding-top: 70px;
}

.tournaments-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  background: none;
  color: #ffffff;
}

.tournaments-subtitle {
  color: #8e8e93;
  font-size: 15px;
  margin: 0;
}

/* Карточка турнира — ЗОЛОТОЙ ПРЕМИУМ СТИЛЬ */
.tn-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 28px;
  padding: 0;
  margin-bottom: 28px;
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(4px);
}

/* Верхняя золотая полоска */
.tn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
  opacity: 0.7;
}

/* Нижняя тонкая полоска */
.tn-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

/* Эффект нажатия */
.tn-card:active {
  transform: scale(0.98);
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

/* Эффект при наведении (десктоп) */
@media (hover: hover) {
  .tn-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
  }
}

.tn-card-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tn-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 0;
}

/* Золотой бейдж Live */
.tn-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.tn-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  animation: goldPulse 1.5s infinite;
  box-shadow: 0 0 6px #d4af37;
}

@keyframes goldPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px #d4af37;
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 12px #d4af37;
  }
}

/* таймер */
.tn-timer {
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.tn-card-main {
  padding: 14px 20px 18px;
}

/* Заголовок турнира с золотым градиентом */
.tn-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #d4af37, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 2px;
  letter-spacing: -0.5px;
}

.tn-subtitle {
  font-size: 13px;
  color: #8e8e93;
  margin: 0 0 18px;
}

/* Ряд с призовыми суммами */
.tn-prize-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* $25,000 — большой золотой */
.tn-prize-25k {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #d4af37, #f0d060, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* $10,000 — серебряный */
.tn-prize-10k {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #c0c0c0, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.tn-prize-sep {
  font-size: 28px;
  font-weight: 600;
  color: #555;
}

.tn-groups {
  display: flex;
  gap: 10px;
}

.tn-groups span {
  font-size: 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 12px;
}

.tn-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 12px;
  color: rgba(212, 175, 55, 0.6);
}

.tn-card-bottom i {
  font-size: 13px;
  color: rgba(212, 175, 55, 0.4);
}

/* Заглушка */
.tn-empty {
  text-align: center;
  padding: 40px 20px;
}

.tn-empty-icon {
  font-size: 32px;
  color: #555;
  margin-bottom: 12px;
}

.tn-empty-text {
  font-size: 14px;
  color: #8e8e93;
}

/* УЛУЧШЕННАЯ АНИМАЦИЯ ПОЯВЛЕНИЯ СТРАНИЦЫ */
.tournaments-page {
  opacity: 0;
  animation: tournamentsFadeIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes tournamentsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация для карточки турнира — выезжает с задержкой */
.tn-card {
  opacity: 0;
  animation: cardSlideIn 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) 0.15s forwards;
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Анимация ВЫХОДА со страницы Tournament */
.tournaments-exit {
  animation: tournamentsFadeOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes tournamentsFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Адаптация под телефон */
@media (max-width: 768px) {
  .tournaments-title {
    font-size: 28px;
  }

  .tn-title {
    font-size: 24px;
  }

  .tn-prize-25k {
    font-size: 36px;
  }

  .tn-prize-10k {
    font-size: 28px;
  }

  .tn-prize-sep {
    font-size: 22px;
  }
}

/* ============================================
   TOURNAMENT DETAIL PAGE
   ============================================ */

.tournament-detail-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 40px;
  padding-top: calc(40px + env(safe-area-inset-top, 0px));
}

.td-header {
  text-align: center;
  margin-bottom: 36px;
}

.td-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.td-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.td-subtitle {
  font-size: 14px;
  color: #8e8e93;
  margin: 0 0 14px;
}

.td-dates {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #8e8e93;
}

.td-dates i {
  margin-right: 4px;
  font-size: 10px;
}

/* Секции */
.td-section {
  margin-bottom: 28px;
}

.td-section-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.td-section-desc {
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Главные призы — золотой/серебряный градиент */
.td-main-prizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.td-main-prize {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.td-main-prize:active {
  transform: scale(0.98);
}

.td-main-prize::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
}

/* $25,000 — золото (GOAT) */
.td-main-prize.prize-goat {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(212, 175, 55, 0.15);
}

.td-main-prize.prize-goat::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), rgba(255, 255, 255, 0.3), transparent);
}

.td-main-prize.prize-goat .td-main-prize-amount {
  background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* $10,000 — серебро (Whale) */
.td-main-prize.prize-whale {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.06), rgba(255, 255, 255, 0.04));
  border-color: rgba(192, 192, 192, 0.12);
}

.td-main-prize.prize-whale::before {
  background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.5), rgba(255, 255, 255, 0.3), transparent);
}

.td-main-prize.prize-whale .td-main-prize-amount {
  background: linear-gradient(135deg, #c0c0c0, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.td-main-prize-group {
  font-size: 10px;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.td-main-prize-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.td-main-prize-label {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 8px;
}

.td-main-prize-range {
  font-size: 11px;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Супер-призы — горизонтальные карточки 16:9, картинка на всю карточку */
.td-super-prizes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-super-prize-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.td-super-prize-card:active {
  transform: scale(0.97);
}

.td-super-prize-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.td-super-prize-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.td-super-prize-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.td-super-prize-desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.td-super-prize-badge {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 8px;
}

/* Карьера */
.td-career {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.td-career-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.td-career-text strong {
  font-size: 14px;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.td-career-text p {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

/* Преимущества */
.td-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.td-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.td-perk-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.td-perk-text strong {
  font-size: 14px;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.td-perk-text p {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

.td-referral-note {
  text-align: center;
  font-size: 12px;
  color: #555;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.td-referral-note i {
  margin-right: 4px;
}

/* Правила */
.td-rules {
  padding-left: 18px;
  margin: 0;
}

.td-rules li {
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Челленджи */
.td-challenges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.td-challenge {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.td-challenge-header strong {
  font-size: 16px;
  color: #ffffff;
}

.td-challenge-phases {
  font-size: 11px;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 12px;
}

.td-challenge-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-challenge-details span {
  font-size: 12px;
  color: #8e8e93;
}

/* FAQ с анимациями */
.td-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.td-faq-item[open] {
  background: rgba(255, 255, 255, 0.06);
}

.td-faq-item summary {
  padding: 16px;
  font-size: 14px;
  color: #bbb;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  user-select: none;
}

.td-faq-item[open] summary {
  color: #ffffff;
}

.td-faq-item summary::-webkit-details-marker {
  display: none;
}

.td-faq-item summary::after {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
  content: '+';
  color: #8e8e93;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.td-faq-item[open] summary::after {
  content: '−';
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(180deg);
}


.td-faq-item[open] .td-faq-answer {
  max-height: 200px;
}


.td-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.td-faq-answer p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.5;
  margin: 0;
}

/* Кнопки PDF и Support */
.td-bottom-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.td-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  color: #ffffff;
}

.td-action-btn:active {
  transform: scale(0.96);
}

.td-action-help {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.td-action-support {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.td-action-btn i {
  font-size: 16px;
}

/* CTA */
.td-cta {
  margin-top: 32px;
  text-align: center;
}

.td-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.td-cta-btn:active {
  transform: scale(0.96);
  background: #e0e0e0;
}

.td-cta-hint {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}

/* Анимации появления */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: tdFadeIn 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.animate-fade-in.delay-1 {
  animation-delay: 0.08s;
}

.animate-fade-in.delay-2 {
  animation-delay: 0.16s;
}

.animate-fade-in.delay-3 {
  animation-delay: 0.24s;
}

.animate-fade-in.delay-4 {
  animation-delay: 0.32s;
}

@keyframes tdFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TOURNAMENT DETAIL PAGE — АДАПТАЦИЯ
   ============================================ */

/* Планшеты (горизонтальная ориентация) */
@media (min-width: 768px) and (max-width: 1023px) {
    .tournament-detail-container {
        max-width: 700px;
        margin: 0 auto;
        padding: 40px 30px 50px;
    }
    
    .td-title {
        font-size: 36px;
    }
    
    .td-main-prizes {
        flex-direction: row;
        gap: 16px;
    }
    
    .td-main-prize {
        flex: 1;
        padding: 20px;
    }
    
    .td-main-prize-amount {
        font-size: 32px;
    }
    
    .td-super-prizes-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .td-perks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .td-bottom-actions {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .td-challenges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .td-faq {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Компьютеры (десктоп) */
@media (min-width: 1024px) {
    body {
        background: #0a0a0a;
        min-height: 100vh;
    }
    
    .tournament-detail-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 50px 40px 60px;
    }
    
    /* Хедер */
    .td-header {
        margin-bottom: 48px;
    }
    
    .td-header-badge {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 18px;
    }
    
    .td-title {
        font-size: 48px;
        margin-bottom: 8px;
    }
    
    .td-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .td-dates {
        gap: 32px;
        font-size: 14px;
    }
    
    /* Секции */
    .td-section {
        margin-bottom: 40px;
    }
    
    .td-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    /* Главные призы — 2 колонки */
    .td-main-prizes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .td-main-prize {
        padding: 28px;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }
    
    .td-main-prize:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .td-main-prize-amount {
        font-size: 40px;
    }
    
    .td-career {
        max-width: 80%;
        margin: 0 auto;
        padding: 20px 24px;
    }
    
    /* Супер-призы — 3 колонки */
    .td-super-prizes-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .td-super-prize-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .td-super-prize-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }
    
    /* Преимущества — 2 колонки */
    .td-perks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .td-perk {
        padding: 18px;
        transition: transform 0.2s ease;
    }
    
    .td-perk:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Челленджи — 3 колонки */
    .td-challenges {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .td-challenge {
        transition: transform 0.2s ease;
    }
    
    .td-challenge:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.06);
    }
    
    /* Кнопки PDF и Support */
    .td-bottom-actions {
        max-width: 400px;
        margin: 0 auto 40px;
        gap: 16px;
    }
    
    .td-action-btn {
        padding: 16px;
        transition: transform 0.2s ease, background 0.2s ease;
    }
    
    .td-action-btn:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Правила */
    .td-rules {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .td-rules li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* FAQ — центрирование */
    .td-faq {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .td-faq-item {
        transition: background 0.2s ease;
    }
    
    .td-faq-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }
    
    /* CTA кнопка */
    .td-cta-btn {
        padding: 18px 40px;
        font-size: 18px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .td-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
    }
}

/* Для больших экранов (1440px+) */
@media (min-width: 1440px) {
    .tournament-detail-container {
        max-width: 1200px;
        padding: 60px 50px 70px;
    }
    
    .td-title {
        font-size: 56px;
    }
    
    .td-super-prizes-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .td-perks {
        gap: 20px;
    }
    
    .td-challenges {
        gap: 20px;
    }
}

/* Планшеты (вертикальная ориентация) — небольшие доработки */
@media (min-width: 600px) and (max-width: 767px) {
    .tournament-detail-container {
        padding: 30px 24px 40px;
    }
    
    .td-super-prizes-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .td-perks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .td-challenges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================
   GET FREE PAGE — PREMIUM STYLE
   ============================================ */

.free-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* Hero секция */
.free-hero {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 40px;
}

.free-hero-icon {
  font-size: 56px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #d4af37, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.free-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.free-subtitle {
  color: #8e8e93;
  font-size: 14px;
}

/* Статус верификации */
.free-verification-status {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.status-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-icon {
  font-size: 28px;
}

.status-info {
  flex: 1;
}

.status-exchange {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: block;
}

.status-text {
  font-size: 12px;
  color: #4caf50;
}

/* Premium контент */
.free-premium-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.benefit-card:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #d4af37;
}

.benefit-info {
  flex: 1;
}

.benefit-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.benefit-info p {
  font-size: 12px;
  color: #8e8e93;
}

/* Кнопки действий */
.free-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.free-btn-primary {
  background: linear-gradient(135deg, #d4af37, #ffd700);
  border: none;
  padding: 16px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.free-btn-primary:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, #c0a030, #e8c800);
}

.free-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 500;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.free-btn-secondary:active {
  transform: scale(0.96);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Адаптация */
@media (max-width: 768px) {
  .free-title {
    font-size: 28px;
  }

  .free-verification-status {
    flex-direction: column;
  }

  .status-card {
    padding: 14px;
  }
}

/* ============================================
   GET FREE TOAST
   ============================================ */

.free-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10001;
  background: rgba(30, 30, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 60px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.free-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .free-toast {
    bottom: 80px;
    font-size: 12px;
    padding: 10px 20px;
    white-space: normal;
    text-align: center;
    max-width: 80%;
  }
}

/* ====================================
Стили для карточки Liquidity HeatMap 
 ==================================== */

.liquidity-card {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    background: #111;
    height: 130px;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Чёрный градиент снизу вверх */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

/* Контейнер для текста поверх картинки */
.card-content {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    text-align: left;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========== АДАПТАЦИЯ ========== */

/* Телефоны (основной размер) - шрифт в 2 раза больше */
@media (max-width: 768px) {
    .liquidity-card {
        height: 140px;
    }
    .card-content {
        bottom: 14px;
        left: 16px;
        right: 16px;
    }
    .card-content h3 {
        font-size: 22px;  
    }
    .card-content p {
        font-size: 13px;
    }
}

/* Планшеты (горизонтальная ориентация) */
@media (min-width: 769px) and (max-width: 1023px) {
    .liquidity-card {
        height: 160px;
    }
    .card-content {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .card-content h3 {
        font-size: 22px;
    }
    .card-content p {
        font-size: 14px;
    }
}

/* Десктоп и большие планшеты */
@media (min-width: 1024px) {
    .liquidity-card {
        height: 180px;
    }
    .card-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .card-content h3 {
        font-size: 24px;
    }
    .card-content p {
        font-size: 15px;
    }
}

/* Большие экраны (4K) */
@media (min-width: 1600px) {
    .liquidity-card {
        height: 220px;
    }
    .card-content h3 {
        font-size: 28px;
    }
    .card-content p {
        font-size: 18px;
    }
}

/* Очень маленькие телефоны (до 380px) - чуть компактнее */
@media (max-width: 380px) {
    .liquidity-card {
        height: 120px;
    }
    .card-content h3 {
        font-size: 22px;
    }
    .card-content p {
        font-size: 13px;
    }
}

/* ============================================
   LANGUAGE SWITCHER — iOS SLIDING PILL
   ============================================ */

.language-switch-container {
    margin: 16px 0 8px;
    display: flex;
    justify-content: center;
}

.language-switch {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* Бегающий ползунок */
.language-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: #ffffff;
    border-radius: 32px;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 0;
}

/* При активном русском — ползунок слева */
.language-switch[data-active="ru"] .language-slider {
    transform: translateX(0);
}

/* При активном английском — ползунок справа */
.language-switch[data-active="en"] .language-slider {
    transform: translateX(calc(100% + 4px));
}

.lang-option {
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8e8e93;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-option.active {
    color: #1a1a1a;
}

.lang-option:active {
    transform: scale(0.94);
}

/* Анимация пульсации для переключателя */
@keyframes langSwitchPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

.lang-switch-animate {
    animation: langSwitchPulse 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Анимация для всех элементов при смене языка */
.i18n-transition {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.i18n-transition-start {
    opacity: 0 !important;
    transform: translateY(6px) !important;
}

.i18n-transition-end {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

