:root {
  --blue: #2f7cf6;
  --blue-dark: #1f63d8;
  --blue-soft: #eaf2ff;
  --text: #1c2430;
  --muted: #6b7788;
  --line: #d7e3f5;
  --bg: #eef3f9;
  --card: #ffffff;
  --ok: #22c55e;
  --danger: #e11d48;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(31, 70, 140, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 124, 246, 0.08), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(47, 124, 246, 0.06), transparent 24%),
    radial-gradient(circle at 70% 80%, rgba(47, 124, 246, 0.05), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: #f7f9fc;
  border-bottom: 1px solid #e6edf6;
  font-size: 13px;
  color: var(--muted);
}

.topbar-inner,
.nav-inner,
.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8eef7;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}

.brand:hover {
  color: #1f63d8;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4a8fff, #1f63d8);
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(47, 124, 246, 0.28);
}

.swap-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}

.swap-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #d0dceb;
  background: #fff;
  color: #1f63d8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 48, 94, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.swap-btn:hover {
  background: #eef5ff;
  border-color: #4a8fff;
  transform: rotate(180deg);
}

.swap-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  transition: 0.2s ease;
}

.btn-outline {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 18px rgba(47, 124, 246, 0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline:hover {
  background: var(--blue-soft);
}

.btn-block {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 16px;
}

.page {
  padding: 28px 0 60px;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 22px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.policy h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.policy h4 {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.policy p,
.policy li {
  color: #4a5565;
  line-height: 1.65;
  font-size: 15px;
}

.policy ul,
.policy ol {
  padding-left: 18px;
}

.policy-rules {
  margin: 18px 0;
}

.policy-rules li {
  margin-bottom: 14px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.section-title {
  font-size: 34px;
  margin: 8px 0 14px;
  letter-spacing: -0.04em;
}

.rate-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.rate-line strong {
  color: var(--text);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.input,
.select,
.textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.12);
}

.currency-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #b9d2fb;
  border-radius: 16px;
  padding: 12px 14px;
  background: #f8fbff;
  cursor: pointer;
  position: relative;
}

.currency-box:hover {
  border-color: var(--blue);
}

.coin-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.currency-meta {
  flex: 1;
}

.currency-meta .name {
  font-weight: 700;
  font-size: 16px;
}

.currency-meta .limits {
  color: var(--blue);
  font-size: 13px;
  margin-top: 2px;
}

.chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(20, 40, 80, 0.12);
  z-index: 20;
  overflow: hidden;
}

.dropdown.open {
  display: block;
}

.dropdown button {
  width: 100%;
  border: none;
  background: white;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.dropdown button:hover {
  background: var(--blue-soft);
}

.divider {
  height: 1px;
  background: #e8eef7;
  margin: 26px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #4a5565;
  line-height: 1.5;
}

.check input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.captcha {
  margin: 18px 0;
}

.captcha-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.captcha-tile {
  aspect-ratio: 1;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(47, 124, 246, 0.05), transparent),
    repeating-linear-gradient(
      45deg,
      #f8fbff,
      #f8fbff 6px,
      #eef5ff 6px,
      #eef5ff 12px
    );
  user-select: none;
}

.captcha-tile.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.18);
  color: var(--blue-dark);
}

.promo-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.promo-hint.active {
  color: #15803d;
  font-weight: 700;
}

.alert {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.alert.error {
  display: block;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.alert.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.footer {
  border-top: 1px solid #e5edf7;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  margin-left: auto;
}

.limits-line {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.limits-line.error,
.rate-line.error {
  color: #b42318;
}

.tg-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 48, 94, 0.18);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: tg-in 0.35s ease;
}

.tg-widget.hidden {
  display: none;
}

.tg-widget-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8a97a8;
  cursor: pointer;
}

.tg-widget-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 18px;
}

.tg-widget-text strong {
  font-size: 15px;
  color: var(--text);
}

.tg-widget-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tg-widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2aabee;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 11px 16px;
}

.tg-widget-btn:hover {
  background: #229ed9;
}

@keyframes tg-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .navbar.open .nav-links a {
    padding: 12px 4px;
    border-top: 1px solid #e8eef7;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .section-title {
    font-size: 28px;
  }

  .captcha-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tg-widget {
    right: 12px;
    bottom: 12px;
  }
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid #d0d8e4;
  color: var(--text);
}

.btn-ghost:hover {
  background: #f3f6fb;
}

.aml-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 14, 28, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aml-overlay[hidden] {
  display: none !important;
}

.aml-modal {
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.aml-modal h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.aml-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.aml-body ul {
  margin: 12px 0;
  padding-left: 18px;
}

.aml-body li {
  margin: 6px 0;
}

.aml-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.aml-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.aml-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pay-card {
  padding: 22px !important;
}

.pay-idbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f5f8fc;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pay-id {
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
  flex: 1;
}

.pay-id span {
  color: var(--text);
  font-weight: 800;
}

.pay-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 22px;
  color: #1f63d8;
}

.pay-timer.expired {
  color: #b42318;
}

.pay-copy {
  border: none;
  background: linear-gradient(145deg, #4a8fff, #1f63d8);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(47, 124, 246, 0.22);
}

.pay-copy:hover {
  filter: brightness(1.05);
}

.pay-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.pay-leg {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(20, 48, 94, 0.04);
}

.pay-leg-title {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pay-leg-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.pay-leg-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.pay-arrow {
  color: #8aa0bf;
  font-size: 22px;
}

.pay-box {
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.pay-row {
  margin-bottom: 16px;
}

.pay-row:last-child {
  margin-bottom: 0;
}

.pay-k {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pay-v {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.pay-v-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pay-v-line code {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #d0dceb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}

.pay-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.pay-step {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
  font-weight: 600;
}

.pay-step span {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 2px solid #c9d7ea;
  line-height: 20px;
  font-weight: 800;
  color: #7f93b0;
}

.pay-step.active {
  border-color: #4a8fff;
  color: #1f63d8;
  background: #eef5ff;
}

.pay-step.active span {
  border-color: #4a8fff;
  box-shadow: 0 0 0 3px rgba(74, 143, 255, 0.18);
  color: #1f63d8;
}

@media (max-width: 720px) {
  .pay-pair {
    grid-template-columns: 1fr;
  }

  .pay-arrow {
    text-align: center;
    transform: rotate(90deg);
  }

  .pay-steps {
    grid-template-columns: 1fr 1fr;
  }
}
