@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg-a: #f4f7fb;
  --bg-b: #edf4ff;
  --bg-c: #f5fbf7;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.52);
  --shine: rgba(255, 255, 255, 0.86);
  --bubble-shadow: 0 14px 34px rgba(60, 92, 146, 0.12);
  --text: #243258;
  --muted: #7083ad;
  --accent: #45a68b;
  --blue: #7b93d8;
  --danger: #d34b65;
  --ok: #1e9d74;
  --qr-dark: #10212b;
  --qr-light: #f5fbfb;
  --slow-multiplier: 1.2;
  --ease-cinematic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cube-enter-transform: rotateX(0deg) rotateY(0deg);
  --cube-leave-transform: rotateX(0deg) rotateY(0deg);
}

body[data-theme="dark"] {
  --bg-a: #080b10;
  --bg-b: #0d131b;
  --bg-c: #111922;
  --glass: rgba(28, 35, 45, 0.62);
  --glass-strong: rgba(39, 47, 59, 0.78);
  --line: rgba(220, 228, 240, 0.18);
  --shine: rgba(255, 255, 255, 0.18);
  --bubble-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
  --text: #eef3fa;
  --muted: #a6b3c7;
  --accent: #79dbc7;
  --blue: #9eb6d8;
  --qr-dark: #10212b;
  --qr-light: #f5fbfb;
  background:
    radial-gradient(920px 560px at 16% 10%, rgba(112, 139, 174, 0.13), transparent 60%),
    radial-gradient(840px 520px at 86% 18%, rgba(116, 198, 188, 0.07), transparent 60%),
    radial-gradient(1100px 620px at 50% 112%, rgba(4, 6, 10, 0.95), transparent 66%),
    linear-gradient(145deg, #05070b, #0a1017 44%, #0d141d);
}

body[data-theme="dark"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.008) 0 1px, transparent 1px 4px),
    linear-gradient(115deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 18px),
    linear-gradient(25deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.03), transparent 22%),
    radial-gradient(circle at 20% 20%, rgba(124, 194, 209, 0.025), transparent 18%),
    radial-gradient(circle at 80% 35%, rgba(162, 180, 201, 0.03), transparent 20%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.4) 100%);
  mix-blend-mode: screen;
  opacity: .18;
  z-index: 0;
}

body[data-theme="dark"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 16%),
    linear-gradient(90deg, rgba(255,255,255,0.01), transparent 18%, transparent 82%, rgba(255,255,255,0.01)),
    radial-gradient(circle at 50% 55%, transparent 58%, rgba(1, 2, 4, 0.56) 100%);
  opacity: .68;
  z-index: 0;
}

@keyframes metalSweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  18% { opacity: .22; }
  35% { opacity: .12; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

body[data-theme="dark"] .glass-screen,
body[data-theme="dark"] .hero-side-glass,
body[data-theme="dark"] .asset-block,
body[data-theme="dark"] .market-stat-card,
body[data-theme="dark"] .market-controls input,
body[data-theme="dark"] .rate-table-wrap,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .how-card,
body[data-theme="dark"] .faq-item,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .status-card-detail,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .footer-inner,
body[data-theme="dark"] .hero-side-card,
body[data-theme="dark"] .hero-mini-swap {
  background-color: rgba(16, 21, 28, 0.9);
}

body[data-theme="dark"] .glass-screen,
body[data-theme="dark"] .hero-side-glass,
body[data-theme="dark"] .asset-block,
body[data-theme="dark"] .market-stat-card,
body[data-theme="dark"] .rate-table-wrap,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .how-card,
body[data-theme="dark"] .faq-item,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .status-card-detail,
body[data-theme="dark"] .hero-side-card,
body[data-theme="dark"] .hero-mini-swap,
body[data-theme="dark"] .ticker-pill,
body[data-theme="dark"] .online-pill,
body[data-theme="dark"] .nav-link,
body[data-theme="dark"] .toggle-pill,
body[data-theme="dark"] .sort-btn,
body[data-theme="dark"] .ghost-btn,
body[data-theme="dark"] .submit-btn {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 -1px 0 rgba(255,255,255,0.012);
}

body[data-theme="dark"] .glass-screen,
body[data-theme="dark"] .hero-side-glass,
body[data-theme="dark"] .asset-block,
body[data-theme="dark"] .market-stat-card,
body[data-theme="dark"] .rate-table-wrap,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .how-card,
body[data-theme="dark"] .faq-item,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .status-card-detail {
  background:
    radial-gradient(circle at 16% 8%, rgba(138, 162, 190, 0.06), transparent 40%),
    linear-gradient(165deg, rgba(23, 29, 38, 0.9), rgba(8, 12, 18, 0.98));
  border-color: rgba(214, 224, 236, 0.12);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 0 0 1px rgba(176, 193, 215, 0.06);
}

body[data-theme="dark"] .glass-screen::after,
body[data-theme="dark"] .hero-side-glass::after,
body[data-theme="dark"] .asset-block::after,
body[data-theme="dark"] .market-stat-card::after,
body[data-theme="dark"] .rate-table-wrap::after,
body[data-theme="dark"] .review-card::after,
body[data-theme="dark"] .trust-card::after,
body[data-theme="dark"] .how-card::after,
body[data-theme="dark"] .faq-item::after,
body[data-theme="dark"] .status-card::after,
body[data-theme="dark"] .status-card-detail::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.06) 50%, transparent 58%);
  transform: translateX(-120%) skewX(-18deg);
  animation: metalSweep 18s linear infinite;
  opacity: .18;
  mix-blend-mode: screen;
}

body[data-theme="dark"] .glass-screen::before {
  opacity: 0.09;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    linear-gradient(100deg, transparent 0 42%, rgba(255,255,255,0.05) 50%, transparent 58%);
}

body[data-theme="dark"] .hero-side-glass,
body[data-theme="dark"] .asset-block {
  backdrop-filter: blur(24px) saturate(1.02);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008) 16%, rgba(255,255,255,0) 18%),
    linear-gradient(165deg, rgba(35, 44, 56, 0.92), rgba(14, 20, 28, 0.98));
}

body[data-theme="dark"] .glass-screen::after,
body[data-theme="dark"] .hero-side-glass::after,
body[data-theme="dark"] .asset-block::after,
body[data-theme="dark"] .market-stat-card::after,
body[data-theme="dark"] .rate-table-wrap::after,
body[data-theme="dark"] .review-card::after,
body[data-theme="dark"] .trust-card::after,
body[data-theme="dark"] .how-card::after,
body[data-theme="dark"] .faq-item::after,
body[data-theme="dark"] .status-card::after,
body[data-theme="dark"] .status-card-detail::after {
  opacity: .1;
}

body[data-theme="dark"] .hero-side-card,
body[data-theme="dark"] .hero-mini-swap {
  background:
    linear-gradient(165deg, rgba(40, 47, 58, 0.8), rgba(18, 24, 33, 0.96));
  border-color: rgba(216, 225, 236, 0.08);
}

body[data-theme="dark"] .market-controls input,
body[data-theme="dark"] select,
body[data-theme="dark"] input {
  background:
    linear-gradient(180deg, rgba(38, 45, 57, 0.84), rgba(18, 24, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -1px 0 rgba(0,0,0,0.24),
    0 1px 0 rgba(255,255,255,0.03);
}

body[data-theme="dark"] .nav-link,
body[data-theme="dark"] .toggle-pill,
body[data-theme="dark"] .sort-btn,
body[data-theme="dark"] .ghost-btn {
  background:
    linear-gradient(180deg, rgba(55, 63, 76, 0.68), rgba(18, 25, 34, 0.92));
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(920px 540px at -10% 25%, rgba(255, 202, 187, 0.24), transparent 58%),
    radial-gradient(920px 540px at 110% 35%, rgba(175, 223, 255, 0.24), transparent 60%),
    radial-gradient(760px 420px at 50% 100%, rgba(148, 240, 213, 0.14), transparent 62%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 46%, var(--bg-c));
  overflow-x: hidden;
}
body.lite-mode .neural-grid,
body.lite-mode .data-pulse {
  display: none !important;
}
body.page-enter { animation: pageEnter3d .65s var(--ease-cinematic) both; }
body.page-leave { animation: pageLeave3d .48s var(--ease-cinematic) both; }
body.reference-motion { animation: pageEnter3d .72s var(--ease-cinematic) both; }
@keyframes pageEnter3d {
  from { opacity: 0; transform: perspective(1400px) var(--cube-enter-transform) translateZ(-86px) scale(.97); filter: blur(4px); }
  to { opacity: 1; transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateZ(0) scale(1); filter: blur(0); }
}
@keyframes pageLeave3d {
  from { opacity: 1; transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translateZ(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: perspective(1400px) var(--cube-leave-transform) translateZ(-100px) scale(.96); filter: blur(3px); }
}

/* Neural Chamber */
body.neural-chamber {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.chamber-scene {
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-cinematic), filter 420ms var(--ease-cinematic);
  will-change: transform;
}
body[data-cube-face] .app { transform-style: preserve-3d; }
.chamber-layer {
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-cinematic), box-shadow 420ms var(--ease-cinematic);
  will-change: transform;
}
.depth-1 { transform: translateZ(10px); }
.depth-2 { transform: translateZ(26px); }
.depth-3 { transform: translateZ(42px); }
.depth-4 { transform: translateZ(58px); }

body.neural-chamber .form-shell {
  box-shadow:
    0 28px 72px rgba(34, 62, 110, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 0 0 1px rgba(167, 231, 255, 0.18);
}
body.neural-chamber .hero-copy {
  transform-origin: 30% 50%;
}
body.neural-chamber .reviews-section {
  box-shadow:
    0 20px 56px rgba(54, 84, 132, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.58);
}
body.neural-chamber .topbar,
body.neural-chamber .ribbon-wrap {
  backdrop-filter: blur(20px) saturate(1.08);
}

body[data-cabinet] .neural-grid,
body[data-cabinet] .backdrop-grid,
body[data-cabinet] .blob,
body[data-cabinet] .coin-cloud,
body[data-cabinet] .coin-constellation {
  display: none !important;
}

body[data-cabinet] {
  background:
    radial-gradient(920px 560px at 16% 10%, rgba(112, 139, 174, 0.13), transparent 60%),
    radial-gradient(840px 520px at 86% 18%, rgba(116, 198, 188, 0.07), transparent 60%),
    radial-gradient(1100px 620px at 50% 112%, rgba(4, 6, 10, 0.95), transparent 66%),
    linear-gradient(145deg, #05070b, #0a1017 44%, #0d141d);
}

body[data-cabinet] .app {
  width: min(1420px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 76px;
  position: relative;
  z-index: 1;
}

body[data-cabinet] .topbar,
body[data-cabinet] .ribbon-wrap,
body[data-cabinet] .hero-copy,
body[data-cabinet] .glass-screen,
body[data-cabinet] .reviews-section,
body[data-cabinet] .footer,
body[data-cabinet] .footer-inner,
body[data-cabinet] .hero-side-card,
body[data-cabinet] .hero-mini-swap {
  background:
    radial-gradient(circle at 16% 8%, rgba(138, 162, 190, 0.06), transparent 40%),
    linear-gradient(165deg, rgba(23, 29, 38, 0.9), rgba(8, 12, 18, 0.98));
  border: 1px solid rgba(214, 224, 236, 0.12);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 0 0 1px rgba(176, 193, 215, 0.06);
}

body[data-cabinet] .topbar,
body[data-cabinet] .ribbon-wrap {
  border-radius: 28px;
  backdrop-filter: blur(18px) saturate(1.02);
}

body[data-cabinet] .hero-grid {
  align-items: stretch;
}

body[data-cabinet] .hero-copy {
  padding-left: 0;
  padding: 18px 20px 20px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-cabinet] .hero-copy h1 {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: .98;
}

body[data-cabinet] .hero-copy p {
  max-width: 620px;
}

body[data-cabinet] .hero-side-glass {
  margin-top: 14px;
  padding: 18px;
  border-radius: 30px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    linear-gradient(135deg, rgba(26, 31, 37, 0.9), rgba(10, 13, 18, 0.98));
}

body[data-cabinet] .hero-side-glass h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

body[data-cabinet] .hero-side-card {
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(255,255,255,0.03);
}

body[data-cabinet] .hero-side-card strong {
  font-size: 12px;
}

body[data-cabinet] .hero-side-card span {
  font-size: 11px;
}

body[data-cabinet] .hero-mini-swaps {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 224, 236, 0.08);
}

body[data-cabinet] .hero-mini-swaps-list {
  max-height: 220px;
}

body[data-cabinet] .hero-mini-swap {
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
}

body[data-cabinet] .glass-screen {
  border-radius: 28px;
  backdrop-filter: blur(18px) saturate(1.02);
}

body[data-cabinet] .reviews-section {
  border-radius: 28px;
  padding: 18px;
}

body[data-cabinet] .footer {
  border-radius: 28px;
}

body[data-cabinet] .hero-grid {
  gap: 18px;
}

body[data-cabinet] .local-mode-pill {
  background:
    linear-gradient(165deg, rgba(23, 29, 38, 0.84), rgba(8, 12, 18, 0.95));
  border-color: rgba(214, 224, 236, 0.12);
  color: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 0 0 1px rgba(176, 193, 215, 0.06);
}

@media (max-width: 900px) {
  body.neural-chamber {
    perspective: none;
  }
  .chamber-scene,
  .chamber-layer,
  .depth-1,
  .depth-2,
  .depth-3,
  .depth-4 {
    transform: none !important;
  }
}
.neural-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.blob.a { width: 230px; height: 230px; top: 90px; left: -40px; background: rgba(255, 192, 179, 0.55); }
.blob.b { width: 220px; height: 220px; top: 260px; right: -40px; background: rgba(173, 209, 255, 0.55); }
.blob.c { width: 210px; height: 210px; bottom: -30px; left: 40%; background: rgba(130, 231, 204, 0.46); }

.app {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 24px 34px;
}

.app::before,
.app::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
  filter: blur(2px);
}

.app::before {
  width: 180px;
  height: 180px;
  right: 7%;
  top: 22%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 62%, transparent 68%);
}

.app::after {
  width: 120px;
  height: 120px;
  left: 5%;
  top: 52%;
  background: radial-gradient(circle at 35% 35%, rgba(125, 197, 214, 0.12), rgba(255,255,255,0.02) 62%, transparent 68%);
  animation: metalSweep 24s linear infinite;
}

.page-shell { max-width: 1020px; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 80;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9edfd8, #95c8f1);
  box-shadow: 0 12px 30px rgba(75, 136, 175, 0.28);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.72);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.burger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .22s var(--ease-cinematic), opacity .22s var(--ease-cinematic);
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 19, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-cinematic);
  z-index: 90;
}
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.nav-link, .toggle-pill {
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(24px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.66),
    inset 0 -1px 0 rgba(255,255,255,0.08);
  transition: transform calc(0.22s * var(--slow-multiplier)) var(--ease-cinematic), box-shadow calc(0.28s * var(--slow-multiplier)) var(--ease-cinematic), border-color calc(0.22s * var(--slow-multiplier)) var(--ease-cinematic), background calc(0.22s * var(--slow-multiplier)) var(--ease-cinematic);
}
.nav-link:hover, .toggle-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 151, 206, 0.6);
  box-shadow: 0 10px 20px rgba(81, 113, 166, 0.14);
}

.local-mode-pill {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(219, 181, 102, 0.32);
  border-radius: 999px;
  background: rgba(225, 185, 103, 0.1);
  color: rgba(240, 213, 160, 0.94);
  font-size: 11px;
  line-height: 1.2;
}

.ribbon-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.ticker-pill, .online-pill {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.64),
    inset 0 -1px 0 rgba(255,255,255,0.06);
}
.ticker-pill { overflow: hidden; padding: 2px 0; }
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  padding-left: 100%;
  color: var(--blue);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.01em;
  animation: ticker calc(24s * var(--slow-multiplier)) var(--ease-cinematic) infinite;
}
.data-rain { position: relative; min-height: 28px; }
.rain { position: absolute; left: 0; top: 0; }
.rain.a { opacity: 1; animation-duration: calc(24s * var(--slow-multiplier)); }
.rain.b { opacity: .58; filter: blur(.35px); transform: translateY(7px); animation-duration: calc(31s * var(--slow-multiplier)); }
.rain.c { opacity: .3; filter: blur(.65px); transform: translateY(13px); animation-duration: calc(39s * var(--slow-multiplier)); }
.data-pulse {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(145, 226, 255, 0.95);
  box-shadow: 0 0 10px rgba(145, 226, 255, 0.65);
  pointer-events: none;
  animation: dataPulse 1.6s ease-out forwards;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  box-shadow: none;
}
.online-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  margin-top: 16px;
  align-items: start;
}
.hero-copy {
  padding-left: clamp(14px, 2.2vw, 34px);
}
.hero-copy h1 {
  margin: 8px 0 8px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1;
  min-height: 3em;
  letter-spacing: -0.025em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.morph-char {
  display: inline-block;
  transition: transform .34s var(--ease-cinematic), opacity .34s var(--ease-cinematic), filter .34s var(--ease-cinematic);
}
.morph-title.is-typing .hero-typing-line::after {
  content: "";
  display: inline-block;
  width: .075em;
  height: .78em;
  margin-left: .07em;
  vertical-align: -.05em;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 .38em currentColor;
  animation: heroTypingCaret .72s steps(2, jump-none) infinite;
}
@keyframes heroTypingCaret {
  0%, 42% { opacity: 1; }
  43%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .morph-title.is-typing .hero-typing-line::after { animation: none; }
}
body.lang-switching .morph-char {
  opacity: .1;
  transform: translateY(8px) scale(.96);
  filter: blur(3px);
}
.hero-copy .accent { color: var(--accent); }
.hero-copy p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-side-glass {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,0.34), transparent 42%),
    linear-gradient(160deg, var(--glass), rgba(255,255,255,0.14));
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.54),
    0 10px 24px rgba(72, 108, 154, 0.12);
}
.hero-side-glass h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.hero-side-grid {
  display: grid;
  gap: 8px;
}
.hero-side-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255,255,255,0.22);
  display: grid;
  gap: 3px;
}
.hero-side-card strong { font-size: 13px; }
.hero-side-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.hero-mini-swaps {
  margin-top: 10px;
  border-top: 1px dashed rgba(145, 201, 232, 0.38);
  padding-top: 10px;
}
.hero-mini-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-mini-swaps-list {
  display: grid;
  gap: 6px;
  max-height: 248px;
  overflow: auto;
  padding-right: 2px;
}
.hero-mini-swap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  background: rgba(255,255,255,0.2);
}
.eyebrow {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  padding: 7px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.coin-cloud {
  margin-top: 10px;
  height: 220px;
  border: none;
  border-radius: 0;
  background: transparent;
  position: relative;
  overflow: visible;
}
.coin-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.coin-constellation line {
  stroke: rgba(112, 229, 205, 0.74);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  filter: drop-shadow(0 0 5px rgba(112, 229, 205, 0.44));
}
.coin-constellation circle {
  fill: rgba(164, 229, 255, 0.88);
}
.cloud-coin {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3px;
  background: radial-gradient(circle, rgba(247, 255, 255, 0.96) 0 48%, rgba(150, 235, 228, 0.32) 51%, transparent 72%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.26), 0 0 18px rgba(120, 220, 205, 0.22);
  opacity: 1;
  filter: saturate(1.04) contrast(1.06);
  will-change: transform;
  transition: transform .24s var(--ease-cinematic), filter 0.22s var(--ease-cinematic), opacity 0.22s var(--ease-cinematic), box-shadow .24s var(--ease-cinematic);
}
.cloud-coin:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 26px rgba(56, 98, 142, 0.24);
}

.glass-screen {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 6%, rgba(255,255,255,0.42), transparent 46%),
    linear-gradient(165deg, var(--glass-strong), var(--glass));
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(36px) saturate(1.16);
  box-shadow: var(--bubble-shadow);
  transition: transform calc(0.35s * var(--slow-multiplier)) var(--ease-cinematic), box-shadow calc(0.35s * var(--slow-multiplier)) var(--ease-cinematic);
  position: relative;
  overflow: hidden;
}

.glass-screen::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  width: 38%;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--shine), rgba(255,255,255,0));
  opacity: 0.32;
  pointer-events: none;
}
.glass-screen:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(59, 86, 130, 0.16);
}
.form-shell { position: relative; }
.form-shell {
  margin-top: 6px;
  overflow: hidden;
}
.form-shell h2 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding-right: 6px;
}
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }

.asset-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 6%, rgba(255,255,255,0.4), transparent 42%),
    linear-gradient(160deg, var(--glass), rgba(255,255,255,0.2));
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(26px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 8px 20px rgba(76, 106, 156, 0.06);
}
.asset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.asset-head label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.preview {
  min-width: 128px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: center;
}

.asset-block .field-row + .field-row {
  margin-top: 8px;
}
select, input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
  font: inherit;
  transition: transform calc(0.18s * var(--slow-multiplier)) var(--ease-cinematic), box-shadow calc(0.22s * var(--slow-multiplier)) var(--ease-cinematic), border-color calc(0.18s * var(--slow-multiplier)) var(--ease-cinematic), background calc(0.2s * var(--slow-multiplier)) var(--ease-cinematic);
  backdrop-filter: blur(20px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -1px 0 rgba(255,255,255,0.05);
}
body[data-theme="dark"] select,
body[data-theme="dark"] input {
  background: rgba(20, 31, 45, 0.38);
}
select:focus, input:focus {
  outline: none;
  border-color: rgba(96, 191, 158, 0.6);
  box-shadow: 0 0 0 3px rgba(90, 176, 146, 0.15);
  transform: translateY(-1px);
}

/* The native select stays in the DOM for form logic; the glass picker is its visual layer. */
.asset-picker {
  position: relative;
  min-width: 0;
  z-index: 1;
}
.asset-picker.is-open { z-index: 42; }
.form-shell:has(.asset-picker.is-open),
.glass-screen:has(.asset-picker.is-open) { overflow: visible; }
.asset-block:has(.asset-picker.is-open) {
  position: relative;
  z-index: 43;
  overflow: visible;
}
.asset-native-select {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.asset-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58), inset 0 -1px 0 rgba(255,255,255,0.05);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .28s var(--ease-cinematic), box-shadow .28s var(--ease-cinematic), background .28s var(--ease-cinematic), transform .28s var(--ease-cinematic);
}
body[data-theme="dark"] .asset-picker-trigger { background: rgba(20, 31, 45, 0.38); }
.asset-picker-trigger:hover,
.asset-picker.is-open .asset-picker-trigger {
  border-color: rgba(99, 219, 190, .58);
  box-shadow: 0 0 0 3px rgba(90,176,146,.12), inset 0 1px 0 rgba(255,255,255,.34);
}
.asset-picker-trigger:active { transform: scale(.992); }
.asset-picker-selection { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asset-picker-selection img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; flex: 0 0 auto; filter: saturate(.86) brightness(.98); }
.asset-picker-selection span { min-width: 0; display: grid; gap: 1px; }
.asset-picker-selection b { font-size: 15px; line-height: 1.05; }
.asset-picker-selection small { color: var(--muted); font-size: 10px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-picker-placeholder { color: var(--muted); }
.asset-picker-chevron { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .32s var(--ease-cinematic), color .22s var(--ease-cinematic); }
.asset-picker.is-open .asset-picker-chevron { color: var(--accent); transform: rotate(180deg); }
.asset-picker-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: min(390px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid rgba(149, 226, 209, .26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(245,251,255,.88), rgba(210,226,237,.72));
  box-shadow: 0 24px 50px rgba(40, 66, 91, .25), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(28px) saturate(1.18);
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(.98);
  transform-origin: 20% 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .24s var(--ease-cinematic), transform .36s var(--ease-cinematic), visibility 0s linear .36s;
}
body[data-theme="dark"] .asset-picker-panel {
  background: linear-gradient(150deg, rgba(31, 43, 57, .94), rgba(8, 15, 23, .96));
  border-color: rgba(130, 222, 202, .34);
  box-shadow: 0 26px 56px rgba(0,0,0,.48), inset 0 1px 0 rgba(220,245,255,.12), 0 0 32px rgba(83,221,190,.08);
}
.asset-picker.is-open .asset-picker-panel { opacity: 1; transform: translate3d(0,0,0) scale(1); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.asset-picker-search { display: flex; align-items: center; gap: 8px; padding: 0 4px 9px; border-bottom: 1px solid rgba(132,159,176,.22); color: var(--muted); }
.asset-picker-search input { min-height: 34px; padding: 6px 4px; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.asset-picker-search input:focus { transform: none; box-shadow: none; }
.asset-picker-list { max-height: min(356px, 48vh); margin-top: 8px; overflow: auto; overscroll-behavior: contain; padding-right: 3px; }
.asset-picker-list::-webkit-scrollbar { width: 7px; }
.asset-picker-list::-webkit-scrollbar-thumb { border-radius: 9px; background: rgba(115, 214, 191, .42); }
.asset-picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 8px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease-cinematic), background .2s var(--ease-cinematic), border-color .2s var(--ease-cinematic);
}
.asset-picker-option:hover,
.asset-picker-option:focus-visible,
.asset-picker-option.is-selected { border-color: rgba(105,214,192,.32); background: rgba(95,208,183,.13); outline: none; }
.asset-picker-option:hover { transform: translateX(2px); }
.asset-picker-option img { width: 29px; height: 29px; border-radius: 50%; object-fit: contain; flex: 0 0 auto; filter: saturate(.86) brightness(.98); }
.asset-picker-option span { display: grid; gap: 1px; min-width: 0; }
.asset-picker-option b { font-size: 14px; }
.asset-picker-option small { color: var(--muted); font-size: 11px; }
.asset-picker-option > i:last-child { margin-left: auto; color: var(--accent); font-style: normal; opacity: 0; transform: scale(.6); transition: opacity .18s var(--ease-cinematic), transform .18s var(--ease-cinematic); }
.asset-picker-option.is-selected > i:last-child { opacity: 1; transform: scale(1); }
.asset-picker-empty { padding: 18px 8px; color: var(--muted); text-align: center; }
.network-picker .asset-picker-panel { width: min(360px, calc(100vw - 36px)); }
.network-picker-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.network-picker-selection span { display: grid; gap: 1px; min-width: 0; }
.network-picker-selection b { font-size: 14px; line-height: 1.12; }
.network-picker-selection small,
.network-picker-option small { color: var(--muted); font-size: 10px; line-height: 1.12; }
.network-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(163, 223, 226, .28);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(119, 207, 202, .28), rgba(63, 91, 126, .46));
  color: #dffefa;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.network-mark.ethereum { background: linear-gradient(145deg, rgba(131, 151, 255, .48), rgba(69, 73, 158, .54)); }
.network-mark.bsc, .network-mark.bitcoin { background: linear-gradient(145deg, rgba(255, 196, 71, .55), rgba(168, 102, 28, .52)); color: #fff9dc; }
.network-mark.tron { background: linear-gradient(145deg, rgba(255, 104, 99, .58), rgba(164, 41, 52, .52)); }
.network-mark.polygon { background: linear-gradient(145deg, rgba(176, 124, 255, .54), rgba(103, 67, 175, .54)); }
.network-mark.arbitrum { background: linear-gradient(145deg, rgba(107, 202, 255, .55), rgba(54, 97, 176, .54)); }
.network-mark.optimism { background: linear-gradient(145deg, rgba(255, 104, 117, .55), rgba(172, 45, 63, .54)); }
.network-mark.solana { background: linear-gradient(145deg, rgba(99, 239, 190, .54), rgba(112, 69, 212, .52)); }
.network-mark.ton { background: linear-gradient(145deg, rgba(98, 191, 255, .56), rgba(42, 97, 183, .52)); }
.network-picker-option .network-mark { width: 31px; height: 31px; }
.hint {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.wallet-feedback {
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}
.wallet-feedback.ok {
  color: #2fa87c;
}
.wallet-feedback.error {
  color: #d46b7d;
}
.confirm-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.confirm-row input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
}
.swap-node {
  margin: 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(220, 228, 240, 0.2);
  background:
    linear-gradient(180deg, rgba(80, 88, 100, 0.78), rgba(16, 22, 31, 0.98));
  color: #a8f0e0;
  font-size: 24px;
  cursor: pointer;
  transition: transform calc(0.2s * var(--slow-multiplier)) var(--ease-cinematic), box-shadow calc(0.24s * var(--slow-multiplier)) var(--ease-cinematic), border-color calc(0.2s * var(--slow-multiplier)) var(--ease-cinematic);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 16px 34px rgba(0,0,0,0.28);
}
.swap-node:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(151, 226, 214, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(151, 226, 214, 0.14),
    0 16px 36px rgba(0,0,0,0.34);
}
.quantum-core-wrap {
  position: relative;
  width: 100%;
  min-height: 62px;
  margin: 10px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantum-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.88), rgba(212, 223, 233, 0.62) 26%, rgba(135, 148, 165, 0.24) 48%, transparent 72%),
    radial-gradient(circle at 68% 74%, rgba(120, 198, 220, 0.28), transparent 62%),
    linear-gradient(135deg, rgba(225, 232, 240, 0.16), rgba(70, 82, 96, 0.02));
  box-shadow:
    0 0 20px rgba(180, 201, 221, 0.12),
    0 0 34px rgba(116, 146, 170, 0.16),
    inset 0 1px 2px rgba(255,255,255,0.18),
    inset 0 -8px 18px rgba(12, 18, 28, 0.18);
  pointer-events: none;
  animation: coreFloat 3.2s ease-in-out infinite, coreSpin 9s linear infinite;
}
.quantum-core.burst::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(127, 243, 216, 0.84);
  animation: coreBurst .72s ease-out forwards;
}
.swap-node { position: relative; z-index: 1; }
@keyframes coreSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn, .ghost-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform calc(0.22s * var(--slow-multiplier)) var(--ease-cinematic), box-shadow calc(0.28s * var(--slow-multiplier)) var(--ease-cinematic), filter calc(0.2s * var(--slow-multiplier)) var(--ease-cinematic);
}
.submit-btn {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #4a5563, #1e2834 68%, #0f151d);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.24),
    0 14px 28px rgba(0,0,0,0.34);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 90%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left calc(0.45s * var(--slow-multiplier)) var(--ease-cinematic);
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 18px 34px rgba(0,0,0,0.4);
}
.submit-btn:hover::after {
  left: 130%;
}
.ghost-btn {
  background:
    linear-gradient(180deg, rgba(62, 71, 84, 0.76), rgba(20, 27, 36, 0.94));
  color: var(--text);
}
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(67, 94, 141, 0.14);
}

/* Click feedback */
@keyframes pressVibe {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(1px) scale(0.985); }
  70% { transform: translateY(-0.3px) scale(0.993); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes pressGlow {
  0% { box-shadow: 0 0 0 rgba(84, 150, 255, 0); }
  55% { box-shadow: 0 0 0 5px rgba(84, 150, 255, 0.12); }
  100% { box-shadow: 0 0 0 rgba(84, 150, 255, 0); }
}

.tap-feedback {
  animation: pressVibe 340ms cubic-bezier(0.2, 0.8, 0.25, 1), pressGlow 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section { margin-top: 18px; }
.section-head h3 { margin: 0; font-size: 19px; }
.reviews-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.32), transparent 44%),
    linear-gradient(160deg, var(--glass), rgba(255,255,255,0.14));
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.56),
    0 12px 26px rgba(72, 108, 154, 0.11);
}
.reviews-wrap { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.reviews-track { display: flex; gap: 14px; overflow: auto; scrollbar-width: none; padding: 4px 2px; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  min-width: 380px;
  max-width: 450px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 8%, rgba(163, 255, 225, 0.24), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(141, 177, 255, 0.16), transparent 46%),
    var(--glass);
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.56),
    0 14px 26px rgba(75, 102, 150, 0.14);
  border-radius: 18px;
  padding: 16px;
  transition: transform .24s var(--ease-cinematic), box-shadow .24s var(--ease-cinematic), border-color .24s var(--ease-cinematic);
}
.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 210, 187, 0.54);
  box-shadow: 0 18px 34px rgba(63, 109, 158, 0.2), inset 0 1px 0 rgba(255,255,255,0.66);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1f3f4d;
  background: linear-gradient(140deg, #8cf2dd, #a7c7ff);
  border: 1px solid rgba(255,255,255,0.72);
}
.review-meta-wrap { display: grid; gap: 2px; }
.review-badge {
  font-size: 10px;
  color: #1d846b;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.review-meta { color: var(--text); font-size: 12px; font-weight: 700; margin-bottom: 0; }
.review-card p { margin: 0; line-height: 1.4; font-size: 13px; }
.review-card p { font-size: 16px; line-height: 1.45; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.verified-order-card { min-width: 330px; display: grid; gap: 12px; }
.verified-order-card small { color: var(--muted); line-height: 1.4; }
.verified-review-text { margin: 0; min-height: 52px; padding: 12px 0 14px; color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.45; border-bottom: 1px solid var(--line); }
.verified-order-details { display: grid; gap: 10px; }
.public-order-id, .device-order-card code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--glass) 80%, transparent);
}
.verified-order-actions, .device-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.verified-order-actions button, .verified-order-actions a, .device-order-actions button, .device-order-actions a, .favorite-current-pair, .text-action {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.verified-order-actions button:hover, .verified-order-actions a:hover, .device-order-actions button:hover, .device-order-actions a:hover, .favorite-current-pair:hover, .text-action:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--glass)); transform: translateY(-1px); }
.favorite-current-pair { width: 100%; margin-top: 10px; color: var(--accent); }
.user-tools-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-tool-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.favorites-track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.favorite-chip { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--glass) 88%, transparent); }
.favorite-chip > button { border: 0; color: var(--text); background: transparent; padding: 9px 12px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.favorite-chip .favorite-remove { color: var(--muted); border-left: 1px solid var(--line); padding-inline: 10px; }
.device-history { display: grid; gap: 8px; margin-top: 16px; max-height: 255px; overflow: auto; padding-right: 2px; }
.device-order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--glass) 84%, transparent); }
.device-order-card > div:first-child { min-width: 0; display: grid; gap: 3px; }
.device-order-card span { color: var(--muted); font-size: 12px; }
.device-order-card code { grid-column: 1 / -1; }
.device-order-actions { grid-column: 1 / -1; }
.text-action { flex: 0 0 auto; color: var(--muted); }
.user-tools-empty { width: 100%; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.reviews-wrap > .ghost-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 22px;
  padding: 0;
}

.page-hero { margin-top: 14px; margin-bottom: 10px; }
.page-hero h1 { margin: 6px 0; font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; }

.rate-cloud {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.rate-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,0.34), transparent 44%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 8px 18px rgba(75, 102, 150, 0.07);
}
.rate-card .pair { font-weight: 800; }
.rate-card .price { color: var(--accent); font-weight: 800; }

.lookup-grid { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; }
.lookup-grid #status-copy-btn { min-width: 108px; }
.status-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  padding: 10px;
  line-height: 1.5;
}
.status-card-detail { margin-top: 16px; display: none; }
.status-card-detail.show { display: block; }
.status-card-detail .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.status-card-detail .row .lbl { color: var(--muted); font-size: 11px; }
.status-card-detail .row .val { font-weight: 700; font-size: 13px; }
.status-steps { display: flex; justify-content: space-between; margin: 20px 0 12px; position: relative; }
.status-steps::before { content:""; position:absolute; top:14px; left:8px; right:8px; height:2px; background:var(--line); z-index:0; }
.step-item { display:flex; flex-direction:column; align-items:center; gap:6px; z-index:1; }
.step-dot { width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,0.2); border:2px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; transition:all 0.3s; }
.step-item.done .step-dot { background:var(--accent); border-color:var(--accent); color:#fff; }
.step-item.active .step-dot { background:var(--accent); border-color:var(--accent); color:#fff; animation:stepPulse 2s infinite; }
.step-label { font-size:9px; color:var(--muted); text-align:center; max-width:70px; }
.step-item.active .step-label { color:var(--accent); font-weight:700; }
.step-item.done .step-label { color:var(--accent); }
@keyframes stepPulse { 0%,100%{box-shadow:0 0 0 0 rgba(69,166,139,0.4)} 50%{box-shadow:0 0 0 10px rgba(69,166,139,0)} }
.status-stage-time {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(160, 188, 224, 0.28);
}
.status-stage-time span:first-child { color: var(--text); font-weight: 700; }
.status-estimate { text-align:center; margin-top:12px; padding:10px; background:rgba(69,166,139,0.08); border-radius:10px; font-size:12px; color:var(--accent); font-weight:600; }
.status-refresh { text-align:center; font-size:10px; color:var(--muted); margin-top:8px; }

.reserves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.reserve-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,0.32), transparent 44%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 8px 18px rgba(75, 102, 150, 0.07);
  padding: 10px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.how-card h3 { margin: 0 0 6px; font-size: 17px; }
.how-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 6%, rgba(255,255,255,0.32), transparent 40%),
    var(--glass);
  backdrop-filter: blur(22px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 8px 18px rgba(75, 102, 150, 0.07);
}
.faq-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-panel p { margin: 0; padding: 0 12px 12px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.faq-item.open .faq-panel { max-height: 220px; }
.support-strip {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: linear-gradient(155deg, rgba(255,255,255,0.34), rgba(193,233,248,0.2));
  backdrop-filter: blur(20px) saturate(1.12);
}
.support-strip a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.support-strip a:hover { text-decoration: underline; }
.assist-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(155deg, rgba(255,255,255,0.54), rgba(172,223,255,0.34));
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(18px);
}
.ai-terminal {
  position: fixed;
  right: 16px;
  bottom: 62px;
  width: min(92vw, 340px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.4), rgba(186,224,255,0.24));
  backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 16px 34px rgba(34, 54, 92, 0.26);
  z-index: 45;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .26s var(--ease-cinematic), transform .26s var(--ease-cinematic);
}
.ai-terminal.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-head {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.ai-head button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.28);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.ai-log {
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
.ai-log .line {
  margin-bottom: 8px;
  border-left: 2px solid rgba(104, 206, 255, 0.45);
  padding-left: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.modal.open { display: flex; }
body:has(.modal.open) { overflow: hidden; overscroll-behavior: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 19, 0.62);
  backdrop-filter: blur(10px);
}
.modal.open { overscroll-behavior: contain; touch-action: pan-y; }
.modal-card {
  position: relative;
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 4%, rgba(255,255,255,0.72), transparent 46%),
    radial-gradient(circle at 86% 82%, rgba(122,195,255,0.3), transparent 58%),
    radial-gradient(circle at 72% 12%, rgba(113,240,213,0.22), transparent 56%),
    linear-gradient(160deg, rgba(255,255,255,0.34), rgba(220,239,255,0.22));
  backdrop-filter: blur(44px) saturate(1.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 18px 44px rgba(44, 64, 110, 0.24),
    0 0 0 1px rgba(132, 208, 255, 0.16),
    0 0 36px rgba(104, 189, 255, 0.16),
    0 0 54px rgba(97, 230, 196, 0.11);
  padding: 16px;
  animation: modalNeonIn 520ms var(--ease-cinematic) both;
}
.modal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(164, 225, 255, 0.34);
  box-shadow:
    inset 0 0 24px rgba(143, 216, 255, 0.12),
    0 0 22px rgba(131, 206, 255, 0.22);
  opacity: 0.78;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-head h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.modal-grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 16px; }
.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(255,255,255,0.42), rgba(193,236,255,0.24));
  border-color: rgba(159, 224, 255, 0.36);
}
.modal-close-btn:hover {
  box-shadow: 0 0 18px rgba(124, 216, 255, 0.26);
  transform: translateY(-1px) scale(1.02);
}
.modal-info > div {
  margin-bottom: 8px;
}
.modal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 0 0 1px rgba(144, 216, 255, 0.06);
}
.modal-label {
  margin-top: 10px;
}
.modal-info code {
  display: block;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.24);
  border-radius: 12px;
  padding: 10px;
  word-break: break-all;
  font-size: 12px;
}
.actions { display: flex; gap: 8px; margin-top: 8px; }
.statusline { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tg-row > div { width: 100%; }
.tg-row label { display:block; margin-bottom:6px; font-weight:700; color: var(--text); }
.quote-meta h3 { margin: 0 0 6px; font-size: 20px; }
.journey-block h3 { margin: 0 0 10px; font-size: 18px; }
.journey-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.24);
  padding: 9px 10px;
  font-size: 12px;
  color: var(--muted);
  transition: border-color .24s var(--ease-cinematic), background .24s var(--ease-cinematic), transform .24s var(--ease-cinematic), box-shadow .24s var(--ease-cinematic);
}
.journey-step i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  background: rgba(255,255,255,0.52);
  color: var(--text);
}
.journey-step.active {
  color: var(--text);
  border-color: rgba(113, 217, 191, 0.54);
  background: linear-gradient(145deg, rgba(179, 245, 227, 0.28), rgba(179, 212, 255, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(78, 141, 129, 0.16);
}
.journey-step.done i {
  background: linear-gradient(145deg, #84f0d8, #9bc3ff);
}
.trust-layer { margin-top: 16px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.trust-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,0.36), transparent 44%),
    linear-gradient(160deg, var(--glass), rgba(255,255,255,0.16));
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 10px 22px rgba(64, 102, 151, 0.12);
}
.trust-k {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.trust-v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.trust-swaps {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.trust-swap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(255,255,255,0.2);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.quote-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.28);
}
.quote-item span {
  display:block;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 5px;
}
.quote-item strong { font-size: 22px; color: var(--text); }
.hologram-card {
  position: relative;
  border: 1px solid rgba(142, 220, 255, 0.42);
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(141, 255, 228, 0.2), transparent 46%),
    radial-gradient(120% 100% at 100% 0%, rgba(137, 176, 255, 0.18), transparent 50%),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    inset 0 0 24px rgba(121, 214, 255, 0.1),
    0 14px 30px rgba(52, 88, 138, 0.14);
  overflow: hidden;
}
.hologram-card::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-45%);
  animation: holoSweep 7.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holoSweep {
  0%, 100% { transform: translateX(-45%); opacity: .35; }
  50% { transform: translateX(45%); opacity: .62; }
}
.progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(139, 158, 188, 0.25);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #52cdb0, #85a8ff);
  box-shadow: 0 0 14px rgba(102, 201, 255, 0.36);
}
.qr-wrap {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.34), rgba(210,233,255,0.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 22px rgba(116, 204, 255, 0.2);
  animation: qrAura 2.8s ease-in-out infinite;
}
#modal_qrcode {
  width: 196px;
  min-height: 196px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 0 0 1px rgba(145, 216, 255, 0.16),
    0 0 18px rgba(122, 208, 255, 0.18);
}
.qr-wrap span {
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

/* Modal V2 */
.modal-card-v2 {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(170, 255, 236, 0.28), transparent 48%),
    radial-gradient(120% 140% at 100% 0%, rgba(198, 233, 255, 0.24), transparent 52%),
    linear-gradient(160deg, rgba(250, 255, 254, 0.6), rgba(240, 250, 255, 0.5));
  border: 1px solid rgba(171, 239, 225, 0.48);
  box-shadow: 0 14px 34px rgba(39, 98, 124, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 0 18px rgba(167, 238, 223, 0.18);
}
.modal-v2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-v2-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(47, 102, 120, 0.9); }
.modal-v2-head h3 { margin: 4px 0 0; font-size: 26px; }
.modal-v2-close {
  width: 38px; height: 38px; border: 1px solid rgba(136, 220, 200, 0.6); border-radius: 12px;
  background: rgba(240, 255, 251, 0.35); color: #1f4a57; cursor: pointer;
  transition: transform .26s var(--ease-cinematic), background .26s var(--ease-cinematic), border-color .26s var(--ease-cinematic);
}
.modal-v2-close:hover { transform: translateY(-1px) scale(1.03); background: rgba(188, 255, 239, 0.46); border-color: rgba(132, 218, 197, 0.78); }
.modal-v2-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 14px; }
.success-wave {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%) scale(0.72);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, rgba(233,255,248,0.9), rgba(130,246,218,0.64));
  box-shadow: 0 0 0 0 rgba(117, 234, 209, 0.58);
  opacity: 0;
  pointer-events: none;
}
.success-check {
  font-size: 22px;
  color: #194b3e;
  font-weight: 800;
}
.modal-card.success-pop .success-wave {
  animation: successPop .7s var(--ease-cinematic) forwards;
}
.modal-card.success-pop .success-wave::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(144, 247, 225, 0.62);
  animation: successRing .72s ease-out forwards;
}
@keyframes successPop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.72); }
  40% { opacity: 1; transform: translateX(-50%) scale(1.06); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes successRing {
  from { opacity: .8; transform: scale(0.86); }
  to { opacity: 0; transform: scale(1.58); }
}
.modal-ticket {
  border: 1px solid rgba(140, 225, 204, 0.34); border-radius: 16px; padding: 12px;
  background: rgba(250, 255, 253, 0.44); backdrop-filter: blur(8px);
}
.ticket-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(102, 176, 178, 0.24);
}
.ticket-row span { color: rgba(36, 89, 102, 0.92); font-size: 12px; }
.ticket-row code { color: #1e6f83; font-size: 12px; }
.ticket-row strong { color: #153945; font-weight: 700; }
.ticket-address { margin-top: 10px; }
.ticket-address span { color: rgba(36, 89, 102, 0.92); font-size: 12px; }
.ticket-address code {
  display: block; margin-top: 6px; padding: 10px; border: 1px solid rgba(120, 210, 190, 0.28);
  border-radius: 12px; background: rgba(232, 255, 248, 0.24); color: #1d5f73; word-break: break-all;
}
.local-demo-notice {
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(121, 219, 199, 0.28);
  border-radius: 10px;
  background: rgba(121, 219, 199, 0.08);
  color: #bcefe0;
  font-size: 12px;
  line-height: 1.4;
}
.local-test-qr {
  border: 1px dashed rgba(121, 219, 199, 0.46) !important;
  background: rgba(121, 219, 199, 0.04) !important;
}
.modal-card-v2 .ghost-btn:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.progress-v2 { height: 11px; background: rgba(130, 166, 179, 0.28); }
.progress-v2 > div { background: linear-gradient(90deg, #62e8cf, #8df1de 60%, #9beef6); }
.modal-qr-panel {
  border: 1px solid rgba(140, 225, 204, 0.32); border-radius: 16px; background: rgba(246, 255, 252, 0.24);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100%;
}
.modal-qr-panel span { font-size: 12px; color: #245c6f; text-align: center; }
.modal-qr-panel #modal_qrcode {
  width: 208px;
  min-width: 208px;
  height: 208px;
  min-height: 208px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: transparent !important;
  box-shadow: none;
  overflow: hidden;
}
.modal-qr-panel #modal_qrcode img,
.modal-qr-panel #modal_qrcode canvas {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: transparent !important;
}

/* Modal aligned with the glass language of the order tracker. */
.modal-card-v2 .ghost-btn,
.modal-card-v2 a.ghost-btn {
  text-decoration: none !important;
  box-shadow: none;
}
.modal-card-v2 .ghost-btn[hidden] { display: none; }
.modal-card-v2 .ticket-row { border-bottom-style: solid; }
body[data-theme="dark"] .modal-card-v2 {
  background: linear-gradient(145deg, rgba(27, 38, 48, .97), rgba(10, 16, 23, .98));
  border-color: rgba(191, 214, 226, .25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.58);
  color: #eff7fa;
}
body[data-theme="dark"] .modal-v2-kicker,
body[data-theme="dark"] .ticket-row span,
body[data-theme="dark"] .ticket-address span,
body[data-theme="dark"] .modal-qr-panel span { color: #91a6ad; }
body[data-theme="dark"] .modal-v2-head h3,
body[data-theme="dark"] .ticket-row strong { color: #eff7fa; }
body[data-theme="dark"] .modal-v2-close,
body[data-theme="dark"] .modal-ticket,
body[data-theme="dark"] .modal-qr-panel {
  background: rgba(255,255,255,.045);
  border-color: rgba(214, 237, 244, .15);
  color: #eff7fa;
}
body[data-theme="dark"] .ticket-row { border-color: rgba(214, 237, 244, .1); }
body[data-theme="dark"] .ticket-row code,
body[data-theme="dark"] .ticket-address code { color: #bcefe0; background: rgba(121,219,199,.08); border-color: rgba(121,219,199,.2); }
body[data-theme="dark"] .modal-card-v2 .ghost-btn { background: rgba(255,255,255,.07); border-color: rgba(214,237,244,.16); color: #eaf4f5; }
body[data-theme="dark"] .modal-card-v2 .ghost-btn:hover { background: rgba(121,219,199,.13); border-color: rgba(121,219,199,.38); }
body[data-theme="dark"] .progress-v2 { background: rgba(255,255,255,.09); }
body[data-theme="light"] .modal-card-v2 {
  background: linear-gradient(145deg, rgba(248, 252, 255, .97), rgba(223, 233, 242, .96));
  border-color: rgba(73, 102, 118, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 30px 80px rgba(30,52,70,.22);
}
body[data-theme="light"] .modal-ticket,
body[data-theme="light"] .modal-qr-panel { background: rgba(255,255,255,.46); border-color: rgba(73,102,118,.18); }
body[data-theme="light"] .modal-card-v2 .ghost-btn { background: rgba(31,53,67,.08); border-color: rgba(45,77,94,.2); color: #173442; }

/* Timeline receipt: route on the left, payment verification on the right. */
.modal-card-v2 { width:min(600px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:14px; }
.modal-transfer-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(224px,.72fr); gap:12px; }
.modal-timeline-card,.modal-payment-card { border:1px solid rgba(214,237,244,.15); border-radius:16px; background:rgba(255,255,255,.04); padding:14px; }
.timeline-order { display:flex; align-items:center; gap:9px; padding-bottom:13px; border-bottom:1px solid rgba(214,237,244,.1); color:#9eb4bd; font-size:12px; }
.timeline-order code { margin-left:auto; max-width:60%; overflow:hidden; text-overflow:ellipsis; color:#bcefe0; font-size:12px; }
.timeline-order button { border:0; background:transparent; color:#8ccfbe; cursor:pointer; font:inherit; font-weight:700; white-space:nowrap; }
.timeline-route { display:grid; gap:0; margin:14px 0 10px; }
.timeline-step { position:relative; display:grid; grid-template-columns:27px 1fr; gap:10px; min-height:54px; color:#71858e; }
.timeline-step:not(:last-child)::after { content:""; position:absolute; left:14px; top:29px; bottom:0; width:1px; background:rgba(214,237,244,.14); }
.timeline-step i { position:relative; z-index:1; display:grid; place-items:center; width:27px; height:27px; border:1px solid rgba(214,237,244,.17); border-radius:50%; background:#17232c; color:#8fa3ac; font-style:normal; font-size:11px; }
.timeline-step b,.timeline-step span { display:block; }.timeline-step b { color:inherit; font-size:13px; }.timeline-step span { margin-top:2px; font-size:10px; line-height:1.3; }
.timeline-step.active { color:#eaf4f5; }.timeline-step.active i,.timeline-step.done i { border-color:rgba(121,219,199,.58); background:rgba(121,219,199,.16); color:#bcefe0; }.timeline-step.done { color:#9ecabb; }.timeline-step.done i::after { content:"✓"; font-size:13px; }
.timeline-step.done i { font-size:0; }.timeline-status { display:flex; justify-content:space-between; gap:12px; color:#a8bec7; font-size:12px; }.timeline-status b { color:#dcecf0; }.timeline-link { display:inline-flex; margin-top:14px; color:#9ee6d0; font-size:12px; font-weight:700; text-decoration:none; width:max-content; }
.modal-payment-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.payment-checklist { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; width:100%; }
.payment-checklist div { min-width:0; padding:9px; border:1px solid rgba(121,219,199,.16); border-radius:12px; background:rgba(121,219,199,.06); }
.payment-checklist span,.payment-checklist b { display:block; }
.payment-checklist span { color:#8fa5ae; font-size:10px; }
.payment-checklist b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; color:#eaf4f5; font-size:12px; }
.modal-qr-shell {
  width: 100%;
  min-height: 0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:6px;
  padding:6px 6px 8px 6px;
  border:1px solid rgba(121,219,199,.14);
  border-radius:16px;
  background:rgba(121,219,199,.06);
}
.modal-payment-card #modal_qrcode {
  width: 176px;
  min-width: 176px;
  height: 176px;
  min-height: 176px;
  margin:0;
  border:1px dashed rgba(121,219,199,.34);
  border-radius:12px;
  background:var(--qr-light) !important;
  box-shadow:none;
}
.modal-payment-card #modal_qrcode img,
.modal-payment-card #modal_qrcode canvas { display:block; margin:0 !important; }
.qr-hint { color:#9eb4bd; text-align:left; font-size:11px; line-height:1.35; max-width: 210px; }
.modal-summary-note { margin:0; color:#8ea2ad; font-size:11px; line-height:1.45; text-align:left; width:100%; }
.payment-actions { display:flex; gap:8px; width:100%; margin-top:0; }
.payment-actions .ghost-btn,.wallet-launch { flex:1; display:inline-flex; align-items:center; justify-content:center; min-height:38px; border:1px solid rgba(214,237,244,.16); border-radius:10px; color:#eaf4f5; background:rgba(255,255,255,.07); font:inherit; font-size:11px; font-weight:800; text-decoration:none; }
.wallet-launch { border-color:rgba(121,219,199,.35); background:rgba(121,219,199,.14); color:#bcefe0; }
.wallet-launch[hidden] { display:none; }
body[data-theme="light"] .modal-timeline-card,body[data-theme="light"] .modal-payment-card { background:rgba(255,255,255,.48); border-color:rgba(45,77,94,.18); }
body[data-theme="light"] .modal-qr-shell { background:rgba(255,255,255,.5); border-color:rgba(45,77,94,.14); }
body[data-theme="light"] .modal-summary-note { color:#587083; }
@media(max-width:900px){.modal-card-v2{width:min(480px,calc(100vw - 24px));}.modal-transfer-grid{grid-template-columns:1fr}.modal-v2-head h3{font-size:22px}.payment-checklist{grid-template-columns:1fr 1fr 1fr}.modal-qr-shell{padding:6px}.modal-payment-card #modal_qrcode{width:164px;min-width:164px;height:164px;min-height:164px}.timeline-step{min-height:50px}}
@media(max-width:480px){.modal-card-v2{width:calc(100vw - 16px);max-height:calc(100vh - 16px);padding:12px}.modal-v2-head{margin-bottom:10px}.modal-v2-head h3{font-size:20px}.timeline-order{gap:6px}.timeline-order code{max-width:47%}.payment-checklist{gap:5px}.payment-checklist div{padding:8px}.modal-qr-shell{padding:4px}.payment-actions{flex-direction:column}.payment-actions .ghost-btn,.wallet-launch{width:100%}}

/* Payment modal / top-up */
.modal-card-pay {
  width: min(1460px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 26px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.30), transparent 18%),
    radial-gradient(circle at 74% 60%, rgba(134, 159, 208, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(226, 232, 238, 0.96), rgba(202, 213, 223, 0.95));
  border: 1px solid rgba(120, 144, 160, 0.35);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.72);
  animation: modalNeonIn 520ms var(--ease-cinematic) both;
  color: #173442;
}
.modal-card-pay::after {
  border-color: rgba(123, 163, 152, 0.18);
  box-shadow:
    inset 0 0 26px rgba(121, 219, 199, 0.05),
    0 0 28px rgba(121, 219, 199, 0.05);
}
.pay-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.pay-head-copy {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.pay-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b5f4e;
  background:
    radial-gradient(circle at 28% 28%, rgba(239, 255, 250, 0.98), rgba(121, 219, 199, 0.72));
  box-shadow:
    0 0 0 1px rgba(121, 219, 199, 0.36),
    0 16px 36px rgba(121, 219, 199, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.65);
  flex: 0 0 auto;
}
.pay-badge svg {
  width: 56px;
  height: 56px;
  display: block;
}
.pay-head h3 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
}
.pay-head p {
  margin: 0;
  color: rgba(238, 246, 251, 0.68);
  font-size: 15px;
  line-height: 1.45;
}
.modal-v2-kicker {
  color: #7e97a7;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  margin-bottom: 8px;
}
.modal-v2-close {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 1px solid rgba(120, 144, 160, 0.40);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 46px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.pay-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 22px;
  align-items: stretch;
}
.pay-summary,
.pay-qr-panel {
  border-radius: 30px;
  padding: 22px;
  border: 1px solid rgba(120, 144, 160, 0.32);
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,0.42), transparent 22%),
    linear-gradient(180deg, rgba(243, 247, 250, 0.96), rgba(226, 233, 239, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.64),
    inset 0 0 0 1px rgba(255,255,255,0.30);
}
.pay-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pay-summary-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 78px;
  border-top: 1px solid rgba(122, 145, 160, 0.24);
}
.pay-summary-row:first-child {
  border-top: 0;
}
.pay-summary-row span {
  color: #708494;
  font-size: 18px;
  line-height: 1.2;
}
.pay-summary-row strong {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: #193443;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1;
}
.pay-summary-row strong span {
  color: #193443;
  font-size: inherit;
  font-weight: inherit;
}
.pay-summary-row strong b {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}
.pay-summary-top {
  min-height: 88px;
}
.pay-summary-top code {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  color: #1d6f83;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-summary-value {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.pay-summary-address {
  align-items: start;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: auto;
}
.pay-summary-address .deposit-address-row {
  grid-template-columns: minmax(0, 1fr);
}
.pay-summary-address .deposit-address-row code {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(121, 219, 199, 0.24);
  background: rgba(255,255,255,0.48);
  color: #1d6f83;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-all;
}
.pay-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(121, 219, 199, 0.24);
  background: rgba(255,255,255,0.34);
  color: #4e6673;
  font-size: 15px;
  line-height: 1.55;
}
.pay-note span {
  color: #1d6f83;
  font-weight: 800;
}
.pay-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.pay-actions .ghost-btn,
.pay-actions button,
.pay-actions .wallet-launch {
  min-height: 58px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid rgba(120, 144, 160, 0.28);
  background: linear-gradient(180deg, rgba(90, 102, 116, 0.72), rgba(58, 67, 79, 0.88));
  color: #f1f5f9;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 24px rgba(28, 37, 48, 0.12);
}
.pay-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 16px;
  color: #7e97a7;
  font-size: 15px;
}
.pay-footer b {
  color: #1d6f83;
}
.pay-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100%;
  position: relative;
}
.pay-qr-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(56, 118, 118, 0.44);
  pointer-events: none;
}
.pay-qr-shell {
  width: min(100%, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26px;
  border: 1px solid rgba(121, 219, 199, 0.20);
  background:
    radial-gradient(circle at 28% 18%, rgba(121, 219, 199, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(235, 242, 247, 0.96));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    0 0 0 12px rgba(121, 219, 199, 0.06),
    0 24px 44px rgba(55, 72, 83, 0.16);
  padding: 18px;
}
.pay-qr-shell #modal_qrcode {
  width: min(100%, 360px);
  height: auto;
  margin: 0;
  padding: 0;
}
.pay-qr-shell #modal_qrcode > div {
  margin: 0 auto;
}
.pay-qr-panel .wallet-launch {
  min-width: 210px;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(61, 73, 85, 0.28);
  background: linear-gradient(180deg, rgba(87, 96, 108, 0.82), rgba(49, 58, 69, 0.92));
  color: #f5f7fb;
  font-size: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 24px rgba(35, 43, 52, 0.12);
}
.pay-qr-panel .qr-hint {
  max-width: 320px;
  text-align: center;
  color: #607685;
  font-size: 15px;
  line-height: 1.45;
}
body[data-theme="light"] .modal-card-pay {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.30), transparent 18%),
    radial-gradient(circle at 74% 60%, rgba(134, 159, 208, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(226, 232, 238, 0.98), rgba(202, 213, 223, 0.97));
}
body[data-theme="light"] .pay-head p,
body[data-theme="light"] .pay-summary-row span,
body[data-theme="light"] .pay-qr-panel .qr-hint,
body[data-theme="light"] .pay-footer,
body[data-theme="light"] .pay-note { color: #587083; }
body[data-theme="light"] .pay-summary-row strong,
body[data-theme="light"] .pay-summary-top code,
body[data-theme="light"] .pay-note span,
body[data-theme="light"] .pay-footer b { color: #173442; }
body[data-theme="light"] .pay-summary,
body[data-theme="light"] .pay-qr-panel {
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,0.52), transparent 22%),
    linear-gradient(180deg, rgba(243, 247, 250, 0.98), rgba(226, 233, 239, 0.94));
}
body[data-theme="light"] .pay-summary-address .deposit-address-row code,
body[data-theme="light"] .pay-note,
body[data-theme="light"] .pay-actions .ghost-btn,
body[data-theme="light"] .pay-actions button,
body[data-theme="light"] .pay-qr-panel .wallet-launch {
  border-color: rgba(90, 112, 125, 0.22);
}
body[data-theme="light"] .pay-qr-shell {
  background:
    radial-gradient(circle at 28% 18%, rgba(121, 219, 199, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(237, 243, 248, 0.97));
}
@media (max-width: 1100px) {
  .modal-card-pay { width: min(860px, calc(100vw - 20px)); padding: 18px; }
  .pay-main { grid-template-columns: 1fr; }
  .pay-summary-row { grid-template-columns: 150px minmax(0, 1fr); }
  .pay-qr-panel { min-height: auto; }
  .pay-qr-shell { width: min(100%, 360px); }
}
@media (max-width: 560px) {
  .modal-card-pay { width: calc(100vw - 12px); max-height: calc(100vh - 12px); padding: 14px; border-radius: 24px; }
  .pay-head { margin-bottom: 14px; }
  .pay-badge { width: 64px; height: 64px; }
  .pay-badge svg { width: 40px; height: 40px; }
  .pay-head h3 { font-size: 24px; }
  .pay-head p { font-size: 13px; }
  .modal-v2-close { width: 54px; height: 54px; font-size: 34px; border-radius: 16px; }
  .pay-summary { padding: 16px; }
  .pay-summary-row { grid-template-columns: 1fr; gap: 10px; min-height: auto; padding: 14px 0; }
  .pay-summary-row strong { justify-content: flex-start; font-size: 18px; flex-wrap: wrap; }
  .pay-summary-top { min-height: auto; }
  .pay-summary-top code { font-size: 14px; white-space: normal; overflow: visible; }
  .pay-note { font-size: 13px; }
  .pay-actions { flex-direction: column; }
  .pay-actions .ghost-btn,
  .pay-actions button,
  .pay-actions .wallet-launch { width: 100%; min-height: 50px; font-size: 15px; }
  .pay-qr-shell { width: min(100%, 290px); padding: 12px; }
  .pay-qr-panel .wallet-launch { min-width: 0; }
}

/* Compact payment sheet */
.modal-card-pay {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px 30px 24px;
  border-radius: 28px;
  color: #eef7f6;
  background:
    radial-gradient(circle at 0% 0%, rgba(158, 182, 216, .18), transparent 26%),
    radial-gradient(circle at 100% 35%, rgba(121, 219, 199, .10), transparent 24%),
    radial-gradient(ellipse at 56% 52%, rgba(55, 83, 119, .24), transparent 42%),
    linear-gradient(145deg, rgba(23, 29, 38, .98), rgba(8, 12, 18, .99));
  border: 1px solid rgba(214, 224, 236, .20);
  box-shadow: 0 0 0 1px rgba(176, 193, 215, .05), 0 30px 100px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.modal-card-pay::after { border-color: rgba(176, 193, 215, .10); box-shadow: inset 0 0 30px rgba(121, 219, 199, .03); }
.pay-head { margin-bottom: 20px; align-items: center; }
.pay-head-copy { gap: 14px; }
.pay-badge { width: 62px; height: 62px; color: #d7fffa; background: radial-gradient(circle at 35% 30%, #a8d9d2, #4b7e88); box-shadow: 0 0 22px rgba(121, 219, 199, .20), inset 0 1px 0 rgba(255, 255, 255, .24); }
.pay-badge svg { width: 38px; height: 38px; }
.pay-head h3 { color: #f4f8f7; font-size: clamp(25px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 5px; }
.pay-head p { color: #9bacb2; font-size: 16px; }
.modal-v2-close { width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 37, 43, .62); color: #dae6e7; border-color: rgba(197, 220, 220, .18); font-size: 36px; }
.pay-main { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 20px 20px 16px; border: 1px solid rgba(214, 224, 236, .12); border-radius: 20px; background: linear-gradient(135deg, rgba(35, 44, 56, .82), rgba(14, 20, 28, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 55px rgba(121, 219, 199, .035); }
.pay-amount-label { color: #9dacb1; font-size: 15px; margin: 2px 0 11px; }
.pay-amount { color: #fafdfd; font-size: clamp(36px, 6vw, 48px); font-weight: 750; line-height: 1; letter-spacing: -.045em; }
.pay-amount b { color: var(--accent); font-weight: 650; }
.pay-asset-pill { display: flex; align-items: center; gap: 10px; min-width: 200px; margin: 16px 0 20px; padding: 9px 14px; border: 1px solid rgba(151, 198, 191, .20); border-radius: 14px; background: rgba(55, 79, 82, .50); color: #dde9e7; font-size: 15px; }
.pay-asset-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffb547, #f18a17); color: white; font-size: 20px; font-weight: 700; }
.pay-chevron { margin-left: auto; color: #b0c8c7; font-size: 24px; line-height: 1; }
.pay-qr-shell { position: relative; width: min(100%, 260px); aspect-ratio: 1; padding: 13px; border-radius: 20px; border: 1px solid rgba(121, 219, 199, .42); background: rgba(12, 19, 27, .84); box-shadow: 0 0 0 5px rgba(121, 219, 199, .025), 0 0 24px rgba(121, 219, 199, .12), inset 0 0 0 1px rgba(226, 255, 245, .07); }
.pay-qr-shell::before, .pay-qr-shell::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--accent); border-style: solid; }
.pay-qr-shell::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.pay-qr-shell::after { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
.pay-qr-shell #modal_qrcode { width: 100%; height: 100%; display: grid; place-items: center; position: relative; z-index: 1; }
.pay-qr-shell #modal_qrcode > div { margin: 0 !important; }
.pay-qr-shell #modal_qrcode canvas, .pay-qr-shell #modal_qrcode img { width: 100% !important; height: 100% !important; display: block; image-rendering: pixelated; }
.pay-address-label { align-self: stretch; color: #9dacb1; margin: 28px 0 10px; font-size: 15px; }
.pay-address-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; width: 100%; min-height: 70px; overflow: hidden; border: 1px solid rgba(121, 219, 199, .32); border-radius: 14px; background: rgba(10, 16, 24, .70); }
.pay-address-row code { align-self: center; min-width: 0; padding: 0 17px; overflow: hidden; color: #e9faf1; font: 15px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.pay-address-row button, .pay-order-line button { border: 1px solid rgba(121, 219, 199, .42); background: linear-gradient(135deg, rgba(121, 219, 199, .28), rgba(69, 157, 151, .20)); color: #dffff8; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 5px 16px rgba(70, 208, 185, .12); transition: transform .18s ease, background .18s ease; }
.pay-address-row button { border-width: 0 0 0 1px; font-size: 30px; }
.pay-address-row button:hover, .pay-order-line button:hover { transform: translateY(-1px); background: rgba(121, 219, 199, .38); }
.pay-status-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; width: 100%; margin-top: 26px; padding: 17px 8px; border: 1px solid rgba(176, 193, 215, .13); border-radius: 14px; background: rgba(8, 14, 22, .54); }
.pay-status-grid > div { display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; padding: 0 12px; min-width: 0; border-left: 1px solid rgba(111, 183, 155, .14); }
.pay-status-grid > div:first-child { border-left: 0; }
.pay-status-icon { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(121, 219, 199, .12); color: var(--accent); font-size: 20px; }
.pay-status-grid small { overflow: hidden; color: #a8bbba; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pay-status-grid b { overflow: hidden; color: var(--accent); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pay-note { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 22px; padding: 16px 18px; border-color: rgba(176, 193, 215, .14); border-radius: 14px; background: rgba(10, 16, 24, .58); color: #c8d8d6; font-size: 14px; line-height: 1.45; }
.pay-note > span { flex: 0 0 auto; color: var(--accent); font-size: 28px; }
.pay-note p { margin: 0; }
.pay-note b { color: #f0fffa; }
.pay-order-line { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 16px; color: #92a8a6; font-size: 12px; }
.pay-order-line code { overflow: hidden; min-width: 0; color: #c3ded6; text-overflow: ellipsis; white-space: nowrap; }
.pay-order-line button { margin-left: auto; padding: 7px 11px; border-radius: 9px; font: 700 12px/1 inherit; }
.pay-footer { width: 100%; margin-top: 21px; padding-top: 0; color: #a6b6b4; font-size: 13px; }
.pay-footer a { color: var(--accent); text-decoration: none; }
.pay-footer b { color: var(--accent); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; margin-top: 14px; }
.payment-methods .wallet-launch { display: inline-flex !important; width: auto; min-height: 50px; margin: 0; padding: 0 14px; border-radius: 13px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 750; text-align: center; }
.payment-method-trust { border: 1px solid rgba(121,219,199,.46) !important; background: linear-gradient(135deg, rgba(121,219,199,.28), rgba(69,157,151,.22)) !important; color: #e6fff8 !important; }
.payment-method-wc { border: 1px solid rgba(176,193,215,.25) !important; background: rgba(255,255,255,.06) !important; color: #e0eaf0 !important; }
.payment-methods .wallet-launch:hover { transform: translateY(-1px); filter: brightness(1.08); }
.walletconnect-state { width: 100%; margin-top: 13px; padding: 14px; border: 1px solid rgba(121,219,199,.25); border-radius: 13px; background: rgba(8,14,22,.56); color: #d7ebe6; }
.walletconnect-state strong { display: block; color: var(--accent); font-size: 14px; }
.walletconnect-state p { margin: 5px 0 12px; color: #a7bbb7; font-size: 13px; line-height: 1.4; }
.walletconnect-state button { border: 0; padding: 0; color: #c7f5e8; background: transparent; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
#telegram-notify-link { display: none !important; }
#telegram-notify-link:not([hidden]) { display: inline-flex !important; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid rgba(121,219,199,.42); border-radius: 13px; background: rgba(121,219,199,.14); color: #dffff8; font-weight: 700; text-decoration: none; }
body[data-theme="light"] .modal-card-pay { color: #eef7f6; background: radial-gradient(circle at 0% 0%, rgba(188,229,218,.20), transparent 26%), radial-gradient(circle at 100% 35%, rgba(76,238,151,.15), transparent 24%), linear-gradient(145deg, rgba(17,35,40,.98), rgba(3,13,18,.99)); }
@media (max-width: 560px) {
  .modal-card-pay { width: calc(100vw - 16px); max-height: calc(100vh - 16px); padding: 22px 16px; border-radius: 25px; }
  .pay-head { margin-bottom: 22px; align-items: flex-start; }
  .pay-head-copy { gap: 12px; }
  .pay-badge { width: 56px; height: 56px; }
  .pay-badge svg { width: 34px; height: 34px; }
  .pay-head h3 { font-size: 25px; }
  .pay-head p { font-size: 13px; }
  .modal-v2-close { width: 50px; height: 50px; font-size: 28px; }
  .pay-main { padding: 20px 14px 16px; }
  .pay-amount { font-size: 43px; }
  .pay-asset-pill { margin-bottom: 24px; }
  .pay-status-grid { grid-template-columns: 1fr; gap: 14px; }
  .pay-status-grid > div { border-left: 0; padding: 0 6px; }
  .pay-address-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .payment-methods { grid-template-columns: 1fr; }
}

/* Keep the payment sheet geometrically stable between consecutive opens. */
.modal {
  display: grid;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 18px;
  overflow-y: auto;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.modal.open {
  display: grid;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .18s ease;
}
.modal-card-pay {
  box-sizing: border-box;
  margin: auto;
  flex: 0 0 auto;
  animation: none;
  transform: none;
  will-change: opacity, transform;
}
.modal.open .modal-card-pay { animation: paymentSheetIn .2s cubic-bezier(.2,.8,.25,1) both; }
.modal-card-pay.success-pop { animation: none; }
@keyframes paymentSheetIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@media (max-width: 560px) {
  .modal { padding: 8px; align-items: start; }
  .modal-card-pay { margin: 0 auto; }
}

/* Final payment-sheet sizing: the overlay never scrolls the sheet off-centre. */
.modal:has(.modal-card-pay) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal:has(.modal-card-pay).open { display: flex; }
.modal-card-pay {
  width: min(540px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 48px));
  padding: 20px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.pay-head { margin-bottom: 14px; }
.pay-badge { width: 54px; height: 54px; }
.pay-badge svg { width: 32px; height: 32px; }
.pay-main { padding: 16px 16px 14px; }
.pay-amount { font-size: clamp(34px, 5vw, 42px); }
.pay-asset-pill { margin: 12px 0 15px; }
.pay-qr-shell { width: min(100%, 210px); padding: 10px; border-radius: 17px; }
.pay-qr-shell::before, .pay-qr-shell::after { width: 17px; height: 17px; }
.pay-address-label { margin: 18px 0 8px; }
.pay-address-row { min-height: 58px; }
.pay-status-grid { margin-top: 18px; padding: 13px 6px; }
.pay-note { margin-top: 15px; padding: 13px 15px; }
.pay-footer { margin-top: 15px; }
.payment-methods { margin-top: 10px; }
.pay-asset-pill {
  width: min(100%, 238px);
  min-width: 0;
  margin: 12px auto 15px;
  padding: 8px 11px;
  gap: 10px;
  border-color: rgba(121, 219, 199, .28);
  background: linear-gradient(135deg, rgba(121, 219, 199, .12), rgba(73, 113, 127, .26));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 26px rgba(0,0,0,.13);
}
.pay-asset-mark {
  overflow: hidden;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 19px;
  background: rgba(171, 193, 211, .12);
}
.pay-asset-mark img { display: block; width: 28px; height: 28px; object-fit: contain; filter: saturate(.68) brightness(.94); }
.pay-asset-pill[data-asset="sol"] .pay-asset-mark { background: rgba(91, 105, 143, .16); }
.pay-asset-copy { display: grid; gap: 1px; min-width: 0; text-align: left; }
.pay-asset-copy strong { overflow: hidden; color: #eef7f6; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.pay-asset-copy small { color: #9db7b4; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pay-asset-locked { display: grid; width: 22px; height: 22px; place-items: center; margin-left: auto; border: 1px solid rgba(121, 219, 199, .32); border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 800; }
@media (max-width: 560px) {
  .modal:has(.modal-card-pay) { padding: 8px; }
  .modal-card-pay {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px 14px;
    border-radius: 22px;
  }
  .pay-qr-shell { width: min(100%, 190px); }
}

/* Use the visible browser viewport, rather than the document height, for payment-sheet centring. */
#exchange-modal {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  padding: 16px;
  overflow: hidden;
}
#exchange-modal .modal-card-pay {
  position: relative;
  align-self: center;
  margin: 0;
}
/* A transformed body becomes the containing block of fixed children in Safari. */
body.payment-modal-open {
  transform: none !important;
  perspective: none !important;
  transform-style: flat !important;
  filter: none !important;
  animation: none !important;
}
@media (max-width: 560px) {
  #exchange-modal { padding: 8px; }
}

.app-toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 17px;
  border: 1px solid rgba(176, 193, 215, .18);
  border-radius: 14px;
  background: rgba(18, 25, 35, .95);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.app-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Language switch magic */
[data-i18n],
[data-i18n-placeholder] {
  transition: opacity 320ms var(--ease-cinematic), filter 320ms var(--ease-cinematic), transform 320ms var(--ease-cinematic);
}
body.lang-switching [data-i18n],
body.lang-switching [data-i18n-placeholder] {
  opacity: 0.2;
  filter: blur(2px);
  transform: translateY(4px) scale(0.996);
}

@keyframes modalNeonIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes qrAura {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.5),
      0 0 16px rgba(116, 204, 255, 0.16);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.62),
      0 0 28px rgba(108, 216, 255, 0.3);
  }
}
@keyframes coreFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes coreBurst {
  from { opacity: .9; transform: scale(.45); }
  to { opacity: 0; transform: scale(2.15); }
}
@keyframes dataPulse {
  from { opacity: .95; transform: translateY(-50%) scale(1); }
  to { opacity: 0; transform: translateY(-50%) scale(3.2); }
}

.hero-copy,
.form-shell,
.section,
.page-hero,
.glass-screen {
  animation: fadeUp calc(0.55s * var(--slow-multiplier)) var(--ease-cinematic) both;
}
/* ============ ФУТЕР ============ */
.footer {
    margin-top: 80px;
    padding: 50px 40px 30px;
    border-top: 2px solid var(--line);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--accent);
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin: 0 0 14px;
}

.footer-col p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-left: 0; }
  .form-shell { margin-top: 0; }
  .rate-cloud { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-v2-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  #modal_qrcode {
    width: 180px;
    min-height: 180px;
  }
}
@media (max-width: 740px) {
  .ribbon-wrap { grid-template-columns: 1fr; }
  .local-mode-pill { margin-left: 0; text-align: center; }
  .topbar {
    align-items: center;
    transform: none !important;
    z-index: 1200;
  }
  .topbar.chamber-layer { transform: none !important; }
  .burger-btn {
    display: inline-flex;
    z-index: 1202;
    position: relative;
  }
  .top-actions {
    position: fixed;
    right: 10px;
    top: 62px;
    width: min(86vw, 320px);
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1px solid rgba(170, 233, 222, 0.44);
    border-radius: 18px;
    background:
      linear-gradient(160deg, rgba(255,255,255,0.56), rgba(215,236,255,0.34));
    backdrop-filter: blur(20px) saturate(1.08);
    box-shadow:
      0 22px 42px rgba(34, 52, 88, 0.32),
      inset 0 1px 0 rgba(255,255,255,0.65),
      0 0 0 1px rgba(141, 235, 214, 0.1);
    transform: translate3d(24px, -4px, 0) scale(0.985);
    opacity: 0;
    pointer-events: none;
    z-index: 1203 !important;
    transition: transform .3s var(--ease-cinematic), opacity .26s var(--ease-cinematic), box-shadow .3s var(--ease-cinematic);
    will-change: transform, opacity;
  }
  .top-actions.open {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
    box-shadow:
      0 24px 54px rgba(34, 52, 88, 0.34),
      inset 0 1px 0 rgba(255,255,255,0.68),
      0 0 32px rgba(134, 228, 210, 0.2);
  }
  .top-actions .nav-link,
  .top-actions .toggle-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    transition: transform .2s var(--ease-cinematic), background .2s var(--ease-cinematic), border-color .2s var(--ease-cinematic);
  }
  .top-actions .nav-link:active,
  .top-actions .toggle-pill:active {
    transform: scale(0.985);
  }
  .top-actions .nav-link:hover,
  .top-actions .toggle-pill:hover {
    border-color: rgba(121, 219, 196, 0.52);
    background: rgba(255,255,255,0.42);
  }
  .field-row { grid-template-columns: 1fr; }
  .lookup-grid { grid-template-columns: 1fr; }
  .reserves-grid, .how-grid, .rate-cloud { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .app { padding: 10px 10px 126px; }
  .assist-toggle {
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1306;
    padding: 8px 12px;
    font-size: 14px;
  }
  .ai-terminal { right: 10px; bottom: 56px; width: calc(100vw - 20px); }
  .hero-copy h1 {
    font-size: clamp(34px, 10.4vw, 54px);
    line-height: 1.03;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  .coin-cloud { height: 176px; margin-top: 14px; }
  .cloud-coin { width: 46px; height: 46px; }
  .hero-side-glass { margin-top: 10px; }
  .review-card { min-width: min(86vw, 380px); max-width: min(90vw, 420px); }
  .reviews-wrap > .ghost-btn { width: 44px; height: 44px; font-size: 18px; }
  .form-shell { padding-bottom: 72px; }
  .footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* Shared responsive guardrails for every public template. */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, canvas { max-width: 100%; }
@media (max-width: 900px) {
  .app { width: min(100%, 920px); }
  .legal-page, .status-layout, .market-layout { grid-template-columns: 1fr; }
  .topbar { gap: 12px; }
  .top-actions { flex-wrap: wrap; }
  .market-table-wrap, .rate-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 740px) {
  body[data-theme="dark"] .top-actions { background: linear-gradient(160deg, rgba(15,22,31,.96), rgba(5,9,14,.98)); border-color: rgba(176,193,215,.22); box-shadow: 0 22px 42px rgba(0,0,0,.52); }
  body[data-theme="dark"] .top-actions .nav-link:hover, body[data-theme="dark"] .top-actions .toggle-pill:hover { background: rgba(121,219,199,.12); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding-inline: 20px; }
  .field, .asset-block, .market-stat-card, .how-card, .faq-item, .status-card { min-width: 0; }
  .modal, .modal-backdrop { padding: 8px; }
  .user-tools-section { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .verified-order-card { min-width: min(76vw, 340px); }
  .device-order-card { grid-template-columns: 1fr; }
  .asset-picker-panel {
    width: min(100%, calc(100vw - 44px));
    max-width: none;
    border-radius: 16px;
  }
  .network-picker .asset-picker-panel { width: 100%; }
  .asset-picker-list { max-height: min(320px, 44vh); }
}
@media (max-width: 480px) {
  .app { padding-inline: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .asset-block { padding: 14px; }
  .market-stats { grid-template-columns: 1fr 1fr; }
  .modal-card, .modal-card-v2 { border-radius: 22px; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 420px) {
  .assist-toggle {
    display: none;
  }
}

/* One desktop navigation system: logo and every pill share the same centre line. */
@media (min-width: 741px) {
  .topbar {
    min-height: 52px;
    align-items: center;
  }
  .top-actions {
    align-items: center;
  }
  .nav-link,
  .toggle-pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 12px;
    line-height: 1;
  }
}

/* Informational pages keep their reading column narrow, but their header uses
   the same full exchange width as the home screen. */
@media (min-width: 1181px) {
  .page-shell > .topbar:not(.chamber-layer) {
    width: min(1420px, calc(100vw - 48px));
    /* Do not use transform here: page-entry animation owns that property. */
    margin-left: max(-200px, calc(534px - 50vw));
    flex-wrap: nowrap;
  }
  .page-shell > .topbar:not(.chamber-layer) .top-actions {
    flex-wrap: nowrap;
  }
}
@media (min-width: 741px) and (max-width: 1180px) {
  .topbar { flex-wrap: wrap; }
  .top-actions { justify-content: flex-start; }
}


@media (max-width: 740px) {
  .menu-overlay {
    z-index: 1100 !important;
    background:
      radial-gradient(80% 50% at 100% 0%, rgba(133, 223, 205, 0.14), transparent 62%),
      rgba(8, 14, 24, 0.42);
    backdrop-filter: blur(5px) saturate(.92);
    -webkit-backdrop-filter: blur(5px) saturate(.92);
  }
} 
/* ПОДДЕРЖКА ТЕМ В HTML */
html[data-theme="light"] body {
  --bg-a: #f4f7fb;
  --bg-b: #edf4ff;
  --bg-c: #f5fbf7;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.52);
  --shine: rgba(255, 255, 255, 0.86);
  --text: #243258;
  --muted: #7083ad;
  --accent: #45a68b;
  --blue: #7b93d8;
  --danger: #d34b65;
  --ok: #1e9d74;
}

html[data-theme="dark"] body {
  --bg-a: #0d121a;
  --bg-b: #111a27;
  --bg-c: #0d1620;
  --glass: rgba(23, 36, 52, 0.24);
  --glass-strong: rgba(23, 36, 52, 0.34);
  --line: rgba(255, 255, 255, 0.24);
  --shine: rgba(255, 255, 255, 0.22);
  --text: #e8eff9;
  --muted: #9eb0ce;
  --accent: #5fd2b4;
  --blue: #8eb1ff;
}
/* ФИКС ТЕМ ДЛЯ MARKET */
html[data-theme="light"] body {
  --bg-a: #f4f7fb;
  --bg-b: #edf4ff;
  --bg-c: #f5fbf7;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.52);
  --shine: rgba(255, 255, 255, 0.86);
  --text: #243258;
  --muted: #7083ad;
  --accent: #45a68b;
  --blue: #7b93d8;
  --danger: #d34b65;
  --ok: #1e9d74;
}

html[data-theme="dark"] body {
  --bg-a: #0d121a;
  --bg-b: #111a27;
  --bg-c: #0d1620;
  --glass: rgba(23, 36, 52, 0.24);
  --glass-strong: rgba(23, 36, 52, 0.34);
  --line: rgba(255, 255, 255, 0.24);
  --shine: rgba(255, 255, 255, 0.22);
  --text: #e8eff9;
  --muted: #9eb0ce;
  --accent: #5fd2b4;
  --blue: #8eb1ff;
}

/* ФИКС ШАПКИ В ТАБЛИЦЕ */
.rate-table thead th {
  background: var(--bg-a) !important;
} 

/* Мобильная кнопка языка рядом с бургером */
.header-actions-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.lang-btn-mobile {
  display: none;
}

.theme-desktop {
  display: inline-flex;
}

@media (max-width: 740px) {
  .header-actions-mobile {
    display: inline-flex;
    z-index: 1202;
    position: relative;
  }

  .lang-btn-mobile {
    display: inline-flex;
  }

  #theme-toggle,
  #lang-toggle {
    display: none !important;
  }

  .theme-desktop {
    display: none;
  }
}

/* Unified dark glass surface shared with the exchange feed. */
body.neural-chamber[data-theme="dark"] {
  background:
    radial-gradient(920px 560px at 16% 10%, rgba(112,139,174,.13), transparent 60%),
    radial-gradient(840px 520px at 86% 18%, rgba(116,198,188,.07), transparent 60%),
    linear-gradient(145deg, #05070b, #0a1017 44%, #0d141d);
}
body.neural-chamber[data-theme="dark"] .glass-screen,
body.neural-chamber[data-theme="dark"] .hero-side-glass,
body.neural-chamber[data-theme="dark"] .hero-side-card,
body.neural-chamber[data-theme="dark"] .hero-mini-swap,
body.neural-chamber[data-theme="dark"] .reviews-section,
body.neural-chamber[data-theme="dark"] .topbar {
  background: linear-gradient(145deg, rgba(31,40,52,.72), rgba(16,21,28,.92));
  border-color: rgba(220,228,240,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 22px 56px rgba(0,0,0,.4);
}
body.neural-chamber[data-theme="dark"] .hero-copy .accent { color: #79dbc7; }
body.neural-chamber[data-theme="dark"] .brand-mark { background: linear-gradient(145deg, #2d5964, #162b35); box-shadow: 0 12px 30px rgba(0,0,0,.32); }
body.neural-chamber[data-theme="dark"] .coin-orbit,
body.neural-chamber[data-theme="dark"] .asset-orbit { filter: saturate(.52) brightness(.82); }
body.neural-chamber[data-theme="dark"] .submit-btn { background: linear-gradient(135deg, #315963, #1a343c 68%, #101c22); border-color: rgba(121,219,199,.28); }
body.neural-chamber[data-theme="dark"] .submit-btn:not(:disabled):hover { box-shadow: 0 18px 34px rgba(0,0,0,.48), 0 0 0 1px rgba(121,219,199,.18); }

body[data-cabinet].neural-chamber[data-theme="dark"] .hero-side-glass,
body[data-cabinet].neural-chamber[data-theme="dark"] .hero-side-card,
body[data-cabinet].neural-chamber[data-theme="dark"] .hero-mini-swap,
body[data-cabinet].neural-chamber[data-theme="dark"] .glass-screen,
body[data-cabinet].neural-chamber[data-theme="dark"] .reviews-section,
body[data-cabinet].neural-chamber[data-theme="dark"] .topbar {
  background:
    radial-gradient(circle at 16% 8%, rgba(138, 162, 190, 0.06), transparent 40%),
    linear-gradient(165deg, rgba(23, 29, 38, 0.9), rgba(8, 12, 18, 0.98));
  border-color: rgba(214, 224, 236, 0.12);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 0 0 1px rgba(176, 193, 215, 0.06);
}

body.reference-motion .topbar,
body.reference-motion .ribbon-wrap,
body.reference-motion .hero-copy,
body.reference-motion .hero-side-glass,
body.reference-motion .glass-screen,
body.reference-motion .reviews-section,
body.reference-motion .footer,
body.reference-motion .market-page > *,
body.reference-motion .page-shell > *,
body.reference-motion .concept-wrap > .footer,
body.reference-motion .concept-wrap > .stage {
  opacity: 0;
  transform: translateY(20px) scale(.985);
  filter: blur(10px);
  animation: refMainIn 820ms cubic-bezier(.2,.72,.2,1) forwards;
  will-change: transform, opacity, filter;
}

body.reference-motion .topbar { animation-delay: 80ms; }
body.reference-motion .ribbon-wrap { animation-delay: 160ms; }
body.reference-motion .hero-copy { animation-delay: 240ms; }
body.reference-motion .hero-side-glass { animation-delay: 420ms; }
body.reference-motion .glass-screen { animation-delay: 300ms; }
body.reference-motion .reviews-section { animation-delay: 520ms; }
body.reference-motion .footer { animation-delay: 620ms; }
body.reference-motion .market-page > *:nth-child(1) { animation-delay: 120ms; }
body.reference-motion .market-page > *:nth-child(2) { animation-delay: 230ms; }
body.reference-motion .market-page > *:nth-child(3) { animation-delay: 340ms; }
body.reference-motion .market-page > *:nth-child(4) { animation-delay: 450ms; }
body.reference-motion .page-shell > *:nth-child(2) { animation-delay: 140ms; }
body.reference-motion .page-shell > *:nth-child(3) { animation-delay: 280ms; }
body.reference-motion .page-shell > *:nth-child(4) { animation-delay: 420ms; }
body.reference-motion .hero-copy > *,
body.reference-motion .glass-screen > *,
body.reference-motion .reviews-section > *,
body.reference-motion .footer > * {
  animation: refSubIn 720ms cubic-bezier(.2,.72,.2,1) both;
}
body.reference-motion .hero-copy > *:nth-child(1) { animation-delay: 120ms; }
body.reference-motion .hero-copy > *:nth-child(2) { animation-delay: 180ms; }
body.reference-motion .hero-copy > *:nth-child(3) { animation-delay: 240ms; }
body.reference-motion .hero-copy > *:nth-child(4) { animation-delay: 320ms; }
body.reference-motion .hero-copy > *:nth-child(5) { animation-delay: 400ms; }
body.reference-motion .hero-copy > *:nth-child(6) { animation-delay: 480ms; }
body.reference-motion .glass-screen > *:nth-child(1) { animation-delay: 140ms; }
body.reference-motion .glass-screen > *:nth-child(2) { animation-delay: 210ms; }
body.reference-motion .glass-screen > *:nth-child(3) { animation-delay: 280ms; }
body.reference-motion .glass-screen > *:nth-child(4) { animation-delay: 350ms; }
body.reference-motion .glass-screen > *:nth-child(5) { animation-delay: 420ms; }
body.reference-motion .glass-screen > *:nth-child(6) { animation-delay: 490ms; }

@keyframes refMainIn {
  0% { opacity: 0; transform: translateY(24px) scale(.975); filter: blur(12px); }
  55% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes refSubIn {
  0% { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* One Orbit identity mark is used in every public navigation header. */
.brand-mark {
  background: url("/static/favicon.svg") center / 100% 100% no-repeat !important;
  box-shadow: 0 12px 30px rgba(75, 136, 175, 0.28);
}

.brand-mark::after {
  content: none;
}

/* Verified-exchange carousel controls share the exchange's glass language. */
.reviews-wrap{position:relative;display:block;padding-inline:72px}
.reviews-controls{position:absolute;inset:50% 0 auto;display:flex;justify-content:space-between;transform:translateY(-50%);pointer-events:none;z-index:3}
.reviews-nav-btn{width:52px;height:52px;display:inline-grid;place-items:center;padding:0;border:1px solid rgba(177,203,221,.3);border-radius:16px;background:linear-gradient(145deg,rgba(46,61,76,.84),rgba(12,19,28,.94));color:#e8f5f8;cursor:pointer;pointer-events:auto;backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 28px rgba(0,0,0,.24);transition:transform .22s var(--ease-cinematic),background .22s ease,border-color .22s ease,box-shadow .22s ease}
.reviews-nav-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s var(--ease-cinematic)}
.reviews-nav-btn:hover{transform:translateY(-2px);border-color:rgba(121,219,199,.62);background:linear-gradient(145deg,rgba(55,87,94,.9),rgba(15,32,40,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 16px 30px rgba(0,0,0,.3),0 0 22px rgba(121,219,199,.14)}
.reviews-nav-btn:hover svg{transform:scale(1.08)}
.reviews-nav-btn:active{transform:scale(.94);box-shadow:inset 0 2px 7px rgba(0,0,0,.22)}
.reviews-nav-btn:focus-visible{outline:2px solid #89ead9;outline-offset:3px}
@media(max-width:740px){.reviews-wrap{padding-inline:0}.reviews-controls{position:static;display:flex;justify-content:flex-end;gap:9px;transform:none;margin-top:10px}.reviews-nav-btn{width:48px;height:44px;border-radius:13px}.reviews-nav-btn svg{width:20px;height:20px}.reviews-track{scroll-snap-type:x mandatory;scroll-padding-inline:2px}.review-card{scroll-snap-align:start}}
