/* ========================================
   CASINO MILKYWAY - CLEAN ADAPTIVE STYLES
   ======================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #FFFFFE;
  background: linear-gradient(135deg, #2D1B69 0%, #11082F 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}
/* Базовые стили для всех SVG */
svg {
  fill: currentColor !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}


/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Clear floats helper */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================================
   ИСПРАВЛЕННЫЕ СТИЛИ ХЕДЕРА MILKY WAY
   ======================================== */

/* ========================================
   БАЗОВЫЕ СТИЛИ ХЕДЕРА - ПЕРЕОПРЕДЕЛЕНИЕ
   ======================================== */

#header {
  position: sticky !important;
  top: 0 !important;
  background: rgba(17, 8, 47, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(194, 161, 229, 0.2) !important;
  z-index: 1000 !important;
  padding: 0 !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

#header .wrapper,
#header > .wrapper,
.header-wrapper {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  gap: 15px !important;
  box-sizing: border-box !important;
}

/* Принудительное выравнивание ВСЕХ дочерних элементов */
#header .wrapper > *,
#header > .wrapper > *,
.header-wrapper > * {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  align-self: center !important;
  height: auto !important;
}

/* ========================================
   ЛОГОТИП - ФИКСИРОВАННЫЕ СТИЛИ
   ======================================== */

.logo,
#header .logo,
#header a.logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #FFFFFE !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  min-width: 110px !important;
  height: auto !important;
  margin: 0 !important;
}

.logo img,
#header .logo img {
  width: 32px !important;
  height: 32px !important;
  margin-right: 8px !important;
  object-fit: contain !important;
}

.logo div span,
#header .logo div span {
  display: block !important;
  line-height: 1.1 !important;
}

.logo div span:first-child,
#header .logo div span:first-child {
  font-size: 0.8rem !important;
  color: #C2A1E5 !important;
}

.logo div span:last-child,
#header .logo div span:last-child {
  font-size: 1rem !important;
  color: #FFFFFE !important;
}

/* ========================================
   ПОИСК - ФИКСИРОВАННЫЕ СТИЛИ
   ======================================== */

.search,
#header .search,
.search-btn {
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #C2A1E5, #956DBE) !important;
  padding: 10px 18px !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  color: #FFFFFE !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

.search:hover,
#header .search:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(194, 161, 229, 0.3) !important;
}

.search svg,
#header .search svg {
  
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 1 !important;
}

/* ========================================
   ОСНОВНОЕ МЕНЮ - НАСТОЛЬНАЯ ВЕРСИЯ
   ======================================== */

.main-menu,
#header .main-menu,
nav.main-menu {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  list-style: none !important;
  flex: 1 !important;
  justify-content: center !important;
  margin: 0 20px !important;
  padding: 0 !important;
  height: auto !important;
}

.main-menu .item,
.main-menu li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  height: auto !important;
}

.main-menu .item a,
.main-menu li a {
  display: flex !important;
  align-items: center !important;
  color: #FFFFFE !important;
  text-decoration: none !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
  margin: 0 !important;
  height: auto !important;
}

.main-menu .item a:hover,
.main-menu li a:hover {
  background: rgba(194, 161, 229, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* ========================================
   КНОПКИ ВХОДА/РЕГИСТРАЦИИ
   ======================================== */

.lk,
#header .lk,
.user-buttons {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  height: auto !important;
  margin: 0 !important;
}

.btn,
#header .btn,
.lk .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 0.85rem !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #C2A1E5, #956DBE) !important;
  color: #FFFFFE !important;
  height: auto !important;
  margin: 0 !important;
}

.btn-two,
#header .btn-two {
  background: linear-gradient(135deg, #FF9D5B, #FF5757) !important;
}

.btn:hover,
#header .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(194, 161, 229, 0.3) !important;
}

/* ========================================
   ГАМБУРГЕР МЕНЮ
   ======================================== */

.label-menu,
#header .label-menu {
  display: none !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1001 !important;
  width: 30px !important;
  height: 30px !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 4px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.label-menu span,
#header .label-menu span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #FFFFFE !important;
  transition: all 0.3s ease !important;
  border-radius: 1px !important;
}

#btn-menu {
  display: none !important;
}

/* ========================================
   КРИТИЧЕСКИЕ МЕДИА-ЗАПРОСЫ
   ======================================== */

/* ПЛАНШЕТЫ И МОБИЛЬНЫЕ - главный брейкпоинт */
@media screen and (max-width: 1024px) {
  
  /* ПОЛНОСТЬЮ СКРЫВАЕМ ОСНОВНОЕ МЕНЮ */
  .main-menu,
  #header .main-menu,
  nav.main-menu,
  .main-menu .item,
  .main-menu li {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* ПОКАЗЫВАЕМ ГАМБУРГЕР */
  .label-menu,
  #header .label-menu {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* РЕСТРУКТУРИЗАЦИЯ ХЕДЕРА */
  #header .wrapper,
  #header > .wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }
  
  /* ПОЗИЦИОНИРОВАНИЕ ЭЛЕМЕНТОВ */
  .label-menu {
    order: -10 !important; /* Гамбургер первым */
  }
  
  .logo,
  #header .logo {
    order: -5 !important; /* Логотип вторым */
    margin-left: 0 !important;
  }
  
  .search,
  #header .search {
    order: 0 !important;
    flex: 1 !important; /* Растягиваем поиск */
    max-width: none !important;
    margin: 0 10px !important;
  }
  
  .lk,
  #header .lk {
    order: 5 !important; /* Кнопки последними */
    margin-left: auto !important;
  }
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */
@media screen and (max-width: 768px) {
  #header {
    height: 60px !important;
  }
  
  #header .wrapper,
  #header > .wrapper {
    padding: 0 12px !important;
    gap: 10px !important;
  }
  
  .logo,
  #header .logo {
    font-size: 0.95rem !important;
    min-width: 90px !important;
  }
  
  .logo img,
  #header .logo img {
    width: 28px !important;
    height: 28px !important;
    margin-right: 6px !important;
  }
  
  .search,
  #header .search {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
    margin: 0 8px !important;
  }

  
  .btn,
  #header .btn {
    padding: 6px 8px !important;
    font-size: 0.65rem !important;
    border-radius: 15px !important;
    min-height: 32px !important;
  }
  
  .btn svg,
  #header .btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  
  .lk,
  #header .lk {
    gap: 4px !important;
  }
}

/* МАЛЕНЬКИЕ МОБИЛЬНЫЕ */
@media screen and (max-width: 480px) {
  #header {
    height: 55px !important;
  }
  
  #header .wrapper,
  #header > .wrapper {
    padding: 0 10px !important;
    gap: 6px !important;
  }
  
  .logo,
  #header .logo {
    font-size: 0.85rem !important;
    min-width: 75px !important;
  }
  
  .logo img,
  #header .logo img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 4px !important;
  }
  
  .search,
  #header .search {
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
    margin: 0 6px !important;
  }
  
  .btn,
  #header .btn {
    padding: 4px 6px !important;
    font-size: 0.6rem !important;
    border-radius: 12px !important;
    min-height: 28px !important;
    min-width: 45px !important;
  }
  
  .btn svg,
  #header .btn svg {
    width: 10px !important;
    height: 10px !important;
  }
  
  .lk,
  #header .lk {
    gap: 3px !important;
  }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ */
@media screen and (max-width: 360px) {
  .search span,
  #header .search span {
    display: none !important;
  }
  
  .btn span,
  #header .btn span {
    display: none !important;
  }
  
  .search,
  #header .search {
    min-width: 32px !important;
    padding: 5px 6px !important;
    justify-content: center !important;
  }
  
  .btn,
  #header .btn {
    min-width: 28px !important;
    padding: 4px 5px !important;
    justify-content: center !important;
    min-height: 28px !important;
  }
  
  .btn svg,
  #header .btn svg {
    width: 9px !important;
    height: 9px !important;
    margin: 0 !important;
  }
  
  .logo div span:first-child,
  #header .logo div span:first-child {
    display: none !important;
  }
  
  .lk,
  #header .lk {
    gap: 2px !important;
  }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ФИКСЫ КОНФЛИКТОВ
   ======================================== */

/* Убираем все возможные конфликтующие стили */
#header * {
  box-sizing: border-box !important;
}

/* Отменяем любые абсолютные позиционирования в хедере на мобильных */
@media screen and (max-width: 1024px) {
  #header *,
  #header *:before,
  #header *:after {
    position: static !important;
    float: none !important;
    clear: none !important;
  }
  
  #header {
    position: sticky !important;
  }
}

/* Принудительно скрываем все элементы навигации кроме гамбургера на мобильных */
@media screen and (max-width: 1024px) {
  #header nav:not(.mobile-menu),
  #header ul:not(.mobile-menu),
  #header .navigation:not(.mobile-menu),
  #header .menu:not(.mobile-menu),
  #header .nav-item:not(.label-menu),
  #header .menu-item:not(.label-menu) {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Мобильное меню */
#mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.8) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease !important;
  z-index: 999 !important;
  overflow: hidden !important;
}

/* Исправленный селектор для работы с вложенной структурой */
#btn-menu:checked ~ #header #mobile,
#btn-menu:checked ~ * #mobile,
#header #btn-menu:checked ~ #mobile {
  transform: translateX(0) !important;
}

/* Дополнительные селекторы для надежности */
.menu-open #mobile {
  transform: translateX(0) !important;
}

#mobile.show {
  transform: translateX(0) !important;
}

#mobile .overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  z-index: 1 !important;
}

#mobile .wrap {
  background: #0B0625 !important;
  width: 320px !important;
  max-width: 80vw !important;
  height: 100% !important;
  padding: 80px 30px 30px !important;
  overflow-y: auto !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Стили для мобильного меню */
#mobile .mobile-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#mobile .mobile-menu .item {
  margin-bottom: 0 !important;
}

#mobile .mobile-menu .item a {
  display: flex !important;
  align-items: center !important;
  color: #FFFFFE !important;
  text-decoration: none !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid rgba(194, 161, 229, 0.1) !important;
  transition: color 0.3s ease !important;
  font-size: 1.1rem !important;
}

#mobile .mobile-menu .item a:hover {
  color: #C2A1E5 !important;
}

#mobile .mobile-menu .item svg {
  margin-right: 12px !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

#mobile h3 {
  color: #C2A1E5 !important;
  margin-bottom: 30px !important;
  font-size: 1.4rem !important;
  border-bottom: 1px solid rgba(194, 161, 229, 0.2) !important;
  padding-bottom: 15px !important;
}
/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main {
  flex: 1;
  position: relative;
  z-index: 1;
}

#container {
  position: relative;
  z-index: 1;
}



/* ========================================
   WELCOME SECTION (HERO) - FIXED LAYOUT
   ======================================== */

#welcome {
  padding: 60px 0 20px; /* Увеличен нижний отступ */
  background: linear-gradient(135deg, #2D1B69 0%, #11082F 100%);
  position: relative;
  overflow: hidden;
}

/* Cosmic background effects */
#welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(194, 161, 229, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
  z-index: 0;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

#welcome .wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#welcome .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-start; /* Изменено с center на flex-start */
  margin-bottom: 20px; /* Добавлен отступ снизу перед payment methods */
}

/* Left side - registration form */
#welcome .left {
  max-width: 500px;
  width: 100%;
}

#welcome .left p {
  margin-bottom: 15px;
}

#welcome .left p:first-child,
#welcome .left p:nth-child(2) {
  display: none; /* Hidden on desktop, shown on mobile */
}

#welcome .left p:nth-child(3) {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFFFFE;
  margin-bottom: 25px;
  line-height: 1.2;
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, #C2A1E5, transparent);
  margin: 25px 0 35px;
  border: none;
  width: 100%;
}

/* Form styles */
form {
  position: relative;
  z-index: 3;
  width: 100%;
}

form .form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

form input[type="email"],
form input[type="password"] {
  padding: 16px 22px;
  border: 2px solid rgba(194, 161, 229, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFE;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

form input[type="email"]:focus,
form input[type="password"]:focus {
  outline: none;
  border-color: #C2A1E5;
  box-shadow: 0 0 15px rgba(194, 161, 229, 0.3);
}

form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

        /* Основной контейнер селектора */
        .form-select {
            margin: 25px 0;
            position: relative;
            z-index: 10; /* ИСПРАВЛЕНО: было 1001 */
            width: 100%;
        }

        .select {
            position: relative;
            width: 100%;
        }

        /* Видимая часть селектора */
        .select-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 22px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(194, 161, 229, 0.3);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            width: 100%;
            box-sizing: border-box;
            color: #FFFFFE;
            font-size: 1rem;
            user-select: none;
        }

        .select-label:hover {
            border-color: #C2A1E5;
            background: rgba(255, 255, 255, 0.15);
        }

        .select-label.active {
            border-color: #C2A1E5;
            box-shadow: 0 0 15px rgba(194, 161, 229, 0.3);
        }

        /* Левая часть с валютой */
        .select-label .currency-display {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-curr {
            font-weight: bold;
            color: #FFDE97;
            font-size: 1.1rem;
        }

        .currency-code {
            color: #FFFFFE;
            font-weight: 500;
        }


        /* Выпадающий список - ИСПРАВЛЕННЫЕ СТИЛИ */
        .select-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #0B0625;
            border: 2px solid #C2A1E5;
            border-radius: 15px;
            margin-top: 8px;
            z-index: 1000; /* ВЫСОКИЙ Z-INDEX */
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            
            /* ИСПРАВЛЕНО: всегда скрыт по умолчанию */
            display: none;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        /* ИСПРАВЛЕНО: показать список */
        .select-list.show {
            display: block !important;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .select-list ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* Элементы списка */
        .select-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 22px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #FFFFFE;
            border-bottom: 1px solid rgba(194, 161, 229, 0.1);
            position: relative;
        }

        .select-item:last-child {
            border-bottom: none;
        }

        .select-item:hover {
            background: rgba(194, 161, 229, 0.15);
            color: #FFDE97;
        }

        .select-item.selected {
            background: rgba(194, 161, 229, 0.2);
            color: #FFDE97;
        }

        .select-item.selected::after {
            content: '✓';
            position: absolute;
            right: 22px;
            color: #C2A1E5;
            font-weight: bold;
        }

        .select-item .form-curr {
            font-size: 1rem;
        }

        .select-item .currency-name {
            flex: 1;
            font-size: 0.95rem;
        }

        /* Скрытый input */
        .select-input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        /* КРИТИЧЕСКИ ВАЖНО: когда селектор открыт */
        .form-select.open {
            z-index: 1000 !important;
        }

        .form-select.open .select-list {
            z-index: 1001 !important;
        }


/* Register button */
.register-btn {
  width: 100%;
  padding: 18px 25px;
  background: linear-gradient(135deg, #FF9D5B, #FF5757);
  border: none;
  border-radius: 25px;
  color: #FFFFFE;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 25px;
  box-sizing: border-box;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 157, 91, 0.4);
}

/* Right side - bonus display */
#welcome .right {
  text-align: center;
  padding: 45px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(194, 161, 229, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#welcome .right p:first-child {
  font-size: 1.4rem;
  color: #C2A1E5;
  margin-bottom: 18px;
  margin-top: 0;
}

#welcome .right p:nth-child(2) {
  font-size: 3.5rem;
  font-weight: bold;
  color: #FFDE97;
  margin-bottom: 25px;
  margin-top: 0;
  line-height: 1;
}

#welcome .right div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
}

#welcome .right div span:first-child {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FF9D5B;
  line-height: 1;
}

#welcome .right div span:last-child {
  font-size: 1.2rem;
  color: #C2A1E5;
  line-height: 1.2;
}

/* Responsive adjustments for right section */
@media (max-width: 1024px) {
  #welcome .right {
    padding: 35px 30px;
  }
}

@media (max-width: 768px) {
  #welcome .right {
    order: -1;
    padding: 35px 25px;
    margin-bottom: 20px;
  }
  
  #welcome .right p:nth-child(2) {
    font-size: 3rem;
  }
  
  #welcome .right div span:first-child {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  #welcome .right p:nth-child(2) {
    font-size: 2.5rem;
  }
  
  #welcome .right div span:first-child {
    font-size: 2rem;
  }
}

/* Стили для фонового изображения */
#welcome.has-banner .right {
  background: rgba(11, 6, 37, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(194, 161, 229, 0.3);
}

@media (max-width: 768px) {
  #welcome.has-banner .right {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  #welcome.has-banner .right {
    background: rgba(11, 6, 37, 0.85);
    padding: 20px 15px;
  }
}

/* Payment methods display - простая полоска под кнопкой */
#welcome .bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  position: relative;
  z-index: -1;
}

#welcome .bottom .wrap {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

#welcome .bottom .item {
  width: 60px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

#welcome .bottom .item:hover {
  transform: scale(1.05);
  opacity: 1;
}

#welcome .bottom .item img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.2s ease;
}

#welcome .bottom .item:hover img {
  filter: brightness(1);
}

/* ========================================
   WELCOME RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  #welcome .wrap {
    gap: 20px;
  }
  
  #welcome .right {
    padding: 35px 30px;
  }
}

@media (max-width: 768px) {
  #welcome {
    padding: 50px 0 80px;
  }
  
  #welcome .wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* Show mobile texts */
  #welcome .left p:first-child,
  #welcome .left p:nth-child(2) {
    display: block;
    text-align: center;
  }
  
  #welcome .left p:nth-child(3) {
    display: none;
  }
  
  #welcome .left p:first-child {
    font-size: 1.1rem;
    color: #C2A1E5;
  }
  
  #welcome .left p:nth-child(2) {
    font-size: 2rem;
    font-weight: bold;
    color: #FFDE97;
    margin-bottom: 30px;
  }
  
  #welcome .right {
    order: -1;
    padding: 35px 25px;
    margin-bottom: 20px;
  }
  
  #welcome .right p:nth-child(2) {
    font-size: 3rem;
  }
  
  #welcome .right div span:first-child {
    font-size: 2.2rem;
  }
  
  form input[type="email"],
  form input[type="password"] {
    padding: 15px 20px;
  }
  
  .select-label {
    padding: 15px 20px;
  }
  
  .select-item {
    padding: 12px 20px;
  }
  
  .register-btn {
    padding: 16px 22px;
  }
  
  /* Payment methods на мобильных - простая полоска */
  #welcome .bottom {
    margin-top: 30px;
  }
  
  #welcome .bottom .wrap {
    gap: 12px;
  }
  
  #welcome .bottom .item {
    width: 30px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  #welcome {
    padding: 40px 0 70px;
  }
  
  #welcome .wrapper {
    padding: 0 15px;
  }
  
  #welcome .left p:nth-child(2) {
    font-size: 1.8rem;
  }
  
  #welcome .right p:nth-child(2) {
    font-size: 2.5rem;
  }
  
  #welcome .right div span:first-child {
    font-size: 2rem;
  }
  
  form input[type="email"],
  form input[type="password"] {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .register-btn {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  /* Более компактные payment methods - простая полоска */
  #welcome .bottom {
    margin-top: 25px;
  }
  
  #welcome .bottom .wrap {
    gap: 10px;
  }
  
  #welcome .bottom .item {
    width: 50px;
    height: 30px;
  }
}

/* Дополнительные стили для предотвращения наплывания */
.form-select.open .select-list {
  display: block;
}

.form-select:not(.open) .select-list {
  display: none;
}

/* Обеспечиваем правильный z-index для выпадающего списка */
.form-select.open {
  z-index: 100;
}

.form-select.open .select-list {
  z-index: 101;
}

/* Clearfix для очистки плавающих элементов */
#welcome .wrap::after,
#welcome .bottom::after {
  content: "";
  display: table;
  clear: both;
}

/* Фоновое изображение из MD параметров */
#welcome.has-banner {
  background-image: linear-gradient(135deg, rgba(45, 27, 105, 0.8) 0%, rgba(17, 8, 47, 0.9) 100%), var(--banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Усиление контраста на фоне изображения */
#welcome.has-banner .left,
#welcome.has-banner .right {
  background: rgba(11, 6, 37, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(194, 161, 229, 0.3);
}

#welcome.has-banner .left {
  padding: 30px;
}

/* Убираем анимированный фон если есть banner_image */
#welcome.has-banner::before {
  display: none;
}

/* Адаптивность для фонового изображения */
@media (max-width: 768px) {
  #welcome.has-banner {
    background-attachment: scroll; /* Фиксированный фон может глючить на мобильных */
  }
  
  #welcome.has-banner .left {
    padding: 25px 20px;
  }
  
  #welcome.has-banner .right {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  #welcome.has-banner .left,
  #welcome.has-banner .right {
    background: rgba(11, 6, 37, 0.85); /* Больше непрозрачности на маленьких экранах */
    padding: 20px 15px;
  }
}
/* ========================================
   GAME NAVIGATION LINKS
   ======================================== */

#links {
  padding: 60px 0;
  background: rgba(17, 8, 47, 0.5);
  position: relative;
  z-index: 1;
}

#links .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#links .item {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(194, 161, 229, 0.2);
  border-radius: 15px;
  text-decoration: none;
  color: #FFFFFE;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#links .item:hover {
  background: rgba(194, 161, 229, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(194, 161, 229, 0.2);
}

#links .item svg {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #links {
    padding: 40px 0;
  }
  
  #links .wrap {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  #links .item {
    padding: 18px 20px;
    font-size: 1rem;
  }
}

/* ========================================
   GAME SECTIONS - UPDATED LAYOUT
   ======================================== */

#slots-bg {
  background: linear-gradient(135deg, #2D1B69 0%, #11082F 100%);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.slots {
  margin-bottom: 80px;
  position: relative;
}

.slots:last-child {
  margin-bottom: 0;
}

/* Section title */
.slots .title {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 15px;
}

.slots .title div {
  flex-shrink: 0;
}

.slots .title p {
  font-size: 0.8rem;
  font-weight: bold;
  color: #FFFFFE;
  white-space: nowrap;
  margin: 0;
}

.slots .title hr {
  flex: 1;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, #C2A1E5, transparent);
  margin: 0;
}

/* Games grid */
.slots .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Game item - обновленная структура */
.slots .item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(194, 161, 229, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
}

.slots .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(194, 161, 229, 0.3);
}

/* Game image container */
.slots .item .image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
}

.slots .item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slots .item:hover .image img {
  transform: scale(1.05);
}

/* Play button - остается поверх изображения */
.slots .item .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.slots .item:hover .play {
  opacity: 1;
}

.slots .item .play a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF9D5B, #FF5757);
  border-radius: 50%;
  text-decoration: none;
  color: #FFFFFE;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 157, 91, 0.4);
}

.slots .item .play a:hover {
  transform: scale(1.1);
}

/* Game info - теперь под изображением */
.slots .item .bottom {
  padding: 18px 15px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
}

.slots .item .bottom .title {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFE;
  margin-bottom: 8px;
  line-height: 1.3;
  display: none;
   text-align: center;
  /* Убираем обрезание текста для лучшей читаемости */
  word-wrap: break-word;
  hyphens: auto;
}

.slots .item .bottom .subtitle {
  font-size: 0.85rem;
  color: #C2A1E5;
  margin: 0;
  display: none;
  text-align: center;
  line-height: 1.2;
  /* Убираем обрезание текста */
  word-wrap: break-word;
}

/* View more button */
.slots .after {
  text-align: center;
  margin-top: 40px;
}

.slots .after a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C2A1E5, #956DBE);
  border-radius: 50%;
  text-decoration: none;
  color: #FFFFFE;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(194, 161, 229, 0.3);
}

.slots .after a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(194, 161, 229, 0.4);
}

/* ========================================
   GAMES RESPONSIVE - UPDATED
   ======================================== */

@media (max-width: 768px) {
  #slots-bg {
    padding: 60px 0;
  }
  
  .slots {
    margin-bottom: 60px;
  }
  
  .slots .title p {
    font-size: 0.8rem;
  }
  
  .slots .wrap {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .slots .item .play a {
    width: 50px;
    height: 50px;
  }
  
  .slots .item .bottom {
    padding: 15px 12px;
    min-height: 70px;
  }
  
  .slots .item .bottom .title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .slots .item .bottom .subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .slots .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .slots .title p {
    font-size: 0.8rem;
  }
  
  .slots .item .bottom {
    padding: 12px 10px;
    min-height: 65px;
  }
  
  .slots .item .bottom .title {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  
  .slots .item .bottom .subtitle {
    font-size: 0.75rem;
  }
  
  .slots .item .play a {
    width: 45px;
    height: 45px;
  }
}

/* Дополнительные стили для компактного варианта на очень маленьких экранах */
@media (max-width: 360px) {
  .slots .item .bottom {
    padding: 10px 8px;
    min-height: 60px;
  }
  
  .slots .item .bottom .title {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .slots .item .bottom .subtitle {
    font-size: 0.7rem;
  }
}



/* Контейнер для кнопок */
.game-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.slots .item:hover .game-buttons {
  opacity: 1;
}

/* ========================================
   ИСПРАВЛЕНИЯ ТЕКСТА В КНОПКАХ ИГР
   ======================================== */

/* Базовые стили кнопок - ИСПРАВЛЕННЫЕ */
.demo-btn,
.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700 !important; /* ИСПРАВЛЕНО: было 600, теперь 700 */
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  min-width: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  
  /* ДОБАВЛЕНО: тень для текста для лучшей контрастности */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  
  /* ДОБАВЛЕНО: принудительно белый цвет */
  color: #FFFFFF !important;
}

/* Стили кнопки Демо - ИСПРАВЛЕННЫЕ */
.demo-btn {
  background: linear-gradient(135deg, rgba(194, 161, 229, 0.9), rgba(149, 109, 190, 0.9));
  color: #FFFFFF !important; /* ИСПРАВЛЕНО: принудительно белый */
}

.demo-btn:hover {
  background: linear-gradient(135deg, #C2A1E5, #956DBE);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 161, 229, 0.4);
  color: #FFFFFF !important; /* ДОБАВЛЕНО: сохраняем белый при ховере */
}

/* Стили кнопки Играть - ИСПРАВЛЕННЫЕ */
.play-btn {
  background: linear-gradient(135deg, rgba(255, 157, 91, 0.9), rgba(255, 87, 87, 0.9));
  color: #FFFFFF !important; /* ИСПРАВЛЕНО: принудительно белый */
}

.play-btn:hover {
  background: linear-gradient(135deg, #FF9D5B, #FF5757);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 157, 91, 0.4);
  color: #FFFFFF !important; /* ДОБАВЛЕНО: сохраняем белый при ховере */
}

/* ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ТЕКСТА */

/* Текст внутри кнопок */
.demo-btn span,
.play-btn span,
.demo-btn *,
.play-btn * {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* SVG иконки в кнопках */
.demo-btn svg,
.play-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  fill: #FFFFFF !important; /* ДОБАВЛЕНО: белые иконки */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important; /* ДОБАВЛЕНО: тень для иконок */
}

/* АЛЬТЕРНАТИВНЫЙ ВАРИАНТ - ЕЩЕ БОЛЕЕ КОНТРАСТНЫЙ */
.demo-btn.high-contrast,
.play-btn.high-contrast {
  font-weight: 800 !important;
  color: #FFFFFF !important;
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.3px !important;
}

/* ========================================
   АДАПТИВНЫЕ ИСПРАВЛЕНИЯ
   ======================================== */

@media (max-width: 1024px) {
  .demo-btn,
  .play-btn {
    font-weight: 700 !important;
    color: #FFFFFF !important;
  }
}

@media (max-width: 768px) {
  .demo-btn,
  .play-btn {
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  }
  
  .demo-btn svg,
  .play-btn svg {
    fill: #FFFFFF !important;
  }
}

@media (max-width: 480px) {
  .demo-btn,
  .play-btn {
    font-weight: 700 !important;
    color: #FFFFFF !important;
    font-size: 0.7rem !important;
  }
}

@media (max-width: 360px) {
  .demo-btn,
  .play-btn {
    font-weight: 700 !important;
    color: #FFFFFF !important;
    font-size: 0.65rem !important;
  }
}

/* ========================================
   ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ОТ КОНФЛИКТОВ
   ======================================== */

/* Принудительное переопределение любых конфликтующих стилей */
.slots .item .demo-btn,
.slots .item .play-btn,
.game-buttons .demo-btn,
.game-buttons .play-btn {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.slots .item .demo-btn:hover,
.slots .item .play-btn:hover,
.game-buttons .demo-btn:hover,
.game-buttons .play-btn:hover {
  color: #FFFFFF !important;
}

/* Убираем наследование цвета от родительских элементов */
.slots .item a.demo-btn,
.slots .item a.play-btn {
  color: #FFFFFF !important;
}

/* Исправление для visited состояния ссылок */
.demo-btn:visited,
.play-btn:visited {
  color: #FFFFFF !important;
}

/* Исправление для focus состояния */
.demo-btn:focus,
.play-btn:focus {
  color: #FFFFFF !important;
  outline: 2px solid rgba(255, 255, 255, 0.5) !important;
  outline-offset: 2px !important;
}

/* Иконки в кнопках */


/* Скрываем старую кнопку play */
.slots .item .play {
  display: none !important;
}

/* ========================================
   АДАПТИВНОСТЬ ДЛЯ КНОПОК
   ======================================== */

@media (max-width: 1024px) {
  .game-buttons {
    gap: 8px;
  }
  
  .demo-btn,
  .play-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    min-width: 70px;
  }
}

@media (max-width: 768px) {
  .game-buttons {
    flex-direction: column;
    gap: 6px;
  }
  
  .demo-btn,
  .play-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: 65px;
  }
  
  .demo-btn svg,
  .play-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  /* На мобильных показываем кнопки всегда */
  .game-buttons {
    position: static;
    transform: none;
    opacity: 1;
    justify-content: center;
    margin: 12px 0;
    flex-direction: row;
    gap: 8px;
    padding: 0 10px;
  }
  
  .demo-btn,
  .play-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-width: 55px;
    flex: 1;
    max-width: 80px;
  }
  
  .demo-btn svg,
  .play-btn svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 360px) {
  .demo-btn,
  .play-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
    min-width: 45px;
    gap: 3px;
  }
  
  .demo-btn svg,
  .play-btn svg {
    width: 9px;
    height: 9px;
  }
}

/* ========================================    TOURNAMENT SECTION    ======================================== */
#tour {
  padding: 80px 0;
  background: rgba(11, 6, 37, 0.8);
  position: relative;
  z-index: 1;
}

#tour h2 {
  text-align: center;
  font-size: 3rem;
  color: #FFDE97;
  margin: 0 0 50px 0;
  letter-spacing: 2px;
}

#tour .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* Tournament item */
#tour .item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#tour .item:hover {
  transform: scale(1.02);
}

#tour .item a {
  display: block;
  position: relative;
  text-decoration: none;
  color: #FFFFFE;
  height: 100%;
}

#tour .item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Tournament overlays */
.prize {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  padding: 15px 18px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
  min-width: 140px;
}

.prize p {
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prize p:first-child {
  font-size: 0.85rem;
  color: #C2A1E5;
  margin-bottom: 4px;
  font-weight: 500;
}

.prize p:nth-child(2) {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFDE97;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.prize p:last-child {
  font-size: 1rem;
  color: #FFFFFE;
  font-weight: 500;
  margin-bottom: 0;
}

.bottom-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  z-index: 1;
}

.bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.bottom div {
  flex: 1;
}

.bottom div p {
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.bottom div p:first-child {
  font-size: 0.85rem;
  color: #C2A1E5;
  margin-bottom: 4px;
  font-weight: 500;
}

.bottom div p:last-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FF9D5B;
  letter-spacing: 0.5px;
}

.bottom button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #C2A1E5, #956DBE);
  border: none;
  border-radius: 25px;
  color: #FFFFFE;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(194, 161, 229, 0.2);
  flex-shrink: 0;
  margin-left: 15px;
}

.bottom button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 161, 229, 0.4);
  background: linear-gradient(135deg, #D4B8F0, #A578D1);
}

/* ========================================    TOURNAMENT RESPONSIVE    ======================================== */

@media (max-width: 768px) {
  #tour {
    padding: 60px 0;
  }

  #tour h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  #tour .wrap {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  #tour .item img {
    height: 280px;
  }

  .prize {
    top: 15px;
    left: 15px;
    padding: 12px 15px;
    min-width: 120px;
  }

  .prize p:first-child {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .prize p:nth-child(2) {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }

  .prize p:last-child {
    font-size: 0.9rem;
  }

  .bottom {
    padding: 15px 20px 20px;
    flex-direction: row;
    align-items: center;
  }

  .bottom div p:first-child {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .bottom div p:last-child {
    font-size: 1.1rem;
  }

  .bottom button {
    padding: 10px 18px;
    font-size: 0.9rem;
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  #tour .wrap {
    padding: 0 10px;
  }

  #tour .item img {
    height: 250px;
  }

  .prize {
    top: 12px;
    left: 12px;
    padding: 10px 12px;
  }

  .prize p:nth-child(2) {
    font-size: 1.3rem;
  }

  .bottom {
    padding: 12px 15px 18px;
  }

  .bottom button {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}
/* ========================================
   CONTENT SECTIONS
   ======================================== */

.main {
  position: relative;
  z-index: 1;
}

section:not(#welcome):not(#links):not(#slots-bg):not(#tour) {
  padding: 60px 0;
  background: rgba(17, 8, 47, 0.3);
  position: relative;
  z-index: 1;
}

/* ========================================
   ПОЛНАЯ ИЕРАРХИЯ ЗАГОЛОВКОВ
   ======================================== */

section .wrapper h1,
section .wrapper h2,
section .wrapper h3,
section .wrapper h4,
section .wrapper h5,
section .wrapper h6 {
  font-family: 'Open Sans', sans-serif;
  color: #C2A1E5;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: 20px; /* Сдвиг заголовков вправо */
}

section .wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 40px 0 30px 20px;
  color: #C2A1E5; /* Особый цвет для h1 */
}

section .wrapper h2 {
  font-size: 2.1rem;
  font-weight: 650;
  margin: 35px 0 25px 20px;
  color: #C2A1E5; /* Особый цвет для h2 */
}

section .wrapper h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 30px 0 20px 20px;
  color: #C2A1E5;
}

section .wrapper h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 25px 0 15px 20px;
  color: #C2A1E5;
}

section .wrapper h5 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 20px 0 12px 20px;
  color: #C2A1E5;
}

section .wrapper h6 {
  font-size: 1rem;
  font-weight: 500;
  margin: 15px 0 10px 20px;
  color: #C2A1E5;
}

/* ========================================
   ТЕКСТОВЫЕ ЭЛЕМЕНТЫ - ВЫРАВНИВАНИЕ
   ======================================== */

section .wrapper p {
  color: #FFFFFE;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.1rem;
  margin-left: 20px; /* Сдвиг текста вправо для выравнивания с заголовками */
  text-align: justify;
}

section .wrapper ul,
section .wrapper ol {
  margin-left: 40px; /* Списки еще правее */
  margin-bottom: 20px;
  color: #FFFFFE;
}

section .wrapper li {
  margin-bottom: 8px;
  line-height: 1.6;
}

section .wrapper blockquote {
  margin-left: 40px;
  padding-left: 20px;
  border-left: 3px solid #C2A1E5;
  font-style: italic;
  color: #C2A1E5;
  margin-bottom: 20px;
}
/* ========================================
   ПРОСТОЕ ИСПРАВЛЕНИЕ ОТСТУПОВ НА МОБИЛЬНЫХ
   ======================================== */

/* Убираем левые отступы заголовков и текста на мобильных */
@media (max-width: 768px) {
  
  /* Убираем левые отступы заголовков */
  section .wrapper h1,
  section .wrapper h2,
  section .wrapper h3,
  section .wrapper h4,
  section .wrapper h5,
  section .wrapper h6 {
    margin-left: 0 !important; /* Было 20px */
  }
  
  /* Убираем левые отступы текста */
  section .wrapper p {
    margin-left: 0 !important; /* Было 20px */
  }
  
  /* Убираем левые отступы списков */
  section .wrapper ul,
  section .wrapper ol {
    margin-left: 20px !important; /* Было 40px, оставляем базовый отступ для списков */
  }
  
  /* Убираем левые отступы цитат */
  section .wrapper blockquote {
    margin-left: 20px !important; /* Было 40px */
  }
}

/* На очень маленьких экранах еще меньше отступов */
@media (max-width: 480px) {
  section .wrapper ul,
  section .wrapper ol {
    margin-left: 15px !important;
  }
  
  section .wrapper blockquote {
    margin-left: 15px !important;
  }
}
/* ========================================
   FOOTER STYLES
   ======================================== */

#footer {
  background: #0B0625;
  border-top: 1px solid rgba(194, 161, 229, 0.2);
  margin-top: auto;
  position: relative;
  z-index: 2;
  clear: both;
}

#footer hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C2A1E5, transparent);
  margin: 0;
}

/* Footer top section */
#footer .top {
  padding: 40px 0;
}

#footer .top .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

#footer .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFFFFE;
  font-weight: bold;
}

#footer .logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit: contain;
}

#footer .copyright {
  color: #C2A1E5;
  font-size: 0.9rem;
  text-align: right;
  margin: 0;
}

/* Footer main section */
#footer .bottom {
  padding: 40px 0;
  position: static;
  display: block;
}

#footer .bottom .wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

#footer .left h3 {
  color: #C2A1E5;
  font-size: 1.4rem;
  margin-bottom: 30px;
}

/* Footer navigation menu */
#footer .footer-menu {
  margin: 0;
}

#footer .footer-menu ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px 20px;
  padding: 0;
  margin: 0;
}

#footer .footer-menu li {
  margin: 0;
}

#footer .footer-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFE;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(194, 161, 229, 0.1);
}

#footer .footer-menu li a:hover {
  color: #C2A1E5;
}

#footer .footer-menu .icon {
  opacity: 0.5;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer controls */
#footer .other {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

#footer .plus18 {
  background: #FF5757;
  color: #FFFFFE;
  padding: 8px 12px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.9rem;
  border: none;
}

/* Language selector */
#footer .other .select {
  position: relative;
}

#footer .other .select .label {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(194, 161, 229, 0.3);
  border-radius: 15px;
  cursor: pointer;
  color: #FFFFFE;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

#footer .other .select .label:hover {
  background: rgba(255, 255, 255, 0.15);
}

#footer .other .dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #11082F;
  border: 1px solid #C2A1E5;
  border-radius: 10px;
  margin-bottom: 5px;
  display: none;
  z-index: 1000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

#footer .other .dropdown.open {
  display: block;
}

#footer .other .dropdown .item {
  display: block;
  padding: 10px 15px;
  color: #FFFFFE;
  text-decoration: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid rgba(194, 161, 229, 0.1);
}

#footer .other .dropdown .item:last-child {
  border-bottom: none;
}

#footer .other .dropdown .item:hover {
  background: rgba(194, 161, 229, 0.1);
}

/* Footer right section */
#footer .right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#footer .right img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

#footer .right p {
  color: #C2A1E5;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   FOOTER BOTTOM - PAYMENTS & PROVIDERS
   ======================================== */

#footer-two {
  background: rgba(11, 6, 37, 0.5);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

#payments,
#prov {
  margin-bottom: 40px;
}

#payments:last-child,
#prov:last-child {
  margin-bottom: 0;
}

#payments h3,
#prov h3 {
  color: #C2A1E5;
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-align: center;
}

#payments .wrap,
#prov .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#payments .item,
#prov .item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(194, 161, 229, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#payments .item:hover,
#prov .item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

#payments .item img,
#prov .item img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  filter: brightness(0.9) contrast(0.9);
  transition: filter 0.3s ease;
}

#payments .item:hover img,
#prov .item:hover img {
  filter: brightness(1) contrast(1);
}

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  #footer .top .wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  #footer .copyright {
    text-align: center;
  }
  
  #footer .bottom .wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  #footer .footer-menu ul {
    grid-template-columns: 1fr;
  }
  
  #footer .other {
    justify-content: center;
  }
  
  #footer .right {
    align-items: center;
    text-align: center;
  }
  
  #payments .wrap,
  #prov .wrap {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
  }
  
  #payments .item,
  #prov .item {
    height: 50px;
  }
}

@media (max-width: 480px) {
  #footer .top,
  #footer .bottom,
  #footer-two {
    padding: 30px 0;
  }
  
  #footer .left h3 {
    font-size: 1.2rem;
  }
  
  #payments .wrap,
  #prov .wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  #payments .item,
  #prov .item {
    height: 45px;
  }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #C2A1E5, #956DBE);
  border: none;
  border-radius: 50%;
  color: #FFFFFE;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(194, 161, 229, 0.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(194, 161, 229, 0.4);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.d-none {
  display: none !important;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.lazyload {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazyloaded {
  opacity: 1;
}

/* ========================================
   FOCUS STYLES & ACCESSIBILITY
   ======================================== */

*:focus {
  outline: 2px solid #FFDE97;
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus {
  outline: 2px solid #FFDE97;
  outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
  body {
    background: #000;
    color: #FFF;
  }
  
  .btn {
    border: 2px solid #FFF;
  }
  
  #header {
    background: #000;
    border-bottom: 2px solid #FFF;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  #welcome::before {
    animation: none;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  #header,
  #footer,
  #footer-two,
  .btn,
  #mobile,
  .scroll-top,
  .label-menu {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  .wrapper {
    max-width: none;
    padding: 0;
  }
  
  #welcome,
  #slots-bg,
  #tour {
    background: white !important;
  }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (min-width: 1400px) {
  .wrapper {
    max-width: 1320px;
  }
  
  #welcome .right p:nth-child(2) {
    font-size: 4rem;
  }
  
  .slots .wrap {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  #tour .wrap {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* ========================================
   CUSTOM ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ========================================
   BROWSER SPECIFIC FIXES
   ======================================== */

/* Webkit scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 8, 47, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #C2A1E5, #956DBE);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #956DBE, #C2A1E5);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #C2A1E5 rgba(17, 8, 47, 0.5);
}

/* Safari fixes */
.safari input[type="email"],
.safari input[type="password"] {
  -webkit-appearance: none;
}

/* iOS fixes */
.ios input[type="email"],
.ios input[type="password"] {
  -webkit-appearance: none;
  border-radius: 25px;
}

/* Chrome performance optimizations */
.chrome .slots .item,
.chrome .btn,
.chrome #mobile {
  will-change: transform;
}

/* ========================================
   DARK MODE (Already dark by default)
   ======================================== */

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a0d4a 0%, #0a0520 100%);
  }
}

#TableOfContents {
  border: 3px solid #3d2063;
  padding: 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  margin: 2rem 0;
  color: #e6d9f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li {
  margin-bottom: 1rem;
}

#TableOfContents a {
  color: #e6d9f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#TableOfContents a:hover {
  color: #c2a6de;
}

/* ========== TABLES ========== */
.table-container {
  background: #3e1441;
  border: 3px solid #3d2063;
  border-radius: 5px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #e6d9f5;
  background-color: transparent;
  font-family: 'Open Sans', sans-serif;
}

thead {
  background: #3e1441;
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-family: 'Open Sans', ;
  font-weight: 600;
  color: #e6d9f5;
  border-bottom: 2px solid #361039;
}

td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid #374151;
}

tbody tr:hover {
  background: #3e1441;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Ссылки в таблице */
table a {
  color: #e6d9f5;
  text-decoration: none;
  font-weight: 500;
}

table a:hover {
  color: #c2a6de;
  text-decoration: underline;
}

/* ========== FAQ ========== */
.faq-block {
  background: #2f1b5e;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 5px;
  border: 4px solid #361039;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.faq-heading {
  font-family: 'Open Sans', ;
  font-size: 2rem;
  font-weight: 700;
  color: #e6d9f5;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.faq-item {
  background: #190841;
  border: 3px solid #3d2063;
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e6d9f5;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-family: 'Open Sans', ;
  font-size: 1.4rem;
  color: #e6d9f5;
  margin-bottom: 1rem;
}

.faq-item div {
  line-height: 1.7;
}

.faq-item:hover {
  background: #1d1349;
}

@media (max-width: 768px) {
  .prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .prose thead,
  .prose tbody {
    display: table;
    width: 790px;
    table-layout: fixed;
  }

  .prose tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .prose th,
  .prose td {
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    text-align: left;
  }

  .prose thead th {
    background-color: #3d2063;
    color: #e6d9f5;
  }

  .prose tbody tr {
    border-bottom: 1px solid #444;
  }
}

/* ========================================
   ИСПРАВЛЕНИЕ КНОПКИ "НАВЕРХ"
   ======================================== */

.scroll-top {
  position: fixed !important;
  bottom: 30px;
  right: 20px;
  z-index: 1000;
  padding: 10px 14px;
  font-size: 18px;
  background-color: #5e2a84;
  color: #fff;
  border: 3px solid #3d2063;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  
  /* ДОБАВЛЯЕМ: максимальная ширина чтобы не вылезала */
  max-width: calc(100vw - 40px) !important;
  /* ДОБАВЛЯЕМ: убеждаемся что кнопка помещается на экране */
  right: min(20px, calc(100vw - 60px)) !important;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Исправления для мобильных устройств */
@media (max-width: 768px) {
  .scroll-top {
    /* Уменьшаем размер кнопки на мобильных */
    padding: 8px 12px !important;
    font-size: 16px !important;
    bottom: 20px !important;
    right: 15px !important;
    
    /* Гарантируем что кнопка не выйдет за границы */
    max-width: 50px !important;
    width: 50px !important;
    height: 50px !important;
    
    /* Центрируем текст */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .scroll-top {
    /* Еще меньше на маленьких экранах */
    padding: 6px 10px !important;
    font-size: 14px !important;
    bottom: 15px !important;
    right: 10px !important;
    width: 45px !important;
    height: 45px !important;
  }
}

/* ДОПОЛНИТЕЛЬНО: убираем горизонтальный скролл */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Все фиксированные элементы не должны создавать скролл */
*[style*="position: fixed"],
.scroll-top,
#header {
  max-width: 100vw !important;
}