/* =============================================================================
   SharkXchange - clean desktop/base stylesheet
   No media queries in this phase. Compatible with current index.html + app.js.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1) Design tokens
   ----------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-page: #050914;
  --bg-header: rgba(8, 13, 24, 0.86);
  --bg-card: rgba(14, 22, 40, 0.82);
  --bg-card-soft: rgba(255, 255, 255, 0.04);
  --text-main: #eaf0ff;
  --text-muted: rgba(234, 240, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #6ecbff;
  --accent-2: #8a7aff;
  --success: #22d38b;
  --danger: #ff5d76;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Sizes */
  --container-max: 1100px;
  --header-height: 86px;
  --logo-size: 70px;
  --button-height: 40px;
  --input-height: 44px;

  /* Shadows */
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.28);
  --shadow-header: 0 10px 24px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(110, 203, 255, 0.2);
}

/* -----------------------------------------------------------------------------
   2) Reset / base
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  background: var(--bg-page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(2, 8, 24, 0.42) 0%, rgba(2, 6, 18, 0.78) 58%, rgba(2, 5, 14, 0.94) 100%),
    url("images/deep-sea-bg.png") center top / cover no-repeat fixed;
  overflow-x: hidden;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none;
}

html.modal-lock,
body.modal-lock {
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   3) Typography
   ----------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.4px;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
}

.muted {
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   4) Layout / sections
   ----------------------------------------------------------------------------- */
.container {
  width: min(var(--container-max), calc(100% - 24px));
  margin: 0 auto;
}

.section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.sectionTitle {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  text-align: center;
  line-height: 1.2;
}

.sectionIntro {
  margin: calc(var(--space-sm) * -0.25) auto var(--space-lg);
  max-width: 680px;
  text-align: center;
}

section[id] {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
}

/* -----------------------------------------------------------------------------
   5) Header / nav / logo
   ----------------------------------------------------------------------------- */
.siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-header);
}

.headerRow {
  min-height: var(--header-height);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brandLogo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brandName {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.navDesktop {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Одинаковая реальная высота у всех 5 пунктов; текст во внутреннем span (i18n без смены структуры) */
.navDesktopLink {
  box-sizing: border-box;
  height: 52px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color 0.2s ease;
}

.navDesktopLink:hover {
  color: var(--text-main);
}

.navDesktopLabel {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Хедер: три контрола (~−10% пропорционально), gap .headerActions не меняем */
.headerActions .btn {
  height: calc(var(--button-height) * 0.9);
  padding: 0 calc(var(--space-md) * 0.9);
  border-radius: calc(var(--radius-md) * 0.9);
}

.headerActions .btnPrimary {
  font-size: 0.95rem;
}

.headerActions #openMenu {
  width: calc(var(--button-height) * 0.9);
  min-width: calc(var(--button-height) * 0.9);
  padding-left: 0;
  padding-right: 0;
  font-size: calc(20px * 0.9);
  line-height: 1;
}

.headerActions #openApply {
  min-width: calc(132px * 0.9);
}

.headerActions .langBtn {
  min-height: calc(38px * 0.9);
  padding: 0 calc(10px * 0.9);
  gap: calc(6px * 0.9);
  border-radius: calc(var(--radius-md) * 0.9);
}

.headerActions .langBtn .flag {
  font-size: calc(15px * 0.9);
}

.headerActions .langBtn .langCode {
  font-size: calc(12px * 0.9);
}

.headerActions .langBtn .langChevron {
  font-size: calc(11px * 0.9);
}

.mobileMenu {
  border-top: 1px solid var(--border);
  background: rgba(9, 14, 24, 0.95);
}

.mobileMenuInner {
  padding: var(--space-sm) 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mLink {
  color: var(--text-muted);
  padding: var(--space-xs) 0;
}

.mLink:hover {
  color: var(--text-main);
}

/* -----------------------------------------------------------------------------
   6) Buttons / inputs / form primitives
   ----------------------------------------------------------------------------- */
.btn {
  height: var(--button-height);
  padding: 0 var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btnPrimary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071021;
  box-shadow: var(--shadow-glow);
}

.btnPrimary:hover {
  transform: translateY(-1px);
}

.btnGhost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text-main);
}

.btnGhost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btnFull {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#openApply2 {
  width: min(70%, 100%);
  align-self: center;
  height: calc(var(--button-height) * 0.8);
  min-height: calc(var(--button-height) * 0.8);
}

.widget .btnFull.btnPrimary {
  box-shadow:
    0 0 18px rgba(110, 203, 255, 0.26),
    0 0 32px rgba(138, 122, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.22),
    var(--shadow-glow);
}

.widget .btnFull.btnPrimary:hover {
  box-shadow:
    0 0 22px rgba(110, 203, 255, 0.32),
    0 0 38px rgba(138, 122, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.26),
    var(--shadow-glow);
}

.input,
input,
select,
textarea {
  width: 100%;
  min-height: var(--input-height);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.72);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus,
.input:focus {
  border-color: rgba(110, 203, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(110, 203, 255, 0.18);
}

textarea {
  resize: vertical;
}

.label,
label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.labelRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fieldRow {
  display: flex;
  gap: var(--space-sm);
}

.fieldRow select {
  width: 120px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* -----------------------------------------------------------------------------
   7) Language switch
   ----------------------------------------------------------------------------- */
.langSwitch {
  position: relative;
}

.langBtn {
  min-height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.langMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 24, 0.98);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 1010;
}

.langItem {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.langItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

.flag {
  font-size: 15px;
  line-height: 1;
}

.langCode {
  font-size: 12px;
  font-weight: 700;
}

.langChevron {
  font-size: 11px;
  opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   8) Hero / widget / stats header
   ----------------------------------------------------------------------------- */
.hero {
  padding: 0 0 var(--space-sm);
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.heroGrid .widget {
  justify-self: center;
  width: min(100%, 420px);
}

.heroText {
  display: grid;
  align-content: start;
  min-width: 0;
}

.heroTitle {
  margin-bottom: var(--space-sm);
}

.heroText .muted {
  margin-top: 0;
  max-width: 560px;
}

.heroBadges {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.badge {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
  padding: 9px 12px;
  font-size: 14px;
}

a.badge.badge--telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  border-color: rgba(110, 200, 255, 0.32);
  background: linear-gradient(180deg, rgba(70, 150, 230, 0.12) 0%, rgba(40, 110, 200, 0.08) 100%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.badgeTelegramIcon {
  flex-shrink: 0;
  color: rgba(120, 200, 255, 0.95);
}

.badgeTelegramText {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.badgeTelegramHandle {
  font-weight: 600;
  color: rgba(160, 220, 255, 0.92);
}

a.badge.badge--telegram:hover {
  border-color: rgba(110, 203, 255, 0.48);
  background: linear-gradient(180deg, rgba(80, 165, 240, 0.18) 0%, rgba(50, 120, 210, 0.12) 100%);
  box-shadow: 0 0 14px rgba(90, 180, 255, 0.15);
  transform: translateY(-1px);
}

a.badge.badge--telegram:focus-visible {
  outline: 2px solid rgba(110, 203, 255, 0.55);
  outline-offset: 2px;
}

.widget {
  border-radius: var(--radius-xl);
  border: 3px solid rgba(125, 185, 240, 0.42);
  background: var(--bg-card);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(110, 200, 255, 0.05) inset,
    /* мягкая неоновая подсветка ~50% силы, сине-голубая гамма */
    0 0 18px rgba(110, 203, 255, 0.26),
    0 0 36px rgba(120, 170, 255, 0.14);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.widgetHead {
  padding: 12px var(--space-md) 8px;
}

/* Иконка | заголовок | LIVE + дата */
.widgetHeadBar {
  --widget-head-pillar: 28px;
  display: grid;
  grid-template-columns: var(--widget-head-pillar) minmax(0, 1fr) minmax(0, max-content);
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.widgetHeadSide {
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widgetHeadSide--icon {
  width: var(--widget-head-pillar);
  height: var(--widget-head-pillar);
  border: 2px solid rgba(130, 200, 255, 0.45);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 3px;
}

.widgetHeadSide--live {
  width: auto;
  height: auto;
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  justify-self: end;
  align-self: center;
}

.widgetCalcIconGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px 2px;
  justify-items: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  color: rgba(196, 232, 255, 0.92);
}

.widgetTitle {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.widgetLiveMeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  height: auto;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  text-align: center;
  flex-shrink: 0;
}

.widgetLiveBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: calc(8.5px * 1.1);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(210, 236, 255, 0.98);
  border: 1px solid rgba(150, 210, 255, 0.48);
  background: linear-gradient(180deg, rgba(70, 130, 210, 0.22) 0%, rgba(40, 90, 170, 0.14) 100%);
  text-shadow:
    0 0 6px rgba(110, 203, 255, 0.32),
    0 0 12px rgba(110, 190, 255, 0.2);
  box-shadow:
    0 0 8px rgba(110, 200, 255, 0.22),
    0 0 14px rgba(120, 190, 255, 0.14);
  animation: calc-live-badge-pulse 2.8s ease-in-out infinite;
}

.widgetLiveDate {
  display: block;
  width: auto;
  font-size: calc(10px * 1.1);
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes calc-live-badge-pulse {
  0%,
  100% {
    opacity: 0.94;
    box-shadow:
      0 0 6px rgba(110, 203, 255, 0.2),
      0 0 12px rgba(120, 190, 255, 0.12);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 10px rgba(110, 203, 255, 0.28),
      0 0 18px rgba(120, 190, 255, 0.18);
  }
}

@media (max-width: 480px) {
  .widgetHeadBar {
    --widget-head-pillar: 24px;
    gap: var(--space-xs);
  }

  .widgetCalcIconGrid {
    font-size: 7px;
  }
}

.widgetBody {
  --widget-stack-gap: var(--space-sm);
  /* Equal spacing around swap between the two fused strips; slightly larger than stack to fit the “Получаете” line in the lower band */
  --widget-bridge-gap: calc(var(--widget-stack-gap) + 0.6rem);
  --widget-input-height: 35px;
  padding: 8px var(--space-md) 20px;
  display: flex;
  flex-direction: column;
  gap: var(--widget-stack-gap);
}

.widgetCalcCore {
  display: flex;
  flex-direction: column;
  gap: calc(var(--widget-stack-gap) * 0.5);
}

.widgetCalcCore > .labelRow .label {
  margin-bottom: 0;
}

.widgetCalcBridge {
  display: flex;
  flex-direction: column;
  /* stretch: both fused strips share the same width as the bridge (center broke top row to shrink-to-fit) */
  align-items: stretch;
  gap: var(--widget-bridge-gap);
  width: 100%;
}

.widgetCalcReceive {
  position: relative;
  align-self: stretch;
  width: 100%;
}

.widgetCalcReceive > .widgetCalcReceiveLabel.label {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: calc(var(--widget-stack-gap) * 0.5);
}

.widget .fieldRow--fused {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: var(--widget-input-height);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget .fieldRow--fused:focus-within {
  border-color: rgba(110, 203, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(110, 203, 255, 0.18);
}

.widget .fieldRow--fused input,
.widget .fieldRow--fused select {
  min-height: calc(var(--widget-input-height) - 2px);
  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  line-height: 1.25;
  box-sizing: border-box;
}

.widget .fieldRow--fused input:focus,
.widget .fieldRow--fused select:focus {
  box-shadow: none;
}

.widget .fieldRow--fused input {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Native number spinners: only the amount field; currency selects unchanged */
.widget .fieldRow--fused input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.widget .fieldRow--fused input[type="number"]::-webkit-outer-spin-button,
.widget .fieldRow--fused input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.widget .fieldRow--fused select {
  width: auto;
  min-width: 108px;
  max-width: 42%;
  flex-shrink: 0;
  padding: 8px 10px 8px 12px;
}

.widgetSwapRow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.swapBtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(130, 190, 255, 0.28);
  background: rgba(12, 22, 42, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.rateRow {
  font-size: 11px;
}

.statsHeader {
  margin-top: 0;
  margin-bottom: var(--space-md);
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
}

.statsHeaderTitle {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.statsHeaderLine {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 203, 255, 0.55), transparent);
}

.statsHeaderLive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.liveDotHeader {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: statsLiveDotPulse 2.4s ease-in-out infinite;
}

@keyframes statsLiveDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
    box-shadow:
      0 0 0 0 rgba(34, 211, 139, 0.4),
      0 0 10px rgba(34, 211, 139, 0.28);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow:
      0 0 0 10px rgba(34, 211, 139, 0.07),
      0 0 18px rgba(34, 211, 139, 0.48);
  }
}

/* -----------------------------------------------------------------------------
   9) Live block / stats cards / rates
   ----------------------------------------------------------------------------- */
.liveExchanges {
  margin-top: 0;
  padding: var(--space-lg) 0;
}

.liveBar {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(130, 188, 255, 0.26);
  background: linear-gradient(
    180deg,
    rgba(6, 14, 32, 0.58) 0%,
    rgba(5, 10, 27, 0.66) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(210, 235, 255, 0.1),
    inset 0 0 48px rgba(80, 140, 220, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.12) inset,
    0 6px 28px rgba(0, 8, 24, 0.22);
  padding: 16px 20px 2px;
}

.liveBar::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 1px;
  height: 1px;
  pointer-events: none;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(150, 210, 255, 0.48),
    transparent
  );
  box-shadow: 0 0 12px rgba(120, 195, 255, 0.22);
  opacity: 0.72;
  filter: blur(0.35px);
}

.liveLabel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

.liveLabel .liveTitle {
  font-size: clamp(15px, 3.85vw, 18px);
  line-height: 1.28;
  color: rgba(232, 244, 255, 0.96);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-shadow:
    0 0 14px rgba(120, 195, 255, 0.16),
    0 0 28px rgba(90, 170, 240, 0.08);
}

.liveDot {
  width: 22px;
  height: 15px;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(120, 190, 255, 0.22));
}

.liveDot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h2l1-3 2 7 2-9 2 10 2-6 1 1h2' fill='none' stroke='%23b4daf9' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.94;
  transform-origin: center;
  animation: live-wave-pulse 2.6s ease-in-out infinite;
}

.liveItems {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -4px;
  padding: 0 4px 3px;
}

.liveItems::before {
  content: "";
  flex: 0 0 auto;
  height: 1px;
  margin: 0 8px 8px;
  align-self: stretch;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(115, 178, 238, 0.16) 22%,
    rgba(188, 228, 255, 0.58) 50%,
    rgba(115, 178, 238, 0.16) 78%,
    transparent 100%
  );
  box-shadow: 0 0 4px rgba(125, 200, 255, 0.14);
  opacity: 0.94;
}

.liveItem {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 15px 6px;
  min-height: 54px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 2fr 0.75fr 1.5fr 0.75fr;
  column-gap: 12px;
  align-items: center;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(190, 225, 255, 0.045);
  transition: opacity 0.28s ease, background 0.22s ease;
}

.liveItem::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 2;
  width: 22px;
  height: 14px;
  min-width: 22px;
  pointer-events: none;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M1 6h2l1-3 2 7 2-9 2 10 2-6 1 1h2' fill='none' stroke='%23b4daf9' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.88;
  transform-origin: center;
  filter: drop-shadow(0 0 2px rgba(130, 200, 255, 0.22));
  animation: live-wave-pulse-row 2.85s ease-in-out infinite;
}

.liveItem::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(115, 178, 238, 0.16) 22%,
    rgba(188, 228, 255, 0.58) 50%,
    rgba(115, 178, 238, 0.16) 78%,
    transparent 100%
  );
  box-shadow: 0 0 4px rgba(125, 200, 255, 0.14);
  opacity: 0.94;
}

.liveItem:last-child::after {
  display: none;
}

.liveItem.entering {
  opacity: 0.78;
}

.liveItem.entered {
  opacity: 1;
}

.liveItem.is-new {
  background: linear-gradient(
    180deg,
    rgba(110, 170, 245, 0.109) 0%,
    rgba(80, 130, 210, 0.062) 50%,
    transparent 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(200, 230, 255, 0.094),
    inset 0 0 38px rgba(100, 160, 230, 0.078),
    0 0 22px rgba(120, 195, 255, 0.144);
}

.liveItem:hover {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(200, 235, 255, 0.06);
}

.livePair {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  align-self: center;
  text-align: left;
  color: rgba(248, 250, 255, 0.96);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 15px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.liveAmount {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  text-align: center;
  font-weight: 600;
  color: rgba(246, 248, 255, 0.95);
  white-space: nowrap;
  font-size: 15px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.liveMeta {
  grid-column: 4;
  grid-row: 1;
  justify-self: stretch;
  align-self: center;
  text-align: right;
  font-size: 12px;
  color: rgba(175, 195, 225, 0.7);
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

@keyframes live-wave-pulse-row {
  0% {
    opacity: 0.76;
    transform: scale(0.98);
    filter: drop-shadow(0 0 1px rgba(130, 200, 255, 0.12));
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 4px rgba(130, 205, 255, 0.22));
  }
  100% {
    opacity: 0.76;
    transform: scale(0.98);
    filter: drop-shadow(0 0 1px rgba(130, 200, 255, 0.12));
  }
}

@keyframes live-wave-pulse {
  0% {
    opacity: 0.76;
    transform: scale(0.98);
    filter: drop-shadow(0 0 1px rgba(130, 200, 255, 0.12));
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 4px rgba(130, 205, 255, 0.22));
  }
  100% {
    opacity: 0.76;
    transform: scale(0.98);
    filter: drop-shadow(0 0 1px rgba(130, 200, 255, 0.12));
  }
}

/* Плотнее стык к hero: один верхний отступ вместо section + старого statsBlock */
.section.statsBlock {
  padding-top: var(--space-md);
}

.statsGrid {
  --stat-icon-box: 40px;
  /* Единый «кадр» и кегль для всех эмодзи в карточках (эталон — первая карточка, 24px) */
  --stat-icon-glyph-box: 30px;
  --stat-icon-glyph-font: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.statCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow:
    var(--shadow-card),
    0 0 12px rgba(110, 200, 255, 0.1),
    0 0 22px rgba(95, 175, 230, 0.06);
  /* Было 13px сверху/снизу; ~11px даёт заметное снижение высоты карточки (~−5% типичной суммарной), без «прижима» */
  padding-block: 11px;
  padding-inline: 13px;
  width: 90%;
  max-width: 100%;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statRow {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* icon-box: фикс. ширина для всех карточек; глиф по центру через flex (не grid) */
.statIcon {
  flex: 0 0 var(--stat-icon-box);
  width: var(--stat-icon-box);
  min-width: var(--stat-icon-box);
  max-width: var(--stat-icon-box);
  height: var(--stat-icon-box);
  min-height: var(--stat-icon-box);
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Все 4 карточки: один класс, один кегль и одна область рисования — без правил по карточкам */
.statIconGlyph {
  box-sizing: border-box;
  width: var(--stat-icon-glyph-box);
  height: var(--stat-icon-glyph-box);
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: var(--stat-icon-glyph-font);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji",
    sans-serif;
}

.statContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}

.statNumber {
  min-width: 0;
  font-size: calc(30px * 0.9); /* −10% к 30px (~27px) — баланс с .statLabel */
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
}

.statLabel {
  margin: 0;
  padding: 0;
  font-size: calc(12.6px * 1.2); /* +20% к прежним 12.6px (~15.12px) */
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.statMiniUp {
  display: inline-block;
  color: var(--success);
  margin-left: 5px;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: 0.05em;
}

.statMiniDown {
  display: inline-block;
  color: var(--danger);
  margin-left: 5px;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: 0.05em;
}

.ratesBoard {
  padding-top: var(--space-md);
}

.ratesGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.ratesBlock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

.ratesHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  min-width: 0;
}

.ratesHeadLeft {
  flex: 1 1 auto;
  min-width: 0;
}

.ratesHeadRight {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
  padding-left: var(--space-xs);
}

.ratesTitle {
  font-size: 20px;
  margin: 0;
}

.ratesSub {
  font-size: 13px;
  margin: 0;
  line-height: 1.25;
}

.ratesCards {
  display: grid;
  gap: var(--space-sm);
}

.rateCard {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.rateTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
}

.rateName {
  font-size: 14px;
  color: var(--text-muted);
}

.rateDelta {
  font-size: calc(17px * 1.15); /* ещё +15% к предыдущему 17px (~19.55px) */
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  padding-inline-end: 1px; /* микро-воздух у правого края строки */
}

.rateDelta.isUp {
  color: var(--success);
}

.rateDelta.isDown {
  color: var(--danger);
}

.rateDelta.isFlat {
  color: var(--text-muted);
}

.rateVal {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
}

.rateFlashUp {
  color: var(--success);
}

.rateFlashDown {
  color: var(--danger);
}

/* -----------------------------------------------------------------------------
   10) Steps / trust / special cards
   ----------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-sm);
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  display: grid;
  gap: var(--space-xs);
}

.stepRow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stepNum {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(110, 203, 255, 0.18);
  color: var(--accent);
}

.stepTitle {
  font-weight: 700;
}

.trustBlock {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.trustTitle {
  margin-bottom: var(--space-sm);
}

.trustSub {
  margin-top: 0;
  color: var(--text-muted);
}

.trustGrid {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.trustCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: var(--space-sm);
}

.trustIcon {
  font-size: 24px;
}

.trustCardTitle {
  font-weight: 700;
}

.trustCardText {
  margin-top: 4px;
  color: var(--text-muted);
}

.specialBlock {
  margin-top: var(--space-lg);
}

.specialTitle {
  margin-bottom: var(--space-sm);
  text-align: center;
}

.specialGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.specialCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card-soft);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}

.specialIcon {
  font-size: 22px;
}

.specialCardTitle {
  font-weight: 700;
}

.specialCardText {
  margin-top: 4px;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   11) News
   ----------------------------------------------------------------------------- */
.newsHead {
  display: block;
  margin-bottom: var(--space-lg);
}

.newsHead .sectionTitle {
  margin-bottom: 0;
}

.newsTrack {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.newsCard {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.newsImg {
  height: 132px;
  background:
    linear-gradient(135deg, rgba(110, 203, 255, 0.16), rgba(138, 122, 255, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.newsBody {
  padding: var(--space-md);
}

.newsTitle {
  font-weight: 700;
}

.newsDesc {
  margin-top: 6px;
  font-size: 14px;
}

/* -----------------------------------------------------------------------------
   12) Security cards / FAQ
   ----------------------------------------------------------------------------- */
.cards3 {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

.cardTitle {
  font-weight: 700;
  margin-bottom: 6px;
}

.faqItem {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faqItem + .faqItem {
  margin-top: var(--space-sm);
}

.faqQuestion {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 14px var(--space-md);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 17px;
}

.faqArrow {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faqAnswer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-md);
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faqAnswer .muted {
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: var(--space-md);
}

.faqItem.open .faqArrow {
  transform: rotate(180deg);
}

.faqItem.open .faqAnswer {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 4px;
}

/* -----------------------------------------------------------------------------
   13) About / legal row
   ----------------------------------------------------------------------------- */
.aboutCardSection {
  width: min(var(--container-max), calc(100% - 24px));
  margin: 0 auto var(--space-lg);
}

.aboutCard {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 20, 40, 0.88), rgba(7, 12, 24, 0.9));
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.aboutOffice {
  min-height: 280px;
  padding: var(--space-lg) var(--space-lg) calc(var(--space-lg) / 2);
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.34), rgba(5, 10, 20, 0.76)),
    url("images/office.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.aboutOfficeText {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.aboutOfficeText > * {
  max-width: 100%;
}

/* Заголовок — неон-линия — адрес: ровные шаги между элементами */
.aboutOfficeText strong {
  font-size: 20px;
  margin: 0 0 8px;
}

.aboutOfficeDivider {
  width: min(240px, 78%);
  height: 2px;
  margin: 0 0 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(110, 203, 255, 0),
    rgba(110, 203, 255, 0.55) 20%,
    rgba(138, 122, 255, 0.5) 80%,
    rgba(138, 122, 255, 0)
  );
  box-shadow:
    0 0 6px rgba(110, 203, 255, 0.28),
    0 0 14px rgba(110, 203, 255, 0.18),
    0 0 24px rgba(138, 122, 255, 0.12);
  flex-shrink: 0;
}

.aboutOfficeText > span:first-of-type {
  margin-bottom: 8px;
}

.legalRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

/* Полоса кнопок под фото — не внутри .aboutOffice */
.aboutLegalBand {
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  box-sizing: border-box;
}

.aboutCard .legalRow {
  gap: calc(var(--space-sm) / 2);
}

.insideAboutCard .btn {
  min-width: 220px;
}

/* ~70% непрозрачности заливки, светлый текст без opacity на элементе; лёгкий glass */
.insideAboutCard .btn.btnGhost {
  background: rgba(14, 22, 40, 0.7);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.insideAboutCard .btn.btnGhost:hover {
  background: rgba(14, 22, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.28);
}

/* -----------------------------------------------------------------------------
   14) Modals / toast
   ----------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.58);
}

.modal.open {
  display: flex;
}

.modalSheet {
  width: min(560px, 100%);
  max-height: min(90vh, calc(100vh - 60px));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: #0a1325;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Только «Заявка на обмен»: ~−20% к ширине листа (560px → ~448px), центр через .modal unchanged */
#applyModal .modalSheet {
  width: min(calc(560px * 0.8), 100%);
}

.modalHead {
  position: relative;
  padding: 14px 58px 12px var(--space-md);
  border-bottom: 1px solid var(--border);
}

.modalTitle {
  font-size: 22px;
  font-weight: 700;
}

.modalSub {
  margin-top: 6px;
  font-size: 13px;
}

.iconBtn {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.iconBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modalBody {
  padding: var(--space-md);
  overflow-y: auto;
  display: grid;
  gap: var(--space-sm);
}

/*
 * «Заявка на обмен» — форма #applyForm.applyForm (только эта модалка).
 * Вертикаль: label → control = margin-bottom у .label (= --apply-label-gap, 7px).
 * Между блоками: margin-bottom у .applyFieldGroup (= --apply-block-gap).
 * Кнопка: margin-top и padding-bottom формы = --apply-submit-pad (симметрия).
 */
#applyModal #applyForm.applyForm.modalBody {
  --apply-label-gap: 7px;
  --apply-block-gap: 10px;
  --apply-submit-pad: var(--space-md);

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: var(--space-md) var(--space-md) var(--apply-submit-pad);
  overflow-y: auto;
}

#applyModal #applyForm.applyForm .applyFieldGroup {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0 0 var(--apply-block-gap);
  padding: 0;
  min-width: 0;
}

#applyModal #applyForm.applyForm .applyFieldGroup--last {
  margin-bottom: 0;
}

#applyModal #applyForm.applyForm .label,
#applyModal #applyForm.applyForm label.label {
  display: block;
  margin: 0 0 var(--apply-label-gap);
  padding: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text-muted);
}

#applyModal #applyForm.applyForm .applyFormControl {
  display: block;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: var(--input-height);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.72);
  font: inherit;
  color: inherit;
  line-height: 1.25;
  outline: none;
}

#applyModal #applyForm.applyForm textarea.applyFormControl {
  resize: vertical;
  min-height: var(--input-height);
}

#applyModal #applyForm.applyForm .applyFormControl:focus {
  border-color: rgba(110, 203, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(110, 203, 255, 0.18);
}

#applyModal #applyForm.applyForm .applyExchangeGrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
}

#applyModal #applyForm.applyForm .applyExchangeCol {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-width: 0;
}

#applyModal #applyForm.applyForm .applyGiveStrip,
#applyModal #applyForm.applyForm .applyGetStrip {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--input-height);
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 10, 20, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#applyModal #applyForm.applyForm .applyGiveStrip:focus-within,
#applyModal #applyForm.applyForm .applyGetStrip:focus-within {
  border-color: rgba(110, 203, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(110, 203, 255, 0.18);
}

#applyModal #applyForm.applyForm .applyGiveAmount {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: none;
  outline: none;
  min-height: calc(var(--input-height) - 2px);
  font: inherit;
  color: inherit;
  line-height: 1.25;
  box-sizing: border-box;
}

#applyModal #applyForm.applyForm .applyGiveAmount:focus {
  box-shadow: none;
}

#applyModal #applyForm.applyForm .applyGiveCurr {
  width: auto;
  min-width: 120px;
  flex-shrink: 0;
  align-self: stretch;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  min-height: calc(var(--input-height) - 2px);
  font: inherit;
  color: inherit;
  line-height: 1.25;
  box-sizing: border-box;
}

#applyModal #applyForm.applyForm .applyGiveCurr:focus {
  box-shadow: none;
}

#applyModal #applyForm.applyForm .applyGetCurr {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  min-height: calc(var(--input-height) - 2px);
  font: inherit;
  color: inherit;
  line-height: 1.25;
  box-sizing: border-box;
}

#applyModal #applyForm.applyForm .applyGetCurr:focus {
  box-shadow: none;
}

#applyModal #applyForm.applyForm .applyApprox {
  margin: var(--apply-label-gap) 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text-muted);
  opacity: 0.7;
}

#applyModal #applyForm.applyForm .applySubmitRow {
  margin-top: var(--apply-submit-pad);
  margin-bottom: 0;
  padding: 0;
  display: block;
}

#applyModal #applyForm.applyForm .applySubmitRow .btn {
  margin: 0;
}

#confirmModal .modalHead > div:first-child {
  text-align: center;
}

#applyModal .modalHead > div:first-child {
  text-align: center;
}

.confirmBox {
  display: grid;
  gap: var(--space-md);
}

.legalText {
  font-size: 14px;
  line-height: 1.5;
}

.legalText h3 {
  margin: 12px 0 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.96);
  color: var(--text-main);
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* -----------------------------------------------------------------------------
   15) FAB / support
   ----------------------------------------------------------------------------- */
.fabWrapper {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.fabButtons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fabWrapper.active .fabButtons {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fabBtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 18, 34, 0.95);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
}

.mailBtn {
  font-size: 20px;
}

.fabMain {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #071021;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}

.fabIcon {
  font-size: 18px;
  line-height: 1;
}

/* -----------------------------------------------------------------------------
   16) Footer
   ----------------------------------------------------------------------------- */
.siteFooter {
  padding: var(--space-xl) 0;
}

.footerInner {
  width: min(var(--container-max), calc(100% - 24px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: center;
  font-size: 13px;
}

.footerLine {
  width: 100%;
}

@media (max-width: 767px) {
  body {
    /* Mobile-safe background: keep desktop mood, reduce top over-brightness */
    background:
      linear-gradient(180deg, rgba(2, 8, 24, 0.68) 0%, rgba(2, 6, 18, 0.82) 58%, rgba(2, 5, 14, 0.94) 100%),
      url("images/deep-sea-bg.png") center top / cover no-repeat scroll;
  }

  .modal {
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  .modalSheet {
    touch-action: pan-y;
  }

  .modalBody {
    overscroll-behavior: contain;
  }

  .container,
  .aboutCardSection,
  .footerInner {
    width: min(var(--container-max), calc(100% - 20px));
  }

  .headerRow {
    min-height: 78px;
    gap: 8px;
  }

  .brandLogo {
    width: 44px;
    height: 44px;
  }

  .brandName {
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .navDesktop {
    display: none;
  }

  .headerActions {
    margin-left: auto;
    gap: 8px;
  }

  .headerActions .btn,
  .headerActions .langBtn {
    min-height: 36px;
    height: 36px;
  }

  .headerActions #openApply {
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }

  .headerActions #openMenu {
    width: 36px;
    min-width: 36px;
    font-size: 16px;
  }

  .headerActions .langBtn {
    padding: 0 8px;
    gap: 4px;
  }

  .headerActions .langBtn .langCode {
    font-size: 10px;
  }

  .heroGrid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .heroGrid .widget {
    width: 100%;
    max-width: 100%;
  }

  .heroTitle {
    font-size: 38px;
  }

  .statsHeaderTitle,
  .ratesBoard .sectionTitle,
  #how .sectionTitle,
  .trustTitle,
  #security .sectionTitle,
  #faq .sectionTitle {
    font-size: 25px;
    line-height: 1.2;
  }

  .trustTitle {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
  }

  .trustSub {
    font-size: 14px;
  }

  .statsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .statCard {
    width: 100%;
    min-height: 112px;
    height: 100%;
    align-items: stretch;
  }

  .ratesGrid,
  .cards3,
  .trustGrid,
  .specialGrid {
    grid-template-columns: 1fr;
  }

  .aboutLegalBand {
    flex-wrap: wrap;
    padding: var(--space-sm) var(--space-md);
  }

  .insideAboutCard .btn {
    min-width: 0;
    width: 100%;
  }

  #openApply2 {
    width: 100%;
  }

  .fabMain {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 800px;
  }

  .fabMain .fabIcon {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .headerRow {
    min-height: 72px;
    gap: 6px;
  }

  .brandLogo {
    width: 40px;
    height: 40px;
  }

  .brand {
    gap: 3px;
  }

  .brandName {
    display: block;
    font-size: 16px;
  }

  .headerActions {
    gap: 6px;
  }

  .headerActions #openApply {
    padding: 0 10px;
    font-size: 13px;
  }

  .headerActions .langBtn .langCode {
    display: inline;
    font-size: 9px;
  }

  .heroGrid {
    gap: var(--space-sm);
  }

  .statsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .statCard {
    padding-block: 10px;
    padding-inline: 10px;
    min-height: 104px;
  }

  .ratesBlock {
    padding: var(--space-sm);
  }

  .rateVal {
    font-size: 20px;
  }

  .widgetBody {
    padding: 8px 12px 16px;
  }

  .aboutCardSection,
  .footerInner {
    width: calc(100% - 16px);
  }
}

@media (max-width: 340px) {
  .brandName {
    display: none;
  }
}
