/* ======================================
   PVS.CASINO - DARK PURPLE THEME
   Акцентный цвет: #A74DD5 (Неоново-фиолетовый)
   Темный фон: серый с дымкой
   ====================================== */

/* Базовые переопределения */
html, body {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%) !important;
  background-attachment: fixed !important;
  color: #e0e0e0 !important;
}

/* Эффект дымки */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(60, 60, 60, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(50, 50, 50, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(70, 70, 70, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Кнопка с неоновым фиолетовым эффектом */
.btn-neon-purple {
  background: linear-gradient(135deg, #A74DD5, #8B3BB8) !important;
  box-shadow: 0 0 20px rgba(167, 77, 213, 0.4), 0 0 40px rgba(167, 77, 213, 0.2) !important;
  border: 2px solid #A74DD5 !important;
  transition: all 0.3s ease !important;
}

.btn-neon-purple:hover {
  box-shadow: 0 0 30px rgba(167, 77, 213, 0.6), 0 0 60px rgba(167, 77, 213, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Баннеры и промо-блоки */
.gx-w-box {
  background: linear-gradient(135deg, #242424, #1c1c1c) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
  padding: 30px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 80px rgba(60, 60, 60, 0.1) !important;
  transition: all 0.3s ease !important;
}

.gx-w-box:hover {
  border-color: #A74DD5 !important;
  box-shadow: 0 12px 48px rgba(167, 77, 213, 0.25) !important;
  transform: translateY(-4px) !important;
}

.gx-w-box h1 {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 20px rgba(167, 77, 213, 0.5) !important;
}

.gx-w-box p {
  color: #b8b8c8 !important;
  font-size: 16px !important;
}

/* Карточки игр */
.gx-game-item {
  background: linear-gradient(145deg, #242424, #1a1a1a) !important;
  border: 1px solid rgba(167, 77, 213, 0.2) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  position: relative !important;
}

.gx-game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(167, 77, 213, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.gx-game-item:hover::before {
  opacity: 1;
}

.gx-game-item:hover {
  border-color: #A74DD5 !important;
  box-shadow: 0 8px 32px rgba(167, 77, 213, 0.3), 0 0 80px rgba(167, 77, 213, 0.15) !important;
  transform: translateY(-8px) scale(1.02) !important;
}

.gx-game-item-tl span {
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 0 10px rgba(167, 77, 213, 0.6) !important;
}

.gx-game-item:hover .gx-game-item-tl span {
  color: #A74DD5 !important;
  text-shadow: 0 0 20px rgba(167, 77, 213, 0.8) !important;
}

/* Фон игровой области */
.games {
  background: transparent !important;
}

/* Wrapper и контейнеры */
.wrapper {
  background: transparent !important;
}

/* Заголовки секций */
.gx-con .title span {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 15px rgba(167, 77, 213, 0.5) !important;
}

/* Иконки */
.gx-con .icon svg {
  filter: drop-shadow(0 0 10px rgba(167, 77, 213, 0.6)) !important;
}

/* Акцентные элементы */
.btn, .button, button {
  transition: all 0.3s ease !important;
}

.btn:not(.btn-neon-purple), 
.button:not(.btn-neon-purple) {
  background: linear-gradient(135deg, #A74DD5, #8B3BB8) !important;
  border-color: #A74DD5 !important;
  color: #ffffff !important;
}

.btn:not(.btn-neon-purple):hover, 
.button:not(.btn-neon-purple):hover {
  background: linear-gradient(135deg, #8B3BB8, #6F2F98) !important;
  box-shadow: 0 4px 20px rgba(167, 77, 213, 0.4) !important;
}

/* Scrollbar стилизация */
::-webkit-scrollbar {
  width: 10px;
  background: #151515;
}

::-webkit-scrollbar-track {
  background: #242424;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #A74DD5, #8B3BB8);
  border-radius: 10px;
  border: 2px solid #242424;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8B3BB8, #6F2F98);
}

/* Сайдбар */
.sidebar {
  background: linear-gradient(180deg, #242424, #151515) !important;
  border-right: 1px solid rgba(167, 77, 213, 0.2) !important;
}

.sidebar .item {
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.sidebar .item .title {
  color: #ffffff !important;
}

.sidebar .item:hover,
.sidebar .item.marked {
  color: #ffffff !important;
  background: rgba(167, 77, 213, 0.1) !important;
  box-shadow: 0 0 15px rgba(167, 77, 213, 0.2) !important;
}

.sidebar .item:hover .title,
.sidebar .item.marked .title {
  color: #ffffff !important;
}

/* Стили для иконок и текста в меню */
.gx-btn .icon {
  color: #A74DD5 !important;
  fill: #A74DD5 !important;
  filter: drop-shadow(0 0 8px rgba(167, 77, 213, 0.5)) !important;
}

.gx-btn div {
  color: #ffffff !important;
}

.gx-btn:hover .icon {
  filter: drop-shadow(0 0 12px rgba(167, 77, 213, 0.7)) !important;
}

/* Popup и modal */
.popup, .modal {
  background: #242424 !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

/* Inputs и формы */
input, select, textarea {
  background: #1a1a1a !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  color: #e0e0e0 !important;
  transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #A74DD5 !important;
  box-shadow: 0 0 15px rgba(167, 77, 213, 0.3) !important;
  outline: none !important;
}

/* Таблицы */
table {
  background: #242424 !important;
  border-color: rgba(167, 77, 213, 0.2) !important;
}

table th {
  background: rgba(167, 77, 213, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(167, 77, 213, 0.3) !important;
}

table td {
  border-color: rgba(167, 77, 213, 0.1) !important;
  color: #e0e0e0 !important;
}

table tr:hover {
  background: rgba(167, 77, 213, 0.05) !important;
}

/* Chat */
.chat {
  background: #242424 !important;
  border: 1px solid rgba(167, 77, 213, 0.2) !important;
}

.chat__message {
  background: #1a1a1a !important;
  border-left: 3px solid #A74DD5 !important;
}

/* Badges и labels */
.badge, .label {
  background: linear-gradient(135deg, #A74DD5, #8B3BB8) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(167, 77, 213, 0.3) !important;
}

/* Анимации hover для всех кнопок */
a, button, .btn, .button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Glowing effect для активных элементов */
.active, .marked, .selected {
  box-shadow: 0 0 20px rgba(167, 77, 213, 0.5) !important;
  border-color: #A74DD5 !important;
}

/* Header */
header, .header {
  background: linear-gradient(180deg, #242424, rgba(36, 36, 36, 0.95)) !important;
  border-bottom: 1px solid rgba(167, 77, 213, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

/* Footer */
footer, .footer {
  background: linear-gradient(0deg, #151515, rgba(21, 21, 21, 0.95)) !important;
  border-top: 1px solid rgba(167, 77, 213, 0.3) !important;
}

/* Card containers */
.card, .box, .panel {
  background: linear-gradient(145deg, #242424, #1c1c1c) !important;
  border: 1px solid rgba(167, 77, 213, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.card:hover, .box:hover, .panel:hover {
  border-color: #A74DD5 !important;
  box-shadow: 0 8px 30px rgba(167, 77, 213, 0.2) !important;
}

/* Links */
a {
  color: #A74DD5 !important;
  transition: all 0.3s ease !important;
}

a:hover {
  color: #c876ff !important;
  text-shadow: 0 0 10px rgba(167, 77, 213, 0.6) !important;
}

/* Preloader */
.preloader {
  background: #151515 !important;
}

.preloader__loader svg {
  filter: drop-shadow(0 0 20px rgba(167, 77, 213, 0.8)) !important;
}

/* Нижняя граница SVG фиолетовая */
.gx-clip path {
  fill: #A74DD5 !important;
}

/* Text colors */
.text-gray {
  color: #b8b8c8 !important;
}

.text-white {
  color: #ffffff !important;
}

/* Success, Error, Warning states */
.success, .green {
  color: #4ade80 !important;
  border-color: #4ade80 !important;
}

.error, .red, .danger {
  color: #f87171 !important;
  border-color: #f87171 !important;
}

.warning, .yellow {
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
}

/* Notifications */
.notification, .toast, .alert {
  background: #242424 !important;
  border-left: 4px solid #A74DD5 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* Progress bars */
.progress, .progress-bar {
  background: #1a1a1a !important;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #A74DD5, #c876ff) !important;
  box-shadow: 0 0 15px rgba(167, 77, 213, 0.5) !important;
}

/* Dropdown */
.dropdown, .select-menu {
  background: #242424 !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.dropdown-item:hover {
  background: rgba(167, 77, 213, 0.15) !important;
  color: #A74DD5 !important;
}

/* Tabs */
.tab {
  background: transparent !important;
  color: #b8b8c8 !important;
  border-bottom: 2px solid transparent !important;
  transition: all 0.3s ease !important;
}

.tab.active, .tab:hover {
  color: #A74DD5 !important;
  border-bottom-color: #A74DD5 !important;
  text-shadow: 0 0 10px rgba(167, 77, 213, 0.5) !important;
}

/* Tooltips */
.tooltip {
  background: #242424 !important;
  border: 1px solid #A74DD5 !important;
  color: #e0e0e0 !important;
  box-shadow: 0 4px 16px rgba(167, 77, 213, 0.3) !important;
}

/* Специальные эффекты */
.neon-glow {
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  0% {
    box-shadow: 0 0 20px rgba(167, 77, 213, 0.4), 0 0 40px rgba(167, 77, 213, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(167, 77, 213, 0.6), 0 0 60px rgba(167, 77, 213, 0.3);
  }
}

/* ======================================
   НЕОНОВАЯ КНОПКА АВТОРИЗАЦИИ
   ====================================== */

/* Анимация мерцающего неонового свечения */
@keyframes neon-flicker {
  0%, 100% { 
    box-shadow: 
      0 0 10px #A74DD5,
      0 0 20px #A74DD5,
      0 0 30px #A74DD5,
      inset 0 0 10px #A74DD5;
  }
  50% { 
    box-shadow: 
      0 0 20px #A74DD5,
      0 0 35px #A74DD5,
      0 0 50px #A74DD5,
      inset 0 0 15px #A74DD5;
  }
}

/* Стили для кнопки авторизации */
.btn-primary {
  background: #A74DD5 !important;
  border: 2px solid #A74DD5 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  
  /* Неоновое свечение */
  box-shadow: 
    0 0 10px #A74DD5,
    0 0 20px #A74DD5,
    0 0 30px #A74DD5,
    inset 0 0 10px #A74DD5 !important;
  
  /* Анимация свечения */
  animation: neon-flicker 1.5s infinite alternate !important;
}

.btn-primary:hover {
  background: #c876ff !important;
  border-color: #c876ff !important;
  transform: translateY(-2px) scale(1.05) !important;
  
  /* Усиленное свечение при наведении */
  box-shadow: 
    0 0 20px #A74DD5,
    0 0 35px #A74DD5,
    0 0 50px #A74DD5,
    0 0 70px rgba(167, 77, 213, 0.5),
    inset 0 0 15px #A74DD5 !important;
  
  animation: neon-flicker 1s infinite alternate !important;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Эффект пульсации для кнопки авторизации */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gx-w-box {
    padding: 20px !important;
  }
  
  .gx-w-box h1 {
    font-size: 22px !important;
  }
  
  .gx-w-box p {
    font-size: 14px !important;
  }
}
