/* Основные стили для страницы доната */
.donate-container {
  min-height: 100vh;
  background: rgba(44, 44, 44, 255);
  /* background: linear-gradient(135deg, #31302e 0%, #1a1a1a 25%, #2a2a2a 50%, #3a2a1a 75%, #4a2a0a 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Анимированный фон */
.donate-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 40% 40%, rgba(255, 200, 100, 0.08) 0%, transparent 60%); */
  /* animation: backgroundShift 20s ease-in-out infinite; */
  z-index: 0;
}

@keyframes backgroundShift {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  33% { transform: translateX(-20px) translateY(-10px) scale(1.05); }
  66% { transform: translateX(10px) translateY(20px) scale(0.95); }
}

/* Карточка доната */
.donate-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: cardSlideIn 0.8s ease-out;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Заголовок */
.donate-header {
  text-align: center;
  margin-bottom: 3rem;
}

.donate-header h1 {
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ff8c00, #ffa500, #ffb347, #ff8c00);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Прогресс-бар с шагами */
.progress-steps {
  margin-bottom: 3rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.5s ease;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  transition: all 0.5s ease;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
  border-color: rgba(255, 140, 0, 0.5);
  color: #ff8c00;
}

.step-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: all 0.5s ease;
}

.step.active .step-icon {
  background: linear-gradient(135deg, #ff8c00, #ffa500);
  border-color: #ff8c00;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: iconGlow 2s ease-in-out infinite;
  color: white;
  transform: scale(1.1);
}

.step.completed .step-icon {
  background: linear-gradient(135deg, #ff8c00, #ffa500);
  border-color: #ff8c00;
  color: white;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.step.active .step-label {
  color: #ff8c00;
  font-weight: 600;
}

.step-line {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
}

.step-line.active {
  background: linear-gradient(90deg, #ff8c00, #ffa500);
  animation: lineProgress 1s ease-out;
}

@keyframes lineProgress {
  from { width: 0; }
  to { width: 60px; }
}

@keyframes iconGlow {
  0%, 100% { 
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  50% { 
    box-shadow: 0 0 35px rgba(255, 140, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.4);
  }
}

/* Форма */
.donate-form {
  position: relative;
}

.form-step {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
  display: block;
}

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

/* Поля ввода */
.field .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.field .input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ff8c00;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.field .input:focus + .icon.is-left i {
  color: #ff8c00 !important;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
  transition: all 0.3s ease;
}

.field .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Стили для иконки Steam */
.field .icon.is-left i {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.field .icon.is-left i:hover {
  color: #ff8c00;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

/* Стили для успешной валидации SteamID */
.field .input.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4CAF50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.field .input.success + .icon.is-left i {
  color: #4CAF50 !important;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Стили для неуспешной валидации SteamID */
.field .input.error {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

.field .input.error + .icon.is-left i {
  color: #f44336 !important;
  text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Стили для успешного профиля Steam */
.validation-message.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.validation-message.success .steam-profile-success {
  background: rgba(76, 175, 80, 0.05);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Стили для ошибки валидации */
.validation-message.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

/* Валидация SteamID */
.validation-message {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.validation-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Компактная карточка Steam профиля */
.steam-profile-success {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid #ff8c00;
}

.steam-profile-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.steam-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #4CAF50;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  flex-shrink: 0;
}

.steam-info-compact {
  flex: 1;
  min-width: 0;
}

.steam-name {
  font-size: 1rem;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-steamid {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-link-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  flex-shrink: 0;
}

.steam-link-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  color: white;
  text-decoration: none;
}

/* Стили для ошибок валидации */
.validation-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid #ff3b30;
}

.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ff3b30, #ff6b6b);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.error-message {
  flex: 1;
  color: #ffe8e6;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff8c00;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff8c00;
  margin-bottom: 0.25rem;
}

.profile-steamid {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Courier New', monospace;
}

.profile-real-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-0 { background-color: #666; } /* Оффлайн */
.status-1 { background-color: #4CAF50; } /* Онлайн */
.status-2 { background-color: #FF9800; } /* Занят */
.status-3 { background-color: #FFC107; } /* Отошёл */
.status-4 { background-color: #9C27B0; } /* Сна */
.status-5 { background-color: #2196F3; } /* Ищет игру */
.status-6 { background-color: #4CAF50; } /* Играет */

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.detail-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.detail-value {
  color: #ff8c00;
  font-weight: 600;
}

.profile-actions {
  display: flex;
  justify-content: center;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #ff8c00, #ffa500);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  color: white;
  text-decoration: none;
}

.validation-message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4CAF50;
  color: #4CAF50;
}

.validation-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  color: #f44336;
}

.validation-message.loading {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid #ffc107;
  color: #ffc107;
}

/* Селектор суммы */
.amount-selector {
  margin-bottom: 2rem;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.amount-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.amount-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.amount-option:hover::before {
  left: 100%;
}

.amount-option:hover {
  border-color: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
}

.amount-option.selected {
  border-color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.amount-value {
  font-size: 0.9rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.15rem;
}

/* Подсветка жетонов при наведении (кроме бонусных пакетов) */
.amount-option:hover .amount-value {
  color: #ff8c00;
}

.amount-price {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.custom-amount {
  margin-top: 1rem;
}

/* Стили для ползунка и произвольной суммы */
.slider-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.3), rgba(255, 165, 0, 0.3));
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:hover {
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.4), rgba(255, 165, 0, 0.4));
  transform: translateY(-1px);
}

.slider:focus {
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.5), rgba(255, 165, 0, 0.5));
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff8c00, #ffa500);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5), 0 0 0 3px rgba(255, 140, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.7), 0 0 0 4px rgba(255, 140, 0, 0.3);
}

.slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.8), 0 0 0 5px rgba(255, 140, 0, 0.4);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff8c00, #ffa500);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5), 0 0 0 3px rgba(255, 140, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.7), 0 0 0 4px rgba(255, 140, 0, 0.3);
}

.slider::-moz-range-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.8), 0 0 0 5px rgba(255, 140, 0, 0.4);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Анимация для автоматического перемещения ползунка */
.slider.auto-moving {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider.auto-moving::-webkit-slider-thumb {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: sliderPulse 0.5s ease-in-out;
}

@keyframes sliderPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.price-display {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 140, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.price-display:hover::before {
  left: 100%;
}

.bonus-display {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
  text-align: center;
  font-size: 0.8rem;
  color: #4CAF50;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  /* убираем анимацию, оставляем только transition */
}

.bonus-display.show {
  opacity: 1;
}

@keyframes bonusSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bonus-display i {
  margin-right: 0.5rem;
  animation: bonusIconSpin 0.6s ease-in-out;
}

@keyframes bonusIconSpin {
  0% { transform: rotate(0deg) scale(0.8); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Стили для кнопки "Другое" */
.amount-option.custom-option {
  background: rgba(255, 170, 64, 0.08);
  border: 2px solid rgba(255, 170, 64, 0.3);
  position: relative;
  overflow: hidden;
}

.amount-option.custom-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.amount-option.custom-option:hover::before {
  left: 100%;
}

.amount-option.custom-option:hover {
  border-color: rgba(255, 170, 64, 0.5);
  box-shadow: 0 8px 25px rgba(255, 170, 64, 0.25);
  transform: translateY(-2px);
}

.amount-option.custom-option.selected {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 165, 0, 0.2));
  border-color: #ff8c00;
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.amount-option.custom-option .amount-value {
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}
.amount-option.custom-option:hover .amount-value {
  color: #ff8c00;
}

.amount-option.custom-option .amount-price {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
}

/* Анимации для произвольной суммы */
.custom-amount {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(-10px);
}

.custom-amount.show {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}

.custom-amount .field,
.custom-amount .slider-container,
.custom-amount .price-display,
.custom-amount .bonus-display {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-amount.show .field,
.custom-amount.show .slider-container,
.custom-amount.show .price-display,
.custom-amount.show .bonus-display {
  opacity: 1;
  transform: translateY(0);
}

.custom-amount.show .field:nth-child(1) { transition-delay: 0.1s; }
.custom-amount.show .field:nth-child(2) { transition-delay: 0.2s; }
.custom-amount.show .price-display { transition-delay: 0.3s; }
.custom-amount.show .bonus-display { transition-delay: 0.4s; }

/* Стили для кнопок навигации */
.field.is-grouped.is-grouped-centered.mt-4 {
  margin-top: 2rem !important;
  display: flex;
  justify-content: space-between;
}

/* Одинарная кнопка справа */
.field.is-grouped.is-grouped-centered.mt-4.single-right {
  justify-content: flex-end;
}

.field.is-grouped.is-grouped-centered.mt-4 .button {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Выравниваем визуальные размеры: primary чуть крупнее, light немного компактнее */
.field.is-grouped.is-grouped-centered.mt-4 .button.is-primary {
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
}
.field.is-grouped.is-grouped-centered.mt-4 .button.is-light {
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
}

.field.is-grouped.is-grouped-centered.mt-4 .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.field.is-grouped.is-grouped-centered.mt-4 .button:hover::before {
  left: 100%;
}

.field.is-grouped.is-grouped-centered.mt-4 .button.is-primary {
  background: linear-gradient(135deg, #ff8c00, #ffa500);
  border-color: #ff8c00;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.field.is-grouped.is-grouped-centered.mt-4 .button.is-primary:hover {
  background: linear-gradient(135deg, #ff9500, #ffb000);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.field.is-grouped.is-grouped-centered.mt-4 .button.is-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.field.is-grouped.is-grouped-centered.mt-4 .button.is-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.field.is-grouped.is-grouped-centered.mt-4 .button .icon {
  margin-right: 0.5rem;
}

.field.is-grouped.is-grouped-centered.mt-4 .button .icon i {
  font-size: 0.9rem;
}

.field.is-grouped.is-grouped-centered.mt-4 .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.field.is-grouped.is-grouped-centered.mt-4 .button:disabled:hover {
  background: linear-gradient(135deg, #ff8c00, #ffa500);
  transform: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.field.is-grouped.is-grouped-centered.mt-4 .button:disabled::before {
  display: none;
}

/* Стили для кнопки "рублей" */
.field.has-addons .button.is-static {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgb(41, 41, 41);
  font-weight: 500;
  transition: all 0.3s ease;
}

.field.has-addons .button.is-static:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: rgb(41, 41, 41);
  color: #ff8c00;
}

/* Способы оплаты */
.payment-methods {
  display: grid;
  gap: 1rem;
}

.payment-method {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
}

.payment-method.selected {
  border-color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.payment-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient( circle at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.05) );
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #fff;
  flex-shrink: 0;
  align-self: flex-start;
}

.payment-method.selected .payment-icon {
  border-color: #ff8c00;
  box-shadow: 0 0 12px rgba(255,140,0,0.35);
}

.payment-icon i {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
}

.payment-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.payment-icons-row {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-icons-row img {
  width: 32px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.payment-icons-row img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.payment-name {
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}
.benefit-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgb(65, 223, 112);
  background: rgba(0, 255, 128, 0.08);
  border: 1px solid rgba(0, 255, 128, 0.35);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Хайлайт выгодных пакетов — легкий фон + точка с тултипом */
.amount-option[data-amount="500"],
.amount-option[data-amount="1000"] {
  position: relative;
}
/* Бонусные пакеты: без окраски, только мягкое свечение */
.amount-option[data-amount="500"],
.amount-option[data-amount="1000"],
.amount-option.custom-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  overflow: visible;
}
/* Мягкое свечение по умолчанию; усиливаем при hover */
.amount-option[data-amount="500"] { box-shadow: 0 0 14px rgba(110, 193, 255, 0.28); }
.amount-option[data-amount="1000"] { box-shadow: 0 0 14px rgba(255, 110, 199, 0.28); }
.amount-option.custom-option { box-shadow: none; }
.amount-option[data-amount="500"]:hover { box-shadow: 0 0 20px rgba(110, 193, 255, 0.36); }
.amount-option[data-amount="1000"]:hover { box-shadow: 0 0 20px rgba(255, 110, 199, 0.36); }
.amount-option.custom-option:hover { box-shadow: none; }
/* Бонусные пакеты: белый текст, без цветного окраса */
.amount-option[data-amount="500"] .amount-value,
.amount-option[data-amount="1000"] .amount-value {
  color: rgba(255, 255, 255, 0.8) !important;
}
.amount-option[data-amount="500"] .amount-price,
.amount-option[data-amount="1000"] .amount-price {
  color: rgba(255, 255, 255, 0.6) !important;
}
/* На hover не менять цвет у бонусных, оставляем белый */
.amount-option[data-amount="500"]:hover .amount-value,
.amount-option[data-amount="1000"]:hover .amount-value {
  color: rgba(255, 255, 255, 0.8) !important;
}
/* Точка-индикатор */
.amount-option[data-amount="500"]::after,
.amount-option[data-amount="1000"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.amount-option[data-amount="500"]::after { background: #6ec1ff; box-shadow: 0 0 6px rgba(110,193,255,0.6); }
.amount-option[data-amount="1000"]::after { background: #ff6ec7; box-shadow: 0 0 6px rgba(255,110,199,0.6); }

/* Убираем кружки для подсказок, оставляем только тултип; круг будет только у выбранного пакета */
.amount-option[data-amount="500"]:not(.selected)::after,
.amount-option[data-amount="1000"]:not(.selected)::after {
  content: none !important;
}

/* Тултип */
.amount-option[data-amount="500"]::before,
.amount-option[data-amount="1000"]::before {
  content: none !important;
}

/* Выбранный пакет — зелёная обводка и glow для всех */
.amount-option.selected {
  border-color: #4CAF50 !important;
  background: rgba(76, 175, 80, 0.12) !important;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.35) !important;
}

/* Кружок-индикатор success у выбранной суммы */
.amount-option.selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

/* Текст жетонов в выбранном — success */
.amount-option.selected .amount-value {
  color: #4CAF50 !important;
}

/* Бейджи для “популярно/выгодно” */
.option-badge {
  position: absolute;
  top: -8px;
  left: -10px; /* чуть выходит за рамку слева */
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(94, 94, 94, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
}

/* Вернуться кнопка */
.return-button {
  min-width: 160px;
}

/* Ровный аддон “рублей” */
.field.has-addons .input,
.field.has-addons .button.is-static {
  height: 2.5rem;
  line-height: 2.5rem;
}
.field.has-addons .button.is-static {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.payment-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Сводка платежа */
.payment-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-item.has-text-centered {
  justify-content: center;
}

.summary-item.has-text-centered .summary-label,
.summary-item.has-text-centered .summary-value {
  display: flex;
  justify-content: center;
  align-items: center;
}

.summary-label {
  color: rgba(255, 255, 255, 0.7);
}

.summary-value {
  color: white;
  font-weight: 600;
}

/* Контейнер для iframe оплаты */
.payment-iframe-container {
  background: #202020;
  border-radius: 12px;
  padding: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.payment-iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

/* Лоадеры */
.validation-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.validation-loader.show {
  opacity: 1;
  visibility: visible;
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ff8c00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

/* Кнопки */
.button {
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 600;
}


/* Вспомогательные классы */
.is-flex-wrap-wrap {
  flex-wrap: wrap !important;
}

/* Кнопки соцсетей */
.button.is-social-button {
  background: #2d2d2d !important;
  border: 1px solid #3a3a3a !important;
  color: white !important;
  transition: all 0.3s ease;
}

.button.is-social-button:hover {
  background: #202020 !important;
  border-color: #ff8c42 !important;
  box-shadow: 0 0 10px rgba(255, 140, 66, 0.3) !important;
  transform: translateY(-2px);
}

.button.is-social-button.social-discord:hover {
  background: #5865F2 !important;
  border-color: #5865F2 !important;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4) !important;
}

.button.is-social-button.social-vk:hover {
  background: #0077ff !important;
  border-color: #0077ff !important;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.4) !important;
}

.button.is-social-button.social-telegram:hover {
  background: #0088cc !important;
  border-color: #0088cc !important;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.4) !important;
}

/* Primary кнопка (оранжевая) */
.button:not(.is-dark):not(.is-light):not(.is-social-button):not(.is-small):not(.is-large) {
  background: linear-gradient(135deg, #ff8c00, #ffa500) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(255, 140, 0, 0.2);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
}

.button:not(.is-dark):not(.is-light):not(.is-social-button):not(.is-small):not(.is-large):hover {
  background: linear-gradient(135deg, #ff6b1a, #ff8c00) !important;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
  transform: translateY(-2px);
}

/* Темная кнопка (На главную) */
.button.is-dark:not(.is-social-button):not(.is-small):not(.is-large) {
  background: #2d2d2d !important;
  border: 1px solid #3a3a3a !important;
  color: white !important;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
}

.button.is-dark:not(.is-social-button):not(.is-small):not(.is-large):hover {
  background: #202020 !important;
  border-color: #ff8c42 !important;
  box-shadow: 0 0 10px rgba(255, 140, 66, 0.3) !important;
  transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .donate-container {
    padding: 1rem;
  }
  
  .donate-card {
    padding: 2rem;
  }
  
  .step-indicator {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .step-line {
    width: 30px;
  }
  
  .amount-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .amount-option {
    padding: 0.6rem 0.5rem;
  }
  .amount-value,
  .amount-price {
    font-size: 0.85rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .donate-card {
    padding: 1.5rem;
  }
  /* Прогресс-бар: компактный режим */
  .step-indicator {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }
  .step-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-width: 2px;
  }
  /* Убираем glow/анимации на мобильных */
  .step-icon:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .step.active .step-icon,
  .step.completed .step-icon {
    /* Сохраняем заливку цветом, но без свечения */
    background: linear-gradient(135deg, #ff8c00, #ffa500) !important;
    border-color: #ff8c00 !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    color: #ffffff !important;
  }
  .step-label { display: none; }
  .step-line { display: none; }
  
  .amount-options {
    grid-template-columns: 1fr;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
  }
  
  .field.is-grouped.is-grouped-centered {
    flex-direction: column;
  }
  
  .field.is-grouped.is-grouped-centered .control {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .field.is-grouped.is-grouped-centered .control:last-child {
    margin-bottom: 0;
  }
  
  .field.is-grouped.is-grouped-centered .button {
    width: 100%;
  }
  
  .field.is-grouped .control {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Специфичные стили для шага 4 (оплата) */
.form-step#step4 {
  padding: 0;
}

.form-step#step4 .payment-iframe-container {
  margin: 0;
}

