/* ============================================= */
/* БЛОК: УПРАВЛЕНИЕ ЭКРАНАМИ                    */
/* ============================================= */

.screen {
  display: none;
}

.screen.active {
  display: block;
}

:root {
  /* ===== CTA-блок (кнопка + текст под ней) ===== */
  --cta-block-max-width: 528px;
  --cta-block-horizontal-gap: 16px;
  --cta-block-text-gap: 20px;
}

/* ============================================= */
/* БЛОК: ЗАГОЛОВКИ СЕКЦИЙ (ОБЩИЕ)              */
/* ============================================= */

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
  width: 100%;
}

.section-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.section-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.back-btn {
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================= */
/* ГЛОБАЛЬНЫЙ ЛОАДЕР                           */
/* ============================================= */

.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.global-loader.active {
  opacity: 1;
  pointer-events: all;
}

.global-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.global-loader-spinner {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
}

.global-loader-spinner svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: loader-rotate 1.5s linear infinite;
  transform-origin: center;
}

.loader-track {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.loader-head {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1, 150;
  stroke-dashoffset: 0;
  animation: loader-dash 1.5s ease-in-out infinite;
}

@keyframes loader-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 140, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 140, 150;
    stroke-dashoffset: -125;
  }
}

/* ============================================= */
/* БЛОК: PLAYSTATION SECTION                    */
/* ============================================= */

.ps-section {
  width: 100%;
  min-width: 348px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.ps-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
  width: 100%;
}

.ps-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.ps-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
}

.ps-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  text-align: center;
  width: 100%;
}

/* ============================================= */
/* БЛОК: КНОПКИ РЕГИОНОВ                        */
/* ============================================= */
/* ============================================= */
/* БЛОК: PSN РЕГИОНЫ БАННЕРЫ (НОВЫЕ)            */
/* ============================================= */


.psn-regions-banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 348px;
  max-width: 560px;
  margin: 0 auto;
}

.psn-region-banner {
  position: relative;
  width: 100%;
  min-width: 348px;
  max-width: 560px;
  height: 96px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.psn-region-banner-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ===== ГРАДИЕНТ ТУРЦИЯ (СВЕРХУ ВНИЗ) ===== */
.psn-region-banner--turkey .psn-region-banner-inner {
  background: linear-gradient(180deg, #2A0808 0%, #000000 100%);
}

/* ===== ГРАДИЕНТ ИНДИЯ (СВЕРХУ ВНИЗ) ===== */
.psn-region-banner--india .psn-region-banner-inner {
  background: linear-gradient(180deg, #0A2A08 0%, #000000 100%);
}

.psn-region-banner {
  position: relative;
}

/* ===== ЛЕВЫЙ ВЕРХНИЙ УГОЛ ===== */
.psn-region-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 55%;
  pointer-events: none;
  z-index: 10;
  border-top: 2.1px solid rgba(255, 255, 255, 1);
  border-left: 2.1px solid rgba(255, 255, 255, 1);
  border-top-left-radius: 20px;
  mask: linear-gradient(135deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(135deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(255, 255, 255, 0) 100%);
}

/* ===== ПРАВЫЙ НИЖНИЙ УГОЛ ===== */
.psn-region-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  pointer-events: none;
  z-index: 10;
  border-bottom: 2.1px solid rgba(255, 255, 255, 1);
  border-right: 2.1px solid rgba(255, 255, 255, 1);
  border-bottom-right-radius: 20px;
  mask: linear-gradient(315deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(315deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(255, 255, 255, 0) 100%);
}

/* ===== ТУРЦИЯ — КРАСНО-ОРАНЖЕВОЕ СВЕЧЕНИЕ ===== */
.psn-region-banner--turkey .psn-region-banner-inner {
  box-shadow:
    inset 0 -40px 40px -20px rgba(255, 80, 0, 0.35),
    inset 0 -60px 60px -30px rgba(255, 50, 0, 0.20);
}

/* ===== ИНДИЯ — ЖЁЛТО-ЗЕЛЁНОЕ СВЕЧЕНИЕ ===== */
.psn-region-banner--india .psn-region-banner-inner {
  box-shadow:
    inset 0 -40px 40px -20px rgba(255, 200, 0, 0.35),
    inset 0 -60px 60px -30px rgba(50, 255, 0, 0.20);
}

/* ===== ВНУТРЕННИЙ БЛИК (INNER SHADOW) ===== */
.psn-region-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ТУРЦИЯ */
.psn-region-banner--turkey .psn-region-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 20;
  box-shadow:
    inset 0 -45px 20px -30px rgba(255, 100, 0, 0.15),
    inset 0 -57px 25px -30px rgba(255, 50, 0, 0.10),
    inset 0 -70px 30px -30px rgba(200, 20, 0, 0.08);
}

/* ИНДИЯ */
.psn-region-banner--india .psn-region-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 20;
  box-shadow:
    inset 0 -45px 20px -30px rgba(255, 200, 0, 0.15),
    inset 0 -57px 25px -30px rgba(150, 255, 0, 0.10),
    inset 0 -70px 30px -30px rgba(50, 200, 0, 0.08);
}

/* ===== ВЕРХНЯЯ ПЛАШКА "PSN МАГАЗИН" ===== */
.psn-region-banner-tag {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  color: #FFFFFF;
  font-family: 'Russian Bold', 'Manrope', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== ТУРЦИЯ — БОРДОВАЯ ПЛАШКА ===== */
.psn-region-banner--turkey .psn-region-banner-tag {
  background: rgba(128, 0, 0, 0.8);
}

/* ===== ИНДИЯ — ТЕМНО-ЗЕЛЁНАЯ ПЛАШКА ===== */
.psn-region-banner--india .psn-region-banner-tag {
  background: rgba(0, 80, 0, 0.8);
}

/* ===== ОБВОДКА ДЛЯ ПЛАШКИ ===== */
.psn-region-banner-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 45%;
  pointer-events: none;
  z-index: 1;
  border-top: 1.8px solid rgba(255, 255, 255, 1);
  border-left: 1.8px solid rgba(255, 255, 255, 1);
  border-top-left-radius: 6px;
  mask: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 0) 100%);
}

.psn-region-banner-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 45%;
  pointer-events: none;
  z-index: 1;
  border-bottom: 1.8px solid rgba(255, 255, 255, 1);
  border-right: 1.8px solid rgba(255, 255, 255, 1);
  border-bottom-right-radius: 6px;
  mask: linear-gradient(315deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(315deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 40%,
      rgba(255, 255, 255, 0) 100%);
}

/* ===== ФЛАГ СЛЕВА ===== */
.psn-region-banner-flag {
  position: absolute;
  left: -10px;
  top: 55%;
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(105px, 24vw, 135px);
  height: clamp(105px, 24vw, 135px);
  object-fit: cover;
}

/* ===== ОБЪЕКТЫ СПРАВА ===== */
.psn-region-banner-objects {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(100px, 22vw, 120px);
  height: 96px;
  pointer-events: none;
}

.psn-region-banner-objects .obj {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* ===== ПОРЯДОК СЛОЁВ: 1 - самый нижний, 3 - самый верхний ===== */
.psn-region-banner-objects .obj-1 {
  z-index: 1;
  right: 0px;
  bottom: 30px;
  width: clamp(50px, 11vw, 60px);
  height: clamp(50px, 11vw, 60px);
}

.psn-region-banner-objects .obj-2 {
  z-index: 2;
  left: 15px;
  top: 88%;
  transform: translateY(-50%) rotate(-10deg);
  width: clamp(120px, 25vw, 140px);
  height: clamp(120px, 25vw, 140px);
}

.psn-region-banner-objects .obj-3 {
  z-index: 3;
  right: -10px;
  top: 50%;
  transform: translateY(-30%);
  width: clamp(95px, 20vw, 110px);
  height: clamp(95px, 20vw, 110px);
}

.psn-region-banner-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  color: #FFFFFF;
  font-family: 'Russian Bold', 'Manrope', sans-serif;
  font-size: clamp(17px, 3.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* ===== ПОДЗАГОЛОВОК ===== */
.psn-region-banner-subtitle {
  position: absolute;
  left: 50%;
  bottom: 14px;
  /* ← РУЧНАЯ НАСТРОЙКА */
  transform: translateX(-50%);
  z-index: 4;
  color: #FFFFFF;
  font-family: 'Russian Bold', 'Manrope', sans-serif;
  font-size: clamp(8px, 2.4vw, 13px);
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.psn-region-banner-tag {
  position: absolute;
  left: 50%;
  top: 12px;
  /* ← РУЧНАЯ НАСТРОЙКА */
  transform: translateX(-50%);
  z-index: 15;
  color: #FFFFFF;
  font-family: 'Russian Bold', 'Manrope', sans-serif;
  font-size: clamp(8px, 1.6vw, 9px);
  padding: clamp(1.5px, 0.4vw, 2px) clamp(11px, 2.5vw, 14px);
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== ТУРЦИЯ — КРАСНЫЕ ПОЛОСЫ ===== */
.psn-region-banner--turkey .psn-region-banner-subtitle .highlight {
  color: #FF0000;
  font-weight: 700;
  margin: 0 6px;
}

/* ===== ИНДИЯ — ЗЕЛЁНЫЕ ПОЛОСЫ ===== */
.psn-region-banner--india .psn-region-banner-subtitle .highlight {
  color: #00FF00;
  font-weight: 700;
  margin: 0 6px;
}

/* ============================================= */
/* БЛОК: GIFT CARDS SECTION                     */
/* ============================================= */

.gift-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gift-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 0 4px;
}

.gift-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
}

.gift-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.gift-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  justify-items: center;
}

.gift-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ===== ОБЁРТКА КНОПКИ ===== */
.gift-icon-btn-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

/* ===== SVG-ОБВОДКА (ПОВЕРХ) ===== */
.gift-icon-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===== КНОПКА ===== */
.gift-icon-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: rgba(0, 0, 0, 0.288);
  clip-path: url(#buttonClip);
  -webkit-clip-path: url(#buttonClip);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===== ИКОНКА ===== */
.gift-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

/* ===== ТЕКСТ ===== */
.gift-icon-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.2px;
  margin-top: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ===== КНОПКА "ПОКАЗАТЬ ВСЕ" ===== */
.gift-show-all-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

.show-all-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================= */
/* БЛОК: STEAM ПОПОЛНЕНИЕ (НОВЫЙ ДИЗАЙН)        */
/* ============================================= */

#screen-steam {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
}

#screen-steam.active {
  display: flex;
}

#screen-steam .steam-header,
#screen-steam .steam-block,
#screen-steam .steam-info-row,
#screen-steam .steam-total-block,
#screen-steam .steam-error-banner,
#screen-steam .steam-submit-wrapper {
  width: 100%;
  max-width: 560px;
}

/* ============================================= */
/* HEADER — КАК В СПИСКЕ СЕРВИСОВ               */
/* ============================================= */

#screen-steam .steam-header {
  width: 100%;
  max-width: 560px;
  margin-bottom: 24px;
}

#screen-steam .steam-header-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  min-height: 70px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#screen-steam .steam-header-card .back-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  min-width: 36px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#screen-steam .steam-header-content {
  flex: 1;
  min-width: 0;
}

#screen-steam .steam-title {
  color: #FAF8F6;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

#screen-steam .steam-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 400;
  margin-top: 2px;
}

#screen-steam .steam-header-logo-wrapper {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.25;
}

#screen-steam .steam-header-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* ============================================= */
/* ОБЩИЕ БЛОКИ                                  */
/* ============================================= */

#screen-steam .steam-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

#screen-steam .steam-block-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================= */
/* ВАЛЮТЫ                                       */
/* ============================================= */

#screen-steam .steam-currency-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

#screen-steam .steam-currency-btn {
  flex: 1;
  min-width: 56px;
  padding: 12px 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  transition: all 0.2s ease;
}

#screen-steam .steam-currency-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FAF8F6;
  color: #FAF8F6;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

/* ============================================= */
/* ВАЛЮТЫ С ФЛАГАМИ                             */
/* ============================================= */

.steam-currency-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 64px;
  flex: 1;
}

.steam-currency-flag {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.steam-currency-btn.active .steam-currency-flag {
  opacity: 1;
}

.steam-currency-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FAF8F6;
  color: #FAF8F6;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

/* ============================================= */
/* ЛОГИН                                        */
/* ============================================= */

#screen-steam .steam-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#screen-steam .steam-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

#screen-steam .steam-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

#screen-steam .steam-info-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: all 0.25s ease;
  margin-bottom: 6px;
  width: 100%;
}

#screen-steam .steam-info-block.hidden {
  max-height: 0;
  padding: 0 14px;
  border: none;
  opacity: 0;
  margin: 0;
}

#screen-steam .steam-info-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

#screen-steam .steam-input-wrapper {
  position: relative;
  width: 100%;
}

#screen-steam .steam-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #FAF8F6;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#screen-steam .steam-input:focus {
  border-color: rgba(255, 255, 255, 0.20);
}

#screen-steam .steam-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

#screen-steam .steam-input.invalid {
  border-color: rgba(255, 60, 60, 0.4);
}

#screen-steam .steam-input.valid {
  border-color: rgba(76, 205, 196, 0.4);
}

/* ============================================= */
/* СУММА                                        */
/* ============================================= */

#screen-steam .steam-amount-wrapper {
  width: 100%;
}

#screen-steam .steam-amount-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#screen-steam .steam-amount-field:focus-within {
  border-color: rgba(255, 255, 255, 0.20);
}

#screen-steam .steam-currency-symbol {
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

#screen-steam .steam-amount-input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 22px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

#screen-steam .steam-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

/* ============================================= */
/* ПОДСКАЗКА ДИАПАЗОНА                          */
/* ============================================= */

#screen-steam .steam-range-hint {
  color: #f5b342;
  font-size: 13px;
  margin-top: 6px;
  text-align: right;
  letter-spacing: 0.3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  min-height: 20px;
}

#screen-steam .steam-range-hint.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

#screen-steam .steam-range-hint.error {
  color: #ff6b6b;
}

/* ============================================= */
/* БЫСТРЫЕ СУММЫ (чуть уже)                     */
/* ============================================= */

#screen-steam .steam-quick-amounts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

#screen-steam .steam-quick-btn {
  flex: 1;
  min-width: 50px;
  max-width: 90px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

#screen-steam .steam-quick-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  color: #FAF8F6;
}

/* ============================================= */
/* ЗАЧИСЛЕНИЕ                                   */
/* ============================================= */

#screen-steam .steam-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
}

#screen-steam .steam-info-row:last-child {
  border-bottom: none;
}

#screen-steam .steam-info-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

#screen-steam .steam-info-value {
  color: #FAF8F6;
  font-size: 14px;
  font-weight: 500;
}

#screen-steam .steam-info-value.placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================= */
/* ИТОГО (КРУПНЫЙ БЛОК)                        */
/* ============================================= */

#screen-steam .steam-total-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

#screen-steam .steam-total-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

#screen-steam .steam-total-value {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#screen-steam .steam-total-value.placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================= */
/* КРАСНАЯ ПЛАШКА                               */
/* ============================================= */

#screen-steam .steam-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 4px 0 16px 0;
  transition: all 0.3s ease;
  min-height: 44px;
  box-sizing: border-box;
}

#screen-steam .steam-error-banner.hidden {
  display: none;
}

#screen-steam .steam-error-icon {
  color: #ff6b6b;
  font-size: 18px;
  flex-shrink: 0;
}

#screen-steam .steam-error-text {
  color: #ff6b6b;
  font-size: 15px;
  font-weight: 500;
}

/* ============================================= */
/* ИНФОРМАЦИОННАЯ ПЛАШКА (ЖЁЛТАЯ)               */
/* ============================================= */

#screen-steam .steam-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 4px 0 16px 0;
  min-height: 44px;
  transition: all 0.3s ease;
}

#screen-steam .steam-info-banner.hidden {
  display: none;
}

#screen-steam .steam-info-icon {
  color: #ffc107;
  font-size: 18px;
  flex-shrink: 0;
}

#screen-steam .steam-info-text {
  color: #ffc107;
  font-size: 15px;
  font-weight: 500;
}

/* ============================================= */
/* КНОПКА                                       */
/* ============================================= */

#screen-steam .steam-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

#screen-steam .steam-submit-btn {
  width: 100%;
  max-width: 560px;
  padding: 18px 24px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

#screen-steam .steam-submit-btn:disabled {
  cursor: not-allowed;
}

/* ===== НЕАКТИВНАЯ КНОПКА ===== */
#screen-steam .steam-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

/* ===== АКТИВНАЯ КНОПКА ===== */
#screen-steam .steam-submit-btn.active {
  background: linear-gradient(135deg, #906bf9, #5898f9, #0cdcec, #15c2f3, #0070fb);
  background-size: 300% 300%;
  animation: steamGradient 4s ease infinite;
  color: #FFFFFF;
  box-shadow: 0 8px 32px rgba(144, 107, 249, 0.30);
  padding: 18px 24px;
  min-height: 56px;
}

#screen-steam .steam-submit-btn.active:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 40px rgba(144, 107, 249, 0.40);
}

/* ============================================= */
/* ЛОАДЕР В КНОПКЕ                             */
/* ============================================= */

.btn-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =============================================
   STEAM TOTAL LOADER
   ============================================= */
.steam-total-value-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
}

#total-loading {
  width: 28px;
  height: 28px;
  animation: loader-rotate 1.5s linear infinite;
  transform-origin: center;
}

#total-loading.hidden {
  display: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.steam-total-value {
  font-size: 28px;
  font-weight: 700;
  color: #FAF8F6;
}

.steam-total-value.placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ===== АНИМАЦИЯ ГРАДИЕНТА ===== */
@keyframes steamGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#screen-steam .steam-submit-btn #submit-text {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 600;
}

#screen-steam .steam-submit-btn.active #submit-text {
  color: #FFFFFF;
}


/* ============================================= */
/* БЛОК: STEAM (ПОЛНЫЙ)                          */
/* ============================================= */

.steam-direct-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steam-direct-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
  width: 100%;
}

.steam-direct-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.steam-direct-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.steam-direct-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

/* ============================================= */
/* БЛОК: PROMO (ПОЛНЫЙ)                          */
/* ============================================= */

.promo-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
  width: 100%;
}

.promo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.promo-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================= */
/* БЛОК: БАННЕРЫ                                 */
/* ============================================= */

.banner {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.banner-glow-top,
.banner-glow-bottom {
  position: absolute;
  left: -15px;
  right: -15px;
  height: 3px;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.banner-glow-top {
  top: -2px;
  background: rgba(255, 255, 255, 0.4);
}

.banner-glow-bottom {
  bottom: -2px;
  background: rgba(0, 60, 255, 0.6);
}

.banner-glow-bottom--promo {
  background: rgba(250, 101, 37, 0.6) !important;
}

.banner-card {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: 25px;
  z-index: 1;
}

.banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  z-index: 50;
  pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.5) 18%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-clip: padding-box;
}

.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: 15;
  pointer-events: none;
}

/* ============================================= */
/* МОДИФИКАТОР: STEAM                           */
/* ============================================= */

.banner--steam .banner-card {
  background: linear-gradient(135deg, #0a0a0f 0%, #0d1a2d 50%, #0f2440 100%);
}

.banner--steam .banner-card::after {
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.25),
    inset 0 -25px 7px -24px rgba(253, 253, 253, 0.7),
    inset 0 -45px 20px -30px rgba(0, 137, 250, 0.5),
    inset 0 -57px 20px -30px rgba(0, 60, 255, 0.4);
}

.banner--steam .steam-object {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-45%);
  height: clamp(120px, 26vw, 145px);
  width: auto;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.7));
}

.banner--steam .percent {
  position: absolute;
  right: -45px;
  bottom: -45px;
  height: clamp(120px, 26vw, 145px);
  width: auto;
  z-index: 1;
  transform: rotate(-8deg);
  pointer-events: none;
  filter: blur(1px) drop-shadow(0 0px 25px rgba(0, 0, 0, 0.7));
  opacity: 0.85;
}

/* ============================================= */
/* МОДИФИКАТОР: PROMO                           */
/* ============================================= */

.banner--promo .banner-card {
  background: #0a0a0a;
}

.banner--promo .banner-card::after {
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.25),
    inset 0 -25px 7px -24px rgba(253, 253, 253, 0.7),
    inset 0 -45px 20px -30px rgba(255, 81, 0, 0.5),
    inset 0 -57px 20px -30px rgba(232, 27, 0, 0.4);
}

.banner--promo .banner-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 22px;
  overflow: hidden;
}

.banner--promo .promo-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner--promo .promo-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 82%);
  z-index: 1;
  border-radius: 22px;
}

.banner--promo .telegram-object {
  position: absolute;
  right: -62px;
  bottom: -37px;
  height: clamp(135px, 27vw, 150px);
  width: auto;
  transform: rotate(15deg);
  pointer-events: none;
  filter: blur(1.3px) drop-shadow(-2px 2px 10px rgba(0, 0, 0, 0.8));
  opacity: 0.9;
  z-index: 1;
}

.banner--promo .promo-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  pointer-events: none;
}

/* ============================================= */
/* ТЕКСТ В БАННЕРАХ                             */
/* ============================================= */

.banner-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "Russian Bold", "Microsoft Sans Serif", "MS Sans Serif", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.banner-title-white {
  color: #ffffff;
}

.banner-title-gradient {
  background: linear-gradient(180deg, #48eff5 0%, #00218f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-title-gradient--promo {
  background: linear-gradient(180deg, #ffab67 0%, #ff3300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: rgba(255, 255, 255, 0.85);
}

.subtitle-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subtitle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.subtitle-dot.dot-blue {
  background: #4da6ff;
  box-shadow: 0 0 10px rgba(77, 166, 255, 0.6);
}

.subtitle-dot.dot-orange {
  background: #fa6525;
  box-shadow: 0 0 10px rgba(250, 101, 37, 0.6);
}

/* ============================================= */
/* ОБЪЕКТЫ ВНУТРИ БАННЕРОВ                      */
/* ============================================= */

.banner-object {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  opacity: 0.6;
  z-index: 1;
}

.banner-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  width: 60%;
}

/* ============================================= */
/* БЛОК: ЭКРАН ВЫБОРА СЕРВИСА                  */
/* ============================================= */

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  padding: 0 4px;
  margin-top: 4px;
}

.services-title {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  flex: 1;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.services-placeholder {
  width: 44px;
  flex-shrink: 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}


/* ============================================= */
/* БЛОК: КАРТОЧКИ СЕРВИСОВ (ОБЩИЕ СТИЛИ)        */
/* ============================================= */

.service-card-wrapper {
  position: relative;
  width: 100%;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 20px;
}

/* ===== ОБВОДКА (ПОВЕРХ ВСЕГО) ===== */
.service-card-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.5) 30%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-clip: padding-box;
}

/* ===== ВНУТРЕННИЙ БЛИК (СВЕРХУ) ===== */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ===== ТЕКСТ ===== */
.service-info {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 2;
}

.service-name {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== ЛОГОТИП (выходит за край) ===== */
.service-logo-wrapper {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%) rotate(-25deg);
  z-index: 1;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.service-logo {
  width: 90%;
  height: 90%;
  object-fit: contain;
  opacity: 0.30;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.73));
}



/* ============================================= */
/* БЛОК: ЭКРАН ДЕТАЛЕЙ СЕРВИСА                 */
/* ============================================= */

#screen-service-details {
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 0 0 20px 0;
}

#screen-service-details.active {
  display: flex;
}

.service-detail-card {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.service-detail-card .back-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.service-detail-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.service-detail-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-detail-name {
  color: #FAF8F6;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.service-detail-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===== БЛОК ВЫБОРА ===== */
.selection-block {
  margin-bottom: 16px;
  width: 100%;
}

.block-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 8px;
}

.scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.region-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #FAF8F6;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  min-height: 48px;
  display: flex;
  gap: 8px;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.region-btn .fi {
  width: 24px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.region-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FAF8F6;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.nominal-btn {
  flex-shrink: 0;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #FAF8F6;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nominal-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FAF8F6;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.nominal-amount {
  font-size: 22px;
  font-weight: 700;
}

.nominal-stock {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.nominal-btn.out-of-stock {
  opacity: 0.3;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.03);
}

.scroll-indicator {
  display: none;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-top: 6px;
}

.scroll-indicator.active {
  display: block;
}

.scroll-indicator .indicator-bar {
  height: 100%;
  width: 30%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* ===== ИТОГО И ОПЛАТА ===== */
.total-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.total-price {
  color: #FAF8F6;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  flex: 1;
}

.pay-btn {
  padding: 12px 28px;
  border-radius: 20px;
  border: none;
  background: #FAF8F6;
  color: #0b0b0f;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  min-width: 90px;
  -webkit-tap-highlight-color: transparent;
}

.pay-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== ИНСТРУКЦИЯ ===== */
.instruction-block {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

.instruction-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.instruction-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* ============================================= */
/* БЛОК: STEAM ПОПОЛНЕНИЕ (ВЕСЬ БЛОК)           */
/* ============================================= */

#screen-steam {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
}

#screen-steam.active {
  display: flex;
}

#screen-steam .steam-header,
#screen-steam .steam-block,
#screen-steam .steam-info-row,
#screen-steam .steam-total-block,
#screen-steam .steam-error-banner,
#screen-steam .steam-submit-wrapper {
  width: 100%;
  max-width: 560px;
}

/* ============================================= */
/* HEADER — КАК В СПИСКЕ СЕРВИСОВ               */
/* ============================================= */

#screen-steam .steam-header {
  width: 100%;
  max-width: 560px;
  margin-bottom: 24px;
}

#screen-steam .steam-header-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  min-height: 70px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#screen-steam .steam-header-card .back-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  min-width: 36px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#screen-steam .steam-header-content {
  flex: 1;
  min-width: 0;
}

#screen-steam .steam-title {
  color: #FAF8F6;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

#screen-steam .steam-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}

#screen-steam .steam-header-logo-wrapper {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.25;
}

#screen-steam .steam-header-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* ============================================= */
/* ОБЩИЕ БЛОКИ                                  */
/* ============================================= */

#screen-steam .steam-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

#screen-steam .steam-block-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================= */
/* ВАЛЮТЫ                                       */
/* ============================================= */

#screen-steam .steam-currency-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

#screen-steam .steam-currency-btn {
  flex: 1;
  min-width: 56px;
  padding: 12px 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  transition: all 0.2s ease;
}

#screen-steam .steam-currency-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FAF8F6;
  color: #FAF8F6;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

/* ============================================= */
/* ЛОГИН                                        */
/* ============================================= */

#screen-steam .steam-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#screen-steam .steam-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

#screen-steam .steam-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

#screen-steam .steam-info-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: all 0.25s ease;
  margin-bottom: 6px;
  width: 100%;
}

#screen-steam .steam-info-block.hidden {
  max-height: 0;
  padding: 0 14px;
  border: none;
  opacity: 0;
  margin: 0;
}

#screen-steam .steam-info-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

#screen-steam .steam-input-wrapper {
  position: relative;
  width: 100%;
}

#screen-steam .steam-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #FAF8F6;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#screen-steam .steam-input:focus {
  border-color: rgba(255, 255, 255, 0.20);
}

#screen-steam .steam-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

#screen-steam .steam-input.invalid {
  border-color: rgba(255, 60, 60, 0.4);
}

#screen-steam .steam-input.valid {
  border-color: rgba(76, 205, 196, 0.4);
}

/* ============================================= */
/* СУММА                                        */
/* ============================================= */

#screen-steam .steam-amount-wrapper {
  width: 100%;
}

#screen-steam .steam-amount-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#screen-steam .steam-amount-field:focus-within {
  border-color: rgba(255, 255, 255, 0.20);
}

#screen-steam .steam-currency-symbol {
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

#screen-steam .steam-amount-input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 22px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

#screen-steam .steam-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

/* ============================================= */
/* ПОДСКАЗКА ДИАПАЗОНА                          */
/* ============================================= */

#screen-steam .steam-range-hint {
  color: #f5b342;
  font-size: 13px;
  margin-top: 6px;
  text-align: right;
  letter-spacing: 0.3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  min-height: 20px;
}

#screen-steam .steam-range-hint.hidden {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

#screen-steam .steam-range-hint.error {
  color: #ff6b6b;
}

/* ============================================= */
/* БЫСТРЫЕ СУММЫ                                */
/* ============================================= */

#screen-steam .steam-quick-amounts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

#screen-steam .steam-quick-btn {
  flex: 1;
  min-width: 50px;
  max-width: 90px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

#screen-steam .steam-quick-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  color: #FAF8F6;
}

/* ============================================= */
/* ЗАЧИСЛЕНИЕ                                   */
/* ============================================= */

#screen-steam .steam-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
}

#screen-steam .steam-info-row:last-child {
  border-bottom: none;
}

#screen-steam .steam-info-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

#screen-steam .steam-info-value {
  color: #FAF8F6;
  font-size: 14px;
  font-weight: 500;
}

#screen-steam .steam-info-value.placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================= */
/* ИТОГО (КРУПНЫЙ БЛОК)                        */
/* ============================================= */

#screen-steam .steam-total-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

#screen-steam .steam-total-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

#screen-steam .steam-total-value {
  color: #FAF8F6;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#screen-steam .steam-total-value.placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================= */
/* КРАСНАЯ ПЛАШКА                               */
/* ============================================= */

#screen-steam .steam-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 4px 0 16px 0;
  transition: all 0.3s ease;
  min-height: 44px;
  box-sizing: border-box;
}

#screen-steam .steam-error-banner.hidden {
  display: none;
}

#screen-steam .steam-error-icon {
  color: #ff6b6b;
  font-size: 18px;
  flex-shrink: 0;
}

#screen-steam .steam-error-text {
  color: #ff6b6b;
  font-size: 15px;
  font-weight: 500;
}

/* ============================================= */
/* КНОПКА И ЛОГОТИП SBP (ЕДИНЫЙ БЛОК)           */
/* ============================================= */

/* Кнопка — основа */
#screen-steam .steam-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
  max-width: 560px;
}

#screen-steam .steam-submit-btn {
  position: relative;
  overflow: hidden;
  /* ← ГЛАВНОЕ: обрезаем всё, что выходит за границы */
  width: 100%;
  max-width: 560px;
  padding: 18px 24px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#screen-steam .steam-submit-btn:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}


/* Активная кнопка — градиент */
#screen-steam .steam-submit-btn.active {
  background: linear-gradient(135deg, #906bf9, #5898f9, #0cdcec, #15c2f3, #0070fb);
  background-size: 300% 300%;
  animation: steamGradient 4s ease infinite;
  color: #FFFFFF;
  box-shadow: 0 8px 32px rgba(144, 107, 249, 0.30);
}

#screen-steam .steam-submit-btn.active:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 40px rgba(144, 107, 249, 0.40);
}

#screen-steam .steam-submit-btn #submit-text {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 600;
}

#screen-steam .steam-submit-btn.active #submit-text {
  color: #FFFFFF;
}

/* ===== АНИМАЦИЯ ГРАДИЕНТА ===== */
@keyframes steamGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ============================================= */
/* БЛОК: STEAM BENEFITS                          */
/* ============================================= */

.steam-benefits-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 48px auto 0 auto;
  padding: 0;
  gap: 8px;
}

.steam-benefits-block {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100px;
  background: rgba(22, 22, 27, 0.2);
  border-radius: 0;
  overflow: hidden;
  /* ← меняем с visible на hidden */
}

/* ===== ВЕРТИКАЛЬНАЯ ПОЛОСА ===== */
.steam-benefits-edge {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100px;
  background: #477BFF;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(71, 123, 255, 0.35);
}

.steam-benefits-edge.right {
  left: auto;
  right: 0;
}

/* ===== ГРАДИЕНТ ===== */
.steam-benefits-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right,
      rgba(17, 140, 255, 0.32) 0%,
      rgba(18, 140, 255, 0.20) 25%,
      rgba(18, 140, 255, 0.05) 70%,
      rgba(18, 140, 255, 0.00) 100%);
}

/* Зеркальный градиент для правого блока */
.steam-benefits-block:last-child .steam-benefits-gradient {
  background: linear-gradient(to left,
      rgba(17, 140, 255, 0.32) 0%,
      rgba(18, 140, 255, 0.20) 25%,
      rgba(18, 140, 255, 0.05) 70%,
      rgba(18, 140, 255, 0.00) 100%);
}

/* ===== SVG ===== */
.steam-benefits-arrows {
  position: absolute;
  left: -3px;
  top: 50%;
  width: 240px;
  height: 360px;
  /* было 360px — увеличил */
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%) scaleY(1.04);
  opacity: 0.75;
  object-fit: fill;
}

.steam-benefits-block:last-child .steam-benefits-arrows {
  left: auto;
  right: -3px;
  transform: translateY(-50%) scaleX(-1) scaleY(1.04);
}

/* ===== ТЕКСТ ===== */
.steam-benefits-text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-left: 16px;
  padding-right: 8px;
  pointer-events: none;
}

/* Для правого блока текст прижат к правому краю */
.steam-benefits-block:last-child .steam-benefits-text {
  align-items: flex-end;
  padding-left: 8px;
  padding-right: 16px;
  text-align: right;
}

.steam-benefits-text span {
  display: block;
  color: #FAF8F6;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.steam-benefits-text span:last-child {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.steam-benefits-text {
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ============================================= */
/* БЛОК: ОБЩИЕ ВСПОМОГАТЕЛЬНЫЕ СТИЛИ             */
/* ============================================= */

.promo-section a {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.scroll-container {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-container.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.scroll-container.dragging .region-btn,
.scroll-container.dragging .nominal-btn {
  pointer-events: none;
}

/* ============================================= */
/* БЛОК: СООБЩЕНИЕ ПОСЛЕ ОПЛАТЫ                  */
/* ============================================= */

.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #008311;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 184, 148, 0.4);
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================= */
/* ПРОФИЛЬ — ГЛОБАЛЬНЫЙ ЭКРАН                    */
/* ============================================= */

#screen-profile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: none;
  flex-direction: column;
  background: var(--app-bg);
  z-index: 100;
  overflow: hidden;
}

#screen-profile.active {
  display: flex;
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px 16px;
  flex-shrink: 0;
  min-height: 52px;
}

.profile-header .back-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #FAF8F6;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  min-width: 36px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.profile-title {
  color: #FAF8F6;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: center;
}

.profile-header-placeholder {
  width: 36px;
  flex-shrink: 0;
}

/* ===== КОНТЕНТ ===== */
.profile-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 20px 16px;
}

/* ===== БЛОК ПРОФИЛЯ ===== */
.profile-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 24px 0;
  gap: 8px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #FAF8F6;
  margin-top: 4px;
}

.profile-id {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 400;
}

/* ===== БЛОК EMAIL ===== */
.profile-email-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-email-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-email-icon {
  font-size: 16px;
  opacity: 0.5;
}

.profile-email-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}

.profile-email-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-email-value {
  color: #FAF8F6;
  font-size: 14px;
  font-weight: 500;
}

.profile-email-edit {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.profile-email-edit:active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}

/* ===== БЛОК КНОПОК ===== */
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.profile-menu-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #FAF8F6;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  text-align: left;
}

.profile-menu-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.profile-menu-btn .icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.profile-menu-btn .arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

/* ===== БЛОК ДОКУМЕНТОВ ===== */
.profile-docs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-docs-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 400;
  padding: 10px 4px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.profile-docs-btn:active {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================= */
/* ПРОФИЛЬ — TELEGRAM MINI APP                   */
/* ============================================= */

#screen-profile {
  background: var(--app-bg);
  display: none;
  flex-direction: column;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

#screen-profile.active {
  display: flex;
}

/* ============================================= */
/* 1. БАННЕР                                     */
/* ============================================= */

.profile-banner {
  position: relative;
  padding: 20px 20px 30px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 50%, #1a1a2e 100%);
  flex-shrink: 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* ===== КНОПКА НАЗАД ===== */
.profile-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #FAF8F6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
  backdrop-filter: blur(4px);
  padding: 0;
}

.profile-back-btn:active {
  transform: scale(0.90);
  background: rgba(255, 255, 255, 0.12);
}

.profile-back-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.5);
}

/* ===== СВЕЧЕНИЕ ===== */
.profile-banner-glow {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  pointer-events: none;
}

/* ===== КОНТЕНТ БАННЕРА ===== */
.profile-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  gap: 8px;
}

/* ===== АВАТАР (90px, ВЫХОДИТ НА 1/2 ЗА БАННЕР) ===== */
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border: 3px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.35);
  margin-top: 10px;
  margin-bottom: -45px;
}

.profile-avatar-letter {
  color: #FFFFFF;
  font-size: 34px;
  font-weight: 700;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}

/* ===== ИМЯ (ПОД АВАТАРКОЙ) ===== */
.profile-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}

.profile-name {
  color: #FAF8F6;
  font-size: 19px;
  font-weight: 600;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* ============================================= */
/* 2. КОНТЕНТ                                    */
/* ============================================= */

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 16px 40px 16px;
  -webkit-overflow-scrolling: touch;
}

/* ============================================= */
/* 3. МЕНЮ-ПУНКТЫ (УВЕЛИЧЕННЫЕ ОТСТУПЫ)         */
/* ============================================= */

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 22px 18px;
  border-radius: 14px;
  gap: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 4px;
}

.profile-menu-item:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.98);
}

.profile-menu-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

/* ===== ИКОНКИ ===== */
.profile-menu-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu-icon-wrapper svg {
  stroke: rgba(255, 255, 255, 0.45);
}

.profile-menu-label {
  color: #FAF8F6;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  flex: 1;
}

.profile-menu-arrow {
  color: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
}

/* ===== EMAIL ===== */
.profile-menu-email-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.profile-menu-email-value {
  color: rgba(255, 255, 255, 0.20);
  font-size: 12px;
  font-weight: 400;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================= */
/* 4. ДОКУМЕНТЫ                                  */
/* ============================================= */

.profile-docs {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  padding: 28px 0 8px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
  margin-top: 24px !important;
}

.profile-docs-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.12) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  transition: color 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.profile-docs-divider {
  color: rgba(255, 255, 255, 0.04) !important;
  font-size: 12px !important;
}

.profile-docs-btn:active {
  color: rgba(255, 255, 255, 0.4);
}



/* ============================================= */
/* 5. МОДАЛКИ                                    */
/* ============================================= */

.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.profile-modal-overlay.active {
  display: flex;
}

.profile-modal {
  background: #16161f;
  border-radius: 24px;
  padding: 32px 24px 24px 24px;
  max-width: 380px;
  width: 92%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.profile-modal-icon {
  font-size: 44px;
  text-align: center;
  margin-bottom: 10px;
}

.profile-modal-title {
  color: #FAF8F6;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 4px;
}

.profile-modal-desc {
  color: rgba(255, 255, 255, 0.30);
  font-size: 14px;
  text-align: center;
  font-weight: 400;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 20px;
}

/* ===== ЧЕКБОКС ===== */
.profile-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
}

.profile-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.profile-checkbox.active {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  border-color: #6366F1;
}

.profile-checkbox svg {
  color: #FFFFFF;
  stroke: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-checkbox.active svg {
  opacity: 1;
}

.profile-checkbox-label {
  color: rgba(255, 255, 255, 0.50);
  font-size: 14px;
  font-weight: 400;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== ПОЛЕ ВВОДА EMAIL ===== */
.profile-modal-input-wrapper {
  margin-bottom: 6px;
}

.profile-modal-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #FAF8F6;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.profile-modal-input:focus {
  border-color: rgba(139, 92, 246, 0.4);
}

.profile-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.profile-modal-error {
  color: #ff4757;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 12px;
  display: none;
}

.profile-modal-error.show {
  display: block;
}

/* ===== КНОПКИ МОДАЛКИ ===== */
.profile-modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #6930c3, #4ea8de);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 6px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.profile-modal-btn:active {
  transform: scale(0.97);
}

.profile-modal-close {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.20);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.profile-modal-close:active {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================= */
/* 6. АНИМАЦИИ                                   */
/* ============================================= */

@keyframes profileFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes profileModalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-modal-overlay.active {
  animation: profileFadeIn 0.25s ease;
}

.profile-modal {
  animation: profileModalPop 0.25s ease forwards;
}

/* ============================================= */
/* БЛОК: INFO / FAQ (УНИВЕРСАЛЬНЫЙ)             */
/* ============================================= */

.info-faq {
  width: 100%;
  max-width: 560px;
  margin: 32px auto 0 auto;
  background: #20202A;
  border-radius: 13px;
  padding: 16px;
  box-sizing: border-box;
}

/* ===== ВКЛАДКИ ===== */
.info-faq-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
}

.info-faq-tab {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #2E2E36;
  color: #E2E2E3;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  position: relative;
  box-sizing: border-box;
}

.info-faq-tab.active {
  background: #2E2E36;
  color: #FEFEFE;
  font-weight: 500;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.info-faq-tab.active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(to right, #6930c3, #4ea8de);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== КОНТЕНТ ===== */
.info-faq-content {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.info-faq-content.active {
  display: flex;
}

/* ===== ЗАГОЛОВОК ===== */
.info-faq-heading {
  color: #FEFEFE;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

/* ===== ТЕКСТ ===== */
.info-faq-text {
  color: #E2E2E3;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-align: left;
}

.info-faq-bold {
  color: #FEFEFE;
  font-weight: 700;
}

/* ===== FAQ ЭЛЕМЕНТЫ ===== */
.info-faq-item {
  background: #2E2E36;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  min-height: 44px;
  color: #FEFEFE;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.info-faq-question span:first-child {
  flex: 1;
}

.info-faq-chevron {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.info-faq-answer {
  color: #E2E2E3;
  font-size: 13px;
  line-height: 18px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: none;
}

.info-faq-item.open .info-faq-answer {
  padding: 0 16px 16px 16px;
  max-height: 200px;
  opacity: 1;
}

/* ============================================= */
/* LEGAL PAGES (ОФЕРТА, ПОЛИТИКА)               */
/* ============================================= */

.legal-screen {
  background: #ffffff !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.legal-page {
  padding: 20px 24px 60px;
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 20px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 24px;
}

.legal-back-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1a1a1a;
  padding: 4px 8px 4px 0;
  transition: opacity 0.2s;
  line-height: 1;
}

.legal-back-btn:hover {
  opacity: 0.5;
}

.legal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.legal-content {
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
}

.legal-content p {
  margin-bottom: 10px;
}

.legal-content strong {
  font-weight: 700;
  color: #000;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #000;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 4px;
  font-size: 15px;
}

.legal-content a {
  color: #0070fb;
  text-decoration: underline;
  word-break: break-all;
}

.legal-content a:hover {
  color: #0050cc;
}

.legal-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 24px 0;
}

/* ============================================= */
/* КНОПКА "НАВЕРХ" ДЛЯ LEGAL-СТРАНИЦ            */
/* ============================================= */

.legal-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.legal-scroll-top:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.legal-scroll-top:active {
  transform: scale(0.92);
}

/* По умолчанию скрыта */
.legal-scroll-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Показываем только когда есть скролл */
.legal-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================= */
/* ЭКРАН: ИСТОРИЯ ЗАКАЗОВ                        */
/* ============================================= */

#screen-orders {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  padding: 20px 16px calc(16px + var(--tg-content-safe-area-inset-bottom, 0px)) 16px;
  padding-top: calc(12px + var(--tg-content-safe-area-inset-top, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--app-bg);
  z-index: 50;
}

.orders-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.orders-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.3px;
  flex: 1;
}

.orders-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.orders-loading {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* ===== ПУСТОЙ ЭКРАН ===== */

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}

.orders-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.orders-empty-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.3px;
}

.orders-empty-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 28px;
}

.orders-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.orders-empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.orders-empty-btn:active {
  transform: scale(0.98);
}

.orders-empty-btn--primary {
  background: linear-gradient(to right, #6930c3, #4ea8de);
  color: #FFFFFF;
}

.orders-empty-btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== КАРТОЧКА ЗАКАЗА ===== */

.order-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.order-card-info {
  flex: 1;
  min-width: 0;
}

.order-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

.order-card-date {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.order-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}

.order-card-status-pending {
  background: rgba(255, 200, 0, 0.12);
  color: #ffc800;
}

.order-card-status-payment_sent {
  background: rgba(100, 150, 255, 0.12);
  color: #6496ff;
}

.order-card-status-paid {
  background: rgba(100, 200, 100, 0.12);
  color: #64c864;
}

.order-card-status-processing {
  background: rgba(100, 150, 255, 0.12);
  color: #6496ff;
}

.order-card-status-completed {
  background: rgba(100, 200, 100, 0.15);
  color: #64c864;
}

.order-card-status-failed {
  background: rgba(255, 80, 80, 0.12);
  color: #ff5050;
}

.order-card-status-expired {
  background: rgba(255, 150, 50, 0.12);
  color: #ff9632;
}

.order-card-status-refunded {
  background: rgba(150, 100, 255, 0.12);
  color: #9664ff;
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-amount {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.order-card-codes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-code-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-code-name {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.order-code-value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.order-code-value:active {
  background: rgba(0, 0, 0, 0.5);
}

.order-code-value code {
  flex: 1;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.order-code-copy {
  font-size: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ============================================= */
/* ЮРИДИЧЕСКОЕ УВЕДОМЛЕНИЕ ПОД КНОПКОЙ ОПЛАТЫ   */
/* ============================================= */

.pay-acceptance {
  width: calc(100% - var(--cta-block-horizontal-gap) * 2);
  max-width: var(--cta-block-max-width);
  margin: var(--cta-block-text-gap) auto 0 auto;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pay-acceptance-link {
  color: #5EA7FF;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pay-acceptance-link:active {
  opacity: 0.6;
}

.pay-acceptance-link:visited {
  color: #5EA7FF;
}

/* Website-only account/checkout enhancements. Telegram never receives this
   body class; all original Mini App rules and purchase handlers remain intact. */
.relay-website .web-checkout {
  flex: 1 0 100%; min-width: 0; width: 100%; max-width: 560px; margin: 12px auto;
  padding: 20px; border: 1px solid rgba(123,114,248,.25); border-radius: 18px;
  background: radial-gradient(ellipse at 0 0,rgba(83,100,245,.12),transparent 65%),linear-gradient(145deg,#1b1b30,#13131f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 10px 30px rgba(0,0,0,.16); text-align: left;
}
.relay-website .web-checkout [hidden], .relay-website .web-checkout[hidden],
.relay-website button.web-login-required { display: none !important; }
.relay-website .web-checkout-heading { font-size: 16px; font-weight: 750; line-height: 1.45; letter-spacing: -.2px; padding-right: 34px; }
.relay-website .web-checkout p { color: #b9b9d0; font-size: 13px; line-height: 1.6; margin: 10px 0 18px; }
.relay-website .web-login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.relay-website .web-login-options button:first-child { grid-column: 1/-1; background: linear-gradient(110deg,#5568f5,#8954ed); border-color: rgba(160,153,255,.3); box-shadow: 0 4px 18px rgba(103,83,236,.18),inset 0 1px 0 rgba(255,255,255,.13); }
.relay-website .web-checkout button, .relay-website .web-account button {
  min-height: 44px; padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 650;
  color: #faf8f6; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; cursor: pointer; transition: background .15s,border-color .15s;
}
.relay-website .web-checkout button:hover:not(:disabled), .relay-website .web-account button:hover:not(:disabled) { border-color: #8b5cf6; background-color: rgba(139,92,246,.16); }
.relay-website .web-checkout button:disabled, .relay-website .web-account button:disabled { opacity: .45; cursor: default; }
.relay-website .web-checkout :focus-visible, .relay-website .web-account :focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
.relay-website .web-checkout label { display: block; min-width: 0; font-size: 13px; font-weight: 600; color: #d3d2e3; }
.relay-website .web-checkout input { width: 100%; min-width: 0; margin-top: 9px; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(139,92,246,.3); background: rgba(10,10,22,.5); color: #faf8f6; font: inherit; font-size: 16px; }
.relay-website .web-field-hint, .relay-website .web-account-status { display: block; color: #fda4af; font-size: 12px; line-height: 1.5; margin-top: 6px; }
.relay-website .web-checkout-label { display: block; min-height: 22px; line-height: 22px; }
.relay-website .web-login-options button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border-radius: 12px; }
.relay-website .web-login-options [data-login=email] { min-height: 48px; font-size: 14px; }
.relay-website .web-login-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.relay-website .web-login-options [data-login=vk] { background: linear-gradient(140deg,rgba(0,119,255,.16),rgba(0,97,224,.06)); border-color: rgba(62,140,247,.3); }
.relay-website .web-vk-icon { color: #4f9bff; width: 24px; height: 24px; }
.relay-website .web-login-options [data-login=yandex] { background: linear-gradient(140deg,#23232d,#191922); border-color: rgba(255,255,255,.12); }
.relay-website .web-login-options [data-login=vk]:hover:not(:disabled) { background: rgba(0,119,255,.22); border-color: #498eef; }
.relay-website .web-login-options [data-login=yandex]:hover:not(:disabled) { background: #2a2329; border-color: rgba(252,63,29,.45); }
.relay-website #browser-payment-error { flex: 1 0 100%; max-width: 560px; padding: 12px; border-radius: 12px; background: rgba(255,71,87,.08); line-height: 1.6; }
.relay-website #screen-steam .web-checkout { margin-top: 16px; }
.relay-website .psn-cart-total .web-checkout { margin-bottom: 0; }
.relay-website .web-account { margin: 16px 0; padding: 20px; border-radius: 20px; border: 1px solid rgba(139,92,246,.2); background: linear-gradient(140deg,rgba(99,102,241,.1),rgba(255,255,255,.025)); }
.relay-website .web-account h2 { margin: 20px 0 8px; font-size: 17px; }
.relay-website .web-identity { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.065); }
.relay-website .web-identity > div { flex: 1; min-width: 0; }
.relay-website .web-identity strong, .relay-website .web-identity div span { display: block; }
.relay-website .web-identity div span { font-size: 12px; color: #aaa8bf; margin-top: 4px; }
.relay-website .web-identity-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; background: rgba(139,92,246,.16); font-weight: 700; }
.relay-website .web-signout { width: 100%; margin-top: 18px; }
.relay-website #profile-avatar { position: relative; overflow: hidden; }
.relay-website #profile-avatar img[data-web-avatar] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) {
  .relay-website .web-checkout { padding: 16px; }
  .relay-website .web-account { padding: 14px; }
}
.relay-website #pay-btn { background: linear-gradient(120deg,#6366f1,#8b5cf6); color: #fff; }
.relay-website #pay-btn:disabled { opacity: .45; }
.relay-website #screen-profile .profile-content { width: 100%; max-width: 600px; margin-inline: auto; }
.relay-website #screen-profile .web-account { margin-top: 0; }
.relay-website #screen-steam .steam-submit-wrapper { flex-direction: column; align-items: stretch; }
.relay-website #screen-steam .steam-submit-wrapper > .web-checkout { flex-basis: auto; }
.relay-website .psn-page[data-page="cart"] { scroll-padding-bottom: calc(var(--psn-nav-height-actual,120px) + env(safe-area-inset-bottom,0px) + 16px); }
.relay-website #screen-psn-store, .relay-website #screen-profile { height: var(--relay-visual-height,100dvh); }
.relay-website #screen-psn-store .psn-bottom-nav { bottom: max(0px,calc(100dvh - var(--relay-visual-height,100dvh))); }
.relay-website .psn-bottom-nav.web-checkout-login-needed { min-height: 64px; }
.relay-website .web-account h2:first-child { margin-top: 0; }


/* Gift pages only: original selectors above and original 3D internals untouched. */
.relay-website .web-gift-composition {
  display: grid; grid-template-columns: minmax(330px,1.05fr) minmax(210px,.85fr) minmax(310px,.95fr);
  gap: 28px; align-items: start; max-width: 1240px; margin: 10px auto 28px;
}
.relay-website .web-gift-visual { min-width: 0; min-height: 340px; display: flex; flex-direction: column; justify-content: center; overflow: visible; }
.relay-website .web-gift-visual > .gift-card-spacer { display: none; }
.relay-website .web-gift-info { min-width: 0; padding-top: 24px; }
.relay-website .web-gift-eyebrow { margin: 0 0 8px; color: #a9a1ed; font-size: 13px; font-weight: 600; }
.relay-website .web-gift-info h2 { margin: 0; color: #faf8f6; font-size: clamp(24px,2.1vw,32px); line-height: 1.2; font-weight: 750; letter-spacing: -.6px; overflow-wrap: anywhere; }
.relay-website .web-gift-subtitle { margin: 14px 0 0; font-size: 14px; color: #b6b4c8; line-height: 1.6; }
.relay-website .web-gift-info ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.relay-website .web-gift-info li { position: relative; padding-left: 16px; color: #c9c7d8; font-size: 13px; line-height: 1.55; }
.relay-website .web-gift-info li::before { content: ''; position: absolute; left: 0; top: calc(.775em - 2px); width: 4px; height: 4px; background: #8d84ed; border-radius: 50%; }
.relay-website .web-gift-checkout { min-width: 0; padding: 24px; border: 1px solid rgba(139,127,219,.2); border-radius: 22px; background: linear-gradient(145deg,#1c1c2b,#13131d); box-shadow: 0 16px 48px rgba(0,0,0,.15); }
.relay-website .web-gift-checkout .total-block { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0; border: 0; background: none; border-radius: 0; }
.relay-website .web-gift-checkout #total-price { flex: none; font-size: 27px; line-height: 1.35; letter-spacing: -.5px; }
.relay-website .web-gift-checkout-meta { margin: 7px 0 20px; font-size: 13px; line-height: 1.5; color: #a4a0b7; }
.relay-website .web-gift-checkout .web-checkout { flex: none; margin: 0; padding: 0; max-width: none; background: none; border: 0; border-radius: 0; box-shadow: none; }
.relay-website .web-gift-checkout .web-checkout-heading { font-size: 15px; padding: 0; }
.relay-website .web-gift-checkout .web-checkout p { font-size: 12px; margin: 8px 0 16px; }
.relay-website .web-gift-checkout .web-login-options { grid-template-columns: minmax(0,1fr); gap: 9px; }
.relay-website .web-gift-checkout .web-login-options button:first-child { grid-column: auto; }
.relay-website .web-gift-checkout .web-checkout-label { color: #bcb8cd; font-size: 12px; }
.relay-website .web-gift-checkout .web-checkout input { background: #111119; border: 1px solid rgba(255,255,255,.07); margin-top: 7px; padding: 12px 13px; border-radius: 11px; }
.relay-website .web-gift-checkout .web-checkout input:focus-visible { outline: 2px solid #8e83e4; outline-offset: 2px; }
.relay-website .web-gift-checkout #pay-btn { margin-top: 16px; width: 100%; min-height: 48px; border-radius: 12px; font-size: 15px; }
.relay-website .web-gift-checkout > .pay-acceptance { margin: 16px 0 0; font-size: 10px; line-height: 1.65; }
.relay-website .web-gift-composition ~ #service-info-faq-container .info-faq { max-width: 960px; }
.relay-website .web-gift-composition ~ #service-info-faq-container .info-faq-content { max-width: 76ch; margin-inline: auto; }
@media (max-width: 1050px) {
  .relay-website .web-gift-composition { grid-template-columns: minmax(0,1fr); max-width: 560px; gap: 14px; margin-top: 16px; }
  .relay-website .web-gift-visual { min-height: 0; }
  .relay-website .web-gift-info { padding-top: 0; }
  .relay-website .web-gift-info h2 { font-size: 25px; }
  .relay-website .web-gift-info ul { margin-top: 14px; gap: 8px; }
  .relay-website .web-gift-checkout { margin-top: 6px; padding: 22px; }
}

/* Browser profile flows with the document; Telegram keeps its fixed screen. */
.relay-website #screen-profile { position: relative; inset: auto; width: 100%; height: auto; min-height: 100dvh; overflow: visible; }
.relay-website #screen-profile .profile-content { flex: none; overflow: visible; }
.relay-website .web-identity-icon svg { width: 24px; height: 24px; }
body.relay-website:has(#screen-profile.active) { height: auto; overflow-y: auto; }
body.relay-website:has(#screen-profile.active) #app { display: none; }
.relay-website #screen-profile .profile-banner { overflow: clip; }

/* Native SSR links use the same visual controls as hydrated buttons. */
a.region-btn,a.nominal-btn,a.steam-currency-btn{text-decoration:none;}
