/* ═══════════════════════════════════════════════════════════════
   MOBILE IMBA v2 — Premium Static Design
   Фокус: доверие, дорогой вид, без "дешёвых" бесконечных анимаций
   ═══════════════════════════════════════════════════════════════ */

/* ═══ ШАГ 1: МАКСИМАЛЬНО ЧЁРНЫЙ ФОН ═══ */

:root {
  --bg: #000;
}

/* Максимально чёрный фон */
body {
  background: #000 !important;
}

/* Убираем все overlay */
body::before {
  display: none !important;
}

/* Убираем noise текстуру */
body::after {
  display: none !important;
}

/* ═══ ОТКЛЮЧЕНИЕ БЕСКОНЕЧНЫХ АНИМАЦИЙ ═══ */

/* Орбы — скрыть полностью */
.orb,
.orb-purple,
.bg-orb,
.bg-orb-1,
.bg-orb-2,
.bg-orb-3,
.bg-orb-4,
.bg-stars,
.bg-star {
  display: none !important;
}

/* Частицы — скрыть полностью (выглядит дешёво) */
.particles,
.particle {
  display: none !important;
}

/* Логотип — оставляем анимацию из main */

/* Hero badge pulse — отключить */
.hero-badge::before {
  animation: none !important;
  opacity: 1;
}

/* Убрать золотое свечение в hero */
.hero::before,
.hero::after {
  display: none !important;
}

.hero {
  background: transparent !important;
}

/* Кнопка shine — заменить на статичный highlight */
.btn-primary::after {
  animation: none !important;
  display: none;
}

/* Статичный highlight вместо бегущего блика */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent2) 50%,
    var(--accent) 100%
  );
  background-size: 100% 100%;
  position: relative;
}

/* Лёгкий верхний highlight */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  border-radius: inherit;
  pointer-events: none;
}

/* ═══ ШАГ 2: ВИЗУАЛ СООБЩЕНИЙ ═══ */

/* Алиас .msg.err = .msg.error */
.msg.err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* Алиас .msg.ok = .msg.success */
.msg.ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-radius: 12px;
  padding: 14px 16px;
}

/* Улучшенные стили ошибок */
.msg.err::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Субтекст ошибки */
.msg-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}

/* ═══ ШАГ 3: ПРЕМИУМ LOADING SPINNER ═══ */

/* Спиннер */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Состояние loading для кнопки */
.btn[data-loading="1"] {
  pointer-events: none;
  opacity: 0.85;
}

.btn[data-loading="1"] .btn-spinner {
  display: inline-block;
}

/* ═══ ШАГ 4: SUCCESS-BOX ПРЕМИУМ ═══ */

.success-box {
  position: relative;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(168, 85, 247, 0.2) 100%) border-box;
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(34, 197, 94, 0.08);
  overflow: hidden;
}

/* Акцентная линия сверху */
.success-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--green) 50%, transparent 95%);
}

.success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.success-id span {
  color: var(--muted);
}

.success-id code {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  user-select: all;
  cursor: text;
}

.success-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border-left: 3px solid rgba(34, 197, 94, 0.4);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Компактные кнопки btn-sm */
.btn-sm {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-sm.btn-primary {
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2);
}

.btn-sm.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

/* ═══ ШАГ 6: iOS SAFE AREA ═══ */

/* Header с safe-area-inset-top */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: calc(12px + env(safe-area-inset-top));
  }
}

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

/* Плавные transitions вместо анимаций */
.btn,
.feature,
.stat,
.form-card,
.pay-method,
.quick-btn {
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out,
    background-color 0.15s ease-out;
}

/* Убираем все бесконечные keyframes которые могли остаться */
.orb-pulse,
.orb-float,
.orb-breathe,
.orb-drift,
.particle-float,
.particle-rise,
.float,
.btn-shine,
.btn-shine-premium,
.pulse {
  animation: none !important;
}

/* Премиум form-card на страницах покупки/продажи — без золотого/фиолетового свечения */
.form-card {
  background: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

/* Убираем золотую линию сверху */
.form-card::before {
  display: none !important;
}

/* Улучшенные инпуты */
.field-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
  border-color: var(--accent);
}

/* Error state инпутов */
.field-input.error,
input.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state инпутов */
.field-input.success,
input.success {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Улучшенный promo-banner — статичный */
.promo-banner-inner {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Убираем анимации из premium-card если есть */
.premium-card::before,
.premium-card::after {
  animation: none !important;
}

/* CTA card статичный */
.cta-card {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.06);
}

/* ═══ MOBILE BREAKPOINTS ═══ */

@media (max-width: 360px) {
  .success-box {
    padding: 20px 16px;
  }

  .success-title {
    font-size: 16px;
  }

  .success-id code {
    font-size: 13px;
    padding: 6px 12px;
  }

  .btn-sm {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ═══ HERO TITLE ADJUSTMENTS ═══ */

/* Базовые стили для всего hero-title и всех потомков */
.hero-title,
.hero-title * {
  font-family: 'Orbitron', monospace !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.hero-title {
  font-size: 32px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  color: #fff !important;
  margin-bottom: 16px !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.hero-title br {
  line-height: 1 !important;
}

.hero-title-accent {
  display: inline !important;
  font-size: inherit !important;
  background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)) !important;
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  text-align: center !important;
  margin-top: 12px !important;
}

/* 320px - very small */
@media (max-width: 360px) {
  .hero-title {
    font-size: 26px !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
  }
}

/* ═══ REDUCED MOTION (усиленный) ═══ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
