/* ValutaEx visual fixes. Loaded after the Next stylesheet. */

html, body { overflow-x: clip; }

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 0 4px;
  transform: none !important;
}

.phone-stage .orb,
.phone-stage .orbit-line,
.phone-stage .token { display: none !important; }

.phone {
  position: relative;
  z-index: 1;
  width: min(348px, calc(100vw - 40px));
  height: auto !important;
  margin: 0;
  padding: 11px;
  background: linear-gradient(165deg, #3c4464 0%, #171c34 38%, #0b1024 100%);
  border: 0;
  border-radius: 50px;
  box-shadow:
    0 36px 70px -30px rgba(10, 28, 80, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: none !important;
}

.phone::before,
.phone::after { content: none !important; display: none !important; }

.hw-btn {
  position: absolute;
  width: 3px;
  background: #1b2140;
  border-radius: 2px;
}
.hw-btn.mute { left: -3px; top: 18%; height: 28px; }
.hw-btn.vol { left: -3px; top: 28%; height: 52px; }
.hw-btn.power { right: -3px; top: 30%; height: 78px; }

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 560px;
  padding: 52px 16px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #e8f0ff 100%);
  border-radius: 40px;
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 108px;
  height: 28px;
  background: #0b1024;
  border-radius: 20px;
  transform: translateX(-50%);
}
.island::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #1c2548;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #0b1024;
}

.phone-status {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 0 8px;
  color: #102350;
  font-size: 13px;
  font-weight: 700;
}
.phone-status .sig { display: inline-flex; gap: 5px; align-items: center; }
.phone-status svg { width: 17px; height: 12px; }

.phone-title {
  margin: 8px 0 14px;
  color: #0a1f55;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.field {
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 20px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(40, 80, 150, 0.06);
}
.field small {
  display: block;
  margin-bottom: 8px;
  color: #8b9aba;
  font-size: 12px;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a1f55;
  font-size: 15px;
  font-weight: 800;
}
.coin i {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  font-style: normal;
  border-radius: 50%;
}
.coin i svg, .tether-svg { display: block; width: 100%; height: 100%; }
.coin .c-eur {
  color: #fff;
  background: #1467ff;
  font-size: 16px;
  font-weight: 800;
}
.amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #0a1f55;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.amount small {
  margin: 2px 0 0;
  color: #8b9aba;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.swap-arrows {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -8px auto;
  color: #1467ff;
  font-size: 16px;
  font-weight: 800;
  background: #fff;
  border: 1px solid #e4edfa;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(20, 80, 160, 0.12);
}

.phone-rate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px 0;
  color: #6d7da8;
  font-size: 13px;
}
.phone-rate b { color: #0a1f55; font-weight: 700; text-align: right; }

.phone-rails {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.phone-rails span {
  flex: 1;
  padding: 8px 4px;
  color: #3d4f80;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
}
.phone-rails span.on {
  color: #fff;
  background: #1467ff;
  border-color: #1467ff;
}

.phone-action {
  display: grid;
  place-items: center;
  height: 52px;
  margin-top: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #2f91ff, #0756ef);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(20, 103, 255, 0.28);
}

.home-bar {
  width: 112px;
  height: 5px;
  margin: 14px auto 2px;
  background: #0b1737;
  border-radius: 99px;
}

.step-number,
.step-connector { display: none !important; }
.step-top { gap: 0; }

.cta-orb,
.cta-orb-a,
.cta-orb-b { display: none !important; }

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding: 36px 36px !important;
  overflow: hidden;
}
.final-button {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  flex: none;
  min-width: 220px;
  margin: 0;
  transform: none !important;
}
.final-button:hover { transform: translateY(-2px) !important; }
.cta-tokens {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  flex: none;
  align-items: center;
}
.cta-tokens span {
  width: 64px;
  height: 64px;
  padding: 0;
  background: transparent !important;
  box-shadow: none;
  transform: none !important;
}
.cta-tokens span + span { margin-left: -12px; }
.big-token {
  padding: 0;
  background: transparent !important;
  box-shadow: none;
}
.big-token .tether-svg,
.cta-tokens .tether-svg { width: 100%; height: 100%; }

@media (max-width: 1080px) {
  .phone-stage { transform: none !important; margin: 0 !important; }
  .phone { width: min(340px, calc(100vw - 48px)); }
  .final-cta { padding: 32px !important; }
  .cta-tokens { display: flex !important; }
}

@media (max-width: 820px) {
  .hero-grid { align-items: start; }
  .phone-stage {
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    transform: none !important;
  }
  .phone { width: min(360px, calc(100vw - 36px)); }
  .phone-screen { min-height: 0; }
  .final-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 22px !important;
  }
  .final-button { width: 100%; min-width: 0; }
  .cta-tokens { align-self: flex-end; margin-top: 8px; }
  .steps-line { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .phone-stage {
    min-height: 0 !important;
    margin: 4px 0 0 !important;
    transform: none !important;
  }
  .phone { width: min(360px, calc(100vw - 28px)); border-radius: 42px; }
  .phone-screen { border-radius: 34px; padding: 50px 14px 12px; }
  .amount { font-size: 20px; }
  .phone-rails span { font-size: 10px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .steps-line { grid-template-columns: 1fr; }
  .country-float { right: 0; }
  .final-cta h2 { font-size: clamp(30px, 8vw, 36px); }
}

.cta-tokens .eur-token{
  color:#fff !important;
  background:linear-gradient(145deg,#358fff,#0b5ee9) !important;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:800;
}

/* ============================================================
   Реалистичные пропорции телефона (соотношение как iPhone ~9:19.2).
   Добавлено поверх: экрану задаётся точная пропорция сторон,
   кнопка и home-bar прижимаются к низу, как в реальном приложении.
   ============================================================ */
.phone-stage { padding: 0; }
.phone {
  width: min(306px, calc(100vw - 40px));
  border-radius: 52px;
  padding: 12px;
}
.phone-screen {
  min-height: 0 !important;
  aspect-ratio: 9 / 19.2;
  border-radius: 40px;
}
.phone-action { margin-top: auto; }
