/* ============================================================
   BAKSTER — Main Stylesheet  (Mobile-first)
   Breakpoints: 375 / 768 / 1280px
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-is-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  line-height: 1;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    opacity var(--transition);
}

.btn--sm {
  padding: 12px 24px;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Lime accent — DARK text */
.btn--accent {
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: var(--fw-semi);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-btn);
}

/* Dark filled */
.btn--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  font-weight: var(--fw-medium);
}

.btn--dark:hover {
  opacity: .84;
}

/* White filled (on dark bg) */
.btn--white {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
}

.btn--white:hover {
  opacity: .9;
}

/* Ghost on LIGHT bg (header) */
.btn--ghost-dark {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-medium);
}

.btn--ghost-dark:hover {
  background: rgba(0, 0, 0, .05);
}

/* Ghost on DARK bg (footer, menu) */
.btn--ghost-light {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid var(--color-border);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .07);
}

/* Outline light bg */
.btn--outline-dark {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid rgba(0, 0, 0, .14);
  font-weight: var(--fw-medium);
}

.btn--outline-dark:hover {
  background: rgba(0, 0, 0, .04);
}

/* Outline dark bg */
.btn--outline-light {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid var(--color-border);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, .07);
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  letter-spacing: -.01em;
}

.logo--light .logo__text {
  color: var(--color-text-inverse);
}

/* ── Section helpers ──────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-10);
}

.section-header--center {
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, var(--fs-h2));
  font-weight: var(--fw-semi);
  line-height: var(--lh-h2);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-h2);
}

.section-title--light {
  color: var(--color-text-inverse);
}

.section-subtitle {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

.section-subtitle--light {
  color: var(--color-text-secondary);
}


/* ══════════════════════════════════════════════
   TOPBAR — announcement strip
══════════════════════════════════════════════ */
.topbar {
  background: var(--color-topbar);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
}

.topbar__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-online);
  animation: pulse-online 2.5s ease-in-out infinite;
}

@keyframes pulse-online {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
  }
}

.topbar__text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 1);
  letter-spacing: .02em;
}


/* ══════════════════════════════════════════════
   HEADER — white background
══════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-light);
  border-bottom: 1px solid #F1F4F8;
  margin-bottom: var(--space-5);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  padding-inline: 40px;
}

/* Telegram btn always visible on mobile — icon only, left of burger */
.header__tg-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
  gap: 0;
  flex-shrink: 0;
}

.header__tg-btn svg {
  width: 22px;
  height: 22px;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, .05);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav — hidden on mobile */
.header__nav {
  display: none;
}

/* Desktop header actions — hidden on mobile */
.header__actions {
  display: none;
}


/* ══════════════════════════════════════════════
   MOBILE MENU OVERLAY
══════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--topbar-h) + var(--header-h));
  z-index: 99;
  padding: 0 16px 16px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

/* Backdrop */
.mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  top: calc(var(--topbar-h) + var(--header-h));
  background: rgba(5, 8, 22, .6);
  backdrop-filter: blur(4px);
  z-index: -1;
}

/* Menu card */
.mobile-menu__card {
  background: var(--color-bg-dark);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow-modal);
}

/* Menu top: logo + close */
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--color-text-inverse);
  transition: background var(--transition);
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, .14);
}

/* Nav links */
.mobile-menu__nav {
  padding: var(--space-5) var(--space-6) var(--space-2);
}

.mobile-menu__nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

/* wp_nav_menu outputs <li class="menu-item"><a> — no custom class on the <a> */
.mobile-menu__nav-list .menu-item a {
  display: block;
  padding: var(--space-3) 0;
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: var(--color-text-inverse);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}

.mobile-menu__nav-list .menu-item a:hover,
.mobile-menu__nav-list .current-menu-item>a {
  color: var(--color-accent);
}

/* Auth buttons */
.mobile-menu__auth {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6) var(--space-3);
}

.mobile-menu__auth .btn {
  flex: 1;
  justify-content: center;
}

/* CTA */
.mobile-menu__cta {
  padding: var(--space-2) var(--space-6) var(--space-5);
}

/* Stats */
.mobile-menu__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.mobile-menu__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.mobile-menu__stat-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.mobile-menu__stat-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-online);
  flex-shrink: 0;
}

.mobile-menu__stat-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text-inverse);
}

/* Mini calculator in menu */
.mobile-menu__calc {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.mobile-menu__calc-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-4);
}


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  background: var(--color-bg-light);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.hero__layout {
  display: flex;
  flex-direction: column;
}

/* Left: content */
  .hero__content {
    flex: 1 1 55%;
    max-width: 712px;
    padding-inline: 48px;
    padding-block: var(--space-20);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align left edge with container, clamped so it never goes negative */
    padding-left: max(48px, calc((100vw - var(--container-max)) / 2 + 48px));
    align-items: center;
    gap: var(--space-14);
  }
/* Hero title — Figma Desktop/Hero: 62px Semibold -0.02em */
  .hero__text {
    text-align: center;
  }
.hero__title {
  font-size: clamp(40px, 6vw, var(--fs-hero));
  /* 40–82px */
  font-weight: var(--fw-semi);
  line-height: var(--lh-hero);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-hero);
  text-align: center;
}

.hero__subtitle {
  margin-top: var(--space-8);
  font-size: var(--fs-lg);
  color: var(--color-text-primary);
  line-height: var(--lh-normal);
}

.hero__cta {
  margin-top: var(--space-10);
  padding: 6px 6px 6px 24px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  gap: var(--space-3);
  max-width: 269px;
  justify-content: space-between;
}

.hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent-text);
  flex-shrink: 0;
}

/* Stats row */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero__stat-item {
  display: flex;
  gap: 3px;
  border-radius: 8px;
  background-color: #F6F7FB;
  padding: 8px 24px;
  max-width: 352px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero__stat-item>span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__stat-dot {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-online);
  border: 6px solid #fff;
  flex-shrink: 0;
}

.hero__stat-label {
  font-size: 16px;
  color: #050816;
  font-weight: var(--fw-semi);
  white-space: nowrap;
}

/* prevent any inherited ::before dots from leaking into stats */
.hero__stat-label::before,
.hero__stat-item::before {
  content: none !important;
  display: none !important;
}

.hero__stat-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.hero__stat-sep {
  width: 1px;
  height: 32px;
  background: var(--color-border-medium);
  flex-shrink: 0;
  align-self: center;
}

/* Right: calculator panel */
.hero__panel {
  background: var(--color-bg-hero-right);
  padding: var(--space-8) var(--space-5);
  border-radius: var(--radius-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 954px;
}

/* ── Calculator card ── */
.calculator {
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}

.calculator__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-5);
}

.calculator__row {
  position: relative;
}

.calculator__field {
  margin-bottom: var(--space-2);
}

.calculator__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.calculator__input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.calculator__input-wrap:focus-within {
  border-color: var(--color-accent);
}

.calculator__input {
  flex: 1;
  padding: 12px var(--space-4);
  font-size: 20px;
  font-weight: var(--fw-semi);
  color: var(--color-text-inverse);
  background: transparent;
  min-width: 0;
}

.calculator__input::-webkit-outer-spin-button,
.calculator__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.calculator__input[type=number] {
  -moz-appearance: textfield;
}

.calculator__currency {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-left: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text-inverse);
  white-space: nowrap;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background var(--transition);
}

.calculator__currency:hover {
  background: rgba(255, 255, 255, .06);
}

.currency-flag {
  font-size: 1.1em;
  line-height: 1;
}

/* Swap divider */
.calculator__swap-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.calculator__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.calculator__swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: rgba(255, 255, 255, .6);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.calculator__swap:hover {
  background: var(--color-accent);
  color: var(--color-accent-text);
  transform: rotate(180deg);
}

.calculator__rate {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .3);
  text-align: right;
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
}

.calculator__submit {
  padding: 14px 24px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-lg);
}

.calculator__note {
  margin-top: var(--space-3);
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  text-align: center;
}


/* ══════════════════════════════════════════════
   HOME EXCHANGE CALCULATOR  (Figma 140:5263)
══════════════════════════════════════════════ */

.homechange {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* Outer dark card */
.homechange__card {
  background: #050816;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

/* ── Header: progress bar + title ── */
.homechange__head {
  margin-bottom: 24px;
}

.homechange__prog {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.homechange__step {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.homechange__step--on {
  background: var(--color-accent);
}

.homechange__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 24px;
  margin: 0;
}

/* ── Disclaimer footer ── */
.homechange__note {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* ══ Plugin HTML reset ══ */
.homechange .xchange_type_list,
.homechange .xchange_type_list_ins,
.homechange .xtl_table_wrap,
.homechange .xtl_table_wrap_ins {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.homechange .xtl_html_wrap {
  position: relative;
  width: 100%;
}

/* Hide loading spinner */
.homechange .xtl_html_abs.js_loader {
  display: none;
}

.homechange #js_html {
  width: 100%;
}

/* ══ Table body → vertical flex column ══ */
.homechange .xtl_table_body {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-bottom: 12px;
  overflow: visible;
}

.homechange .clear {
  display: none !important;
}

/* ══ Give / Get exchange cards ══ */
.homechange .xtl_left_col,
.homechange .xtl_right_col {
  background: #15182B;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.homechange .xtl_left_col {
  padding-bottom: 28px;  /* extra space so swap button doesn't overlap content */
}

.homechange .xtl_right_col {
  padding-top: 28px;  /* 16 + 12 extra to clear the swap button overlap */
  overflow: hidden;
}

/* ── Swap button row (height:0 so button overlaps both cards) ── */
.homechange .xtl_center_col {
  height: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.homechange .xtl_change {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #1A1F33;
  border: 12px solid var(--color-bg-dark);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  top: -22px;     /* straddles the boundary: 22px into give card, 22px into get card */
  transition: background var(--transition), transform var(--transition);
}

.homechange .xtl_change:hover {
  background: var(--color-accent);
  transform: rotate(180deg);
}

/* Swap icon via SVG background */
.homechange .xtl_change::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.51222 1.82967C6.94641 1.45074 6.99121 0.791565 6.61228 0.35737C6.23335 -0.0768262 5.57418 -0.121624 5.13998 0.257311L0.357401 4.43122C0.0296873 4.71722 -0.0862405 5.17651 0.0664861 5.58379C0.219213 5.99106 0.608554 6.26087 1.04352 6.26087H14.9565C15.5328 6.26087 16 5.79369 16 5.2174C16 4.6411 15.5328 4.17392 14.9565 4.17392H3.82611L6.51222 1.82967Z' fill='white'/%3E%3Cpath d='M1.04352 11.8261L12.1739 11.8261L9.48778 14.1703C9.05359 14.5493 9.00879 15.2084 9.38772 15.6426C9.76666 16.0768 10.4258 16.1216 10.86 15.7427L15.6426 11.5688C15.9703 11.2828 16.0862 10.8235 15.9335 10.4162C15.7808 10.0089 15.3914 9.73913 14.9565 9.73913H8L1.04352 9.73913C0.467226 9.73913 4.76615e-05 10.2063 4.77444e-05 10.7826C4.78273e-05 11.3589 0.467226 11.8261 1.04352 11.8261Z' fill='white'/%3E%3C/svg%3E");
}

.homechange .xtl_change:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.51222 1.82967C6.94641 1.45074 6.99121 0.791565 6.61228 0.35737C6.23335 -0.0768262 5.57418 -0.121624 5.13998 0.257311L0.357401 4.43122C0.0296873 4.71722 -0.0862405 5.17651 0.0664861 5.58379C0.219213 5.99106 0.608554 6.26087 1.04352 6.26087H14.9565C15.5328 6.26087 16 5.79369 16 5.2174C16 4.6411 15.5328 4.17392 14.9565 4.17392H3.82611L6.51222 1.82967Z' fill='%23000000'/%3E%3Cpath d='M1.04352 11.8261L12.1739 11.8261L9.48778 14.1703C9.05359 14.5493 9.00879 15.2084 9.38772 15.6426C9.76666 16.0768 10.4258 16.1216 10.86 15.7427L15.6426 11.5688C15.9703 11.2828 16.0862 10.8235 15.9335 10.4162C15.7808 10.0089 15.3914 9.73913 14.9565 9.73913H8L1.04352 9.73913C0.467226 9.73913 4.76615e-05 10.2063 4.77444e-05 10.7826C4.78273e-05 11.3589 0.467226 11.8261 1.04352 11.8261Z' fill='%23000000'/%3E%3C/svg%3E");
}

/* ── Card titles (full-width first row) ── */
.homechange .xtl_table_title {
  flex: 0 0 100%;
  order: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.homechange .xtl_table_title_ins {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 20px;
}

/* ── Amount input — in column flex context (before restructure) ── */
.homechange .xtl_input_wrap {
  flex: 1;
  min-width: 0;
  order: 1;
}

/* Override order when input lives inside cc-selico-full */
.homechange .cc-selico-full > .xtl_input_wrap {
  order: 0;
}

.homechange .xtl_input_wrap input[type=text] {
  display: block;
  width: 100%;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  outline: none;
  padding: 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--font-family);
  min-width: 0;
}

/* ── Hide commission row ── */
.homechange .xtl_commis_wrap {
  display: none !important;
}

/* ── Currency badge — base state (before JS restructure) ── */
.homechange .xtl_selico_wrap {
  flex: 0 0 auto;
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--transition);
  align-self: center;
}

.homechange .xtl_selico_wrap:hover {
  background: #252b45;
}

/* ── After JS restructure: full-width row  [INPUT | PILL] ── */
.homechange .xtl_selico_wrap.cc-selico-full {
  flex: 0 0 100%;
  border-radius: 12px;
  cursor: default;
  padding: 10px 10px 10px 16px;
  gap: 8px;
  order: 1;
}

.homechange .xtl_selico_wrap.cc-selico-full:hover {
}

/* Input inside the restructured row */
.homechange .cc-selico-full .xtl_input_wrap {
  flex: 1;
  min-width: 0;
  order: 0;
  position: relative;
}

/* ── Currency pill (icon + code + chevron, clickable) ─── */
.cc-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 8px 10px 8px 10px;
  transition: background var(--transition);
}

.cc-pill:hover,
.cc-pill.open {
  background: rgba(255, 255, 255, 0.14);
}

.cc-pill .cc-chevron {
  transition: transform 0.2s;
}

.cc-pill.open .cc-chevron {
  transform: rotate(180deg);
}

.homechange .xtl_ico_wrap {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.homechange .xtl_ico.currency_logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.homechange .xtl_select_wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.homechange .xtl_select_wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 18px 0 0;
  font-family: var(--font-family);
  outline: none;
  line-height: 24px;
}

.homechange .xtl_select_wrap::after {
  /* chevron now rendered via JS cc-chevron element */
  display: none;
}

/* ── Rate row (full-width, after amount/currency, styled as Details box) ── */
.homechange .xtl_line.xtl_exchange_rate {
  order: 3;                         /* after title(auto), input(1), selico(2) */
  flex: 0 0 calc(100% + 32px);      /* extend past the 16px padding on each side */
  margin: 12px -16px -16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0;                      /* hide the "Курс:" label text node */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  box-sizing: border-box;
}

.homechange .xtl_line.xtl_exchange_rate .js_course_html {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.homechange .xtl_line.xtl_exchange_rate::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 18l6-6-6-6' stroke='rgba(255,255,255,0.3)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Hide reserve row */
.homechange .xtl_line.xtl_exchange_reserve {
  display: none;
}

/* ══ Submit button ══ */
.homechange .xtl_submit_wrap {
  margin-top: 12px;
}

.homechange .xtl_submit_ins {
  display: block;
}

.homechange .xtl_submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background var(--transition), color var(--transition);
  font-size: 0;  /* hide "Продолжить" text */
}

.homechange .xtl_submit::before {
  content: 'Обменять';
  font-size: 16px;
  font-family: var(--font-family);
}

.homechange .xtl_submit:hover {
  background: #f0f0f0;
}

/* ══════════════════════════════════════════════
   CALCULATOR — Custom currency dropdown (cc-*)
══════════════════════════════════════════════ */

/* Code label (replaces full currency name in native select) */
.cc-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 24px;
  white-space: nowrap;
}

/* Chevron icon appended to pill */
.homechange .xtl_selico_wrap .cc-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 2px;
  transform: rotate(-90deg);
}
.homechange .xtl_selico_wrap .open .cc-chevron {
  transform: rotate(0deg);
}

/* Accent colour for rate numbers */
.cc-accent {
  color: var(--color-accent, #caff43);
}

/* ── Min / Max chips ─────────────────────────────────────── */
.cc-minmax {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.cc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #1a1f33;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s;
  user-select: none;
}

.cc-chip:hover {
  background: #252b45;
}

/* ── Error hint inside cc-selico-full ───────────────────── */
/* Compact white text; doesn't expand the block noticeably  */
.homechange .cc-selico-full .js_error {
  display: none;
  padding: 3px 0 0;
  font-size: 11px;
  line-height: 1;
}

.homechange .cc-selico-full .xtl_input_wrap.error .js_error {
  display: block;
  position: absolute;
  bottom: -4px;
}

.homechange .cc-selico-full .js_error .js_amount {
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.15s;
}

.homechange .cc-selico-full .js_error .js_amount:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Dropdown panel (black, absolute — scrolls with page) ─── */
.cc-panel {
  position: absolute;
  z-index: 200;
  background: #252839;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.cc-panel.cc-panel--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Search input */
.cc-panel__search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  outline: none;
  font-family: var(--font-family);
  transition: border-color 0.18s;
}

.cc-panel__search::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.cc-panel__search:focus {
  border-color: rgba(202, 255, 67, 0.4);
}

/* Tabs */
.cc-panel__tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.cc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  font-family: var(--font-family);
}

.cc-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cc-tab.cc-tab--active {
  background: var(--color-accent, #caff43);
  color: #050816;
}

/* List */
.cc-panel__list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.cc-panel__list::-webkit-scrollbar {
  width: 4px;
}
.cc-panel__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* Currency item */
.cc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s;
}

.cc-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.cc-item.cc-item--active {
  background: rgba(202, 255, 67, 0.1);
}

.cc-item--empty {
  cursor: default;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  padding: 16px 12px;
}

.cc-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.cc-item__code {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-item__name {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Currency groups in dropdown list */
.cc-group + .cc-group {
  margin-top: 4px;
}

.cc-group__title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  user-select: none;

}

/* ══════════════════════════════════════════════
   FEATURES — Bento grid
══════════════════════════════════════════════ */
.features {
  background: var(--color-bg-dark);
  padding: 156px 80px 94px 80px;
  max-width: 1880px;
  margin: auto;
  border-radius: var(--radius-3xl);
}

.features__header {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto var(--space-22);
}

.features__title {
  font-size: clamp(32px, 5.5vw, 82px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.features__subtitle {
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* Bento grid — single col on mobile, 3-col on desktop */
.features__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ── Base card ── */
.feat-card {
  background: var(--color-bg-dark-soft);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Small cards (business / personal) */
.feat-card--sm {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 200px;
}

/* Tall cards (exchange / custom) */
.feat-card--tall {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

/* Outline card (custom solutions) */
.feat-card--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card text block */
.feat-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.feat-card--sm .feat-card__body {
  flex: 1;
}

.feat-card__title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--color-text-inverse);
}

.feat-card__text {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* Arrow button on small cards */
.feat-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 4px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.feat-arrow-btn:hover {
  opacity: 0.82;
}

/* Exchange illustration box */
.feat-exchange-box {
  background: #050816;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-top: 24px;
  min-height: 180px;
}

.feat-exchange-svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Custom solutions illustration */
.feat-custom-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 160px;
  margin-top: 24px;
  overflow: hidden;
}

.feat-custom-glow {
  position: absolute;
  background-image: url('../images/feat-custom-glow.png');
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 0 96px;
}

.feat-custom-icon-box {
  position: relative;
  z-index: 1;
  width: 133px;
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:auto;  
}

/* Telegram CTA pill (inside custom card) */
.feat-tg-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 8px;
  padding: 6px 6px 6px 24px;
  text-decoration: none;
  margin-top: 20px;
  transition: opacity var(--transition);
}

.feat-tg-pill:hover {
  opacity: 0.9;
}

.feat-tg-pill__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #050816;
  white-space: nowrap;
}

.feat-tg-pill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 4px;
}



/* ══════════════════════════════════════════════
   EXCHANGE — currency exchange & transfers
══════════════════════════════════════════════ */
.exch-section {
  background: var(--color-bg-light);
  padding-block: var(--space-16) var(--space-20);
}

/* Head: title + subtitle + CTA stacked & centered */
.exch-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  margin-bottom: 64px;
}

.exch-section__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.exch-section__title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(36px, 6vw, 82px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  max-width: 982px;

}

.exch-section__subtitle {
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-primary);
  max-width: 480px;
}

/* CTA: dark pill with lime arrow */
.exch-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-dark);
  border-radius: 8px;
  padding: 6px 6px 6px 24px;
  width: 269px;
  height: 56px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.exch-cta-btn:hover {
  opacity: 0.85;
}

.exch-cta-btn__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #ffffff;
  white-space: nowrap;
}

.exch-cta-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 4px;
}

/* Cards */
.exch-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.exch-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border: 1px solid #f1f4f8;
  border-radius: 32px;
  background: var(--color-bg-light);
}

/* Image / illustration area */
.exch-card__media {
  background: #f6f7fb;
  border-radius: 24px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exch-card__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card text */
.exch-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exch-card__title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.exch-card__text {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-primary);
}




/* ══════════════════════════════════════════════
   FAQ / ACCORDION
══════════════════════════════════════════════ */
.faq {
  background: #ffffff;
  padding-block: 120px;
}

.faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 90px;
  max-width: 1140px;
  margin: auto;
}

.faq__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.faq__title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 600;
  line-height: 1.025;
  letter-spacing: -0.01em;
  color: #050816;
}

.faq__subtitle {
  font-size: 20px;
  line-height: 28px;
  color: #050816;
  max-width: 390px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.accordion__item {
  background: #f6f7fb;
  border-radius: 8px;
  overflow: hidden;
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #050816;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--transition);
}

.accordion__summary:hover {
  background: rgba(0, 0, 0, .03);
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::marker {
  display: none;
}

.accordion__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.accordion__item[open] .accordion__icon {
  transform: rotate(90deg);
}

.accordion__body {
  padding: 0 32px 32px;
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: #050816;
  border-radius: 32px;
  margin: 0 10px 10px;
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 40px;
}

.footer__top-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer__tagline {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__nav-list a,
.footer__link {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #ffffff;
  transition: opacity var(--transition);
}

.footer__nav-list a:hover,
.footer__link:hover {
  opacity: 0.7;
}

.footer__auth {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__auth .btn--white {
  border: 1px solid #f1f4f8;
}

.footer__auth .btn--dark {
  border: 1px solid #1a1f33;
}

.footer__col-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer__disclaimer {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 416px;
}

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer__contact-left {
  flex: 1 1 auto;
}

.footer__email {
  display: block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(18px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: opacity var(--transition);
}

.footer__email:hover {
  opacity: 0.7;
}

.footer__support-note {
  font-size: 16px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.footer__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .35);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  transition: color var(--transition), border-color var(--transition);
}

.footer__badge:hover {
  color: rgba(255, 255, 255, .7);
  border-color: rgba(255, 255, 255, .25);
}

.footer__partner {
  display: flex;
  align-items: center;
}

.footer__partner-logo {
  height: 24px;
  width: auto;
  max-width: 140px;
  
}

.footer__partner a:hover .footer__partner-logo {
  opacity: 0.85;
}

.footer__badge-img {
  max-height: 24px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

.footer__totop {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}

.footer__totop:hover {
  opacity: 0.85;
}

.footer__bar {
  background: #0d1021;
  padding-block: 16px;
}

.footer__copy {
  font-size: 12px;
  line-height: 16px;
  color: rgba(246, 247, 251, 0.4);
}

.footer__tg-mobile {
  display: none;
}

.footer__tg-mobile-icon {
  background: #050816;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}



/* ══════════════════════════════════════════════
   LANGUAGE SWITCHER — click-only dropdown
══════════════════════════════════════════════ */
.header__lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header__lang .langlist_div {
  position: relative;
}

/* Trigger button */
.header__lang .langlist_title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-medium);
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--fs-normal);
  font-weight: var(--fw-semi);
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.header__lang .langlist_title:hover {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .2);
}

/* Chevron */
.header__lang .langlist_title::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='rgba(0,0,0,.45)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* Open state — button */
.header__lang .langlist_div.is-open .langlist_title {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .22);
}

.header__lang .langlist_div.is-open .langlist_title::after {
  transform: rotate(180deg);
}

/* Dropdown panel — hidden by default, shown only via .is-open (JS click) */
.header__lang .langlist_ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  overflow: hidden;
  z-index: 300;
}

.header__lang .langlist_div.is-open .langlist_ul {
  display: block;
}

/* Language option rows */
.header__lang .langlist_li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-medium);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.header__lang .langlist_li:hover {
  background: rgba(0, 0, 0, .04);
  color: var(--color-text-primary);
}

.header__lang .langlist_li.active {
  color: var(--color-text-primary);
  font-weight: var(--fw-semi);
  background: rgba(202, 255, 67, .15);
}

.header__lang .langlist_liimg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.header__lang .langlist_liimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   ORDER STATUS PAGE  /hst_*
   ════════════════════════════════════════════════════════════ */

.exchange_status_html {
  background: #fff;
  padding: 40px 10px 80px;
}

.exchange_status_html .notice_message { display: none !important; }

/* ── Auto status layout ──────────────────────────────────── */
.exch-status-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── Static picker (read-only) ───────────────────────────── */
.exch-picker--static {
  cursor: default;
}

.exch-picker--static .xd-amount {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.exch-status__amount {
  font-size: 24px;
  font-weight: 500;
  color: #050816;
  letter-spacing: -0.24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-trigger--static {
  pointer-events: none;
  cursor: default;
}

.ep-trigger__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* ── Field lines below picker ────────────────────────────── */
.exch-status-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.exch-status-fields .block_xchdata_line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  gap: 8px;
  color: #050816;
}

.exch-status-fields .block_xchdata_line span {
  color: #667085;
  flex-shrink: 0;
}

/* ── Personal data section ───────────────────────────────── */
.exch-status-personal .block_persdata_title { display: none !important; }

.exch-status-personal .block_persdata_info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 0 4px;
}

.exch-status-personal .block_persdata_line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #050816;
}

.exch-status-personal .block_persdata_line span {
  font-size: 12px;
  font-weight: 400;
  color: #667085;
}

.exch-status-personal .block_persdata,
.exch-status-personal .block_persdata_ins {
  display: contents;
}

/* ── Submit button & checkbox (auto status) ──────────────── */
.block_checked_rule label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #667085;
  line-height: 1.4;
  cursor: pointer;
}

.block_checked_rule input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #caff43;
  cursor: pointer;
}

.block_submitbutton { width: 100%; }

.block_submitbutton input[type="submit"] {
  width: 100%;
  height: 56px;
  background: #caff43;
  color: #050816;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  cursor: pointer;
  transition: background 0.15s;
}

.block_submitbutton input[type="submit"]:hover:not(:disabled) { background: #b8f020; }
.block_submitbutton input[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Non-auto status page (new, payed, done…) ────────────── */
.exch-new-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.exch-progress {
  flex-shrink: 0;
  width: 415px;
  background: #F6F7FB;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exch-progress__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 8px;
  cursor: default;
  background-color: #fff;
}



.exch-progress__step--active { background: #050816; }
.exch-progress__step--active .exch-progress__label { color: #fff; }

.exch-progress__label {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
  line-height: 1;
}

.exch-progress__line { display: none; }

.exch-new-layout .exch-left-card {
  flex: 1;
  min-width: 0;
}

.exch-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.exch-order-header__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #050816;
  word-break: break-all;
}

.exch-order-header__date {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-top: 4px;
}

.exch-copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #667085;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  transition: color 0.15s;
}

.exch-copy-btn:hover { color: #050816; }

.exch-copy-btn.copied {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.exch-copy-btn svg {
  transition: transform 0.15s ease;
}

.exch-copy-btn.copied svg {
  transform: scale(1.2);
}

.exch-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.exch-ps-item .exch-picker.exch-picker--static { gap: 10px; }

.exch-ps__name {
  font-size: 14px;
  font-weight: 500;
  color: #050816;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exch-col-label {
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  margin: 0 0 8px 0;
}

.exch-order-accounts { margin-top: 16px; }
.exch-order-accounts:empty { display: none; }

.exch-float-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f6f7fb;
  border-radius: 12px;
}

.exch-float-note svg { flex-shrink: 0; margin-top: 1px; }

.exch-float-note p {
  font-size: 12px;
  color: #667085;
  line-height: 1.5;
  margin: 0;
}

.exch-new-layout .exch-right-panel {
  flex-shrink: 0;

}

.exch-payment-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
  margin: 0 0 12px 0;
}

.exch-new-layout .block_instruction {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #fff;
  word-break: break-all;
  line-height: 1.5;
}

.exch-new-layout .block_paybutton,
.exch-new-layout .block_paybutton_ins { display: contents; }

.exch-new-layout .exch-right__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.exch-new-layout .success_paybutton,
.exch-new-layout .iam_pay_bids {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  background: #fff;
  color: #050816;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.exch-new-layout .success_paybutton:hover { background: #f0f2f5; }

.exch-new-layout .cancel_paybutton {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: underline;
  padding: 4px 0;
}

.exch-new-layout .cancel_paybutton:hover { color: #fff; }

.exch-new-layout .block_change_browse,
.exch-new-layout .block_change_browser {
  padding: 12px 14px;
  background: rgba(255, 80, 80, 0.12);
  border-radius: 10px;
  font-size: 12px;
  color: #ff8080;
  line-height: 1.4;
}

/* ── Прогресс-бар автообновления ─────────────────────────── */
.exch-new-layout .block_check_payment {
  display: none; /* JS делает .show() */
  position: relative;
  width: 100%;
  padding-bottom: 9px; /* зазор под полосу */
  box-sizing: border-box;
}

/* Фон трека */
.exch-new-layout .block_check_payment::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Подпись «Updating in N sec» — текст приходит из PHP (__()) */
.exch-new-layout .block_check_payment_label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  margin-bottom: 6px;
}
.exch-new-layout .block_check_payment_abs {
  display: inline;
}

/* Заливка — JS анимирует width от 0 до полной ширины */
.exch-new-layout .block_check_payment > .block_check_payment_ins {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: #caff43;
  border-radius: 2px;
  z-index: 1;
}

/* ── Текст-предупреждение об автообновлении ──────────────── */
.exch-new-layout .block_warning_merch {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.exch-new-layout .block_warning_merch p { margin: 0; }

/* ── Кнопка вкл/выкл автообновления ─────────────────────── */
.exch-new-layout .block_paybutton_merch .refresh_button {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: underline;
  transition: color 0.15s;
}
.exch-new-layout .block_paybutton_merch .refresh_button:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .exch-status-layout { flex-direction: column; }
  .exch-status-layout .exch-right-panel { width: 100%; }
  .exch-status-personal .block_persdata_info { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .exch-new-layout { flex-direction: column; }

  .exch-progress {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }

  .exch-progress__step {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 8px;
  }

  .exch-ps-grid { grid-template-columns: 1fr; }
  .exch-new-layout .exch-right-panel { width: 100%; }
}

/* ── Notice popup (.wn_wrap) ──────────────────────────────── */
.wn_wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(5, 8, 22, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wn_div {
  background: var(--color-bg-dark-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-modal);
  padding: var(--space-8) var(--space-8);
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.wn_div_text {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--color-text-secondary);
}

.wn_div_text p {
  margin: 0 0 var(--space-3);
}

.wn_div_text p:last-child {
  margin-bottom: 0;
}

.wn_div_text a {
  color: var(--color-accent);
  text-decoration: none;
}

.wn_div_text a:hover {
  text-decoration: underline;
}

.wn_div_button {
  display: flex;
  justify-content: flex-end;
}

.wn_div_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-6);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.wn_div_submit:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-btn);
}

@media (max-width: 540px) {
  .wn_div {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .wn_div_button {
    justify-content: stretch;
  }

  .wn_div_submit {
    width: 100%;
  }
}