/* =========================================================
   PVS.CASINO - MODERN 2026 MODALS
   Модальные окна с glassmorphism и неоновыми эффектами
   ========================================================= */

/* Overlay (затемнение фона) */
.overlayed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(10, 10, 15, 0.75) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  z-index: 9999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.overlayed.active {
  display: flex !important;
  opacity: 1 !important;
}

/* Базовые стили popup */
.popup {
  width: 700px !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  overflow-y: auto !important;
  background: linear-gradient(135deg, 
    rgba(25, 25, 35, 0.6) 0%, 
    rgba(15, 15, 25, 0.7) 100%) !important;
  backdrop-filter: blur(50px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(50px) saturate(180%) !important;
  border: 2px solid rgba(167, 77, 213, 0.4) !important;
  border-radius: 24px !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(167, 77, 213, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(167, 77, 213, 0.1) !important;
  position: relative !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scale(0.9) translateY(20px) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.popup.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

/* Эффект свечения для popup */
.popup::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 150% !important;
  height: 150% !important;
  background: radial-gradient(circle, rgba(167, 77, 213, 0.25) 0%, rgba(139, 59, 184, 0.1) 40%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: pulseGlow 6s ease-in-out infinite !important;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Контент popup */
.popup > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Заголовок popup */
.popup__title {
  position: relative !important;
  padding: 20px 28px 16px !important;
  border-bottom: 1px solid rgba(167, 77, 213, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.popup__title span {
  font-weight: 600 !important;
  font-size: 22px !important;
  color: var(--text-primary, #ffffff) !important;
  text-shadow: 0 2px 8px rgba(167, 77, 213, 0.3) !important;
}

/* Кнопка закрытия */
.popup .close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: rgba(167, 77, 213, 0.1) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  cursor: pointer !important;
  color: var(--primary-purple, #A74DD5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.popup .close::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(167, 77, 213, 0.2) 0%, transparent 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}

.popup .close:hover {
  background: rgba(167, 77, 213, 0.2) !important;
  border-color: rgba(167, 77, 213, 0.5) !important;
  box-shadow: 0 4px 20px rgba(167, 77, 213, 0.4) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

.popup .close:hover::before {
  opacity: 1 !important;
}

.popup .close .icon {
  width: 20px !important;
  height: 20px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Контент popup */
.popup__content {
  padding: 24px 28px !important;
  line-height: 1.6 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  color: var(--text-secondary, #b8b8c8) !important;
}

/* Табы в popup */
.popup__tabs {
  position: relative !important;
  display: flex !important;
  gap: 8px !important;
  padding: 6px !important;
  background: rgba(15, 15, 25, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.popup__tabs::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, 
    rgba(167, 77, 213, 0.05) 0%, 
    rgba(167, 77, 213, 0.1) 50%, 
    rgba(167, 77, 213, 0.05) 100%) !important;
  pointer-events: none !important;
}

.popup__tabs span {
  font-weight: 600 !important;
  font-size: 14px !important;
}

.popup__tab {
  position: relative !important;
  flex: 1 !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: var(--text-secondary, #b8b8c8) !important;
  text-align: center !important;
  font-weight: 500 !important;
  border: 2px solid transparent !important;
  z-index: 1 !important;
}

.popup__tab:hover {
  color: var(--primary-purple, #A74DD5) !important;
  background: rgba(167, 77, 213, 0.1) !important;
}

.popup__tab.active,
.popup__tab.marked {
  color: #ffffff !important;
  background: linear-gradient(135deg, 
    rgba(167, 77, 213, 0.5) 0%, 
    rgba(139, 59, 184, 0.4) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-color: rgba(167, 77, 213, 0.6) !important;
  box-shadow: 
    0 4px 20px rgba(167, 77, 213, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Поля ввода в popup */
.popup .bx-input__input {
  background: rgba(15, 15, 25, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.popup .bx-input__input:hover {
  border-color: rgba(167, 77, 213, 0.5) !important;
  background: rgba(15, 15, 25, 0.5) !important;
  box-shadow: 0 0 20px rgba(167, 77, 213, 0.15) !important;
}

.popup .bx-input__input:focus-within {
  border-color: var(--primary-purple, #A74DD5) !important;
  box-shadow: 0 0 0 3px rgba(167, 77, 213, 0.15), 0 0 30px rgba(167, 77, 213, 0.2) !important;
  background: rgba(15, 15, 25, 0.6) !important;
}

.popup .bx-input__input label {
  font-size: 13px !important;
  color: var(--text-muted, #8888a0) !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}

.popup .bx-input__input input,
.popup .bx-input__input textarea,
.popup .bx-input__input select {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary, #ffffff) !important;
  font-size: 15px !important;
  width: 100% !important;
  outline: none !important;
}

.popup .bx-input__input input::placeholder,
.popup .bx-input__input textarea::placeholder {
  color: var(--text-muted, #8888a0) !important;
}

.popup .bx-input__text {
  font-size: 13px !important;
  color: var(--text-muted, #8888a0) !important;
}

/* Сетка для полей создания купона */
.popup .bx-input__create-coupon {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.popup .bx-input__create-coupon:nth-child(2) {
  display: grid !important;
  grid-template-columns: 3fr 1fr !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

/* Кнопки в popup */
.popup .btn {
  background: linear-gradient(135deg, 
    rgba(167, 77, 213, 0.2) 0%, 
    rgba(139, 59, 184, 0.2) 100%) !important;
  border: 1px solid rgba(167, 77, 213, 0.4) !important;
  color: #ffffff !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.popup .btn::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, 
    rgba(167, 77, 213, 0.3) 0%, 
    rgba(139, 59, 184, 0.3) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}

.popup .btn:hover {
  border-color: rgba(167, 77, 213, 0.6) !important;
  box-shadow: 0 4px 20px rgba(167, 77, 213, 0.4) !important;
  transform: translateY(-2px) !important;
}

.popup .btn:hover::before {
  opacity: 1 !important;
}

.popup .btn--blue {
  background: linear-gradient(135deg, 
    var(--primary-purple, #A74DD5) 0%, 
    var(--purple-dark, #8B3BB8) 100%) !important;
  border: none !important;
  box-shadow: 
    0 4px 16px rgba(167, 77, 213, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.popup .btn--blue:hover {
  box-shadow: 
    0 6px 24px rgba(167, 77, 213, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.popup .btn--gray {
  background: rgba(136, 136, 160, 0.1) !important;
  border: 1px solid rgba(136, 136, 160, 0.3) !important;
  color: var(--text-secondary, #b8b8c8) !important;
}

.popup .btn--gray:hover {
  background: rgba(136, 136, 160, 0.2) !important;
  border-color: rgba(136, 136, 160, 0.5) !important;
}

/* Специальные стили для разделителей */
.popup hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(167, 77, 213, 0.3) 50%, 
    transparent 100%) !important;
  margin: 20px 0 !important;
}

/* Скроллбар для popup */
.popup::-webkit-scrollbar {
  width: 8px !important;
}

.popup::-webkit-scrollbar-track {
  background: rgba(15, 15, 25, 0.4) !important;
  border-radius: 4px !important;
}

.popup::-webkit-scrollbar-thumb {
  background: rgba(167, 77, 213, 0.3) !important;
  border-radius: 4px !important;
  transition: background 0.2s !important;
}

.popup::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 77, 213, 0.5) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .popup {
    width: 95vw !important;
    max-height: 85vh !important;
    border-radius: 20px !important;
  }

  .popup__title {
    padding: 20px 20px 16px !important;
  }

  .popup__title span {
    font-size: 20px !important;
  }

  .popup__content {
    padding: 20px !important;
    gap: 16px !important;
  }

  .popup .bx-input__create-coupon {
    grid-template-columns: 1fr !important;
  }

  .popup .bx-input__create-coupon:nth-child(2) {
    grid-template-columns: 1fr !important;
  }

  .popup__tabs {
    flex-direction: column !important;
  }
}

/* Анимации появления */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup.active {
  animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* Дополнительные стили для специфичных popup */
.popup--auth,
.popup--reg {
  width: 1100px !important;
  max-width: 95vw !important;
}

.popup--auth .gx-split,
.popup--reg .gx-split {
  display: flex !important;
  background: rgba(15, 15, 25, 0.4) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  min-height: 600px !important;
}

.popup--auth .gx-col,
.popup--reg .gx-col {
  position: relative !important;
}

.popup--auth .gx-col.gx-left,
.popup--reg .gx-col.gx-left {
  flex: 0 0 650px !important;
  min-width: 650px !important;
}

.popup--auth .gx-col.gx-right,
.popup--reg .gx-col.gx-right {
  flex: 1 !important;
  min-width: 400px !important;
}

.popup--auth .gx-left,
.popup--reg .gx-left {
  background: 
    linear-gradient(135deg, 
      rgba(10, 10, 15, 0.5) 0%, 
      rgba(15, 15, 25, 0.7) 100%),
    url('/img/banner_reg.png') center center no-repeat !important;
  background-size: auto, contain !important;
  background-position: center center !important;
  padding: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(167, 77, 213, 0.2) !important;
}

/* Декоративные элементы в левой части - скрыты для отображения баннера */
.popup--auth .gx-left .gx-floating,
.popup--reg .gx-left .gx-floating,
.popup--auth .gx-left .gx-floating-logo,
.popup--reg .gx-left .gx-floating-logo,
.popup--auth .gx-left .gx-comp-el-0,
.popup--reg .gx-left .gx-comp-el-0,
.popup--auth .gx-left .gx-comp-el-1,
.popup--reg .gx-left .gx-comp-el-1 {
  display: none !important;
}

.gx-floating {
  position: absolute !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
  animation: float 20s ease-in-out infinite !important;
}

.gx-wh-1 {
  width: 100% !important;
  height: auto !important;
}

.gx-floating-logo {
  position: absolute !important;
  width: 120px !important;
  height: 120px !important;
  background: url('/images/logo.png') center/contain no-repeat !important;
  filter: drop-shadow(0 0 30px rgba(167, 77, 213, 0.6)) !important;
  z-index: 2 !important;
}

.gx-comp-el-0,
.gx-comp-el-1 {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(40px) !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.gx-comp-el-0 {
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(167, 77, 213, 0.4) 0%, transparent 70%) !important;
  top: -50px !important;
  left: -50px !important;
  animation: pulse 4s ease-in-out infinite !important;
}

.gx-comp-el-1 {
  width: 150px !important;
  height: 150px !important;
  bottom: -40px !important;
  right: -40px !important;
  animation: pulse 3s ease-in-out infinite 1s !important;
}

/* Правая часть формы */
.popup--auth .gx-right,
.popup--reg .gx-right {
  padding: 30px 35px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.gx-remark {
  font-size: 13px !important;
  color: var(--text-muted, #8888a0) !important;
  text-align: center !important;
  margin-top: 16px !important;
  line-height: 1.4 !important;
}

/* Анимации для декоративных элементов */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Адаптивность для gx-split */
@media (max-width: 1200px) {
  .popup--auth,
  .popup--reg {
    width: 900px !important;
  }

  .popup--auth .gx-col.gx-left,
  .popup--reg .gx-col.gx-left {
    flex: 0 0 500px !important;
    min-width: 500px !important;
  }
}

@media (max-width: 992px) {
  .popup--auth,
  .popup--reg {
    width: 95vw !important;
  }

  .popup--auth .gx-split,
  .popup--reg .gx-split {
    flex-direction: column !important;
  }

  .popup--auth .gx-col.gx-left,
  .popup--reg .gx-col.gx-left {
    flex: 0 0 auto !important;
    min-width: 100% !important;
    min-height: 300px !important;
  }

  .popup--auth .gx-col.gx-right,
  .popup--reg .gx-col.gx-right {
    min-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .popup--auth .gx-split,
  .popup--reg .gx-split {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .popup--auth .gx-left,
  .popup--reg .gx-left {
    min-height: 250px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(167, 77, 213, 0.2) !important;
    padding: 30px !important;
    background-size: auto, cover !important;
  }

  .popup--auth .gx-right,
  .popup--reg .gx-right {
    padding: 30px !important;
  }

  .gx-floating-logo {
    width: 80px !important;
    height: 80px !important;
  }
}

/* Стили для уведомлений и алертов */
.popup.popup--alert .popup__title {
  background: rgba(255, 59, 48, 0.1) !important;
  border-color: rgba(255, 59, 48, 0.3) !important;
}

.popup.popup--success .popup__title {
  background: rgba(52, 199, 89, 0.1) !important;
  border-color: rgba(52, 199, 89, 0.3) !important;
}

.popup.popup--info .popup__title {
  background: rgba(47, 186, 255, 0.1) !important;
  border-color: rgba(47, 186, 255, 0.3) !important;
}

/* =========================================================
   WALLET MODAL 2026 - Модальное окно пополнения/вывода
   ========================================================= */

/* Увеличиваем размер модального окна wallet */
.popup--wallet {
  width: 900px !important;
  max-width: 95vw !important;
}

/* Основной контейнер wallet */
.wallet {
  gap: 24px !important;
}

/* Левая панель с методами оплаты */
.wallet__methods {
  width: 340px !important;
  min-width: 340px !important;
  background: linear-gradient(135deg, 
    rgba(21, 21, 26, 0.4) 0%, 
    rgba(15, 15, 20, 0.5) 100%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid rgba(167, 77, 213, 0.35) !important;
  border-radius: 20px !important;
  padding: 8px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
}

.wallet__scroll {
  max-height: 600px !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}

/* Кастомный скроллбар */
.wallet__scroll::-webkit-scrollbar {
  width: 6px !important;
}

.wallet__scroll::-webkit-scrollbar-track {
  background: rgba(15, 15, 20, 0.4) !important;
  border-radius: 8px !important;
}

.wallet__scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    var(--primary-purple, #A74DD5) 0%, 
    var(--purple-dark, #8B3BB8) 100%) !important;
  border-radius: 8px !important;
}

.wallet__scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    var(--purple-light, #c876ff) 0%, 
    var(--primary-purple, #A74DD5) 100%) !important;
}

/* Карточки платежных систем */
.wallet__method {
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  background: linear-gradient(135deg, 
    rgba(31, 31, 38, 0.4) 0%, 
    rgba(21, 21, 26, 0.5) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.wallet__method::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 4px !important;
  height: 100% !important;
  background: linear-gradient(180deg, 
    var(--primary-purple, #A74DD5) 0%, 
    var(--purple-dark, #8B3BB8) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s !important;
}

.wallet__method:hover {
  border-color: rgba(167, 77, 213, 0.6) !important;
  background: linear-gradient(135deg, 
    rgba(31, 31, 38, 0.6) 0%, 
    rgba(21, 21, 26, 0.7) 100%) !important;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(167, 77, 213, 0.2) !important;
  transform: translateX(4px) !important;
}

.wallet__method:hover::before {
  opacity: 1 !important;
}

.wallet__method.active,
.wallet__method--active {
  border-color: rgba(167, 77, 213, 0.7) !important;
  background: linear-gradient(135deg, 
    rgba(167, 77, 213, 0.3) 0%, 
    rgba(139, 59, 184, 0.25) 100%) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(167, 77, 213, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
}

.wallet__method.active::before,
.wallet__method--active::before {
  opacity: 1 !important;
}

.wallet__method img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  margin-right: 16px !important;
  filter: drop-shadow(0 2px 8px rgba(167, 77, 213, 0.3)) !important;
}

.wallet__method span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text-primary, #ffffff) !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.wallet__method b {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-muted, #8888a0) !important;
}

/* Правая панель с контентом */
.wallet__content {
  flex: 1 !important;
  min-width: 0 !important;
}

.wallet__content-top {
  margin-bottom: 24px !important;
}

/* Поля ввода */
.wallet .bx-input {
  margin-bottom: 20px !important;
}

.wallet .bx-input__input {
  background: linear-gradient(135deg, 
    rgba(15, 15, 20, 0.5) 0%, 
    rgba(10, 10, 15, 0.6) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wallet .bx-input__input:hover {
  border-color: rgba(167, 77, 213, 0.4) !important;
  box-shadow: 0 0 20px rgba(167, 77, 213, 0.1) !important;
}

.wallet .bx-input__input:focus-within {
  border-color: rgba(167, 77, 213, 0.6) !important;
  box-shadow: 
    0 0 30px rgba(167, 77, 213, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.wallet .bx-input__input input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--text-primary, #ffffff) !important;
}

.wallet .bx-input__input input::placeholder {
  color: var(--text-muted, #8888a0) !important;
}

.wallet .bx-input__input .icon {
  width: 24px !important;
  height: 24px !important;
  margin-left: 12px !important;
  filter: drop-shadow(0 0 8px rgba(167, 77, 213, 0.6)) !important;
}

.wallet .bx-input__input label {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-secondary, #b8b8c8) !important;
  margin-right: 12px !important;
}

.wallet .bx-input__input .bx-input__text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--primary-purple, #A74DD5) !important;
  margin-right: 8px !important;
}

/* Информация о комиссии и кэшбеке */
.wallet__txt {
  font-size: 14px !important;
  color: var(--text-secondary, #b8b8c8) !important;
}

.wallet__txt span {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Панель заказа */
.wallet__content-bottom {
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(167, 77, 213, 0.2) !important;
}

.wallet__order {
  margin-bottom: 16px !important;
}

.wallet__order b {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary, #ffffff) !important;
}

.wallet__order .btn {
  padding: 16px 40px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  min-width: 180px !important;
}

/* История транзакций */
.wallet--history {
  padding: 24px 32px !important;
}

.wallet__tabs {
  margin-bottom: 28px !important;
  gap: 12px !important;
  padding: 8px !important;
  background: rgba(15, 15, 20, 0.4) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
}

.wallet__tab {
  flex: 1 !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  color: var(--text-secondary, #b8b8c8) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  gap: 8px !important;
}

.wallet__tab .icon {
  width: 18px !important;
  height: 18px !important;
}

.wallet__tab:hover {
  color: var(--primary-purple, #A74DD5) !important;
  background: rgba(167, 77, 213, 0.1) !important;
}

.wallet__tab--active,
.wallet__tab.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, 
    var(--primary-purple, #A74DD5) 0%, 
    var(--purple-dark, #8B3BB8) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 
    0 4px 20px rgba(167, 77, 213, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Элементы истории */
.wallet__history {
  width: 100% !important;
}

.wallet__history-item {
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(135deg, 
    rgba(31, 31, 38, 0.4) 0%, 
    rgba(21, 21, 26, 0.5) 100%) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(167, 77, 213, 0.3) !important;
  border-radius: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wallet__history-item:hover {
  border-color: rgba(167, 77, 213, 0.5) !important;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(167, 77, 213, 0.2) !important;
  transform: translateX(4px) !important;
}

.wallet__history-left {
  gap: 24px !important;
}

.wallet__history-item .wallet__method {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  cursor: default !important;
}

.wallet__history-item .wallet__method:hover {
  transform: none !important;
  box-shadow: none !important;
}

.wallet__history-item .wallet__method::before {
  display: none !important;
}

.wallet__history-item .wallet__method img {
  width: 36px !important;
  height: 36px !important;
  margin-right: 12px !important;
}

.wallet__history-sum {
  gap: 8px !important;
}

.wallet__history-sum span {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-primary, #ffffff) !important;
}

.wallet__history-sum .icon {
  width: 20px !important;
  height: 20px !important;
  filter: drop-shadow(0 0 8px rgba(167, 77, 213, 0.4)) !important;
}

/* Статусы транзакций */
.wallet__history-status {
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.wallet__history-status.success {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
}

.wallet__history-status.warning {
  background: rgba(251, 191, 36, 0.15) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
}

.wallet__history-status.error {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

/* Адаптивность для wallet */
@media (max-width: 768px) {
  .popup--wallet {
    width: 95vw !important;
  }

  .wallet {
    flex-direction: column !important;
    padding: 20px !important;
  }

  .wallet__methods {
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px !important;
  }

  .wallet__scroll {
    max-height: 200px !important;
  }

  .wallet__method {
    padding: 12px 16px !important;
  }

  .wallet__order {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wallet__order .btn {
    width: 100% !important;
  }

  .wallet__history-item {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .wallet__history-left {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
}

/* Анимация для добавления элементов истории */
@keyframes slideInHistory {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wallet__history-item {
  animation: slideInHistory 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
