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

:root {
  --bg: #0b2a5a;
  --ink: #0f172a;
  --ink-soft: #6b7280;
  --panel: #ffffff;
  --line: #e5edf9;
  --line-strong: #c6d6ef;
  --brand: #1b72f6;
  --brand-2: #1354c9;
  --good: #1da56a;
  --bad: #dd4d5b;
  --accent: #ff9f1a;
  --shadow: 0 24px 50px rgba(9, 21, 48, 0.2);
  --toast-vv-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 255, 153, 0.28), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.28), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(64, 255, 0, 0.22), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(0, 120, 255, 0.28), transparent 40%),
    linear-gradient(135deg, #031d16 0%, #0a2c1f 14%, #0c1f2b 28%, #0e1333 42%, #0f0b3a 56%, #0b2a3a 70%, #073a2a 84%, #03180f 100%);
  color: #eef3ff;
}

body {
  padding: 32px 14px 44px;
}

.home-body {
  background:
    linear-gradient(180deg, rgba(6, 18, 30, 0.92), rgba(6, 20, 32, 0.88)),
    url("/images/background.jpg") center/cover no-repeat fixed;
  color: #eef3ff;
}

.admin-body {
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 153, 0.2), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.2), transparent 45%),
    linear-gradient(135deg, #071a2b 0%, #0b2b2c 45%, #081e33 100%);
  color: #e8f1ff;
}

.admin-body .panel {
  background: #0f1f33;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e8f1ff;
}

.admin-body .panel-head h2,
.admin-body h3 {
  color: #e8f1ff;
}

.admin-body .market-table th {
  background: #0b1a2b;
  color: #a8c7f0;
}

.admin-body .market-table td {
  color: #e8f1ff;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
  background: #0c1a2a;
  color: #e8f1ff;
  border-color: rgba(148, 163, 184, 0.35);
}

/* UX & Loading Enhancements */
:root {
  --skeleton-base: rgba(148, 163, 184, 0.18);
  --skeleton-shine: rgba(255, 255, 255, 0.75);
  --skeleton-sheen: rgba(59, 130, 246, 0.18);
  --loading-pill-bg: rgba(255, 255, 255, 0.9);
  --loading-pill-text: #1d4ed8;
  --loading-pill-border: rgba(59, 130, 246, 0.3);
}

body[data-theme="dark"] {
  --skeleton-base: rgba(148, 163, 184, 0.16);
  --skeleton-shine: rgba(255, 255, 255, 0.25);
  --skeleton-sheen: rgba(56, 189, 248, 0.25);
  --loading-pill-bg: rgba(8, 18, 32, 0.78);
  --loading-pill-text: #8bd9ff;
  --loading-pill-border: rgba(56, 189, 248, 0.35);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
.hero-lite-copy h2,
.exchange-card-head h2,
.section-head h2 {
  font-family: "Space Grotesk", "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translateY(-4px) scale(1.03);
  }
}

.loading-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--loading-pill-border);
  background: var(--loading-pill-bg);
  color: var(--loading-pill-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.loading-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.status-dot {
  animation: pulse-dot 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
}

[data-loading="true"] .loading-pill,
[data-refreshing="true"] .loading-pill {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

.is-loading,
.skeleton-line,
.skeleton-pill,
.skeleton-btn,
.skeleton-block,
.skeleton-circle {
  background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-shine) 45%, var(--skeleton-base) 80%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 999px;
  color: transparent !important;
}

.is-loading {
  display: inline-block;
  min-width: var(--loading-width, 80px);
  min-height: 0.9em;
}

.skeleton-line {
  display: inline-block;
  height: 10px;
}

.skeleton-pill {
  display: inline-block;
  height: 18px;
}

.skeleton-btn {
  display: inline-block;
  height: 34px;
  width: 100%;
}

.skeleton-block {
  display: inline-block;
  border-radius: 12px;
}

.skeleton-circle {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.i18n-pending {
  position: relative;
  color: transparent !important;
  text-shadow: none !important;
}

.i18n-pending::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.72em;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-shine) 45%, var(--skeleton-base) 80%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  pointer-events: none;
}

.i18n-pending * {
  color: transparent !important;
}

.i18n-loader {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid var(--loading-pill-border);
  background: var(--loading-pill-bg);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  padding: 10px 12px;
  z-index: 12020;
  display: none;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.i18n-loader.open {
  display: grid;
}

.i18n-loader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--loading-pill-text);
}

.i18n-loader-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  overflow: hidden;
}

.i18n-loader-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #22c55e);
  transition: width 0.18s ease-out;
}

img.is-empty,
.token-icon.is-empty {
  background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-shine) 45%, var(--skeleton-base) 80%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.asset-price.is-loading {
  min-width: 72px;
  width: var(--loading-width, 72px);
  height: 12px;
}

.asset-change.is-loading {
  min-width: 44px;
  width: var(--loading-width, 44px);
  height: 10px;
}

.quote-details strong.is-loading,
.exchange-insights strong.is-loading {
  min-width: var(--loading-width, 100px);
}

.swap-item.skeleton {
  pointer-events: none;
  border-style: dashed;
}

.route-card.skeleton {
  border-style: dashed;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 255, 0.9));
}

.exchange-card[data-loading="true"] .exchange-form {
  opacity: 0.6;
  filter: saturate(0.8);
  pointer-events: none;
}

.exchange-card[data-loading="true"] .exchange-steps {
  opacity: 0.6;
}

.support-form[data-loading="true"] {
  opacity: 0.75;
  pointer-events: none;
}

.home-body .hero-lite {
  position: relative;
  overflow: hidden;
  animation: fade-rise 0.7s ease both;
}

.home-body .hero-lite::after {
  content: "";
  position: absolute;
  inset: -30% 50% 55% -20%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  opacity: 0.5;
  animation: glow-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.home-body .asset-tile {
  position: relative;
  overflow: hidden;
}

.home-body .asset-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-body .asset-tile:hover::after {
  opacity: 0.45;
}

.home-body .asset-tile img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-body .asset-tile:hover img {
  transform: scale(1.08);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.swap-item {
  animation: fade-rise 0.6s ease both;
}

.route-card {
  animation: fade-rise 0.6s ease both;
}

.exchange-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.exchange-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(circle at 55% 18%, rgba(59, 130, 246, 0.22), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  animation: glow-pulse 9s ease-in-out infinite;
}

body.exchange-body .exchange-card::after {
  display: none;
}

body.exchange-body .exchange-card {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .is-loading,
  .skeleton-line,
  .skeleton-pill,
  .skeleton-btn,
  .skeleton-block,
  .skeleton-circle,
  img.is-empty {
    animation: none;
  }

  .loading-pill::before,
  .status-dot,
  .swap-item,
  .route-card,
  .home-body .hero-lite,
  .exchange-card {
    animation: none;
  }
}
.shell {
  max-width: 1240px;
  margin: 0 auto;
}

.widget-shell {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.ss-stage {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 20px 0;
}

.bg-glow {
  display: none;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 255, 153, 0.18), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(0, 200, 255, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(8, 28, 46, 0.9), rgba(5, 42, 28, 0.82));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(5, 18, 26, 0.45);
  position: relative;
  overflow: visible;
  isolation: isolate;
  background-clip: padding-box;
}

.top-nav.lang-layer-open {
  z-index: 4000;
}

.top-nav.lang-layer-open .top-lang {
  z-index: 4001;
}

.top-nav.lang-layer-open .lang-menu {
  z-index: 4002;
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 58%),
    repeating-linear-gradient(
      116deg,
      rgba(255, 255, 255, 0.065) 0 1px,
      transparent 1px 16px
    );
  background-size: 100% 100%, 220% 220%;
  animation: navLineDrift 20s linear infinite;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.top-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.22), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(16, 255, 136, 0.18), transparent 44%),
    conic-gradient(from 140deg, rgba(34, 211, 238, 0.2), rgba(16, 255, 136, 0.16), rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.2));
  background-size: 150% 150%, 160% 160%, 180% 180%;
  background-position: 0% 0%, 100% 100%, 25% 40%;
  animation: navFieldShift 18s ease-in-out infinite;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.top-nav > * {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 26px 26px 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 153, 0.25), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0, 200, 255, 0.3), transparent 50%),
    linear-gradient(140deg, rgba(6, 18, 30, 0.9), rgba(7, 40, 28, 0.85));
  box-shadow: 0 28px 60px rgba(5, 14, 24, 0.45);
  overflow: hidden;
  position: relative;
}

#swap {
  scroll-margin-top: 90px;
}

.hero-copy h2 {
  margin: 10px 0 12px;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  color: #f3f7ff;
}

.hero-copy p {
  margin: 0;
  color: #c9d8f3;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2a1f;
  background: linear-gradient(135deg, rgba(45, 255, 167, 0.85), rgba(59, 130, 246, 0.85));
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-cta,
.hero-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.hero-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(8, 20, 34, 0.65);
  color: #dbe7ff;
}

.hero-stats {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.hero-stats div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 24, 38, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-stats strong {
  color: #f3f7ff;
  font-size: 0.86rem;
}

.hero-stats span {
  color: #9fb5d9;
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), transparent 60%);
  filter: blur(18px);
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.2), transparent 60%);
  filter: blur(26px);
  opacity: 0.7;
  z-index: 0;
}

.holo-exchange {
  width: min(540px, 100%);
  aspect-ratio: 16 / 7;
  border-radius: 28px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 25%, rgba(52, 211, 255, 0.25), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(140, 106, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(6, 14, 24, 0.96), rgba(9, 20, 34, 0.94)),
    repeating-linear-gradient(0deg, rgba(22, 38, 58, 0.7) 0 26px, rgba(12, 20, 34, 0.82) 26px 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 32px 70px rgba(6, 12, 22, 0.6),
    inset 0 0 18px rgba(0, 0, 0, 0.6);
  z-index: 1;
  overflow: hidden;
  animation: floatSlow 6.8s ease-in-out infinite;
}

.holo-exchange::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(122, 210, 255, 0.25);
  box-shadow: inset 0 0 22px rgba(32, 160, 255, 0.18);
  pointer-events: none;
}

.holo-exchange::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.16) 45%, transparent 70%);
  opacity: 0.3;
  transform: translateX(-70%);
  animation: holoSweep 7.5s linear infinite;
  pointer-events: none;
}

.holo-grid {
  position: absolute;
  inset: 8%;
  border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(120, 190, 255, 0.18) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(90deg, rgba(120, 190, 255, 0.15) 0 34px, transparent 34px 68px);
  opacity: 0.28;
  mix-blend-mode: screen;
}

.holo-core {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(100, 220, 255, 0.5);
  box-shadow:
    0 0 12px rgba(100, 220, 255, 0.4),
    inset 0 0 16px rgba(64, 160, 255, 0.35);
  animation: holoSpin 10s linear infinite;
}

.holo-ring.ring-one {
  width: 150px;
  height: 150px;
  border-color: rgba(120, 240, 255, 0.55);
}

.holo-ring.ring-two {
  width: 190px;
  height: 190px;
  border-color: rgba(120, 150, 255, 0.45);
  animation-direction: reverse;
  animation-duration: 14s;
}

.holo-ring.ring-three {
  width: 120px;
  height: 120px;
  border-color: rgba(120, 255, 200, 0.5);
  animation-duration: 8s;
}

.holo-orb {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(79, 148, 255, 0.25) 45%, rgba(15, 30, 55, 0.95) 70%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 28px rgba(95, 190, 255, 0.45),
    inset 0 0 20px rgba(12, 26, 48, 0.8);
  display: grid;
  place-items: center;
  animation: holoPulse 3.6s ease-in-out infinite;
}

.holo-symbol {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e8f6ff;
  text-shadow: 0 0 12px rgba(120, 220, 255, 0.7);
}

.holo-panels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  pointer-events: none;
}

.holo-panel {
  width: 120px;
  height: 72px;
  border-radius: 16px;
  background: rgba(15, 30, 52, 0.65);
  border: 1px solid rgba(120, 200, 255, 0.25);
  box-shadow: inset 0 0 16px rgba(16, 40, 70, 0.55);
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.holo-panel.left {
  transform: translateY(-8px);
}

.holo-panel.right {
  transform: translateY(10px);
}

.panel-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 220, 255, 0.7);
}

.panel-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f2f8ff;
}

.holo-stream {
  position: absolute;
  width: 6px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(120, 240, 255, 0.7), transparent);
  filter: blur(0.6px);
  opacity: 0.65;
  animation: holoStream 3.5s ease-in-out infinite;
}

.holo-stream.stream-a {
  left: 28%;
  top: 15%;
}

.holo-stream.stream-b {
  right: 28%;
  bottom: 8%;
  animation-delay: 1.4s;
}

@keyframes holoSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes holoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 28px rgba(95, 190, 255, 0.45),
      inset 0 0 20px rgba(12, 26, 48, 0.8);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 34px rgba(95, 190, 255, 0.6),
      inset 0 0 26px rgba(12, 26, 48, 0.8);
  }
}

@keyframes holoSweep {
  0% {
    transform: translateX(-70%);
  }
  45% {
    transform: translateX(15%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes holoStream {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-18px);
    opacity: 0.9;
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes navSheen {
  0% {
    transform: translateX(-60%) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.25;
  }
  60% {
    opacity: 0.12;
  }
  100% {
    transform: translateX(60%) rotate(180deg);
    opacity: 0;
  }
}

@keyframes navLineDrift {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 160% 130%;
  }
}

@keyframes navFieldShift {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 20% 35%;
  }
  50% {
    background-position: 85% 25%, 12% 76%, 85% 65%;
  }
}

@keyframes modalAuraDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(6%, -8%, 0) scale(1.06);
    opacity: 0.52;
  }
}

@keyframes timelineFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 180% 0%;
  }
}

@keyframes stepPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }
}

@keyframes stepReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -24px) scale(1.04);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

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

@media (max-width: 700px) {
  .hero {
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    min-height: 220px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 999px;
  background:
    linear-gradient(130deg, rgba(7, 20, 34, 0.64), rgba(9, 27, 42, 0.5)),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 17px
    );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(4, 14, 22, 0.3);
  position: relative;
  overflow: visible;
}

.nav-actions::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-actions:hover::after {
  opacity: 1;
}

.nav-actions > * {
  position: relative;
  z-index: 1;
}

.nav-link {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  color: #dce8ff;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(12, 24, 40, 0.66), rgba(11, 28, 44, 0.56));
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 14px rgba(6, 15, 28, 0.22);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.8), rgba(59, 130, 246, 0.9));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 20px rgba(34, 211, 238, 0.22);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.86), rgba(59, 130, 246, 0.86));
  border-color: rgba(34, 211, 238, 0.9);
  color: #fff;
  box-shadow:
    0 12px 22px rgba(34, 211, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.top-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(6, 16, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.currency-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 228, 255, 0.7);
}

.currency-select {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 24, 40, 0.85);
  color: #e2efff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(16, 255, 136, 0.6), rgba(0, 180, 255, 0.5));
  opacity: 0.55;
  z-index: -1;
}

.brand-mark::after {
  content: "IO";
  position: absolute;
  bottom: -8px;
  right: -10px;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
  background: #0ef08a;
  color: #06231a;
  letter-spacing: 0.06em;
}

.brand-mark-globe {
  background:
    radial-gradient(circle at 28% 24%, rgba(189, 236, 255, 0.8), rgba(80, 182, 233, 0.14) 36%, rgba(8, 22, 36, 0.95) 68%),
    linear-gradient(145deg, rgba(10, 44, 74, 0.96), rgba(5, 22, 36, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 16px rgba(2, 12, 20, 0.38);
}

.brand-mark-globe::before {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.38), rgba(56, 189, 248, 0.12));
  opacity: 0.82;
}

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

.brand-mark-globe canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  filter: saturate(1.08) contrast(1.04);
}

.brand h1 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 16px rgba(4, 18, 30, 0.28);
}

.brand p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 20, 34, 0.7);
  border-radius: 999px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8ecff;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.status-pill::after {
  content: "";
  position: absolute;
  inset: -60% 0;
  background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.15), transparent);
  animation: navSheen 18s linear infinite;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.status-pill > * {
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
}

.live-badge {
  margin-left: 4px;
  border: 1px solid rgba(157, 221, 255, 0.4);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a8e6ff;
  background: rgba(8, 40, 60, 0.7);
}

.live-badge.live {
  border-color: #7ac7a3;
  color: #11643f;
  background: #e7f7ef;
}

.live-badge.mock {
  border-color: #efc185;
  color: #875300;
  background: #fff4e3;
}

.admin-link {
  text-decoration: none;
}

.top-lang {
  position: relative;
  z-index: 20;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 20, 34, 0.7);
  color: #e8f1ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-code {
  letter-spacing: 0.08em;
}

.lang-caret {
  width: 10px;
  height: 10px;
  position: relative;
  opacity: 0.9;
}

.lang-caret::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 1px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #e8f1ff;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(7, 18, 40, 0.22);
  padding: 6px;
  display: none;
  max-height: min(360px, calc(100vh - 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 2600;
}

.top-lang.open .lang-menu {
  display: grid;
  gap: 4px;
}

.top-lang.open {
  z-index: 2600;
}

.lang-option {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #203455;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lang-option[aria-selected="true"] {
  background: #eef4ff;
  color: #1b4fd7;
  font-weight: 700;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111111;
  --secondary-color: #c2c2c2;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-label {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sound-toggle {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

.sound-toggle[aria-pressed="false"] {
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
  border-color: rgba(100, 116, 139, 0.4);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

.theme-toggle[aria-pressed="true"] {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 10px 18px rgba(59, 130, 246, 0.18);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.theme-icon wa-icon {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-retro-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", "Space Grotesk", "Manrope", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: currentColor;
  opacity: 0;
  transform: scale(0.82);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.25),
    0 0 12px rgba(250, 204, 21, 0.2);
  isolation: isolate;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-retro-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 1px,
      currentColor 1px,
      currentColor 2px
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 65%);
  opacity: 0.24;
}

.theme-retro-mark::after {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.32;
}

.theme-icon .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-icon .icon-moon {
  opacity: 0;
  transform: scale(0.85) rotate(-15deg);
}

body[data-theme="dark"] .theme-icon .icon-sun {
  opacity: 0;
  transform: scale(0.85) rotate(15deg);
}

body[data-theme="dark"] .theme-icon .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle wa-icon {
  width: 18px;
  height: 18px;
  --primary-color: currentColor;
  --secondary-color: var(--secondary-color);
}

wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-icon-svg {
  width: 100%;
  height: 100%;
}

.wa-primary {
  stroke: var(--primary-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.wa-secondary {
  fill: var(--secondary-color);
}

wa-icon[animation="shake"] .wa-icon-svg {
  animation: wa-shake 1.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes wa-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  wa-icon[animation="shake"] .wa-icon-svg {
    animation: none;
  }
}

body[data-theme="dark"] {
  color-scheme: dark;
}

body[data-theme="light"] {
  color-scheme: light;
}

.about-section {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(8, 22, 36, 0.92), rgba(7, 40, 28, 0.82));
  box-shadow: 0 18px 32px rgba(5, 12, 20, 0.35);
}

.about-head h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #f1f6ff;
}

.about-head p {
  margin: 0;
  color: #c2d1ea;
  line-height: 1.6;
}

.about-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 20, 34, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.about-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #e8f1ff;
}

.about-card p {
  margin: 0;
  color: #9eb4d6;
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer {
  margin-top: 28px;
  padding: 26px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 22, 34, 0.82);
  color: #dbe7ff;
  box-shadow: 0 16px 28px rgba(5, 12, 20, 0.28);
}

.home-body .site-footer {
  background: rgba(12, 24, 38, 0.88);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 28px rgba(5, 12, 20, 0.3);
}

.home-body .footer-col {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.home-body .footer-grid {
  gap: 16px;
}

.home-body .footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 12px;
}

.faq-preview {
  margin-top: 20px;
}

.faq-page {
  margin-top: 14px;
  margin-bottom: 24px;
}

.faq-body {
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(520px 260px at 85% 0%, rgba(34, 197, 94, 0.28), transparent 55%),
    radial-gradient(520px 260px at 10% 80%, rgba(99, 102, 241, 0.2), transparent 60%),
    linear-gradient(180deg, #0b1f2e 0%, #0f2a3a 45%, #122c3c 100%);
  color: #e6f1ff;
}

.faq-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.14), transparent 50%),
    linear-gradient(135deg, rgba(12, 28, 40, 0.9), rgba(12, 38, 52, 0.85));
  padding: 18px;
  box-shadow: 0 18px 36px rgba(5, 12, 20, 0.45);
}

.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.faq-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #eaf4ff;
}

.faq-link {
  color: #0b1b2a;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(178, 225, 255, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px rgba(15, 80, 140, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-link:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 22px rgba(15, 80, 140, 0.45);
}

.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.faq-list a {
  color: #e6f1ff;
  text-decoration: none;
  font-size: 0.86rem;
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(13, 28, 42, 0.7);
}

.swap-tracker {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(10, 22, 36, 0.94), rgba(12, 28, 44, 0.9));
  display: grid;
  gap: 10px;
}

.swap-tracker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.swap-tracker-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #eaf4ff;
}

.swap-tracker-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0f7ff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(34, 197, 94, 0.28));
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(5, 12, 20, 0.35);
}

.swap-ticker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.swap-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(12, 26, 40, 0.88), rgba(18, 36, 56, 0.9));
  color: #e6f1ff;
  font-size: 0.78rem;
  box-shadow: 0 10px 18px rgba(5, 12, 20, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swap-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(5, 12, 20, 0.45);
}

body[data-theme="light"] .swap-tracker {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(145deg, #f8fbff, #eef2ff);
}

body[data-theme="light"] .swap-tracker-head h3 {
  color: #0f172a;
}

body[data-theme="light"] .swap-tracker-status {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.18));
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.swap-item .swap-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #eaf4ff;
}

.swap-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.35), rgba(34, 211, 238, 0.65));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0b1b2a;
  font-size: 0.52rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.swap-logo::after {
  content: attr(data-symbol);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.swap-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swap-logo.loaded img {
  opacity: 1;
}

.swap-logo.loaded::after {
  opacity: 0;
}

.swap-logo.failed::after {
  opacity: 1;
}

.swap-logo[data-symbol="XMR"],
.cg-logo[data-symbol="XMR"] {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.swap-logo[data-symbol="XMR"]::after,
.cg-logo[data-symbol="XMR"]::after {
  opacity: 0;
}

.swap-symbol {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.swap-arrow {
  color: rgba(148, 163, 184, 0.9);
}

.swap-item .swap-amount {
  color: #b9cbe6;
  font-weight: 600;
  display: grid;
  gap: 2px;
}

.swap-item .swap-amount strong {
  color: #e6f1ff;
  font-weight: 700;
}

.swap-item .swap-amount small {
  color: #9ab1cf;
  font-size: 0.68rem;
  font-weight: 600;
}

.swap-item .swap-time {
  color: #8fa8c8;
  font-size: 0.7rem;
  font-weight: 600;
}

body[data-theme="light"] .swap-item {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  color: #1f2a44;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .swap-item .swap-pair,
body[data-theme="light"] .swap-item .swap-amount strong {
  color: #0f172a;
}

body[data-theme="light"] .swap-item .swap-amount,
body[data-theme="light"] .swap-item .swap-amount small,
body[data-theme="light"] .swap-item .swap-time,
body[data-theme="light"] .swap-arrow {
  color: #64748b;
}

body[data-theme="light"] .swap-item {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  color: #1f2a44;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .swap-item .swap-pair,
body[data-theme="light"] .swap-item .swap-amount strong {
  color: #0f172a;
}

body[data-theme="light"] .swap-item .swap-amount,
body[data-theme="light"] .swap-item .swap-amount small,
body[data-theme="light"] .swap-item .swap-time,
body[data-theme="light"] .swap-arrow {
  color: #64748b;
}

@media (max-width: 560px) {
  .swap-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.faq-items {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(120, 160, 200, 0.35);
  border-radius: 18px;
  padding: 0;
  background: rgba(14, 30, 45, 0.85);
  color: #e6f1ff;
  box-shadow: 0 12px 24px rgba(5, 12, 20, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b1b2a;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(148, 205, 255, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.faq-item[open] summary::after {
  content: "–";
  background: linear-gradient(180deg, rgba(233, 255, 245, 0.9), rgba(120, 247, 204, 0.9));
  border-color: rgba(22, 196, 151, 0.55);
  color: #0c5c44;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.86rem;
  color: #c7d7f5;
  line-height: 1.6;
}

.faq-item[open] {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 20, 40, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-inline {
  margin-bottom: 0;
}

.footer-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 42px;
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footer-brand-copy h4 {
  margin: 0 0 4px;
}

.footer-brand-copy p {
  margin: 0;
}

.footer-brand-inline strong {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: #e6f2ff;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd9ff;
}

.footer-col p,
.footer-col li,
.footer-col a {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #c9dcf7;
  text-decoration: none;
}

.footer-col a {
  font-weight: 600;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-list li {
  padding: 4px 0;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-pill {
  position: relative;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px 5px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(59, 130, 246, 0.16));
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #d8ecff;
  box-shadow:
    0 10px 18px rgba(8, 20, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.provider-pill::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.95), rgba(34, 211, 238, 0.95));
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.exolix-logo {
  height: 22px;
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.footer-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #a8c7f5;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 12px;
}

body[data-theme="light"] .site-footer {
  background: linear-gradient(150deg, rgba(248, 251, 255, 0.95), rgba(238, 245, 255, 0.9));
  border-color: rgba(148, 163, 184, 0.28);
  color: #1f2a44;
}

body[data-theme="light"] .footer-col {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 12px;
}

body[data-theme="light"] .footer-col h4 {
  color: #1f4f95;
}

body[data-theme="light"] .footer-col p,
body[data-theme="light"] .footer-col li,
body[data-theme="light"] .footer-col a,
body[data-theme="light"] .footer-bottom span {
  color: #4d6389;
}

body[data-theme="dark"] .site-footer {
  background: linear-gradient(150deg, rgba(10, 20, 34, 0.94), rgba(8, 18, 32, 0.9));
  border-color: rgba(148, 163, 184, 0.26);
  color: #dbe7ff;
  box-shadow: 0 18px 30px rgba(2, 6, 16, 0.42);
}

body[data-theme="dark"] .footer-col {
  background: rgba(12, 24, 40, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 12px;
}

body[data-theme="dark"] .footer-col h4 {
  color: #d6e7ff;
}

body[data-theme="dark"] .footer-col p,
body[data-theme="dark"] .footer-col li,
body[data-theme="dark"] .footer-col a,
body[data-theme="dark"] .footer-bottom span {
  color: #b7cce9;
}

/* Home palette cleanup */
.home-body {
  --home-ink: #0f172a;
  --home-muted: #5b6b86;
  --home-strong: #0b1220;
  --home-line: rgba(15, 23, 42, 0.12);
  --home-surface: rgba(255, 255, 255, 0.88);
  --home-surface-2: rgba(250, 252, 255, 0.96);
  --home-accent: #3b82f6;
  --home-accent-2: #06b6d4;
  --home-accent-3: #f97316;
  --home-accent-4: #ec4899;
  --home-accent-soft: rgba(59, 130, 246, 0.12);
  --home-accent-soft-2: rgba(6, 182, 212, 0.12);
  --home-pill: rgba(59, 130, 246, 0.14);
  background:
    radial-gradient(680px 420px at 8% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(620px 360px at 92% -5%, rgba(6, 182, 212, 0.18), transparent 58%),
    radial-gradient(520px 360px at 12% 78%, rgba(236, 72, 153, 0.16), transparent 60%),
    radial-gradient(540px 360px at 88% 85%, rgba(249, 115, 22, 0.16), transparent 62%),
    linear-gradient(180deg, #f6f8fc 0%, #eef3ff 60%, #f5f8ff 100%);
  color: var(--home-ink);
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

.home-body::before,
.home-body::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.home-body::before {
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
  animation: orbDrift 14s ease-in-out infinite;
}

.home-body::after {
  bottom: -160px;
  left: -130px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0) 70%);
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.home-body > * {
  position: relative;
  z-index: 1;
}

.home-body .top-nav {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.9));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--home-ink);
}

.home-body .top-nav::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), transparent 62%),
    repeating-linear-gradient(
      116deg,
      rgba(59, 130, 246, 0.09) 0 1px,
      transparent 1px 16px
    );
  opacity: 0.8;
}

.home-body .top-nav::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2), transparent 46%),
    radial-gradient(circle at 74% 74%, rgba(6, 182, 212, 0.16), transparent 44%),
    conic-gradient(from 140deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.12), rgba(56, 189, 248, 0.1), rgba(59, 130, 246, 0.14));
}

.home-body .nav-actions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.9));
  border-color: rgba(59, 130, 246, 0.18);
}

.home-body .nav-link {
  color: var(--home-ink);
  border-color: rgba(59, 130, 246, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.9));
}

.home-body .nav-link:hover {
  color: var(--home-strong);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.15);
}

.home-body .nav-link.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(6, 182, 212, 0.95));
  border-color: rgba(59, 130, 246, 0.65);
  color: #ffffff;
}

.home-body .top-currency {
  background: #ffffff;
  border-color: var(--home-line);
}

.home-body .currency-label {
  color: var(--home-muted);
}

.home-body .currency-select {
  background: #ffffff;
  border-color: var(--home-line);
  color: var(--home-ink);
}

.home-body .lang-toggle {
  border-color: var(--home-line);
  background: #ffffff;
  color: var(--home-ink);
}

.home-body .lang-caret::before {
  border-top-color: var(--home-ink);
}

.home-body .brand h1 {
  color: var(--home-strong);
}

.home-body .brand p {
  color: var(--home-muted);
}

.home-body .brand-mark {
  background: linear-gradient(135deg, var(--home-accent), var(--home-accent-2));
}

.home-body .brand-mark::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(6, 182, 212, 0.4));
  opacity: 0.6;
}

.home-body .brand-mark::after {
  background: rgba(59, 130, 246, 0.95);
  color: #ffffff;
}

.home-body .brand-mark.brand-mark-globe::after {
  content: none;
}

.home-body .brand-mark.brand-mark-globe {
  background:
    radial-gradient(circle at 26% 22%, rgba(198, 239, 255, 0.95), rgba(92, 180, 237, 0.22) 38%, rgba(6, 24, 40, 0.92) 72%),
    linear-gradient(145deg, rgba(14, 57, 92, 0.96), rgba(8, 29, 49, 0.95));
}

.home-body .status-pill {
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.9));
  color: var(--home-ink);
}

.home-body .status-dot {
  background: var(--home-accent-2);
}

.home-body .live-badge {
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--home-pill);
  color: #2a5aa6;
}

.home-body .live-badge.live {
  border-color: rgba(6, 182, 212, 0.45);
  background: var(--home-accent-soft-2);
  color: #0f6b83;
}

.home-body .live-badge.mock {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #8a5a06;
}

.home-body .panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.92));
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-body .about-section {
  border-color: rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.92));
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-body .about-head h2 {
  color: var(--home-strong);
}

.home-body .about-head p {
  color: var(--home-muted);
}

.home-body .about-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  box-shadow: none;
}

.home-body .about-card h3 {
  color: var(--home-strong);
}

.home-body .about-card p {
  color: var(--home-muted);
}

.home-body .faq-card {
  border-color: rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.12), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.92));
  box-shadow:
    0 16px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-body .faq-head h2 {
  color: var(--home-strong);
}

.home-body .faq-link {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(6, 182, 212, 0.95));
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.home-body .faq-link:hover {
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

.home-body .faq-list a {
  color: var(--home-ink);
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.9));
}

.home-body .site-footer {
  background: linear-gradient(145deg, rgba(246, 249, 255, 0.98), rgba(232, 244, 255, 0.9));
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow:
    0 16px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--home-ink);
}

.home-body .footer-col h4 {
  color: #1f3b73;
}

.home-body .footer-col p,
.home-body .footer-col li,
.home-body .footer-col a {
  color: var(--home-muted);
}

.home-body .footer-bottom {
  color: var(--home-muted);
  border-top-color: rgba(15, 23, 42, 0.12);
}

.home-body .provider-pill {
  background: linear-gradient(135deg, rgba(224, 236, 255, 0.98), rgba(216, 250, 246, 0.9));
  border-color: rgba(34, 197, 94, 0.3);
  color: #1f5b63;
  box-shadow:
    0 10px 18px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.home-body .provider-pill::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(14, 165, 233, 0.95));
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.home-body .hero-lite {
  margin-top: 20px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.16), transparent 55%),
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.92));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
}

.home-body .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f4c6b;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.16));
  padding: 6px 12px;
  border-radius: 999px;
}

.home-body .hero-lite-copy h2 {
  margin: 14px 0 10px;
  font-size: 2rem;
  color: var(--home-strong);
  letter-spacing: -0.02em;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .home-body .hero-lite-copy h2 {
    background: linear-gradient(120deg, #1d4ed8, #0ea5e9, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.home-body .hero-lite-copy p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-body .hero-lite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.home-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(10px);
}

.home-body .btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.3;
  pointer-events: none;
}

.home-body .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.98), rgba(14, 165, 233, 0.92));
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 16px 28px rgba(59, 130, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -6px 14px rgba(10, 48, 120, 0.18);
}

.home-body .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 32px rgba(59, 130, 246, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(10, 48, 120, 0.2);
}

.home-body .btn-secondary {
  color: var(--home-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(226, 236, 255, 0.9));
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 14px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(148, 163, 184, 0.22);
}

.home-body .btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 18px 28px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -6px 14px rgba(148, 163, 184, 0.26);
}

.home-body .btn-support {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(120deg, #1d4ed8, #0ea5e9, #22c55e);
  box-shadow: 0 14px 24px rgba(14, 116, 144, 0.25);
}

.home-body .btn-support:hover {
  color: #ffffff;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 18px 28px rgba(14, 116, 144, 0.35);
}

.home-body .hero-lite-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-body .hero-lite-metrics div {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.92));
  border: 1px solid rgba(59, 130, 246, 0.18);
  display: grid;
  gap: 4px;
}

.home-body .hero-lite-metrics strong {
  color: var(--home-strong);
  font-size: 0.88rem;
}

.home-body .hero-lite-metrics span {
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-body .hero-lite-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.92));
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 12px;
}

.home-body .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-body .pill-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f2a4a;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 10px 16px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-body .pill-badge.subtle {
  color: #0f3b3b;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(6, 182, 212, 0.08));
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    0 10px 16px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-body .hero-lite-card h3 {
  margin: 0;
  color: var(--home-strong);
  font-size: 1.1rem;
}

.home-body .card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--home-muted);
  font-size: 0.85rem;
}

.home-body .card-list li {
  position: relative;
  padding-left: 18px;
}

.home-body .card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.6);
}

.home-body .card-footnote {
  font-size: 0.8rem;
  color: var(--home-muted);
}

.home-body .card-footnote a {
  color: var(--home-accent);
  text-decoration: none;
  font-weight: 700;
}

.home-body .status-bar {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 248, 255, 0.95));
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-body .status-item {
  display: grid;
  gap: 4px;
}

.home-body .status-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-muted);
  font-weight: 700;
}

.home-body .status-item strong {
  color: var(--home-strong);
  font-size: 0.9rem;
}

.home-body .section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.home-body .section-head h2 {
  margin: 0;
  color: var(--home-strong);
  font-size: 1.5rem;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .home-body .section-head h2 {
    background: linear-gradient(120deg, #1d4ed8, #06b6d4, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.home-body .section-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.home-body .steps-section,
.home-body .assets-section,
.home-body .coingecko-panel,
.home-body .fees-section,
.home-body .testimonials-section {
  margin-top: 24px;
}

.home-body .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-body .step-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.9));
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-body .step-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 26px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-body .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 197, 94, 0.2));
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
}

.home-body .step-card h3 {
  margin: 0;
  color: var(--home-strong);
  font-size: 1rem;
}

.home-body .step-card p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.home-body .assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.home-body .asset-tile {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.9));
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-body .asset-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-body .asset-tile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.home-body .asset-tile strong {
  color: var(--home-strong);
  font-size: 0.86rem;
}

.home-body .asset-tile span {
  color: var(--home-muted);
  font-size: 0.76rem;
}

.home-body .asset-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 255, 0.92));
  font-size: 0.72rem;
}

.home-body .asset-price {
  font-style: normal;
  font-weight: 700;
  color: var(--home-strong);
}

.home-body .asset-change {
  font-weight: 700;
  color: var(--home-muted);
}

.home-body .asset-change.up {
  color: #16a34a;
}

.home-body .asset-change.down {
  color: #dc2626;
}

.home-body .assets-footnote {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-body .fees-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.home-body .fees-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.9));
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-body .fees-list {
  margin: 0;
  padding-left: 18px;
  color: var(--home-muted);
  font-size: 0.86rem;
  display: grid;
  gap: 8px;
}

.home-body .fees-side {
  display: grid;
  gap: 10px;
  align-content: center;
}

.home-body .fees-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(34, 197, 94, 0.18));
  color: #12526b;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  box-shadow:
    0 12px 20px rgba(59, 130, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.home-body .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-body .testimonial-card {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.9));
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-body .testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 26px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-body .testimonial-card blockquote {
  margin: 0;
  color: var(--home-strong);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-body .testimonial-card figcaption {
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-body .partner-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--home-muted);
  font-size: 0.8rem;
}

.home-body .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-body .partner-logos span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.9));
  font-weight: 600;
  color: var(--home-strong);
}

.home-body .faq-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-body .faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-body .faq-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4d8f;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.home-body .footer-links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.home-body .footer-links a {
  color: var(--home-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.home-body .footer-links a:hover {
  color: var(--home-strong);
}

@media (max-width: 980px) {
  .home-body .hero-lite {
    grid-template-columns: 1fr;
  }

  .home-body .status-bar {
    grid-template-columns: 1fr;
  }

  .home-body .steps-grid,
  .home-body .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .home-body .fees-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-body .hero-lite {
    padding: 20px;
  }

  .home-body .hero-lite-metrics {
    grid-template-columns: 1fr;
  }

  .home-body .faq-quick {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .home-body .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-body[data-theme="dark"] {
  --home-ink: #e7edf8;
  --home-muted: #a5b2cc;
  --home-strong: #f5f8ff;
  --home-line: rgba(148, 163, 184, 0.28);
  --home-surface: rgba(13, 20, 34, 0.72);
  --home-surface-2: rgba(15, 24, 40, 0.9);
  --home-accent: #6aa6ff;
  --home-accent-2: #4fd1ff;
  --home-accent-3: #f59e0b;
  --home-accent-4: #f472b6;
  --home-accent-soft: rgba(106, 166, 255, 0.2);
  --home-accent-soft-2: rgba(79, 209, 255, 0.18);
  --home-pill: rgba(106, 166, 255, 0.16);
  background:
    radial-gradient(620px 420px at 12% -10%, rgba(106, 166, 255, 0.18), transparent 60%),
    radial-gradient(520px 320px at 90% 0%, rgba(79, 209, 255, 0.16), transparent 58%),
    radial-gradient(520px 320px at 12% 82%, rgba(244, 114, 182, 0.14), transparent 60%),
    radial-gradient(520px 320px at 88% 85%, rgba(245, 158, 11, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(9, 14, 26, 0.95), rgba(8, 12, 24, 0.98));
  color: var(--home-ink);
}

.home-body[data-theme="dark"] .top-nav {
  border-color: var(--home-line);
  background: linear-gradient(135deg, rgba(12, 20, 34, 0.92), rgba(16, 26, 42, 0.86));
  box-shadow: 0 20px 42px rgba(5, 10, 20, 0.45);
  color: var(--home-ink);
}

.home-body[data-theme="dark"] .top-nav::before {
  background:
    linear-gradient(125deg, rgba(156, 200, 255, 0.12), transparent 64%),
    repeating-linear-gradient(
      116deg,
      rgba(106, 166, 255, 0.12) 0 1px,
      transparent 1px 16px
    );
  opacity: 0.76;
}

.home-body[data-theme="dark"] .top-nav::after {
  background:
    radial-gradient(circle at 16% 30%, rgba(106, 166, 255, 0.2), transparent 46%),
    radial-gradient(circle at 80% 70%, rgba(79, 209, 255, 0.16), transparent 44%),
    conic-gradient(from 130deg, rgba(79, 209, 255, 0.16), rgba(106, 166, 255, 0.15), rgba(99, 102, 241, 0.14), rgba(79, 209, 255, 0.16));
}

.home-body[data-theme="dark"] .nav-actions {
  background: var(--home-surface);
  border-color: var(--home-line);
}

.home-body[data-theme="dark"] .nav-link {
  color: var(--home-muted);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(12, 20, 34, 0.7);
}

.home-body[data-theme="dark"] .nav-link:hover {
  color: var(--home-strong);
  border-color: rgba(106, 166, 255, 0.65);
  box-shadow: 0 10px 18px rgba(106, 166, 255, 0.25);
}

.home-body[data-theme="dark"] .nav-link.active {
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.9), rgba(79, 209, 255, 0.85));
  border-color: rgba(106, 166, 255, 0.75);
  color: #f8fbff;
}

.home-body[data-theme="dark"] .top-currency {
  background: rgba(12, 20, 34, 0.6);
  border-color: var(--home-line);
}

.home-body[data-theme="dark"] .currency-label {
  color: rgba(210, 224, 248, 0.78);
}

.home-body[data-theme="dark"] .currency-select {
  background: rgba(12, 20, 34, 0.85);
  border-color: var(--home-line);
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .lang-toggle {
  border-color: var(--home-line);
  background: rgba(12, 20, 34, 0.75);
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .lang-caret::before {
  border-top-color: var(--home-strong);
}

.home-body[data-theme="dark"] .brand h1 {
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .brand p {
  color: var(--home-muted);
}

.home-body[data-theme="dark"] .brand-mark {
  background: linear-gradient(135deg, var(--home-accent), var(--home-accent-2));
}

.home-body[data-theme="dark"] .brand-mark::before {
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.55), rgba(79, 209, 255, 0.45));
  opacity: 0.6;
}

.home-body[data-theme="dark"] .brand-mark::after {
  background: rgba(79, 209, 255, 0.9);
  color: #071a24;
}

.home-body[data-theme="dark"] .brand-mark.brand-mark-globe::after {
  content: none;
}

.home-body[data-theme="dark"] .brand-mark.brand-mark-globe {
  background:
    radial-gradient(circle at 28% 24%, rgba(183, 230, 255, 0.95), rgba(72, 162, 229, 0.22) 40%, rgba(4, 18, 32, 0.95) 72%),
    linear-gradient(145deg, rgba(13, 48, 78, 0.98), rgba(7, 24, 40, 0.96));
}

.home-body[data-theme="dark"] .status-pill {
  border-color: var(--home-line);
  background: var(--home-surface-2);
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .status-dot {
  background: var(--home-accent-2);
}

.home-body[data-theme="dark"] .live-badge {
  border-color: rgba(106, 166, 255, 0.45);
  background: var(--home-pill);
  color: #cfe1ff;
}

.home-body[data-theme="dark"] .live-badge.live {
  border-color: rgba(79, 209, 255, 0.55);
  background: rgba(79, 209, 255, 0.18);
  color: #b6f0ff;
}

.home-body[data-theme="dark"] .live-badge.mock {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.16);
  color: #ffe6b5;
}

.home-body[data-theme="dark"] .panel {
  background: rgba(9, 16, 28, 0.55);
  border-color: var(--home-line);
  box-shadow: 0 18px 36px rgba(5, 10, 20, 0.35);
}

.home-body[data-theme="dark"] .about-section {
  border-color: var(--home-line);
  background: linear-gradient(145deg, rgba(12, 20, 36, 0.95), rgba(14, 26, 44, 0.88));
  box-shadow: 0 16px 30px rgba(5, 10, 20, 0.35);
}

.home-body[data-theme="dark"] .about-head h2 {
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .about-head p {
  color: var(--home-muted);
}

.home-body[data-theme="dark"] .about-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(12, 20, 34, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-body[data-theme="dark"] .about-card h3 {
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .about-card p {
  color: var(--home-muted);
}

.home-body[data-theme="dark"] .faq-card {
  border-color: var(--home-line);
  background: linear-gradient(140deg, rgba(12, 20, 36, 0.95), rgba(12, 26, 42, 0.9));
  box-shadow: 0 18px 36px rgba(5, 10, 20, 0.4);
}

.home-body[data-theme="dark"] .faq-head h2 {
  color: var(--home-strong);
}

.home-body[data-theme="dark"] .faq-link {
  color: #f1f6ff;
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.35), rgba(79, 209, 255, 0.35));
  border-color: rgba(106, 166, 255, 0.55);
  box-shadow: 0 10px 18px rgba(10, 20, 40, 0.35);
}

.home-body[data-theme="dark"] .faq-link:hover {
  box-shadow: 0 14px 24px rgba(10, 20, 40, 0.45);
}

.home-body[data-theme="dark"] .faq-list a {
  color: var(--home-ink);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(12, 20, 34, 0.7);
}

.home-body[data-theme="dark"] .status-bar,
.home-body[data-theme="dark"] .step-card,
.home-body[data-theme="dark"] .asset-tile,
.home-body[data-theme="dark"] .fees-card,
.home-body[data-theme="dark"] .testimonial-card,
.home-body[data-theme="dark"] .hero-lite,
.home-body[data-theme="dark"] .hero-lite-card,
.home-body[data-theme="dark"] .hero-lite-metrics div {
  border-color: var(--home-line);
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.92), rgba(15, 24, 40, 0.9));
  box-shadow: 0 18px 32px rgba(5, 10, 20, 0.45);
}

.home-body[data-theme="dark"] .step-index {
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.22), rgba(79, 209, 255, 0.2));
  color: #cfe1ff;
}

.home-body[data-theme="dark"] .partner-logos span {
  border-color: var(--home-line);
  background: rgba(12, 20, 34, 0.75);
}

.home-body[data-theme="dark"] .asset-meta {
  background: rgba(12, 20, 34, 0.75);
  border-color: var(--home-line);
}

.home-body[data-theme="dark"] .asset-change.up {
  color: #34d399;
}

.home-body[data-theme="dark"] .asset-change.down {
  color: #f87171;
}

.home-body[data-theme="dark"] .site-footer {
  background: rgba(10, 18, 32, 0.9);
  border-color: var(--home-line);
  box-shadow: 0 16px 28px rgba(5, 10, 20, 0.3);
  color: var(--home-ink);
}

.home-body[data-theme="dark"] .footer-col {
  background: rgba(12, 24, 40, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 12px;
}

.home-body[data-theme="dark"] .footer-col h4 {
  color: rgba(156, 200, 255, 0.9);
}

.home-body[data-theme="dark"] .footer-col p,
.home-body[data-theme="dark"] .footer-col li,
.home-body[data-theme="dark"] .footer-col a {
  color: #c7d4ed;
}

.home-body[data-theme="dark"] .footer-bottom {
  color: var(--home-muted);
  border-top-color: rgba(148, 163, 184, 0.22);
}

.home-body[data-theme="dark"] .provider-pill {
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.22), rgba(79, 209, 255, 0.16));
  border-color: rgba(106, 166, 255, 0.45);
  color: #d6e6ff;
  box-shadow:
    0 10px 18px rgba(5, 10, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.home-body[data-theme="dark"] .provider-pill::before {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.95), rgba(56, 189, 248, 0.95));
  box-shadow: 0 0 0 2px rgba(106, 166, 255, 0.26);
}

.home-body[data-theme="dark"] .pill-badge {
  color: #e8f2ff;
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.22), rgba(106, 166, 255, 0.12));
  border-color: rgba(106, 166, 255, 0.4);
  box-shadow:
    0 10px 16px rgba(5, 10, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-body[data-theme="dark"] .pill-badge.subtle {
  color: #c7f6ff;
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.22), rgba(79, 209, 255, 0.12));
  border-color: rgba(79, 209, 255, 0.35);
  box-shadow:
    0 10px 16px rgba(5, 10, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-body[data-theme="dark"] .fees-pill {
  color: #cfe1ff;
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.22), rgba(79, 209, 255, 0.16));
  border-color: rgba(106, 166, 255, 0.4);
  box-shadow:
    0 12px 20px rgba(5, 10, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-body[data-theme="dark"] .faq-chip {
  color: #cfe1ff;
  background: rgba(106, 166, 255, 0.16);
  border-color: rgba(106, 166, 255, 0.32);
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(12, 20, 34, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f1f5ff;
  --secondary-color: #7f8a9c;
  box-shadow: 0 10px 18px rgba(5, 10, 20, 0.3);
}

body[data-theme="dark"] .sound-toggle {
  background: rgba(12, 20, 34, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f1f5ff;
  box-shadow: 0 10px 18px rgba(5, 10, 20, 0.3);
}

body[data-theme="dark"] .sound-toggle[aria-pressed="false"] {
  background: rgba(51, 65, 85, 0.5);
  color: #d5deec;
  border-color: rgba(148, 163, 184, 0.45);
}

body[data-theme="dark"] .theme-toggle wa-icon {
  --primary-color: #f1f5ff !important;
  --secondary-color: #8a94a6 !important;
}

body[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(106, 166, 255, 0.55);
  box-shadow: 0 12px 20px rgba(5, 10, 20, 0.4);
}

body[data-theme="dark"] .theme-toggle[aria-pressed="true"] {
  background: rgba(106, 166, 255, 0.16);
  border-color: rgba(106, 166, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(106, 166, 255, 0.15), 0 12px 22px rgba(6, 12, 24, 0.45);
}

.theme-toggle[data-theme-mode="retro"] .icon-sun,
.theme-toggle[data-theme-mode="retro"] .icon-moon {
  opacity: 0;
  transform: scale(0.8) rotate(-12deg);
}

.theme-toggle[data-theme-mode="retro"] .theme-retro-mark {
  opacity: 1;
  transform: scale(1);
}

body[data-theme="retro"] {
  color-scheme: dark;
}

body[data-theme="retro"] .top-nav {
  border-color: rgba(245, 158, 11, 0.55);
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.22), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(251, 113, 133, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(23, 19, 44, 0.96), rgba(34, 21, 54, 0.92));
  box-shadow:
    0 24px 50px rgba(18, 9, 34, 0.55),
    0 0 0 1px rgba(251, 191, 36, 0.2) inset;
}

body[data-theme="retro"] .top-nav::before {
  background:
    linear-gradient(125deg, rgba(253, 224, 71, 0.16), transparent 64%),
    repeating-linear-gradient(
      118deg,
      rgba(251, 191, 36, 0.16) 0 1px,
      transparent 1px 15px
    );
  opacity: 0.8;
}

body[data-theme="retro"] .top-nav::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.24), transparent 46%),
    radial-gradient(circle at 76% 74%, rgba(236, 72, 153, 0.18), transparent 44%),
    conic-gradient(from 140deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.18), rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.2));
}

body[data-theme="retro"] .nav-actions {
  background: rgba(24, 16, 43, 0.7);
  border-color: rgba(251, 191, 36, 0.35);
}

body[data-theme="retro"] .nav-link {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(36, 19, 54, 0.75);
}

body[data-theme="retro"] .nav-link:hover,
body[data-theme="retro"] .nav-link.active {
  color: #fff8e8;
  border-color: rgba(253, 224, 71, 0.75);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(236, 72, 153, 0.45));
  box-shadow: 0 12px 20px rgba(17, 10, 30, 0.48);
}

body[data-theme="retro"] .provider-pill {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(236, 72, 153, 0.24));
  border-color: rgba(251, 191, 36, 0.5);
  color: #fff3c8;
  box-shadow:
    0 10px 18px rgba(12, 8, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-theme="retro"] .provider-pill::before {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.96), rgba(236, 72, 153, 0.92));
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.22);
}

body[data-theme="retro"] .top-currency {
  background: rgba(28, 17, 48, 0.82);
  border-color: rgba(251, 191, 36, 0.35);
}

body[data-theme="retro"] .currency-label {
  color: rgba(253, 224, 71, 0.88);
}

body[data-theme="retro"] .currency-select,
body[data-theme="retro"] .lang-toggle,
body[data-theme="retro"] .theme-toggle,
body[data-theme="retro"] .sound-toggle {
  background: rgba(34, 20, 56, 0.88);
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.5);
}

body[data-theme="retro"] .lang-caret::before {
  border-top-color: #fef3c7;
}

body[data-theme="retro"] .lang-menu {
  background: #201739;
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 18px 34px rgba(10, 6, 18, 0.62);
}

body[data-theme="retro"] .lang-option {
  color: #fde68a;
}

body[data-theme="retro"] .lang-option:hover,
body[data-theme="retro"] .lang-option[aria-selected="true"] {
  background: rgba(251, 191, 36, 0.16);
  color: #fff7cc;
}

body[data-theme="retro"] .status-pill {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(24, 16, 43, 0.82);
  color: #fde68a;
}

body[data-theme="retro"] .status-dot {
  background: #f59e0b;
}

.track-body[data-theme="light"] {
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.14), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.14), transparent 45%),
    linear-gradient(160deg, #f5f8ff 0%, #eaf1ff 55%, #f8fbff 100%);
  color: #1f2b3f;
}

.track-body[data-theme="light"] .track-hero-copy h2 {
  color: #0f172a;
}

.track-body[data-theme="light"] .track-hero-copy p,
.track-body[data-theme="light"] .track-hero-card ul {
  color: #4b5b74;
}

.track-body[data-theme="light"] .track-hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.28);
  color: #1e293b;
}

.track-body[data-theme="retro"] {
  background:
    radial-gradient(circle at 15% 8%, rgba(251, 191, 36, 0.2), transparent 50%),
    radial-gradient(circle at 85% 18%, rgba(236, 72, 153, 0.16), transparent 45%),
    linear-gradient(160deg, #1a1130 0%, #120b24 55%, #1d1538 100%);
  color: #fde68a;
}

.track-body[data-theme="retro"] .track-card,
.track-body[data-theme="retro"] .track-hero-card {
  background: rgba(25, 16, 42, 0.88);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.track-body[data-theme="retro"] .track-card-head h2,
.track-body[data-theme="retro"] .track-footer a,
.track-body[data-theme="retro"] .track-hero-copy h2 {
  color: #fff4c4;
}

.track-body[data-theme="retro"] .track-card-head p,
.track-body[data-theme="retro"] .track-footer,
.track-body[data-theme="retro"] .track-hero-copy p,
.track-body[data-theme="retro"] .track-hero-card ul {
  color: #fcd97b;
}

.contact-body[data-theme="dark"] {
  background:
    radial-gradient(700px 420px at 12% 8%, rgba(30, 64, 175, 0.28), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(14, 116, 144, 0.24), transparent 55%),
    linear-gradient(135deg, #081324 0%, #0d1a33 45%, #0a1528 100%);
  color: #e2e8f0;
}

.contact-body[data-theme="dark"] .contact-card,
.contact-body[data-theme="dark"] .contact-hero-card,
.contact-body[data-theme="dark"] .contact-info-card,
.contact-body[data-theme="dark"] .contact-highlight {
  background: rgba(10, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 22px 36px rgba(2, 6, 16, 0.42);
}

.contact-body[data-theme="dark"] .contact-hero-copy h2,
.contact-body[data-theme="dark"] .contact-hero-card h3,
.contact-body[data-theme="dark"] .contact-info-card h4,
.contact-body[data-theme="dark"] .contact-highlight strong {
  color: #f1f5ff;
}

.contact-body[data-theme="dark"] .contact-hero-copy p,
.contact-body[data-theme="dark"] .contact-info-card p,
.contact-body[data-theme="dark"] .contact-hero-card ul,
.contact-body[data-theme="dark"] .contact-highlight span,
.contact-body[data-theme="dark"] .contact-actions p {
  color: #b8c6de;
}

.contact-body[data-theme="dark"] .contact-form input,
.contact-body[data-theme="dark"] .contact-form textarea,
.contact-body[data-theme="dark"] .contact-form select {
  background: #111f35;
  color: #edf3ff;
  border-color: rgba(148, 163, 184, 0.35);
}

.contact-body[data-theme="retro"] {
  background:
    radial-gradient(700px 420px at 14% 10%, rgba(251, 191, 36, 0.2), transparent 58%),
    radial-gradient(700px 420px at 88% 0%, rgba(236, 72, 153, 0.16), transparent 55%),
    linear-gradient(135deg, #1a1130 0%, #120b24 45%, #1d1538 100%);
  color: #fde68a;
}

.contact-body[data-theme="retro"] .contact-card,
.contact-body[data-theme="retro"] .contact-hero-card,
.contact-body[data-theme="retro"] .contact-info-card,
.contact-body[data-theme="retro"] .contact-highlight {
  background: rgba(25, 16, 42, 0.9);
  border-color: rgba(251, 191, 36, 0.35);
}

.contact-body[data-theme="retro"] .contact-hero-copy h2,
.contact-body[data-theme="retro"] .contact-hero-card h3,
.contact-body[data-theme="retro"] .contact-info-card h4,
.contact-body[data-theme="retro"] .contact-highlight strong {
  color: #fff4c4;
}

.contact-body[data-theme="retro"] .contact-hero-copy p,
.contact-body[data-theme="retro"] .contact-hero-card ul,
.contact-body[data-theme="retro"] .contact-info-card p,
.contact-body[data-theme="retro"] .contact-highlight span,
.contact-body[data-theme="retro"] .contact-actions p {
  color: #fcd97b;
}

.contact-body[data-theme="retro"] .contact-form input,
.contact-body[data-theme="retro"] .contact-form textarea,
.contact-body[data-theme="retro"] .contact-form select {
  background: #24153d;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fff7d6;
}

.faq-body[data-theme="light"] {
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(520px 260px at 85% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(180deg, #f5f8ff 0%, #eef3ff 45%, #f8fbff 100%);
  color: #0f172a;
}

.faq-body[data-theme="light"] .faq-card {
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.faq-body[data-theme="light"] .faq-head h2 {
  color: #0f172a;
}

.faq-body[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faq-body[data-theme="light"] .faq-item summary {
  color: #0f172a;
}

.faq-body[data-theme="light"] .faq-item p {
  color: #475569;
}

.faq-body[data-theme="retro"] {
  background:
    radial-gradient(620px 320px at 12% -6%, rgba(251, 191, 36, 0.2), transparent 58%),
    radial-gradient(520px 260px at 88% 0%, rgba(236, 72, 153, 0.16), transparent 55%),
    linear-gradient(180deg, #1a1130 0%, #120b24 45%, #1d1538 100%);
  color: #fde68a;
}

.faq-body[data-theme="retro"] .faq-card {
  background: linear-gradient(135deg, rgba(26, 16, 46, 0.94), rgba(34, 21, 54, 0.9));
  border-color: rgba(251, 191, 36, 0.32);
}

.faq-body[data-theme="retro"] .faq-head h2 {
  color: #fff4c4;
}

.faq-body[data-theme="retro"] .faq-item {
  background: rgba(28, 17, 48, 0.9);
  border-color: rgba(251, 191, 36, 0.3);
}

.faq-body[data-theme="retro"] .faq-item summary {
  color: #fff2be;
}

.faq-body[data-theme="retro"] .faq-item p {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] {
  background:
    radial-gradient(circle at 12% -4%, rgba(251, 191, 36, 0.2), transparent 55%),
    radial-gradient(circle at 88% 16%, rgba(236, 72, 153, 0.16), transparent 50%),
    linear-gradient(160deg, #1a1130 0%, #120b24 45%, #1d1538 100%);
  color: #fde68a;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.app-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}

.app-grid.frame-only {
  grid-template-columns: 1fr;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.compact-card,
.swap-widget,
.ss-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.ss-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ss-title h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #102a56;
}

.ss-title p {
  margin: 4px 0 0;
  color: #5b6b86;
  font-size: 0.85rem;
}

.compact-head {
  margin-bottom: 10px;
}

.compact-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.frame-panel {
  padding: 0;
  overflow: hidden;
}

.exchange-frame {
  display: block;
  width: 100%;
  height: clamp(860px, 92vh, 1120px);
  border: 0;
  border-radius: inherit;
  background: #ffffff;
}

.swap-panel {
  grid-row: auto;
}

.tracker-panel {
  grid-column: auto;
}

.support-panel {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.swap-head-hint {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
}

.easy-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.easy-steps div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  color: #39517d;
  font-size: 0.82rem;
  padding: 8px 10px;
}

form {
  display: grid;
  gap: 10px;
}

.swap-flow {
  gap: 12px;
}

.ss-form {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ss-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f6fb;
  padding: 12px;
}

.ss-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #243152;
}

.ss-row {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 10px;
  align-items: center;
}

.ss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #6a7690;
}

.swap-action {
  justify-self: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
  font-size: 1.1rem;
  box-shadow:
    0 10px 18px rgba(15, 25, 55, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.swap-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ss-address {
  background: #ffffff;
}

.ss-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #c6d6ef;
  border-radius: 14px;
  background: #f1f7ff;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #2b4c8a;
}

.ss-offer .ghost {
  border-color: #c6d6ef;
  background: #ffffff;
  color: #2b4c8a;
}

.ss-track {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ss-track summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b4c8a;
}

.swap-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
}

.swap-box-title {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #4e6287;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swap-main-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.network-row {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.network-row.is-hidden {
  display: none;
}

.swap-middle-btn {
  justify-self: center;
  min-width: 64px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.dual-split {
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 11px;
  width: 100%;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 110, 242, 0.16);
}

input[readonly] {
  color: #0a8a58;
  font-weight: 700;
}

.token-select-wrap {
  display: flex;
  align-items: center;
}

.token-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
}

.token-icon.is-empty {
  opacity: 1;
}

.advanced-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.advanced-box summary {
  cursor: pointer;
  color: #3f4d66;
  font-size: 0.8rem;
  font-weight: 600;
}

.advanced-content {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.mode-toggle {
  display: inline-flex;
  gap: 6px;
}

.mode-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #3b4c68;
  padding: 7px 12px;
}

.mode-btn.active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

.ss-header .mode-btn {
  background: #f1f5ff;
  border-color: #c8d7f5;
  color: #2b4c8a;
}

.ss-header .mode-btn.active {
  background: var(--brand);
  border-color: var(--brand-2);
  color: #fff;
}

.asset-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compact-advanced {
  padding: 8px 10px;
}

.compact-insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preset-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #2f4366;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.chip-arrow {
  color: #7d8da8;
}

.insights {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}

.insights div {
  padding: 10px;
}

.insights p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.insights strong {
  margin-top: 6px;
  display: block;
  font-size: 0.84rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-actions {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

button {
  cursor: pointer;
}

.primary,
.secondary,
.ghost {
  border-radius: 10px;
  padding: 11px 12px;
}

.primary {
  border: 1px solid #0f53d9;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
}

.secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #334967;
  font-weight: 600;
}

.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary.is-disabled,
.secondary.is-disabled,
.ghost.is-disabled {
  opacity: 0.6;
  filter: saturate(0.8);
}

.ghost {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #3e5478;
  font-weight: 600;
}

.quote-card {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.compact-quote {
  margin-top: 0;
}

.quote-card h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.quote-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.quote-card li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.quote-card strong {
  color: var(--ink);
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ticker span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-table-wrap {
  max-height: 320px;
  overflow: auto;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th,
.market-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
  font-size: 0.8rem;
}

.market-table th {
  position: sticky;
  top: 0;
  background: #fff;
  font-size: 0.72rem;
  color: #677a98;
  text-transform: uppercase;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.asset-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.asset-cell small {
  display: block;
  color: #7b8da9;
}

.delta-up {
  color: var(--good);
}

.delta-down {
  color: var(--bad);
}

.tracker-inputs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.compact-track {
  margin-bottom: 8px;
}

.order-view {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 160px;
  background: #f8fbff;
  padding: 10px;
}

.order-view.empty {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.order-meta div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.order-meta p {
  margin: 0;
  font-size: 0.68rem;
  color: #6e809f;
}

.countdown {
  margin: 2px 0 8px;
  color: #315a97;
  font-weight: 600;
}

.countdown.expired {
  color: #b13845;
}

.progress-shell {
  height: 8px;
  border-radius: 999px;
  background: #dce6f8;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(130deg, #2cdb93, #2f6ef2);
  transition: width 0.35s ease;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.timeline li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: #61708d;
  background: #fff;
}

.timeline li.done {
  border-color: #9fd9be;
  color: #1b7f54;
  background: #effbf5;
}

.qr-wrap {
  margin: 10px 0;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.qr-image {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}

textarea {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  width: 100%;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 110, 242, 0.16);
}

.toast-wrap {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--toast-vv-offset));
  display: grid;
  gap: 7px;
  z-index: 9800;
  pointer-events: none;
}

body.exchange-body .toast-wrap {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--toast-vv-offset));
}

.toast {
  min-width: 250px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.toast.error {
  border-color: #ef9aa3;
}

.toast.success {
  border-color: #8ed4b3;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2400;
  font-family: var(--ss-font-body);
  --chat-avatar: none;
}

.chat-launch {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(10, 24, 38, 0.92);
  color: #e6f1ff;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 30px rgba(5, 12, 20, 0.35);
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(380px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 46%),
    rgba(10, 20, 34, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(5, 12, 20, 0.5);
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(7, 18, 30, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.chat-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 211, 238, 0.8));
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1c2e;
}

.chat-title {
  display: block;
  color: #f1f6ff;
  font-size: 0.92rem;
}

.chat-subtitle {
  display: block;
  color: #9fb5d9;
  font-size: 0.72rem;
  margin-top: 3px;
}

.chat-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(30, 41, 59, 0.55);
  color: #e5edff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-close:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(30, 41, 59, 0.82);
}

.chat-messages {
  padding: 12px;
  display: grid;
  gap: 9px;
  overflow-y: auto;
  flex: 1;
}

.chat-msg {
  padding: 8px 10px 10px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 90%;
  word-break: break-word;
  display: grid;
  gap: 8px;
}

.chat-msg-text {
  margin: 0;
  white-space: pre-wrap;
}

.chat-user {
  justify-self: end;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #f8fbff;
}

.chat-bot {
  justify-self: start;
  background: rgba(8, 20, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e5efff;
  position: relative;
  padding-left: 34px;
}

.chat-bot::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-image: var(--chat-avatar);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px rgba(8, 20, 34, 0.6);
}

.chat-widget[dir="rtl"] .chat-user {
  justify-self: start;
}

.chat-widget[dir="rtl"] .chat-bot {
  justify-self: end;
  padding-left: 10px;
  padding-right: 34px;
}

.chat-widget[dir="rtl"] .chat-bot::before {
  left: auto;
  right: 8px;
}

.chat-typing {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.chat-action-btn {
  justify-self: start;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #d7f3ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chat-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.62);
}

.chat-quick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 10px 10px;
}

.chat-chip {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 28, 46, 0.8);
  color: #cfe2ff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-chip:hover {
  border-color: rgba(56, 189, 248, 0.58);
  color: #e6f8ff;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 18, 30, 0.95);
}

.chat-input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 8px 10px;
  background: rgba(5, 12, 20, 0.6);
  color: #e6f1ff;
}

.chat-input::placeholder {
  color: #91a6c7;
}

.chat-send {
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chat-send-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 700px) {
  .chat-panel {
    width: min(380px, calc(100vw - 24px));
    right: 0;
  }

  .toast-wrap {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 420px);
    gap: 8px;
  }

  .toast {
    width: 100%;
    min-width: 0;
    font-size: 0.78rem;
    padding: 10px 12px;
  }
}

@media (max-width: 980px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .swap-panel {
    grid-row: auto;
  }

  .tracker-panel {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .currency-label {
    display: none;
  }

  .swap-main-row,
  .form-row.dual-split,
  .actions,
  .compact-actions {
    grid-template-columns: 1fr;
  }

  .ss-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-row {
    grid-template-columns: 1fr;
  }

  .order-meta {
    grid-template-columns: 1fr;
  }
}

/* Exchange v2 */
.exchange-body {
  background:
    radial-gradient(circle at 50% -8%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 22%, rgba(99, 102, 241, 0.15), transparent 50%),
    linear-gradient(160deg, #071427 0%, #0a1b35 45%, #081327 100%);
  color: #eef3ff;
  padding: 34px 18px 60px;
  font-family: "Manrope", "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}

.exchange-body::before,
.exchange-body::after {
  content: "";
  position: fixed;
  inset: -40vmax;
  pointer-events: none;
  z-index: 0;
}

.exchange-body::before {
  background:
    radial-gradient(980px 760px at 14% 18%, rgba(59, 130, 246, 0.42), transparent 72%),
    radial-gradient(1080px 860px at 86% 22%, rgba(99, 102, 241, 0.3), transparent 70%),
    radial-gradient(1040px 820px at 22% 88%, rgba(59, 130, 246, 0.24), transparent 72%);
  opacity: 0.95;
}

.exchange-body::after {
  background:
    radial-gradient(1180px 920px at 50% 55%, rgba(248, 250, 252, 0.3), transparent 74%),
    radial-gradient(1020px 820px at 80% 80%, rgba(236, 72, 153, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(7, 16, 34, 0.55) 0%, rgba(7, 14, 30, 0.12) 70%, transparent 100%);
  opacity: 0.7;
}

.exchange-shell {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: auto;
  align-content: start;
}

.exchange-shell::before,
.exchange-shell::after {
  content: "";
  position: absolute;
  inset: -120px -90px -110px;
  border-radius: 36px;
  pointer-events: none;
  z-index: -1;
}

.exchange-shell::before {
  background:
    radial-gradient(620px 480px at 18% 10%, rgba(59, 130, 246, 0.42), transparent 62%),
    radial-gradient(680px 520px at 85% 16%, rgba(99, 102, 241, 0.3), transparent 60%),
    radial-gradient(740px 600px at 20% 88%, rgba(59, 130, 246, 0.24), transparent 65%),
    radial-gradient(700px 560px at 82% 92%, rgba(236, 72, 153, 0.22), transparent 65%);
  opacity: 0.92;
}

.exchange-shell::after {
  background:
    radial-gradient(520px 380px at 50% 45%, rgba(248, 250, 252, 0.32), transparent 70%),
    linear-gradient(180deg, rgba(10, 22, 44, 0.7) 0%, rgba(7, 14, 30, 0.12) 65%, transparent 100%);
  opacity: 0.7;
}

.compact-shell {
  max-width: 700px;
  gap: 14px;
}

@media (max-height: 820px) {
  .exchange-shell {
    min-height: auto;
    align-content: start;
  }
}

.compact-shell::before {
  inset: -110px -70px -90px;
}

.compact-shell::after {
  inset: -90px -60px -80px;
}

body.exchange-body .exchange-shell::before,
body.exchange-body .exchange-shell::after {
  display: block;
}

body.exchange-body .exchange-shell::before {
  background:
    radial-gradient(560px 420px at 18% 12%, rgba(56, 189, 248, 0.24), transparent 68%),
    radial-gradient(620px 460px at 86% 10%, rgba(99, 102, 241, 0.2), transparent 66%),
    radial-gradient(620px 500px at 24% 88%, rgba(99, 102, 241, 0.18), transparent 70%);
  opacity: 0.82;
  animation: navFieldShift 24s ease-in-out infinite;
}

body.exchange-body .exchange-shell::after {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 52%),
    repeating-linear-gradient(
      116deg,
      rgba(148, 163, 184, 0.16) 0 1px,
      transparent 1px 18px
    );
  background-size: 100% 100%, 190% 190%;
  opacity: 0.5;
  animation: navLineDrift 26s linear infinite;
}

.exchange-hero {
  text-align: center;
  padding: 10px 6px 0;
}

.compact-hero {
  padding: 6px 4px 0;
}

.exchange-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-family: "Space Grotesk", "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  color: #f5f8ff;
}

.exchange-hero p {
  margin: 0;
  color: rgba(216, 229, 255, 0.78);
  font-size: 0.95rem;
}

.exchange-card {
  background: #ffffff;
  color: #101a34;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(6, 20, 50, 0.35);
  filter:
    drop-shadow(0 0 160px rgba(56, 189, 248, 0.22))
    drop-shadow(0 0 260px rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(226, 233, 248, 0.9);
  background-clip: padding-box;
}

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

.exchange-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.center-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.compact-head h2 {
  font-size: 1rem;
}

.exchange-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #1c3a6a;
  font-weight: 700;
}

.exchange-card-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #6c7c98;
  font-weight: 600;
}

.exchange-steps {
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid #d7e4fb;
  background: linear-gradient(135deg, rgba(223, 236, 255, 0.72), rgba(243, 248, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.compact-steps {
  margin: 8px 0 6px;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
}

.exchange-step {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dce6f7;
  box-shadow: 0 8px 16px rgba(15, 25, 55, 0.08);
  position: relative;
  overflow: hidden;
}

.exchange-step span {
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  flex: 0 0 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b72f6, #22d3ee);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(27, 114, 246, 0.35);
}

.exchange-step strong {
  display: block;
  font-size: 0.78rem;
  color: #223a66;
}

.exchange-step small {
  display: block;
  font-size: 0.68rem;
  color: #6b7c98;
}

.exchange-step {
  opacity: 0.45;
  border-color: #e3ebf9;
  background: rgba(247, 249, 255, 0.8);
  box-shadow: none;
}

.exchange-step.active {
  opacity: 1;
  border-color: #b7d3ff;
  background: linear-gradient(135deg, #ecf3ff, #f7fbff);
  box-shadow: 0 14px 22px rgba(27, 114, 246, 0.18);
}

.exchange-step.active span {
  background: linear-gradient(135deg, #1b72f6, #60a5fa);
}

.exchange-stage {
  display: none;
  gap: 10px;
}

.exchange-stage.active {
  display: grid;
}

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

.stage-actions.dual {
  justify-content: space-between;
}

.stage-actions .ghost {
  padding: 10px 12px;
}

.exchange-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f5f8ff;
  border: 1px solid #dce6f6;
}

.compact-rate {
  padding: 8px 10px;
  border-radius: 14px;
}

.rate-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rate-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e6efff;
  color: #2755a6;
}

.rate-icon svg {
  width: 18px;
  height: 18px;
  stroke-linejoin: round;
}

.exchange-rate .lock-open {
  display: none;
}

.exchange-rate[data-mode="float"] .lock-closed {
  display: none;
}

.exchange-rate[data-mode="float"] .lock-open {
  display: block;
}

.exchange-rate strong {
  display: block;
  font-size: 0.8rem;
  color: #233a63;
}

.exchange-rate small {
  display: block;
  font-size: 0.68rem;
  color: #6c7c98;
}

.exchange-form {
  margin-top: 14px;
  gap: 12px;
}

.compact-form {
  gap: 10px;
}

.anon-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed #d6e0f3;
  background: #f7f9ff;
  color: #51607d;
  font-size: 0.75rem;
}

.anon-inline.active {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(14, 165, 233, 0.12));
  color: #14532d;
  box-shadow: 0 12px 22px rgba(34, 197, 94, 0.18);
}

.anon-compact {
  width: 40px;
  height: 22px;
  display: grid;
  align-items: center;
}

.anon-compact .anon-knob {
  width: 16px;
  height: 16px;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

.anon-compact.active .anon-knob {
  transform: translate(18px, -50%);
}

.exchange-card .ss-block {
  background: #f4f7fd;
  border-color: #d9e3f6;
}

.compact-block {
  padding: 10px;
  border-radius: 14px;
}

.exchange-card .ss-address {
  background: #ffffff;
}

.exchange-card .ss-row input[type="number"],
.exchange-card #to-amount {
  text-align: center;
}

.exchange-card .field-approx {
  text-align: center;
}

.exchange-insights {
  background: #f7f9ff;
  border-color: #dbe4f6;
}

.exchange-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exchange-actions .primary {
  padding: 12px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #3b82f6;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.12);
}

.exchange-actions .secondary {
  background: #f1f5ff;
  border-color: #d0dbf3;
  color: #224a8f;
}

.exchange-actions .primary:hover {
  background: #eff6ff;
}

.exchange-actions #create-order {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 12px 20px rgba(34, 197, 94, 0.3);
}

.exchange-actions #create-order:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  border-color: #cbd5f5;
  box-shadow: none;
}

.compact-details,
.quote-details {
  border: 1px solid #dbe4f6;
  border-radius: 16px;
  background: #f7f9ff;
  padding: 10px 12px;
}

.compact-details summary,
.quote-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: #223a66;
  list-style: none;
}

.route-subtext {
  margin: 6px 0 4px;
  font-size: 0.74rem;
  color: #5f708f;
  font-weight: 600;
  line-height: 1.45;
}

.route-subtext[data-tone="ok"] {
  color: #1d4ed8;
}

.route-subtext[data-tone="warn"] {
  color: #b45309;
}

.route-subtext[data-tone="error"] {
  color: #b91c1c;
}

.compact-details .details-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #223a66;
}

.recipient-details {
  display: grid;
  gap: 10px;
}

.compact-details summary::-webkit-details-marker,
.quote-details summary::-webkit-details-marker {
  display: none;
}

.compact-details summary::marker,
.quote-details summary::marker {
  content: "";
}

.details-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.compact-details .network-row {
  gap: 6px;
}

.quote-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #5b6d88;
}

.quote-details li {
  display: flex;
  justify-content: space-between;
}


.track-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef6ff;
  border: 1px dashed #b8cdf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #244b8f;
}

.track-callout a {
  color: #1b72f6;
  font-weight: 700;
  text-decoration: none;
}

.exchange-quote {
  margin-top: 12px;
  border: 1px solid #dbe4f6;
  border-radius: 18px;
  background: #f7f9ff;
  padding: 12px;
}

.exchange-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.exchange-quote-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #1c3a6a;
}

.exchange-quote-tag {
  font-size: 0.7rem;
  color: #4b5f83;
  background: #eaf1ff;
  border: 1px solid #cfe0ff;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Tracking page */
.track-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.18), transparent 45%),
    linear-gradient(160deg, #06182d 0%, #0a2342 55%, #0a1c36 100%);
  color: #e7efff;
}

.track-body::before,
.track-body::after,
.ticket-body::before,
.ticket-body::after {
  content: none;
  display: none;
}

.track-shell {
  display: grid;
  gap: 20px;
}

.track-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.track-hero-copy h2 {
  margin: 8px 0 10px;
  font-size: 1.7rem;
  color: #f4f7ff;
}

.track-hero-copy p {
  margin: 0;
  color: #c8d7f0;
  line-height: 1.6;
}

.track-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #bcecff;
}

.track-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.track-hero-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(12, 28, 50, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #dbe7ff;
}

.track-hero-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.track-hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #b9cbe6;
  display: grid;
  gap: 6px;
}

.track-card {
  background: #ffffff;
  color: #101a34;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid #dfe6f6;
  box-shadow: 0 24px 50px rgba(6, 20, 50, 0.35);
}

.track-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #1c3a6a;
}

.track-card-head p {
  margin: 0 0 12px;
  color: #6c7c98;
}

.track-footer {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #6c7c98;
}

.track-footer a {
  color: #1b72f6;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 800px) {
  .exchange-steps {
    grid-template-columns: 1fr;
  }

  .exchange-card-head {
    align-items: flex-start;
  }

  .track-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .exchange-rate {
    flex-direction: column;
    align-items: flex-start;
  }

  .exchange-actions {
    grid-template-columns: 1fr;
  }
}
/* SimpleSwap-inspired redesign */
:root {
  --ss-bg: #f3f7ff;
  --ss-ink: #101c2e;
  --ss-ink-soft: #5b6d88;
  --ss-card: #ffffff;
  --ss-line: #e1e9fb;
  --ss-line-strong: #cbd7f0;
  --ss-primary: #2f6ef2;
  --ss-primary-dark: #1b51da;
  --ss-accent: #16c497;
  --ss-shadow: 0 30px 60px rgba(15, 25, 55, 0.14);
  --ss-radius: 24px;
  --ss-font-body: "Manrope", "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  --ss-font-display: "Space Grotesk", "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
}

body.ss-body {
  min-height: 100dvh;
  margin: 0;
  padding: 32px 18px 40px;
  color: var(--ss-ink);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(47, 110, 242, 0.16), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(900px 500px at 18% 90%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(900px 500px at 85% 100%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(135deg, #f4f7ff 0%, #f6fbff 35%, #f2f7ff 70%, #f7fbff 100%);
  font-family: var(--ss-font-body);
  position: relative;
  overflow-x: hidden;
}

body.ss-body::before,
body.ss-body::after {
  content: "";
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.ss-body::before {
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
}

body.ss-body::after {
  bottom: -150px;
  left: -130px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 70%);
}

.ss-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 18px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.ss-column {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.ss-left {
  grid-column: 1;
}

.ss-right {
  grid-column: 2;
}

.ss-full {
  grid-column: 1 / -1;
}

.swap-widget,
.ss-card,
.compact-card {
  background: rgba(232, 244, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ss-radius);
  padding: 22px;
  box-shadow: 0 32px 70px rgba(15, 25, 55, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background-image: linear-gradient(180deg, rgba(230, 244, 255, 0.9), rgba(210, 228, 248, 0.78));
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.swap-widget::before,
.ss-card::before,
.compact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.swap-widget {
  border-top: 4px solid #22d3ee;
  background-image: linear-gradient(180deg, rgba(220, 247, 255, 0.92), rgba(205, 234, 250, 0.8));
}

.quote-card {
  border-top: 4px solid #a3e635;
  background-image: linear-gradient(180deg, rgba(230, 250, 234, 0.9), rgba(214, 238, 220, 0.78));
}

.coingecko-panel {
  border-top: 4px solid #f97316;
  background-image: linear-gradient(180deg, rgba(255, 239, 226, 0.9), rgba(245, 230, 216, 0.8));
}

.tracker-panel {
  border-top: 4px solid #6366f1;
  background-image: linear-gradient(180deg, rgba(226, 232, 255, 0.9), rgba(212, 222, 248, 0.8));
}

.support-panel {
  border-top: 4px solid #ec4899;
  background-image: linear-gradient(180deg, rgba(255, 232, 244, 0.9), rgba(244, 220, 236, 0.8));
}

.lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  background: #f5f8ff;
}

.lang-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a4f74;
}

.lang-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  border: 1px solid var(--ss-line-strong);
  background: #ffffff;
  color: #2f4366;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lang-btn.active {
  border-color: var(--ss-primary);
  background: #eaf1ff;
  color: #1b4fd7;
  box-shadow: 0 10px 18px rgba(47, 110, 242, 0.18);
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.flag-us {
  background-image: url("https://flagcdn.com/24x18/us.png");
}

.flag-es {
  background-image: url("https://flagcdn.com/24x18/es.png");
}

.flag-fr {
  background-image: url("https://flagcdn.com/24x18/fr.png");
}

.flag-de {
  background-image: url("https://flagcdn.com/24x18/de.png");
}

.flag-it {
  background-image: url("https://flagcdn.com/24x18/it.png");
}

.flag-pt {
  background-image: url("https://flagcdn.com/24x18/pt.png");
}

.flag-ro {
  background-image: url("https://flagcdn.com/24x18/ro.png");
}

.flag-ru {
  background-image: url("https://flagcdn.com/24x18/ru.png");
}

.flag-sa {
  background-image: url("https://flagcdn.com/24x18/sa.png");
}

.flag-pl {
  background-image: url("https://flagcdn.com/24x18/pl.png");
}

.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ss-title h2 {
  margin: 0;
  font-family: var(--ss-font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}

.ss-title p {
  margin: 4px 0 0;
  color: var(--ss-ink-soft);
  font-size: 0.86rem;
}

.mode-toggle {
  --toggle-gap: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--toggle-gap);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #d8e4ff;
  background: #f0f4ff;
  position: relative;
  overflow: hidden;
}

.mode-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 2px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
}

.mode-toggle[data-mode="fixed"]::before {
  transform: translateX(calc(100% + var(--toggle-gap)));
}

.mode-toggle[data-mode="float"]::before {
  transform: translateX(0);
}

.mode-btn {
  border: 0;
  background: transparent;
  color: #4062a1;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mode-btn.active {
  color: #fff;
  text-shadow: 0 4px 12px rgba(16, 57, 132, 0.3);
}

.mode-btn.mode-pulse {
  animation: modePulse 0.45s ease;
}

.anon-toggle {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(59, 130, 246, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.anon-toggle strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

.anon-toggle p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #4b5563;
}

.anon-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.anon-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.anon-switch.active {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  border-color: rgba(59, 130, 246, 0.8);
}

.anon-switch.active .anon-knob {
  transform: translate(22px, -50%);
}

.ss-form select:disabled,
.ss-form input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.ss-form {
  display: grid;
  gap: 14px;
}

.ss-block {
  border: 1px solid var(--ss-line);
  border-radius: 18px;
  background: #f8faff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.ss-address {
  background: #ffffff;
}

.field-help {
  margin: 0;
  font-size: 0.72rem;
  color: #6a7a95;
}

.field-error {
  margin: 0;
  min-height: 1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #c5313d;
}

.field-approx {
  margin: 0;
  min-height: 1em;
  font-size: 0.72rem;
  color: #35507d;
  font-weight: 600;
}

.ss-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a3854;
}

.ss-row {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 10px;
  align-items: center;
}

.ss-row input {
  font-size: 1.08rem;
  font-weight: 600;
}

.token-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ss-line-strong);
  border-radius: 14px;
  padding: 10px 12px;
  z-index: 4;
}

.token-select-wrap.picker-open {
  z-index: 2400;
}

.token-select-wrap.is-disabled {
  opacity: 0.92;
}

.token-select-wrap.is-disabled .token-picker {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.95;
}

.token-select-wrap.is-disabled .token-picker-caret {
  display: none;
}


.token-select-wrap select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.token-picker {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ss-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.token-picker[data-locked="1"] {
  pointer-events: none;
}

.token-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.token-picker-icon {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.token-picker-icon[data-asset-id="xmr"],
.token-option-icon[data-asset-id="xmr"] {
  display: block;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.token-picker-icon[alt^="XMR" i],
.token-picker-icon[alt*="Monero" i],
.token-option-icon[alt^="XMR" i],
.token-option-icon[alt*="Monero" i],
.swap-logo img[alt^="XMR" i],
.swap-logo img[alt*="Monero" i],
.cg-logo img[alt^="XMR" i],
.cg-logo img[alt*="Monero" i],
.chip-icon[alt^="XMR" i],
.chip-icon[alt*="Monero" i],
.asset-icon[alt^="XMR" i],
.asset-icon[alt*="Monero" i],
img[src*="monero" i] {
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
}

.token-picker-icon[alt^="XRP" i],
.token-picker-icon[alt*="Ripple" i],
.token-option-icon[alt^="XRP" i],
.token-option-icon[alt*="Ripple" i],
.chip-icon[alt^="XRP" i],
.chip-icon[alt*="Ripple" i],
.asset-icon[alt^="XRP" i],
.asset-icon[alt*="Ripple" i],
.swap-logo[data-symbol="XRP"],
.cg-logo[data-symbol="XRP"],
img[src*="xrp" i],
img[src*="ripple" i] {
  background: #ffffff;
  border-radius: 50%;
}

.token-picker-caret {
  color: #8aa0c4;
  font-size: 0.7rem;
}

.token-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  z-index: 2400;
  background: #ffffff;
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 42px rgba(15, 25, 55, 0.2);
  max-height: min(560px, calc(100vh - 170px));
  overflow: hidden;
  display: none;
}

.exchange-body .exchange-card,
.exchange-body .compact-card {
  overflow: visible;
}

.token-dropdown.open {
  display: grid;
  gap: 10px;
}

.token-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 8px);
}

.token-dropdown-search {
  border: 1px solid var(--ss-line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.token-dropdown-search::placeholder {
  color: #8a9ab3;
}

.token-dropdown-list {
  max-height: min(440px, calc(100vh - 250px));
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.token-option-row {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: #102a56;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.token-option-row:hover,
.token-option-row:focus {
  background: #f4f8ff;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.token-option-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.token-option-empty {
  padding: 8px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--ss-ink-soft);
  font-size: 0.78rem;
}

.token-option-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 18px;
}

.token-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.token-option-title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-option-subtitle,
.token-option small {
  color: var(--ss-ink-soft);
  line-height: 1.2;
  font-size: 0.68rem;
}

.token-option-network {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 255, 0.9);
  color: #1f3a66;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
  flex-shrink: 0;
}

.exchange-body[data-theme="dark"] .token-dropdown {
  background: #12233c;
  border-color: #2d4467;
  box-shadow: 0 18px 30px rgba(5, 10, 24, 0.55);
}

.exchange-body[data-theme="dark"] .token-dropdown-search {
  background: #0f1d33;
  color: #e9f2ff;
  border-color: #36527d;
}

.exchange-body[data-theme="dark"] .token-dropdown-search::placeholder {
  color: #9eb2d4;
}

.exchange-body[data-theme="dark"] .token-option-row {
  background: rgba(12, 24, 40, 0.82);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e6f1ff;
}

.exchange-body[data-theme="dark"] .token-option-row:hover,
.exchange-body[data-theme="dark"] .token-option-row:focus {
  background: rgba(19, 40, 70, 0.9);
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 14px 22px rgba(5, 10, 24, 0.42);
}

.exchange-body[data-theme="dark"] .token-option-empty {
  background: rgba(15, 30, 52, 0.6);
  color: #a3b8db;
}

.exchange-body[data-theme="dark"] .token-option small {
  color: #a3b8db;
}

.exchange-body[data-theme="dark"] .token-option-subtitle {
  color: #9fb5d9;
}

.exchange-body[data-theme="dark"] .token-option-network {
  background: rgba(27, 47, 80, 0.9);
  border-color: rgba(148, 163, 184, 0.36);
  color: #dbeafe;
}

@media (max-width: 760px) {
  .token-select-wrap.picker-open {
    z-index: 2400;
  }

  .token-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    transform: none;
    border-radius: 14px;
    padding: 10px;
    z-index: 2400;
    max-height: min(60vh, 420px);
    box-shadow: 0 20px 34px rgba(5, 10, 24, 0.34);
  }

  .token-dropdown.drop-up {
    top: auto;
    bottom: calc(100% + 8px);
    transform: none;
  }

  .token-dropdown-list {
    max-height: min(45vh, 320px);
    gap: 9px;
  }

  .token-option-row {
    padding: 12px;
    border-radius: 13px;
  }
}

@media (max-width: 520px) {
  .token-option-row {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .token-option-main {
    width: 100%;
  }

  .token-option-network {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
  }
}

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

.exchange-body input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.token-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  color: #6a7a95;
  background: #f3f7ff;
  border: 1px dashed #c9d8f3;
  border-radius: 12px;
  padding: 8px 10px;
}

.ss-footer select {
  width: auto;
  border-radius: 999px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #1543c4, #0f2f8f);
  font-size: 0.74rem;
  border: 1px solid #0b246b;
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    0 10px 18px rgba(15, 47, 143, 0.35),
    0 0 0 2px rgba(21, 67, 196, 0.2);
}

.ss-footer div {
  display: grid;
  gap: 2px;
}

.network-title {
  font-weight: 700;
  color: #1f2f4d;
  font-size: 0.78rem;
}

.network-title strong {
  color: #1543c4;
}

.network-hint {
  font-size: 0.68rem;
  color: #6f7f99;
}

.ss-footer select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 110, 242, 0.25), 0 10px 18px rgba(47, 110, 242, 0.25);
}

.swap-action {
  justify-self: center;
  min-width: 74px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ss-line-strong);
  background: #ffffff;
  color: var(--ss-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(47, 110, 242, 0.12);
}

.swap-arrows {
  display: grid;
  place-items: center;
  width: 58px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f2ff, #ffffff);
  color: #1b4fd7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  perspective: 800px;
}

.swap-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.swap-arrows.spin {
  transform: rotateX(12deg) rotateY(-12deg) scale(1.04);
  box-shadow: 0 14px 22px rgba(27, 79, 215, 0.25);
}

.ss-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8aa4;
}

.asset-presets {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.preset-chip {
  border: 1px solid var(--ss-line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: #2f4366;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 25, 55, 0.08);
  font-size: 0.78rem;
}

.chip-arrow {
  color: #8898b3;
}

.ss-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #c6d6ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7fffb 100%);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #2b4c8a;
}

.ss-offer .ghost {
  border-color: #c6d6ef;
  background: #ffffff;
  color: #2b4c8a;
}

.advanced-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #f7fbff, #edf4ff);
  padding: 10px 12px;
  box-shadow:
    0 0 0 1px rgba(47, 110, 242, 0.2),
    0 14px 30px rgba(47, 110, 242, 0.2),
    0 0 24px rgba(22, 196, 151, 0.25);
  animation: advancedGlow 4s ease-in-out infinite;
}

.advanced-box > * {
  position: relative;
  z-index: 1;
}

.advanced-box summary {
  cursor: pointer;
  color: #1f3c6f;
  font-size: 0.82rem;
  font-weight: 700;
}

.advanced-box::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(47, 110, 242, 0.25) 0%, rgba(47, 110, 242, 0) 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

@keyframes advancedGlow {
  0% {
    box-shadow:
      0 0 0 1px rgba(47, 110, 242, 0.18),
      0 12px 26px rgba(47, 110, 242, 0.18),
      0 0 18px rgba(22, 196, 151, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(47, 110, 242, 0.28),
      0 16px 34px rgba(47, 110, 242, 0.26),
      0 0 30px rgba(22, 196, 151, 0.35);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(47, 110, 242, 0.18),
      0 12px 26px rgba(47, 110, 242, 0.18),
      0 0 18px rgba(22, 196, 151, 0.22);
  }
}

.insights {
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  background: #ffffff;
}

.insights div {
  padding: 10px 12px;
}

.insights p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--ss-ink-soft);
}

.insights strong {
  margin-top: 6px;
  display: block;
  font-size: 0.84rem;
  color: var(--ss-ink);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(145deg, rgba(69, 145, 255, 0.96), rgba(27, 81, 218, 0.92));
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 18px 32px rgba(47, 110, 242, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(10, 36, 96, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 36px rgba(47, 110, 242, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 18px rgba(10, 36, 96, 0.28);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(230, 240, 255, 0.75));
  color: #1f3355;
  font-weight: 600;
  box-shadow:
    0 14px 24px rgba(15, 25, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 14px rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 28px rgba(15, 25, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -10px 18px rgba(148, 163, 184, 0.28);
}

.promo-link {
  border: 0;
  background: transparent;
  color: var(--ss-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  justify-self: center;
}

.quote-card {
  background: #ffffff;
  border: 1px solid var(--ss-line);
}

.quote-card h3 {
  font-family: var(--ss-font-display);
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: var(--ss-ink);
}

.quote-card li {
  font-size: 0.8rem;
  color: var(--ss-ink-soft);
}

.quote-card strong {
  color: var(--ss-ink);
}

.route-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.route-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.9));
  padding: 12px 13px;
  display: grid;
  gap: 10px;
  box-shadow:
    0 14px 24px rgba(15, 25, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.route-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.82));
  opacity: 0.72;
}

.route-card::after {
  content: "";
  position: absolute;
  inset: -35% -50%;
  background: radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.2), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.route-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow:
    0 18px 30px rgba(15, 25, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.route-card.best {
  border-color: rgba(34, 197, 94, 0.56);
  box-shadow:
    0 18px 30px rgba(16, 185, 129, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.route-card.best::before {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.88));
  opacity: 0.9;
}

.route-card.best::after {
  background: radial-gradient(circle at 16% 28%, rgba(34, 197, 94, 0.22), transparent 55%);
}

.route-card.selected {
  border-color: rgba(47, 110, 242, 0.72);
  background: linear-gradient(140deg, rgba(234, 244, 255, 0.98), rgba(255, 255, 255, 0.96) 66%);
  box-shadow:
    0 20px 34px rgba(47, 110, 242, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.route-card.selected::before {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.9));
  opacity: 1;
}

.route-card.selected::after {
  background: radial-gradient(circle at 18% 30%, rgba(59, 130, 246, 0.24), transparent 56%);
}

.route-card.unavailable {
  border-style: dashed;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  box-shadow: none;
  opacity: 0.85;
}

.route-card.unavailable::before {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.72), rgba(148, 163, 184, 0.62));
}

.route-card.unavailable::after {
  opacity: 0.3;
}

.route-card.skeleton::before,
.route-card.skeleton::after {
  content: none;
}

.route-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
}

.route-provider {
  font-weight: 700;
  color: var(--ss-ink);
  letter-spacing: 0.01em;
}

.route-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b5a3f;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.58);
  border-radius: 999px;
  padding: 3px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.route-badge.selected {
  color: #1b4fd7;
  background: linear-gradient(135deg, rgba(224, 236, 255, 0.95), rgba(191, 219, 254, 0.9));
  border-color: rgba(47, 110, 242, 0.42);
}

.route-badge.muted {
  color: #64748b;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #cbd5f5;
}

.route-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 0.72rem;
  color: var(--ss-ink-soft);
  padding: 0 0 0 12px;
}

.route-details strong {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ss-ink);
}

.route-action {
  display: flex;
  justify-content: flex-end;
  padding-left: 12px;
}

.route-card.selected .route-btn {
  border-color: var(--ss-primary);
  color: #ffffff;
  background: linear-gradient(135deg, var(--ss-primary), var(--ss-primary-dark));
  box-shadow: 0 12px 20px rgba(47, 110, 242, 0.22);
}

.quote-alert {
  display: none;
  margin: 6px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}

.quote-alert.visible {
  display: block;
}

.route-error {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.5;
  padding-left: 12px;
  display: grid;
  gap: 3px;
}

.route-error strong {
  color: #334155;
  font-weight: 700;
}

.route-error span {
  color: #64748b;
}

.route-btn {
  min-width: 168px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 16px rgba(15, 23, 42, 0.14);
}

.tracker-panel h2 {
  margin: 0;
  font-family: var(--ss-font-display);
  font-size: 1rem;
  color: var(--ss-ink);
}

.tracker-panel .compact-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--ss-ink-soft);
}

.order-view {
  border: 1px solid var(--ss-line);
  border-radius: 14px;
  background: #f8faff;
}

.order-view.empty {
  color: var(--ss-ink-soft);
}

.coingecko-panel {
  display: grid;
  gap: 10px;
  --cg-edge: rgba(235, 245, 255, 0.92);
  --cg-chip-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.92));
  --cg-chip-border: rgba(148, 163, 184, 0.22);
  --cg-chip-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.home-body[data-theme="dark"] .coingecko-panel {
  --cg-edge: rgba(11, 20, 34, 0.92);
  --cg-chip-bg: linear-gradient(145deg, rgba(10, 18, 32, 0.92), rgba(15, 24, 40, 0.9));
  --cg-chip-border: rgba(148, 163, 184, 0.2);
  --cg-chip-shadow: 0 14px 26px rgba(5, 10, 20, 0.45);
}

.home-body[data-theme="retro"] .coingecko-panel {
  --cg-edge: rgba(34, 20, 56, 0.96);
  --cg-chip-bg: linear-gradient(145deg, rgba(45, 24, 66, 0.94), rgba(30, 20, 51, 0.92));
  --cg-chip-border: rgba(251, 191, 36, 0.38);
  --cg-chip-shadow: 0 14px 26px rgba(10, 6, 18, 0.45);
}

.cg-carousel-panel {
  padding: 18px 22px;
}

.cg-carousel-head {
  align-items: center;
}

.cg-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cg-status-inline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ss-ink-soft);
}

.live-chip {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #9fd9be;
  background: #effbf5;
  color: #1b7f54;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cg-ticker {
  position: relative;
  overflow: hidden;
  padding: 6px 2px 2px;
}

.cg-carousel {
  position: relative;
  overflow: hidden;
}

.cg-carousel::before,
.cg-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.cg-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--cg-edge), rgba(255, 255, 255, 0));
}

.cg-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--cg-edge), rgba(255, 255, 255, 0));
}

.cg-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: cg-scroll 32s linear infinite;
  will-change: transform;
}

.cg-carousel:hover .cg-track {
  animation-play-state: paused;
}

.cg-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--cg-chip-border);
  border-radius: 12px;
  background: var(--cg-chip-bg);
  box-shadow: var(--cg-chip-shadow);
  font-size: 0.78rem;
  min-height: 48px;
  min-width: 160px;
  flex: 0 0 auto;
}

.cg-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--cg-halo, #d1fae5), var(--cg-fill, #34d399));
  color: var(--cg-text, #0f5132);
  font-size: 0.56rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cg-logo::after {
  content: attr(data-symbol);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cg-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cg-logo.loaded img {
  opacity: 1;
}

.cg-logo.loaded::after {
  opacity: 0;
}

.cg-logo.failed img {
  opacity: 0;
}

.cg-logo.failed::after {
  opacity: 1;
}

.cg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.cg-meta strong {
  font-size: 0.82rem;
  color: var(--ss-ink);
}

.cg-price {
  font-weight: 700;
  color: var(--ss-ink);
}

.cg-change {
  font-weight: 700;
}

.cg-up .cg-change {
  color: #1b7f54;
}

.cg-down .cg-change {
  color: #c5313d;
}

.cg-status {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ss-ink-soft);
}

@media (max-width: 720px) {
  .cg-carousel::before,
  .cg-carousel::after {
    width: 28px;
  }

  .cg-track {
    animation-duration: 36s;
  }

  .cg-chip {
    min-width: 148px;
    padding: 7px 9px;
  }
}

@keyframes cg-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes modePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.support-divider {
  height: 1px;
  background: var(--ss-line);
  margin: 14px 0 12px;
}

.support-body {
  min-height: 100vh;
  background:
    radial-gradient(600px 400px at 10% 5%, rgba(14, 116, 144, 0.15), transparent 60%),
    radial-gradient(600px 400px at 90% 0%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(135deg, #f6fbff 0%, #f8f6ff 50%, #f6fff9 100%);
  font-family: var(--ss-font-body);
}

.support-shell {
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.support-hero-card {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.support-hero-card h2 {
  margin: 10px 0 6px;
  font-size: 1.6rem;
}

.support-hero-card p {
  margin: 0;
  color: #46536b;
  font-size: 0.95rem;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.support-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.support-metrics div {
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-metrics strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.support-metrics span {
  font-size: 0.72rem;
  color: #64748b;
}

.support-side {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.support-side h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #0f172a;
}

.support-side ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #46536b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.support-contact {
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 12px;
  color: #5b6b84;
  font-size: 0.8rem;
  line-height: 1.4;
}

.support-card {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.08);
}

.support-form-pro {
  display: grid;
  gap: 14px;
}

.support-form-pro input,
.support-form-pro textarea {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fbff;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.support-actions p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.support-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .support-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .support-metrics {
    grid-template-columns: 1fr;
  }
  .support-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.support-head h3 {
  margin: 0;
  font-family: var(--ss-font-display);
  font-size: 0.9rem;
  color: var(--ss-ink);
}

.support-form {
  display: grid;
  gap: 10px;
}

.support-panel {
  grid-column: 1 / -1;
}

.support-wide {
  grid-template-columns: 1fr 1fr;
}

.support-span {
  grid-column: 1 / -1;
}

.support-form textarea {
  min-height: 90px;
}

.contact-body {
  min-height: 100vh;
  background:
    radial-gradient(700px 420px at 12% 8%, rgba(59, 130, 246, 0.2), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(14, 116, 144, 0.18), transparent 55%),
    linear-gradient(135deg, #f5fbff 0%, #f8f4ff 45%, #f7fff5 100%);
  font-family: var(--ss-font-body);
}

.contact-shell {
  display: grid;
  gap: 24px;
  padding-bottom: 44px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
}

.contact-hero-copy h2 {
  margin: 12px 0 8px;
  font-size: 1.8rem;
  color: #0f172a;
}

.contact-hero-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.contact-highlight {
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.contact-highlight strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.contact-highlight span {
  font-size: 0.72rem;
  color: #64748b;
}

.contact-hero-card {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, #ffffff, #eef5ff);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.contact-hero-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0f172a;
}

.contact-hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: #46536b;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.contact-card {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.08);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fbff;
}

.contact-span {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-actions p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.contact-side {
  display: grid;
  gap: 14px;
}

.contact-info-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
}

.contact-info-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #0f172a;
}

.contact-info-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .contact-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .contact-highlights {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ss-body input,
.ss-body select,
.ss-body textarea {
  border: 1px solid var(--ss-line-strong);
  background: #ffffff;
  color: var(--ss-ink);
  border-radius: 12px;
  padding: 11px 12px;
}

.ss-body input:focus,
.ss-body select:focus,
.ss-body textarea:focus {
  outline: none;
  border-color: var(--ss-primary);
  box-shadow: 0 0 0 3px rgba(47, 110, 242, 0.16);
}

.ss-body input.is-invalid,
.ss-body textarea.is-invalid {
  border-color: #e06a75;
  box-shadow: 0 0 0 3px rgba(224, 106, 117, 0.2);
}

.ss-body input[readonly] {
  color: #0f8f66;
  font-weight: 700;
}

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

.swap-widget {
  animation: ss-rise 0.6s ease-out;
}

.tracker-panel {
  animation: ss-rise 0.6s ease-out 0.08s both;
}

.coingecko-panel {
  animation: ss-rise 0.6s ease-out 0.12s both;
}

.quote-card {
  animation: ss-rise 0.6s ease-out 0.16s both;
}

@media (prefers-reduced-motion: reduce) {
  .swap-widget,
  .tracker-panel,
  .coingecko-panel,
  .quote-card,
  .advanced-box {
    animation: none;
  }
}

@media (max-width: 980px) {
  .ss-shell {
    grid-template-columns: 1fr;
  }

  .ss-left,
  .ss-right {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .ss-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-row {
    grid-template-columns: 1fr;
  }

  .tracker-inputs,
  .actions,
  .compact-actions {
    grid-template-columns: 1fr;
  }

  .support-wide {
    grid-template-columns: 1fr;
  }

  .route-details {
    grid-template-columns: 1fr;
  }
}

body.exchange-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -8%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 22%, rgba(99, 102, 241, 0.15), transparent 50%),
    linear-gradient(160deg, #071427 0%, #0a1b35 45%, #081327 100%);
  color: #eef3ff;
  padding: 34px 18px 60px;
  font-family: "Manrope", "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.exchange-body[data-theme="light"] {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.12), transparent 45%),
    linear-gradient(160deg, #f6f9ff 0%, #eef3fb 55%, #ffffff 100%);
  color: #0f172a;
}

body.exchange-body[data-theme="light"]::before {
  background:
    radial-gradient(980px 780px at 14% 18%, rgba(59, 130, 246, 0.22), transparent 74%),
    radial-gradient(1080px 860px at 86% 22%, rgba(99, 102, 241, 0.2), transparent 72%),
    radial-gradient(1020px 820px at 22% 88%, rgba(59, 130, 246, 0.18), transparent 74%);
  opacity: 0.9;
}

body.exchange-body[data-theme="light"]::after {
  background:
    radial-gradient(1180px 920px at 50% 55%, rgba(59, 130, 246, 0.12), transparent 76%),
    radial-gradient(1020px 820px at 80% 80%, rgba(236, 72, 153, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, rgba(248, 250, 252, 0.25) 70%, transparent 100%);
  opacity: 0.7;
}

body.exchange-body.matrix-mode {
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(160deg, #071427 0%, #0b1330 45%, #070f24 100%);
}

body.exchange-body.matrix-mode::before {
  background:
    radial-gradient(1080px 860px at 20% 20%, rgba(56, 189, 248, 0.32), transparent 74%),
    radial-gradient(1100px 900px at 80% 18%, rgba(99, 102, 241, 0.28), transparent 72%);
  opacity: 0.85;
}

body.exchange-body.matrix-mode::after {
  background:
    radial-gradient(1180px 920px at 50% 60%, rgba(99, 102, 241, 0.2), transparent 76%),
    linear-gradient(180deg, rgba(7, 14, 30, 0.7) 0%, rgba(7, 14, 30, 0.15) 70%, transparent 100%);
  opacity: 0.7;
}

body.exchange-body .exchange-card {
  position: relative;
  overflow: hidden;
  filter: none;
  --modal-aura-size: 280px;
}

body.exchange-body .exchange-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 58%),
    repeating-linear-gradient(
      116deg,
      rgba(148, 163, 184, 0.12) 0 1px,
      transparent 1px 18px
    );
  background-size: 100% 100%, 180% 180%;
  opacity: 0.6;
  animation: navLineDrift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body.exchange-body .exchange-card::after {
  content: "";
  position: absolute;
  width: var(--modal-aura-size);
  height: var(--modal-aura-size);
  right: calc(var(--modal-aura-size) * -0.32);
  top: calc(var(--modal-aura-size) * -0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.28), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.2), transparent 65%);
  opacity: 0.82;
  animation: modalAuraDrift 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body.exchange-body .exchange-card > * {
  position: relative;
  z-index: 1;
}

body.exchange-body .exchange-card[data-step="1"] {
  --modal-aura-size: 230px;
}

body.exchange-body .exchange-card[data-step="2"] {
  --modal-aura-size: 250px;
}

body.exchange-body .exchange-card[data-step="3"] {
  --modal-aura-size: 280px;
}

body.exchange-body .exchange-card[data-step="4"] {
  --modal-aura-size: 330px;
}

body.exchange-body.matrix-mode .matrix-rain {
  display: block;
}

.matrix-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
  z-index: 0;
}

.matrix-stream {
  position: absolute;
  top: -140%;
  width: 140px;
  color: rgba(34, 197, 94, 0.35);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.15;
  white-space: pre;
  animation: matrix-fall 14s linear infinite;
}

.matrix-stream:nth-child(1) {
  left: 6%;
  animation-duration: 13s;
  opacity: 0.35;
}

.matrix-stream:nth-child(2) {
  left: 32%;
  animation-duration: 16s;
  opacity: 0.28;
}

.matrix-stream:nth-child(3) {
  left: 58%;
  animation-duration: 12s;
  opacity: 0.32;
}

.matrix-stream:nth-child(4) {
  left: 82%;
  animation-duration: 18s;
  opacity: 0.25;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-140%);
  }
  100% {
    transform: translateY(140%);
  }
}

body.exchange-body::before,
body.exchange-body::after {
  display: block;
  pointer-events: none;
}

body.exchange-body::before {
  animation: modalAuraDrift 18s ease-in-out infinite;
}

body.exchange-body::after {
  animation: navFieldShift 26s ease-in-out infinite;
}

body.exchange-body .exchange-actions {
  grid-template-columns: 1fr;
}

/* Upgraded order tracking */
.order-view {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(140deg, #f8fbff 0%, #eef4ff 55%, #ffffff 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.order-view::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.order-view.order-state-pending::before,
.order-view.order-state-active::before {
  animation: modalAuraDrift 10s ease-in-out infinite;
}

.order-view.order-state-good::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 72%);
}

.order-view.order-state-bad::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16), transparent 72%);
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.order-kicker {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7a94;
}

.order-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}

.order-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.order-status-pill.good {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.45);
}

.order-status-pill.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.4);
}

.order-status-pill.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.4);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-card {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  padding: 10px 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.order-card p {
  margin: 0;
  font-size: 0.68rem;
  color: #6b7a94;
}

.order-card strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 0.9rem;
}

.order-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  color: #7485a3;
}

.order-deposit {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}

.order-deposit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deposit-address {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: #0f172a;
  background: rgba(226, 232, 240, 0.6);
  padding: 8px 10px;
  border-radius: 10px;
  margin-top: 6px;
}

.order-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: #5b6c86;
  flex-wrap: wrap;
}

.order-note strong {
  color: #0f172a;
}

.deposit-highlight {
  border-radius: 16px;
  border: 2px solid rgba(37, 99, 235, 0.35);
  background:
    radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(248, 252, 255, 0.98));
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
  display: grid;
  gap: 10px;
}

.deposit-highlight-head {
  display: grid;
  gap: 2px;
}

.deposit-highlight-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.deposit-highlight-head strong {
  color: #0f172a;
  font-size: 1rem;
}

.deposit-highlight-head small {
  color: #546581;
  font-size: 0.74rem;
}

.deposit-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.deposit-highlight-main {
  display: grid;
  gap: 8px;
}

.deposit-highlight-amount {
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 10px;
  display: grid;
  gap: 2px;
}

.deposit-highlight-amount span {
  font-size: 0.68rem;
  color: #5e7191;
}

.deposit-highlight-amount strong {
  font-size: 1rem;
  color: #0f172a;
}

.deposit-highlight-amount small {
  font-size: 0.7rem;
  color: #1d4ed8;
  font-weight: 700;
}

.deposit-highlight-address {
  display: grid;
  gap: 6px;
}

.deposit-highlight-address span {
  font-size: 0.7rem;
  color: #536683;
}

.deposit-highlight-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.deposit-guide {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  padding: 11px 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 9px;
}

.deposit-guide-head {
  display: grid;
  gap: 2px;
}

.deposit-guide-head strong {
  font-size: 0.82rem;
  color: #1d4ed8;
}

.deposit-guide-head span {
  font-size: 0.72rem;
  color: #64748b;
}

.deposit-guide-steps {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.45;
}

.deposit-guide-steps li {
  margin: 0;
}

.deposit-guide-steps strong {
  color: #0f172a;
}

.order-chips {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.order-chip {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
  padding: 8px 10px;
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #55657f;
  word-break: break-word;
}

.order-chip strong {
  color: #0f172a;
  font-weight: 600;
}

.order-view.live-only {
  padding: 14px;
}

.order-live-stage {
  display: grid;
  gap: 10px;
}

.order-live-meta {
  margin-top: 2px;
  font-size: 0.74rem;
  color: #5b6c86;
  text-align: center;
}

.order-live-meta strong {
  color: #0f172a;
}

.order-view.live-only .journey-head {
  margin-top: 0;
}

.qr-wrap {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.qr-meta {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: #65738c;
}

.journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.journey-head strong {
  font-size: 0.8rem;
  color: #1e3a8a;
  letter-spacing: 0.01em;
}

.journey-head span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}

.journey-copy {
  margin: 5px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.progress-shell {
  width: 100%;
  --progress: 0;
  height: 13px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.12));
  border-radius: 999px;
  margin: 10px 0 12px;
  overflow: visible;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.progress-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.26) 0 6px,
    rgba(255, 255, 255, 0.02) 6px 14px
  );
  background-size: 160% 100%;
  animation: timelineFlow 7s linear infinite;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.progress-bar {
  position: relative;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(130deg, #22c55e, #2563eb, #38bdf8);
  background-size: 180% 100%;
  animation: timelineFlow 4s linear infinite;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  transition: width 0.5s ease;
  transform-origin: left center;
  max-width: 100%;
  z-index: 2;
}

.progress-glow {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.28),
    0 0 18px rgba(56, 189, 248, 0.6);
  animation: stepPulse 1.6s ease-in-out infinite;
}

.progress-indicator {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 2px solid #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.22),
    0 0 18px rgba(37, 99, 235, 0.4);
  z-index: 3;
  animation: stepPulse 1.6s ease-in-out infinite;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline li {
  position: relative;
  padding: 10px 12px 10px 32px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  color: #5b6c86;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  animation: stepReveal 0.45s ease both;
  animation-delay: var(--timeline-delay, 0ms);
}

.timeline-main {
  display: grid;
  gap: 2px;
}

.timeline-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.timeline-step-desc {
  font-size: 0.68rem;
  color: #64748b;
}

.timeline-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.timeline-eta {
  font-size: 0.66rem;
  color: #64748b;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5f5;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 26px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0));
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.done {
  border-color: rgba(34, 197, 94, 0.35);
  background: #f0fdf4;
  color: #157f4c;
}

.timeline li.done::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.timeline li.done .timeline-step-label {
  color: #166534;
}

.timeline li.done .timeline-step-desc,
.timeline li.done .timeline-eta {
  color: #15803d;
}

.timeline li.active {
  border-color: rgba(37, 99, 235, 0.52);
  background: linear-gradient(140deg, rgba(235, 244, 255, 0.96), rgba(223, 238, 255, 0.92));
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.timeline li.active::before {
  background: #2563eb;
  animation: stepPulse 1.4s ease-in-out infinite;
}

.timeline li.active .timeline-status {
  color: #1d4ed8;
}

.timeline li.pending {
  background: #f8fafc;
}

.timeline-status {
  font-weight: 600;
  font-size: 0.72rem;
  color: #475569;
}

@media (max-width: 640px) {
  .order-deposit-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .deposit-highlight-grid {
    grid-template-columns: 1fr;
  }

  .qr-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Swap complete modal */
.swap-complete-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(2, 6, 23, 0.46);
  z-index: 6600;
  isolation: isolate;
}

.swap-complete-modal.open {
  display: flex;
}

.swap-complete-modal::before {
  content: "";
  position: absolute;
  width: min(340px, calc(100vw - 30px));
  height: min(340px, calc(100vh - 30px));
  border-radius: 30px;
  background: radial-gradient(
    circle at 50% 44%,
    rgba(255, 255, 255, 0.72),
    rgba(227, 239, 255, 0.5) 62%,
    rgba(211, 227, 250, 0.14) 100%
  );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  pointer-events: none;
  z-index: 0;
}

.swap-complete-dialog {
  width: min(390px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98)),
    #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.32);
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
  position: relative;
  color: #0f172a;
  z-index: 1;
}

.swap-complete-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 34px;
}

.swap-complete-hero .support-kicker {
  margin-bottom: 4px;
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.swap-complete-hero h3 {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.25;
}

.swap-complete-check {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.08rem;
  box-shadow:
    0 14px 22px rgba(34, 197, 94, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.swap-complete-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(241, 245, 249, 0.88);
  color: #334155;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.swap-complete-close:hover {
  transform: translateY(-1px);
  background: rgba(226, 232, 240, 0.95);
}

.swap-complete-close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 1px;
}

.swap-complete-copy {
  margin: 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.55;
}

.swap-complete-meta {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.9);
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}

.swap-complete-meta span {
  font-size: 0.66rem;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swap-complete-meta strong {
  color: #166534;
}

.swap-complete-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  color: #0f172a;
  word-break: break-all;
}

.swap-complete-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.swap-complete-actions .secondary,
.swap-complete-actions .primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 11px;
  padding: 9px 11px;
}

@media (max-width: 560px) {
  .swap-complete-dialog {
    border-radius: 18px;
    padding: 16px 14px 14px;
  }

  .swap-complete-actions {
    grid-template-columns: 1fr;
  }
}

/* First-visit tutorial modal */
.tutorial-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.56);
  z-index: 6500;
}

.tutorial-modal.open {
  display: flex;
}

.tutorial-dialog {
  width: min(450px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.tutorial-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(128deg, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at 85% 0, rgba(59, 130, 246, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.tutorial-dialog > * {
  position: relative;
  z-index: 1;
}

.tutorial-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.36);
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  min-height: 30px;
  line-height: 1;
}

.tutorial-close:hover {
  background: rgba(226, 232, 240, 0.98);
}

.tutorial-close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 1px;
}

.tutorial-pane {
  display: grid;
  gap: 10px;
}

.tutorial-pane .support-kicker {
  justify-self: start;
  border-color: rgba(14, 165, 233, 0.32);
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.tutorial-pane[data-pane="prompt"] {
  padding-top: 6px;
}

.tutorial-pane h3 {
  margin: 0;
  max-width: 26ch;
  font-size: 1.07rem;
  line-height: 1.3;
  color: #0f172a;
}

.tutorial-pane p {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.5;
}

.tutorial-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tutorial-step;
  display: grid;
  gap: 8px;
}

.tutorial-steps li {
  counter-increment: tutorial-step;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  padding: 10px 11px 10px 42px;
  font-size: 0.81rem;
  color: #334155;
  line-height: 1.45;
}

.tutorial-steps li::before {
  content: counter(tutorial-step);
  position: absolute;
  top: 10px;
  left: 11px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.13);
  border: 1px solid rgba(37, 99, 235, 0.36);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
}

.tutorial-steps strong {
  color: #0f172a;
  font-weight: 700;
}

.tutorial-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.tutorial-pane[data-pane="guide"] .tutorial-actions {
  grid-template-columns: 1fr;
}

.tutorial-actions .primary,
.tutorial-actions .secondary {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  padding: 9px 11px;
  justify-content: center;
}

@media (max-width: 560px) {
  .tutorial-modal {
    padding: 12px;
  }

  .tutorial-dialog {
    border-radius: 18px;
    padding: 14px;
  }

  .tutorial-close {
    top: 8px;
    right: 8px;
  }

  .tutorial-actions {
    grid-template-columns: 1fr;
  }
}

/* Interactive tutorial tour */
.tutorial-tour {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 6700;
  pointer-events: none;
}

.tutorial-tour.open {
  display: block;
}

.tutorial-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.14);
  pointer-events: none;
}

.tutorial-tour-window {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 60px;
  border-radius: 14px;
  border: 2px solid rgba(125, 211, 252, 0.96);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 12px 26px rgba(2, 6, 23, 0.34),
    0 0 0 10px rgba(56, 189, 248, 0.15);
  opacity: 0;
  transition:
    top 0.14s ease,
    left 0.14s ease,
    width 0.14s ease,
    height 0.14s ease,
    border-radius 0.14s ease,
    opacity 0.14s ease;
  pointer-events: none;
  z-index: 1;
}

.tutorial-tour-window.active {
  opacity: 1;
}

.tutorial-tour-card {
  position: fixed;
  width: min(390px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.38);
  padding: 14px;
  display: grid;
  gap: 10px;
  z-index: 2;
  pointer-events: auto;
  max-height: min(72vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}

.tutorial-tour-card.is-ready {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.4);
}

.tutorial-tour-card .support-kicker {
  justify-self: start;
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.tutorial-tour-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #0f172a;
}

.tutorial-tour-card p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.5;
}

.tutorial-tour-progress {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 8px;
}

.tutorial-tour-progress span {
  font-size: 0.74rem;
  color: #64748b;
}

.tutorial-tour-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.tutorial-tour-card.no-next .tutorial-tour-actions {
  grid-template-columns: 1fr 1fr;
}

.tutorial-tour-actions button[hidden] {
  display: none !important;
}

.tutorial-tour-actions .primary,
.tutorial-tour-actions .secondary,
.tutorial-tour-actions .ghost {
  min-height: 40px;
  border-radius: 11px;
  padding: 8px 10px;
  justify-content: center;
}

.tutorial-tour-actions .secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tutorial-focus-target {
  position: relative;
  z-index: 6701 !important;
  background-clip: padding-box;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.88),
    0 0 0 9px rgba(14, 165, 233, 0.24),
    0 10px 24px rgba(2, 6, 23, 0.22);
  border-radius: 12px;
}

@media (max-width: 980px), (pointer: coarse) {
  .tutorial-tour-card {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto;
    max-width: none;
    border-radius: 14px;
    padding: 12px;
    gap: 8px;
    max-height: min(46vh, 340px);
  }

  .tutorial-tour-card.dock-top {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
  }

  .tutorial-tour-card.dock-bottom {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
  }

  .tutorial-tour-card h3 {
    font-size: 0.94rem;
    line-height: 1.28;
  }

  .tutorial-tour-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .tutorial-tour-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tutorial-tour-actions .primary {
    grid-column: 1 / -1;
  }

  .tutorial-tour-actions .primary,
  .tutorial-tour-actions .secondary,
  .tutorial-tour-actions .ghost {
    min-height: 36px;
    padding: 7px 10px;
  }

  .tutorial-tour-window {
    box-shadow:
      0 0 0 9999px rgba(2, 6, 23, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.42),
      0 8px 18px rgba(2, 6, 23, 0.3),
      0 0 0 8px rgba(56, 189, 248, 0.14);
  }
}

/* Support modal */
body.modal-open {
  overflow: hidden;
}

.support-shortcut {
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #0f172a;
  background: rgba(226, 232, 240, 0.6);
}

.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 15, 35, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2600;
}

.support-modal.open {
  display: flex;
}

.support-dialog {
  width: min(440px, 100%);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.support-dialog::before,
.ticket-access-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(56, 189, 248, 0.1) 0 1px,
      transparent 1px 16px
    );
  background-size: 100% 100%, 200% 200%;
  animation: navLineDrift 22s linear infinite;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.support-dialog::after,
.ticket-access-dialog::after {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: 45%;
  background:
    radial-gradient(circle at 22% 28%, rgba(56, 189, 248, 0.24), transparent 55%),
    radial-gradient(circle at 78% 74%, rgba(45, 212, 191, 0.18), transparent 52%);
  animation: modalAuraDrift 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.support-dialog > *,
.ticket-access-dialog > * {
  position: relative;
  z-index: 1;
}

.support-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(148, 163, 184, 0.15);
  color: #1e293b;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
}

.support-dialog-head h3 {
  margin: 8px 0 6px;
  font-size: 1.1rem;
}

.support-dialog-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.support-kicker {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.support-dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.exchange-body .support-dialog {
  background: #0b1c36;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.2);
}

.exchange-body .support-dialog-head p {
  color: #cbd5f5;
}

.exchange-body .support-close {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

/* Layering, theme menu, and admin dashboard upgrades */
.top-nav {
  z-index: 10;
}

.top-nav.lang-layer-open {
  z-index: 7200 !important;
  isolation: isolate;
}

.top-nav.theme-layer-open {
  z-index: 7200 !important;
  isolation: isolate;
}

.top-nav.lang-layer-open .top-lang,
.top-lang.open {
  z-index: 7300 !important;
}

.top-nav.lang-layer-open .lang-menu,
.lang-menu {
  z-index: 7301 !important;
}

.theme-toggle {
  position: relative;
  z-index: 7300;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  padding: 6px;
  display: none;
  gap: 4px;
  z-index: 7302;
}

.theme-menu.open {
  display: grid;
  z-index: 7303 !important;
}

.top-nav.theme-layer-open .theme-toggle,
.top-nav.theme-layer-open .theme-menu,
.theme-toggle.open {
  z-index: 7303 !important;
}

.theme-option {
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-option:hover,
.theme-option.active {
  background: #eef4ff;
  color: #1b4fd7;
}

body[data-theme="dark"] .theme-menu {
  background: #0f1d33;
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: 0 20px 34px rgba(5, 10, 20, 0.55);
}

body[data-theme="dark"] .theme-option {
  color: #e6efff;
}

body[data-theme="dark"] .theme-option:hover,
body[data-theme="dark"] .theme-option.active {
  background: rgba(59, 130, 246, 0.24);
  color: #f8fbff;
}

body[data-theme="retro"] .theme-menu {
  background: #1f1538;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 20px 34px rgba(10, 6, 18, 0.62);
}

body[data-theme="retro"] .theme-option {
  color: #fde68a;
}

body[data-theme="retro"] .theme-option:hover,
body[data-theme="retro"] .theme-option.active {
  background: rgba(251, 191, 36, 0.16);
  color: #fff4c4;
}

.support-modal {
  z-index: 6200;
}

.chat-widget {
  z-index: 6100;
}

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

.exchange-body input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

body.exchange-body[data-theme="retro"] {
  background:
    radial-gradient(circle at 14% 6%, rgba(251, 191, 36, 0.2), transparent 54%),
    radial-gradient(circle at 88% 14%, rgba(236, 72, 153, 0.18), transparent 50%),
    linear-gradient(160deg, #1a1230 0%, #120b23 48%, #1f1538 100%);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .exchange-card,
body.exchange-body[data-theme="retro"] .compact-card {
  background: linear-gradient(145deg, rgba(31, 20, 52, 0.96), rgba(24, 16, 42, 0.94));
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 30px 56px rgba(9, 5, 18, 0.65);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .exchange-card-head h2,
body.exchange-body[data-theme="retro"] .order-title {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .exchange-card-subtitle,
body.exchange-body[data-theme="retro"] .field-help,
body.exchange-body[data-theme="retro"] .field-approx,
body.exchange-body[data-theme="retro"] .ss-footer,
body.exchange-body[data-theme="retro"] .network-hint,
body.exchange-body[data-theme="retro"] .order-kicker,
body.exchange-body[data-theme="retro"] .order-sub,
body.exchange-body[data-theme="retro"] .order-live-meta {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .exchange-steps {
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(135deg, rgba(43, 24, 66, 0.75), rgba(25, 17, 43, 0.86));
}

body.exchange-body[data-theme="retro"] .exchange-step {
  background: rgba(36, 20, 56, 0.82);
  border-color: rgba(251, 191, 36, 0.25);
}

body.exchange-body[data-theme="retro"] .exchange-step strong {
  color: #fff2be;
}

body.exchange-body[data-theme="retro"] .exchange-step small {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .exchange-step.active {
  background: linear-gradient(135deg, rgba(68, 35, 91, 0.85), rgba(40, 21, 62, 0.9));
  border-color: rgba(251, 191, 36, 0.52);
  box-shadow: 0 14px 24px rgba(8, 5, 18, 0.45);
}

body.exchange-body[data-theme="retro"] .exchange-rate,
body.exchange-body[data-theme="retro"] .anon-inline,
body.exchange-body[data-theme="retro"] .exchange-insights,
body.exchange-body[data-theme="retro"] .quote-details,
body.exchange-body[data-theme="retro"] .quote-details .details-body,
body.exchange-body[data-theme="retro"] .advanced-box,
body.exchange-body[data-theme="retro"] .ss-footer {
  background: rgba(28, 17, 48, 0.88);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .exchange-rate strong,
body.exchange-body[data-theme="retro"] .exchange-rate small,
body.exchange-body[data-theme="retro"] .insights strong,
body.exchange-body[data-theme="retro"] .insights p {
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .rate-icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .mode-btn {
  background: rgba(40, 22, 62, 0.95);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .mode-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(236, 72, 153, 0.76));
  border-color: rgba(253, 224, 71, 0.85);
  color: #fff7d6;
}

body.exchange-body[data-theme="retro"] .exchange-card .ss-block,
body.exchange-body[data-theme="retro"] .exchange-card .ss-address {
  background: rgba(31, 18, 50, 0.92);
  border-color: rgba(251, 191, 36, 0.28);
}

body.exchange-body[data-theme="retro"] .ss-label {
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .ss-body input,
body.exchange-body[data-theme="retro"] .ss-body select,
body.exchange-body[data-theme="retro"] .ss-body textarea {
  background: #2a1742;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fff7d6;
}

body.exchange-body[data-theme="retro"] .token-select-wrap {
  background: #2b1743;
  border-color: rgba(251, 191, 36, 0.35);
}

body.exchange-body[data-theme="retro"] .token-picker,
body.exchange-body[data-theme="retro"] .token-picker-caret {
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .token-dropdown {
  background: #23153b;
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 18px 30px rgba(10, 6, 18, 0.55);
}

body.exchange-body[data-theme="retro"] .token-dropdown-search {
  background: #2b1743;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fff7d6;
}

body.exchange-body[data-theme="retro"] .token-dropdown-search::placeholder {
  color: #f8d78f;
}

body.exchange-body[data-theme="retro"] .token-option-row {
  background: rgba(31, 18, 50, 0.94);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .token-option-subtitle,
body.exchange-body[data-theme="retro"] .token-option small {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .token-option-row:hover,
body.exchange-body[data-theme="retro"] .token-option-row:focus {
  background: rgba(61, 31, 86, 0.94);
  border-color: rgba(253, 224, 71, 0.65);
  box-shadow: 0 14px 22px rgba(10, 6, 18, 0.42);
}

body.exchange-body[data-theme="retro"] .token-option-network {
  background: rgba(45, 24, 66, 0.95);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .route-card {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 10px,
      rgba(251, 191, 36, 0.06) 10px,
      rgba(251, 191, 36, 0.06) 11px
    ),
    rgba(29, 18, 48, 0.94);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 22px rgba(10, 6, 18, 0.42);
}

body.exchange-body[data-theme="retro"] .route-card.best {
  background: linear-gradient(135deg, rgba(45, 24, 66, 0.94), rgba(30, 20, 51, 0.95));
  border-color: rgba(253, 224, 71, 0.62);
  box-shadow: 0 14px 24px rgba(10, 6, 18, 0.5);
}

body.exchange-body[data-theme="retro"] .route-card.selected {
  background: linear-gradient(135deg, rgba(63, 32, 87, 0.94), rgba(32, 20, 53, 0.96));
  border-color: rgba(253, 224, 71, 0.72);
  box-shadow: 0 16px 28px rgba(10, 6, 18, 0.58);
}

body.exchange-body[data-theme="retro"] .route-card::before {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.92), rgba(236, 72, 153, 0.78));
  opacity: 0.85;
}

body.exchange-body[data-theme="retro"] .route-card::after {
  background: radial-gradient(circle at 16% 28%, rgba(251, 191, 36, 0.24), transparent 56%);
  opacity: 0.62;
}

body.exchange-body[data-theme="retro"] .route-card.unavailable {
  background: rgba(26, 18, 42, 0.72);
}

body.exchange-body[data-theme="retro"] .route-provider,
body.exchange-body[data-theme="retro"] .route-details strong {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .route-details,
body.exchange-body[data-theme="retro"] .route-error,
body.exchange-body[data-theme="retro"] .route-subtext {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .route-error strong {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .route-error span {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .route-subtext[data-tone="ok"] {
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .route-subtext[data-tone="warn"] {
  color: #facc15;
}

body.exchange-body[data-theme="retro"] .route-subtext[data-tone="error"] {
  color: #fecaca;
}

body.exchange-body[data-theme="retro"] .route-badge,
body.exchange-body[data-theme="retro"] .route-badge.selected,
body.exchange-body[data-theme="retro"] .route-badge.muted {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(236, 72, 153, 0.22));
  border-color: rgba(251, 191, 36, 0.45);
  color: #fff4c4;
  text-shadow: none;
}

body.exchange-body[data-theme="retro"] .route-btn {
  background: rgba(26, 14, 43, 0.96);
  border-color: rgba(251, 191, 36, 0.45);
  color: #ffe39f;
}

body.exchange-body[data-theme="retro"] .route-card.selected .route-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(236, 72, 153, 0.78));
  border-color: rgba(253, 224, 71, 0.82);
  color: #2a103f;
  box-shadow: 0 12px 20px rgba(18, 9, 34, 0.55);
}

body.exchange-body[data-theme="retro"] .asset-price,
body.exchange-body[data-theme="retro"] .asset-change {
  color: #fff8df;
  background: linear-gradient(135deg, rgba(92, 46, 124, 0.78), rgba(46, 25, 72, 0.86));
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.exchange-body[data-theme="retro"] #from-amount,
body.exchange-body[data-theme="retro"] #to-amount {
  background: linear-gradient(135deg, rgba(74, 37, 104, 0.92), rgba(37, 20, 61, 0.96));
  border-color: rgba(253, 224, 71, 0.62);
  color: #fff9e6;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 14px rgba(10, 6, 18, 0.36);
}

body.exchange-body[data-theme="retro"] #quote-rate,
body.exchange-body[data-theme="retro"] #quote-estimated,
body.exchange-body[data-theme="retro"] #quote-guaranteed,
body.exchange-body[data-theme="retro"] #quote-service-fee,
body.exchange-body[data-theme="retro"] #quote-network-fee,
body.exchange-body[data-theme="retro"] #insight-route,
body.exchange-body[data-theme="retro"] #insight-fee,
body.exchange-body[data-theme="retro"] #insight-expiry,
body.exchange-body[data-theme="retro"] .quote-details li strong,
body.exchange-body[data-theme="retro"] .route-details strong {
  color: #fff9df;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(253, 224, 71, 0.52);
  border-radius: 999px;
  padding: 2px 9px;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 14px rgba(10, 6, 18, 0.28);
  text-shadow: none;
}

body.exchange-body[data-theme="retro"] .quote-details li {
  align-items: center;
}

body.exchange-body[data-theme="retro"] .live-badge,
body.exchange-body[data-theme="retro"] .live-badge.live,
body.exchange-body[data-theme="retro"] .live-badge.mock {
  background: rgba(34, 20, 56, 0.9);
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .quote-alert {
  background: rgba(127, 29, 29, 0.36);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

body.exchange-body[data-theme="retro"] .exchange-actions .primary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(236, 72, 153, 0.76));
  border-color: rgba(251, 191, 36, 0.65);
  color: #fff7d6;
  box-shadow: 0 14px 22px rgba(10, 6, 18, 0.55);
}

body.exchange-body[data-theme="retro"] .exchange-actions .secondary,
body.exchange-body[data-theme="retro"] .exchange-actions .ghost,
body.exchange-body[data-theme="retro"] .support-shortcut {
  background: rgba(34, 20, 56, 0.92);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .order-view {
  background: linear-gradient(140deg, rgba(33, 20, 53, 0.96), rgba(22, 14, 39, 0.96));
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 24px 48px rgba(7, 5, 16, 0.58);
}

body.exchange-body[data-theme="retro"] .order-view::before {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16), transparent 70%);
}

body.exchange-body[data-theme="retro"] .order-status-pill {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .journey-head strong,
body.exchange-body[data-theme="retro"] .journey-copy {
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .journey-head span {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .progress-shell {
  background: linear-gradient(90deg, rgba(68, 35, 91, 0.75), rgba(36, 20, 57, 0.55));
}

body.exchange-body[data-theme="retro"] .progress-shell::after {
  opacity: 0.3;
}

body.exchange-body[data-theme="retro"] .progress-bar {
  background: linear-gradient(130deg, rgba(251, 191, 36, 0.9), rgba(236, 72, 153, 0.78), rgba(251, 191, 36, 0.9));
}

body.exchange-body[data-theme="retro"] .progress-glow {
  background: #fff7d6;
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.3),
    0 0 18px rgba(251, 191, 36, 0.52);
}

body.exchange-body[data-theme="retro"] .countdown,
body.exchange-body[data-theme="retro"] .countdown.expired {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .order-card,
body.exchange-body[data-theme="retro"] .order-chip,
body.exchange-body[data-theme="retro"] .order-note,
body.exchange-body[data-theme="retro"] .deposit-highlight,
body.exchange-body[data-theme="retro"] .deposit-highlight-amount,
body.exchange-body[data-theme="retro"] .deposit-guide,
body.exchange-body[data-theme="retro"] .timeline li,
body.exchange-body[data-theme="retro"] .qr-wrap {
  background: rgba(31, 18, 50, 0.9);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .deposit-guide-head strong,
body.exchange-body[data-theme="retro"] .deposit-guide-steps strong,
body.exchange-body[data-theme="retro"] .deposit-highlight-head strong,
body.exchange-body[data-theme="retro"] .deposit-highlight-amount strong {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .deposit-guide-head span,
body.exchange-body[data-theme="retro"] .deposit-guide-steps,
body.exchange-body[data-theme="retro"] .deposit-highlight-head small,
body.exchange-body[data-theme="retro"] .deposit-highlight-address span,
body.exchange-body[data-theme="retro"] .deposit-highlight-amount span,
body.exchange-body[data-theme="retro"] .deposit-highlight-amount small {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .order-card strong,
body.exchange-body[data-theme="retro"] .order-chip strong,
body.exchange-body[data-theme="retro"] .deposit-highlight-kicker,
body.exchange-body[data-theme="retro"] .order-live-meta strong,
body.exchange-body[data-theme="retro"] .order-link {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .timeline-step-label {
  color: #fff4c4;
}

body.exchange-body[data-theme="retro"] .timeline-step-desc,
body.exchange-body[data-theme="retro"] .timeline-eta,
body.exchange-body[data-theme="retro"] .timeline-status {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .timeline li.active {
  background: linear-gradient(140deg, rgba(56, 30, 78, 0.92), rgba(39, 21, 60, 0.92));
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 14px 24px rgba(10, 6, 18, 0.48);
}

body.exchange-body[data-theme="retro"] .timeline li.active::before {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

body.exchange-body[data-theme="retro"] .qr-image {
  border-color: rgba(251, 191, 36, 0.45);
  background: #fff8e8;
}

body.exchange-body[data-theme="retro"] .timeline li.done {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
}

body.exchange-body[data-theme="retro"] .support-dialog {
  background: #20153a;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

body.exchange-body[data-theme="retro"] .support-dialog-head p {
  color: #fbd47a;
}

body.exchange-body[data-theme="retro"] .support-close {
  background: rgba(251, 191, 36, 0.2);
  color: #fff4c4;
}

body[data-theme="retro"] .theme-retro-mark {
  color: #fff4c4;
}

body[data-theme="retro"] .theme-toggle[data-theme-mode="retro"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42), rgba(236, 72, 153, 0.35));
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.14),
    0 10px 18px rgba(10, 6, 18, 0.45);
}

body[data-theme="light"]:not(.exchange-body),
body[data-theme="dark"]:not(.exchange-body),
body[data-theme="retro"]:not(.exchange-body) {
  position: relative;
}

body[data-theme="light"]:not(.exchange-body)::before,
body[data-theme="light"]:not(.exchange-body)::after,
body[data-theme="dark"]:not(.exchange-body)::before,
body[data-theme="dark"]:not(.exchange-body)::after,
body[data-theme="retro"]:not(.exchange-body)::before,
body[data-theme="retro"]:not(.exchange-body)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body[data-theme="light"]:not(.exchange-body)::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(59, 130, 246, 0.1) 0 1px,
      transparent 1px 18px
    );
  background-size: 100% 100%, 200% 200%;
  opacity: 0.5;
  animation: navLineDrift 26s linear infinite;
}

body[data-theme="light"]:not(.exchange-body)::after {
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.2), transparent 48%),
    radial-gradient(circle at 84% 76%, rgba(34, 197, 94, 0.16), transparent 46%),
    radial-gradient(circle at 40% 88%, rgba(99, 102, 241, 0.14), transparent 52%);
  opacity: 0.42;
  animation: navFieldShift 24s ease-in-out infinite;
}

body[data-theme="dark"]:not(.exchange-body)::before {
  background:
    linear-gradient(120deg, rgba(148, 163, 184, 0.12), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(59, 130, 246, 0.11) 0 1px,
      transparent 1px 17px
    );
  background-size: 100% 100%, 210% 210%;
  opacity: 0.42;
  animation: navLineDrift 28s linear infinite;
}

body[data-theme="dark"]:not(.exchange-body)::after {
  background:
    radial-gradient(circle at 12% 14%, rgba(59, 130, 246, 0.22), transparent 50%),
    radial-gradient(circle at 88% 16%, rgba(14, 165, 233, 0.18), transparent 48%),
    radial-gradient(circle at 24% 86%, rgba(236, 72, 153, 0.14), transparent 50%);
  opacity: 0.38;
  animation: navFieldShift 26s ease-in-out infinite;
}

body[data-theme="light"]:not(.exchange-body) > :not(.chat-widget):not(.toast-wrap):not(.support-modal):not(.ticket-access-modal),
body[data-theme="dark"]:not(.exchange-body) > :not(.chat-widget):not(.toast-wrap):not(.support-modal):not(.ticket-access-modal),
body[data-theme="retro"]:not(.exchange-body) > :not(.chat-widget):not(.toast-wrap):not(.support-modal):not(.ticket-access-modal) {
  position: relative;
  z-index: 1;
}

body[data-theme="retro"]:not(.exchange-body) {
  background:
    radial-gradient(circle at 10% 8%, rgba(251, 191, 36, 0.22), transparent 48%),
    radial-gradient(circle at 86% 16%, rgba(236, 72, 153, 0.2), transparent 45%),
    radial-gradient(circle at 18% 86%, rgba(59, 130, 246, 0.2), transparent 52%),
    linear-gradient(160deg, #1a1230 0%, #120b23 48%, #1f1538 100%);
  color: #fbe6ad;
}

body[data-theme="retro"]:not(.exchange-body)::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 4px,
      rgba(251, 191, 36, 0.08) 4px,
      rgba(251, 191, 36, 0.08) 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(236, 72, 153, 0.1) 0px,
      rgba(236, 72, 153, 0.1) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(59, 130, 246, 0.08) 0px,
      rgba(59, 130, 246, 0.08) 1px,
      transparent 1px,
      transparent 72px
    );
  opacity: 0.45;
  animation: navLineDrift 30s linear infinite;
  z-index: 0;
}

body[data-theme="retro"]:not(.exchange-body)::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 50% 120%, rgba(251, 191, 36, 0.15), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: navFieldShift 24s ease-in-out infinite;
  z-index: 0;
}

body[data-theme="retro"] .hero,
body[data-theme="retro"] .hero-lite,
body[data-theme="retro"] .hero-lite-card,
body[data-theme="retro"] .status-bar,
body[data-theme="retro"] .status-item,
body[data-theme="retro"] .panel,
body[data-theme="retro"] .assets-section,
body[data-theme="retro"] .asset-tile,
body[data-theme="retro"] .fees-card,
body[data-theme="retro"] .fees-pill,
body[data-theme="retro"] .about-section,
body[data-theme="retro"] .about-card,
body[data-theme="retro"] .site-footer,
body[data-theme="retro"] .track-card,
body[data-theme="retro"] .track-hero-card,
body[data-theme="retro"] .contact-card,
body[data-theme="retro"] .contact-hero-card,
body[data-theme="retro"] .contact-info-card,
body[data-theme="retro"] .faq-card,
body[data-theme="retro"] .faq-item {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 9px,
      rgba(251, 191, 36, 0.06) 9px,
      rgba(251, 191, 36, 0.06) 10px
    ),
    linear-gradient(135deg, rgba(30, 19, 49, 0.95), rgba(24, 16, 42, 0.92));
  border-color: rgba(251, 191, 36, 0.35) !important;
  box-shadow: 0 18px 30px rgba(10, 6, 18, 0.45);
  color: #fde68a;
}

body[data-theme="retro"] .hero-lite-copy h2,
body[data-theme="retro"] .section-head h2,
body[data-theme="retro"] .about-head h2,
body[data-theme="retro"] .track-hero-copy h2,
body[data-theme="retro"] .track-card-head h2,
body[data-theme="retro"] .contact-hero-copy h2,
body[data-theme="retro"] .faq-head h2,
body[data-theme="retro"] .contact-info-card h4,
body[data-theme="retro"] .about-card h3 {
  color: #fff4c4 !important;
}

body[data-theme="retro"] .hero-lite-copy p,
body[data-theme="retro"] .section-head p,
body[data-theme="retro"] .assets-footnote,
body[data-theme="retro"] .about-head p,
body[data-theme="retro"] .about-card p,
body[data-theme="retro"] .track-hero-copy p,
body[data-theme="retro"] .track-card-head p,
body[data-theme="retro"] .contact-hero-copy p,
body[data-theme="retro"] .contact-info-card p,
body[data-theme="retro"] .faq-item p,
body[data-theme="retro"] .footer-bottom span,
body[data-theme="retro"] .contact-actions p {
  color: #fbd47a !important;
}

body[data-theme="retro"] .btn-primary,
body[data-theme="retro"] .primary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(236, 72, 153, 0.76));
  border-color: rgba(251, 191, 36, 0.65);
  color: #24133b;
  box-shadow: 0 12px 22px rgba(10, 6, 18, 0.45);
  text-shadow: none;
}

body[data-theme="retro"] .btn-secondary,
body[data-theme="retro"] .secondary,
body[data-theme="retro"] .ghost {
  background: rgba(34, 20, 56, 0.92);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

body[data-theme="retro"] input,
body[data-theme="retro"] select,
body[data-theme="retro"] textarea {
  background: #2a1742;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fff8e8;
}

body[data-theme="retro"] input::placeholder,
body[data-theme="retro"] textarea::placeholder {
  color: #f7d181;
}

body[data-theme="retro"] .faq-link {
  background: rgba(34, 20, 56, 0.92);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  box-shadow: 0 10px 20px rgba(10, 6, 18, 0.38);
}

body[data-theme="retro"] .status-item strong,
body[data-theme="retro"] .asset-tile strong,
body[data-theme="retro"] .asset-price,
body[data-theme="retro"] .asset-change {
  color: #fff4c4;
}

body[data-theme="retro"] .asset-meta {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(135deg, rgba(45, 24, 66, 0.95), rgba(31, 18, 50, 0.92));
  box-shadow: inset 0 1px 0 rgba(253, 224, 71, 0.14);
}

body[data-theme="retro"] .asset-price {
  color: #fff8e8 !important;
}

body[data-theme="retro"] .asset-change {
  color: #fbd47a !important;
}

body[data-theme="retro"] .asset-change.up {
  color: #fde68a !important;
}

body[data-theme="retro"] .asset-change.down {
  color: #fca5a5 !important;
}

body[data-theme="retro"].home-body .site-footer {
  border-color: rgba(251, 191, 36, 0.36);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 9px,
      rgba(251, 191, 36, 0.06) 9px,
      rgba(251, 191, 36, 0.06) 10px
    ),
    linear-gradient(135deg, rgba(30, 19, 49, 0.95), rgba(24, 16, 42, 0.92));
  color: #fde68a;
}

body[data-theme="retro"].home-body .footer-col {
  border: 1px solid rgba(251, 191, 36, 0.33);
  border-radius: 14px;
  padding: 14px;
  background: rgba(34, 20, 56, 0.76);
}

body[data-theme="retro"].home-body .footer-col h4 {
  color: #fff4c4;
}

body[data-theme="retro"].home-body .footer-col p,
body[data-theme="retro"].home-body .footer-col li,
body[data-theme="retro"].home-body .footer-col a,
body[data-theme="retro"].home-body .footer-bottom span {
  color: #fbd47a;
}

body[data-theme="retro"].home-body .footer-brand {
  margin-bottom: 10px;
  padding: 12px 14px;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  background: linear-gradient(145deg, rgba(43, 24, 66, 0.85), rgba(31, 18, 50, 0.8));
}

body[data-theme="retro"].home-body .footer-brand-mark {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 14px;
}

body[data-theme="retro"].home-body .footer-brand-copy h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

body[data-theme="retro"].home-body .footer-brand-copy p {
  margin: 0;
  line-height: 1.5;
  color: #fcd97b;
}

body[data-theme="retro"].home-body .footer-bottom {
  border-top-color: rgba(251, 191, 36, 0.3);
}

body[data-theme="retro"] .track-footer a,
body[data-theme="retro"] .card-footnote a,
body[data-theme="retro"] .faq-item summary {
  color: #fff4c4;
}

.admin-shell {
  max-width: 1400px;
}

.admin-login-panel {
  width: min(460px, 100%);
  margin: 24px auto;
}

.admin-login-hint {
  margin-top: 6px;
  display: block;
  font-size: 0.73rem;
  color: #9fb5d9;
}

.admin-mfa-setup {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.94), rgba(7, 20, 35, 0.88));
  display: grid;
  gap: 10px;
}

.admin-mfa-setup h3 {
  margin: 0;
  color: #f2f8ff;
  font-size: 0.95rem;
}

.admin-mfa-setup p {
  margin: 0;
  color: #b9c8df;
  font-size: 0.8rem;
}

.admin-mfa-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-mfa-grid img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
}

.admin-mfa-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}

.admin-mfa-meta span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9eb6d9;
}

.admin-mfa-meta code {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 18, 32, 0.72);
  color: #f1f7ff;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.admin-mfa-meta small {
  color: #9fb5d9;
  font-size: 0.72rem;
}

.admin-mfa-setup-form {
  display: grid;
  gap: 8px;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-topbar h2 {
  margin: 0;
}

.admin-subtitle {
  margin: 6px 0 0;
  color: #b6cbec;
  font-size: 0.85rem;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #bfd3f2;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(8, 18, 32, 0.62);
}

.admin-inline-control select {
  width: auto;
  min-width: 68px;
  border-radius: 999px;
  padding: 6px 9px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(8, 20, 34, 0.88));
  box-shadow: 0 16px 28px rgba(2, 6, 16, 0.35);
}

.admin-kpi-card p {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: #9eb6d9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-kpi-card strong {
  color: #f1f7ff;
  font-size: 1.1rem;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.94), rgba(7, 20, 35, 0.88));
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.admin-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-overview-head h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #f2f8ff;
}

.admin-overview-head span {
  color: #9eb6d9;
  font-size: 0.72rem;
}

.admin-overview-empty {
  margin: 0;
  color: #a7bddf;
  font-size: 0.78rem;
}

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

.admin-stage-chip {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 10px;
  background: rgba(7, 18, 32, 0.72);
  color: #d8e8ff;
  text-align: left;
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-stage-chip strong {
  color: #f7fbff;
  font-size: 1rem;
}

.admin-stage-chip:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.admin-stage-chip.is-empty {
  opacity: 0.66;
}

.admin-provider-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-provider-item {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 9px;
  background: rgba(10, 24, 42, 0.64);
  display: grid;
  gap: 8px;
}

.admin-provider-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-provider-item header strong {
  color: #f4f9ff;
  font-size: 0.82rem;
}

.admin-provider-item header span {
  color: #9ab3d8;
  font-size: 0.72rem;
}

.admin-provider-bars {
  display: grid;
  gap: 6px;
}

.admin-provider-bars label {
  display: block;
  color: #b8cdef;
  font-size: 0.67rem;
  margin-bottom: 4px;
}

.admin-provider-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  overflow: hidden;
}

.admin-provider-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.92), rgba(34, 211, 238, 0.92));
}

.admin-provider-bar.active span {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(74, 222, 128, 0.92));
}

.admin-attention-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-attention-item {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 23, 38, 0.76);
  color: #e4efff;
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-attention-item strong {
  color: #f3f8ff;
  font-size: 0.8rem;
}

.admin-attention-item span {
  color: #a8c2e8;
  font-size: 0.72rem;
}

.admin-attention-item:hover {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(30, 41, 59, 0.84);
  transform: translateY(-1px);
}

.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.admin-tab {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(8, 18, 32, 0.8);
  color: #d3e3fb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-tab.active {
  border-color: rgba(96, 165, 250, 0.7);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(14, 165, 233, 0.42));
  color: #f8fbff;
  box-shadow: 0 10px 18px rgba(8, 17, 30, 0.42);
}

.admin-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-filters input,
.admin-filters select {
  min-width: 210px;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-table-wrap {
  max-height: min(65vh, 760px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  overflow: auto;
}

.admin-table th {
  background: #08192d;
  color: #9fc1e9;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  color: #e8f1ff;
  vertical-align: top;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 4px 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c7daff;
  background: rgba(15, 23, 42, 0.52);
}

.admin-status-pill.waiting {
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(120, 53, 15, 0.28);
  color: #fde68a;
}

.admin-status-pill.stale {
  border-color: rgba(248, 113, 113, 0.56);
  background: rgba(127, 29, 29, 0.36);
  color: #fecaca;
}

.admin-action-stack {
  display: grid;
  gap: 8px;
}

.admin-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-reply-input {
  width: 100%;
  min-height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(8, 18, 32, 0.72);
  color: #e8f1ff;
  padding: 8px 10px;
  resize: vertical;
}

.admin-reply-input::placeholder {
  color: #9ab1d4;
}

.admin-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.admin-message-cell {
  max-width: 460px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d5e4fb;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 12px;
  min-height: min(68vh, 760px);
}

.admin-support-list-wrap {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(7, 16, 30, 0.86);
  padding: 10px;
  overflow: auto;
}

.admin-support-list {
  display: grid;
  gap: 8px;
}

.admin-support-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 30, 50, 0.72);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 7px;
  color: #e5eeff;
  cursor: pointer;
}

.admin-support-item.active {
  border-color: rgba(59, 130, 246, 0.62);
  background: linear-gradient(135deg, rgba(30, 58, 120, 0.5), rgba(15, 30, 50, 0.86));
  box-shadow: 0 8px 18px rgba(2, 10, 20, 0.45);
}

.admin-support-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-support-item p {
  margin: 0;
  color: #d4e4ff;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-support-item small {
  color: #9fb5d9;
  font-size: 0.68rem;
}

.admin-support-detail {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(7, 16, 30, 0.86);
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto auto minmax(220px, 1fr) auto;
  gap: 10px;
}

.admin-support-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-support-detail-head h3 {
  margin: 0;
  color: #f1f7ff;
}

.admin-support-detail-head p {
  margin: 4px 0 0;
  color: #9fb5d9;
  font-size: 0.76rem;
}

.admin-support-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-support-detail-actions select {
  width: auto;
  min-width: 122px;
}

.admin-support-language-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-language-chip {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(15, 30, 50, 0.62);
  padding: 8px 12px;
  font-size: 0.74rem;
  color: #cfe1ff;
}

.admin-language-chip strong {
  color: #f6fbff;
}

.admin-toggle-inline {
  --toggle-track-off: rgba(51, 65, 85, 0.85);
  --toggle-track-on: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
  --toggle-thumb: #f8fbff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(15, 30, 50, 0.76), rgba(7, 18, 32, 0.72));
  padding: 5px 10px 5px 7px;
  color: #e3efff;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-toggle-inline:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 20px rgba(8, 20, 36, 0.35);
  transform: translateY(-1px);
}

.admin-toggle-inline span {
  line-height: 1.2;
  color: #dbeafe;
}

.admin-toggle-inline input {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: var(--toggle-track-off);
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-toggle-inline input::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--toggle-thumb);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
}

.admin-toggle-inline input:checked {
  background: var(--toggle-track-on);
  border-color: rgba(56, 189, 248, 0.85);
}

.admin-toggle-inline input:checked::after {
  transform: translateX(15px);
}

.admin-toggle-inline input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.admin-support-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-support-meta span {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(15, 30, 50, 0.8), rgba(8, 20, 35, 0.76));
  padding: 4px 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 7px;
  min-height: 30px;
  position: relative;
  overflow: hidden;
}

.admin-support-meta span::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.85), rgba(59, 130, 246, 0.35));
}

.admin-support-meta strong {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9fb5d9;
  line-height: 1.05;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 2px;
}

.admin-support-meta em {
  font-style: normal;
  color: #f3f8ff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

#support-translate-draft {
  border-color: rgba(59, 130, 246, 0.58);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(14, 165, 233, 0.22));
  color: #eaf4ff;
  font-weight: 700;
  min-height: 34px;
  padding-inline: 14px;
}

#support-translate-draft:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 10px 22px rgba(8, 20, 36, 0.35);
}

.admin-support-thread {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.11), transparent 40%),
    radial-gradient(circle at 88% 100%, rgba(99, 102, 241, 0.08), transparent 45%),
    rgba(8, 20, 34, 0.82);
  padding: 10px;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-auto-rows: max-content;
}

.admin-support-msg {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(86%, 560px);
  position: relative;
  align-self: start;
  height: auto;
}

.admin-support-msg.support {
  justify-self: end;
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(145deg, rgba(3, 105, 161, 0.34), rgba(8, 47, 73, 0.42));
}

.admin-support-msg.user {
  justify-self: start;
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(145deg, rgba(22, 101, 52, 0.4), rgba(21, 128, 61, 0.2));
}

.admin-support-msg.system {
  justify-self: center;
  max-width: min(92%, 700px);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.38);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.54));
}

.admin-support-msg.support::after,
.admin-support-msg.user::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: inherit;
  border-bottom: inherit;
  border-right: inherit;
}

.admin-support-msg.support::after {
  right: -6px;
}

.admin-support-msg.user::after {
  left: -6px;
}

.admin-support-msg.system::after {
  display: none;
}

.admin-support-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
}

.admin-support-msg-head strong {
  color: #eaf2ff;
}

.admin-support-msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-support-msg-meta span {
  color: #9fb5d9;
}

.admin-support-msg-state {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-support-msg-state.sent {
  color: #c9d9f2;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.56);
}

.admin-support-msg-state.read {
  color: #d1fae5;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(20, 83, 45, 0.48);
}

.admin-support-msg p {
  margin: 0;
  color: #dce9ff;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-support-msg-trans {
  margin: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.24);
  padding-top: 6px;
  color: #9fc3ff;
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-support-reply {
  display: grid;
  gap: 8px;
}

.admin-support-reply textarea {
  min-height: 84px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(8, 18, 32, 0.75);
  color: #e8f1ff;
  padding: 9px 10px;
  resize: vertical;
}

.admin-support-reply textarea::placeholder {
  color: #9ab1d4;
}

.admin-support-reply-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-support-reply-preview {
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 10px;
  background: rgba(14, 36, 58, 0.72);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.admin-support-reply-preview strong {
  color: #e8f3ff;
  font-size: 0.76rem;
}

.admin-support-reply-preview p {
  margin: 0;
  color: #d7e8ff;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-support-reply-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-support-reply-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-support-empty {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 12px;
  color: #9fb5d9;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-support-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-support-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-support-language-bar,
  .admin-support-reply-tools {
    align-items: stretch;
  }
}

@media (max-width: 800px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mfa-grid {
    grid-template-columns: 1fr;
  }

  .admin-mfa-grid img {
    width: 132px;
    height: 132px;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-stage-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters input,
  .admin-filters select {
    min-width: 170px;
  }

  .admin-support-reply-preview-actions {
    justify-content: stretch;
  }

  .admin-support-reply-preview-actions .primary,
  .admin-support-reply-preview-actions .secondary {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-support-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-quick-actions .secondary {
    width: 100%;
  }

  .admin-top-actions,
  .admin-filters {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .admin-support-meta {
    grid-template-columns: 1fr;
  }

  .admin-support-meta span {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: auto;
  }

  .admin-support-meta em {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.ticket-access-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 15, 35, 0.6);
  backdrop-filter: blur(8px);
  z-index: 6400;
}

.ticket-access-modal.open {
  display: flex;
}

.ticket-access-dialog {
  width: min(460px, 100%);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  color: #0f172a;
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.ticket-access-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(71, 85, 105, 0.38);
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  z-index: 3;
}

.ticket-access-close:hover {
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-1px);
}

.ticket-access-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.28),
    0 10px 22px rgba(15, 23, 42, 0.28);
}

.ticket-access-dialog h3 {
  margin: 2px 0;
}

.ticket-access-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.ticket-access-help {
  margin: -2px 0 0;
  color: #64748b;
  font-size: 0.74rem;
}

.ticket-access-id-wrap {
  display: grid;
  gap: 4px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}

.ticket-access-id-wrap span {
  font-size: 0.7rem;
  color: #64748b;
}

.ticket-access-id-wrap code {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a8a;
}

.ticket-access-dialog input.invalid {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.ticket-access-error {
  margin: 0;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-size: 0.76rem;
  font-weight: 700;
}

.ticket-access-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-access-actions .secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.22), transparent 50%),
    radial-gradient(circle at 86% 16%, rgba(59, 130, 246, 0.18), transparent 48%),
    linear-gradient(160deg, #0b1f2e 0%, #0f2a3a 45%, #122c3c 100%);
  color: #e6f1ff;
}

.ticket-shell {
  margin-top: 12px;
}

.ticket-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.2), transparent 52%),
    linear-gradient(140deg, rgba(10, 24, 38, 0.94), rgba(11, 30, 46, 0.92));
  box-shadow: 0 24px 44px rgba(5, 12, 20, 0.45);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-card-head h2 {
  margin: 0;
  color: #f1f6ff;
}

.ticket-card-head p {
  margin: 6px 0 0;
  color: #b9c8df;
}

.ticket-open-unlock {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.26);
}

.ticket-auth-grid {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 12, 26, 0.62);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ticket-auth-grid.open {
  opacity: 1;
  pointer-events: auto;
}

.ticket-auth-grid[hidden] {
  display: none !important;
}

.ticket-auth-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(8, 18, 32, 0.72);
  padding: 14px;
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  max-width: none;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.ticket-auth-grid.open .ticket-auth-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ticket-auth-card h3 {
  margin: 0;
  color: #f1f6ff;
  font-size: 1rem;
}

.ticket-auth-copy,
.ticket-auth-hint {
  margin: 0;
  color: #9fb5d9;
  font-size: 0.76rem;
}

.ticket-auth-note {
  margin: 0;
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-size: 0.75rem;
}

.ticket-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-auth-cancel {
  min-height: 42px;
  border-radius: 12px;
}

.ticket-auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(12, 24, 40, 0.72);
  color: #d6e7ff;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ticket-auth-close:hover {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(15, 34, 56, 0.86);
  transform: translateY(-1px);
}

.ticket-auth-close:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}

.ticket-chat-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ticket-conversations {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(8, 18, 32, 0.84), rgba(10, 24, 40, 0.86));
  padding: 12px;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr);
  gap: 10px;
}

.ticket-conversations-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #f1f6ff;
}

.ticket-conversations-head p {
  margin: 4px 0 0;
  color: #9fb5d9;
  font-size: 0.76rem;
}

.ticket-chat-list {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.ticket-conversation-empty {
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  padding: 12px;
  color: #9fb5d9;
  font-size: 0.78rem;
}

.ticket-chat-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 30, 50, 0.62);
  color: #e6f1ff;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.ticket-chat-item:hover {
  border-color: rgba(125, 211, 252, 0.56);
  transform: translateY(-1px);
}

.ticket-chat-item.active {
  border-color: rgba(59, 130, 246, 0.78);
  background: linear-gradient(160deg, rgba(30, 58, 138, 0.35), rgba(15, 30, 50, 0.75));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.ticket-chat-item-main {
  display: grid;
  gap: 2px;
}

.ticket-chat-item-main strong {
  font-size: 0.84rem;
  color: #f1f6ff;
  word-break: break-word;
}

.ticket-chat-item-main span {
  font-size: 0.72rem;
  color: #9fb5d9;
  word-break: break-word;
}

.ticket-chat-item-state {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  color: #dbeafe;
}

.ticket-chat-item-state[data-state="open"] {
  background: rgba(21, 128, 61, 0.28);
  color: #bbf7d0;
}

.ticket-chat-item-state[data-state="closed"] {
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.ticket-chat-stage {
  min-width: 0;
  display: grid;
}

.ticket-chat-placeholder {
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 16px;
  background: rgba(8, 18, 32, 0.62);
  color: #9fb5d9;
  font-size: 0.84rem;
  padding: 14px;
}

.ticket-chat-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(8, 18, 32, 0.9), rgba(9, 24, 40, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: grid;
  gap: 0;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto;
  min-height: min(68vh, 700px);
}

.ticket-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(140deg, rgba(15, 30, 50, 0.9), rgba(12, 27, 46, 0.82));
}

.ticket-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #dbeafe;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.95), rgba(56, 189, 248, 0.85));
  border: 1px solid rgba(147, 197, 253, 0.65);
}

.ticket-chat-head-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.ticket-chat-head-copy strong {
  color: #f1f6ff;
  font-size: 0.92rem;
}

.ticket-chat-head-copy span {
  color: #a8bfde;
  font-size: 0.74rem;
}

.ticket-chat-refresh-btn {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 14px;
}

.ticket-chat-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ticket-chat-meta div {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(15, 30, 50, 0.62);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.ticket-chat-meta span {
  font-size: 0.7rem;
  color: #9fb5d9;
}

.ticket-chat-meta strong {
  font-size: 0.82rem;
  color: #f1f6ff;
  word-break: break-word;
}

.ticket-chat-meta strong[data-state="closed"] {
  color: #fecaca;
}

.ticket-chat-meta strong[data-state="open"] {
  color: #bbf7d0;
}

.ticket-chat-messages {
  max-height: none;
  min-height: 220px;
  overflow: auto;
  display: grid;
  gap: 9px;
  padding: 14px 12px;
  align-content: start;
  grid-auto-rows: max-content;
  background:
    linear-gradient(180deg, rgba(10, 24, 38, 0.78), rgba(8, 18, 32, 0.74)),
    repeating-linear-gradient(120deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 16px);
}

.ticket-chat-messages::-webkit-scrollbar {
  width: 10px;
}

.ticket-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  border: 2px solid rgba(8, 18, 32, 0.8);
}

.ticket-chat-empty {
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  padding: 12px;
  color: #9fb5d9;
  font-size: 0.8rem;
}

.ticket-msg {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.ticket-msg.support {
  justify-content: flex-start;
}

.ticket-msg.user {
  justify-content: flex-end;
}

.ticket-msg.system {
  justify-content: center;
}

.ticket-msg-bubble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: min(76%, 560px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 8px 10px 7px;
  box-shadow: 0 8px 14px rgba(3, 8, 15, 0.24);
  align-self: flex-start;
  height: auto;
}

.ticket-msg.user .ticket-msg-bubble {
  align-self: flex-end;
}

.ticket-msg.support .ticket-msg-bubble {
  background: linear-gradient(140deg, rgba(20, 39, 62, 0.92), rgba(13, 28, 47, 0.9));
  border-color: rgba(125, 211, 252, 0.34);
}

.ticket-msg.user .ticket-msg-bubble {
  background: linear-gradient(140deg, rgba(30, 58, 138, 0.82), rgba(37, 99, 235, 0.74));
  border-color: rgba(147, 197, 253, 0.45);
}

.ticket-msg.system .ticket-msg-bubble {
  max-width: min(90%, 680px);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.74));
}

.ticket-msg.support .ticket-msg-bubble::after,
.ticket-msg.user .ticket-msg-bubble::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-right: inherit;
  border-bottom: inherit;
}

.ticket-msg.support .ticket-msg-bubble::after {
  left: -5px;
  background: rgba(16, 33, 54, 0.92);
}

.ticket-msg.user .ticket-msg-bubble::after {
  right: -5px;
  background: rgba(35, 94, 219, 0.86);
}

.ticket-msg.system .ticket-msg-bubble::after {
  display: none;
}

.ticket-msg p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.86rem;
  color: #e7f1ff;
  line-height: 1.45;
  text-align: left;
}

.ticket-msg-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.68rem;
}

.ticket-msg-author {
  color: #a9c4e8;
  margin-right: auto;
}

.ticket-msg-status {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticket-msg-status.sent {
  background: rgba(30, 41, 59, 0.56);
  color: #d4e4ff;
}

.ticket-msg-status.read {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(20, 83, 45, 0.48);
  color: #d1fae5;
}

.ticket-msg-time {
  color: #d7e8ff;
  opacity: 0.9;
}

.ticket-chat-form {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(10, 22, 37, 0.9), rgba(9, 18, 31, 0.92));
}

.ticket-chat-compose-hint {
  margin: 0;
  font-size: 0.74rem;
  color: #9fb5d9;
}

.ticket-chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-chat-closed {
  border: 1px solid rgba(248, 113, 113, 0.48);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 8px 12px 0;
}

.ticket-chat-closed a {
  color: #ffe4a3;
  font-weight: 700;
}

.ticket-chat-composer textarea {
  flex: 1 1 auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(10, 24, 38, 0.8);
  color: #e7f1ff;
  padding: 11px 13px;
  resize: none;
  min-height: 44px;
  max-height: 160px;
}

.ticket-chat-composer textarea::placeholder {
  color: #9fb5d9;
}

.ticket-chat-composer textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.ticket-chat-send {
  min-width: 110px;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

body[data-theme="retro"] .ticket-access-dialog {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 9px,
      rgba(251, 191, 36, 0.08) 9px,
      rgba(251, 191, 36, 0.08) 10px
    ),
    linear-gradient(135deg, rgba(31, 20, 52, 0.95), rgba(24, 16, 42, 0.94));
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

body[data-theme="retro"] .support-dialog::before,
body[data-theme="retro"] .ticket-access-dialog::before {
  background:
    linear-gradient(120deg, rgba(253, 224, 71, 0.12), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(251, 191, 36, 0.14) 0 1px,
      transparent 1px 15px
    );
  opacity: 0.7;
}

body[data-theme="retro"] .support-dialog::after,
body[data-theme="retro"] .ticket-access-dialog::after {
  background:
    radial-gradient(circle at 22% 28%, rgba(251, 191, 36, 0.26), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(236, 72, 153, 0.2), transparent 50%);
}

body[data-theme="retro"] .ticket-access-copy {
  color: #fbd47a;
}

body[data-theme="retro"] .ticket-access-help {
  color: #f3cd74;
}

body[data-theme="retro"] .ticket-access-close {
  border-color: rgba(251, 191, 36, 0.58);
  background: rgba(58, 30, 90, 0.92);
  color: #fff4c4;
}

body[data-theme="retro"] .ticket-access-id-wrap {
  background: rgba(34, 20, 56, 0.82);
  border-color: rgba(251, 191, 36, 0.38);
}

body[data-theme="retro"] .ticket-access-id-wrap code {
  color: #fff4c4;
}

body[data-theme="retro"] .ticket-access-error {
  background: rgba(127, 29, 29, 0.34);
  border-color: rgba(248, 113, 113, 0.52);
  color: #fecaca;
}

body.ticket-body[data-theme="retro"] {
  color: #fde68a;
}

body[data-theme="retro"] .ticket-card,
body[data-theme="retro"] .ticket-auth-card,
body[data-theme="retro"] .ticket-conversations,
body[data-theme="retro"] .ticket-chat-item,
body[data-theme="retro"] .ticket-chat-placeholder,
body[data-theme="retro"] .ticket-chat-panel,
body[data-theme="retro"] .ticket-chat-meta div,
body[data-theme="retro"] .ticket-msg .ticket-msg-bubble {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 9px,
      rgba(251, 191, 36, 0.06) 9px,
      rgba(251, 191, 36, 0.06) 10px
    ),
    linear-gradient(135deg, rgba(31, 20, 52, 0.92), rgba(24, 16, 42, 0.9));
}

body[data-theme="retro"] .ticket-card-head h2,
body[data-theme="retro"] .ticket-auth-card h3,
body[data-theme="retro"] .ticket-conversations-head h3,
body[data-theme="retro"] .ticket-chat-item-main strong,
body[data-theme="retro"] .ticket-chat-meta strong {
  color: #fff4c4;
}

body[data-theme="retro"] .ticket-card-head p,
body[data-theme="retro"] .ticket-auth-copy,
body[data-theme="retro"] .ticket-auth-hint,
body[data-theme="retro"] .ticket-auth-note,
body[data-theme="retro"] .ticket-conversations-head p,
body[data-theme="retro"] .ticket-chat-item-main span,
body[data-theme="retro"] .ticket-chat-meta span,
body[data-theme="retro"] .ticket-msg-author,
body[data-theme="retro"] .ticket-msg-time,
body[data-theme="retro"] .ticket-msg-status,
body[data-theme="retro"] .ticket-chat-head-copy span,
body[data-theme="retro"] .ticket-chat-compose-hint {
  color: #fbd47a;
}

body[data-theme="retro"] .ticket-msg-status {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(66, 34, 96, 0.82);
}

body[data-theme="retro"] .ticket-auth-note {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.13);
}

body[data-theme="retro"] .ticket-chat-empty {
  border-color: rgba(251, 191, 36, 0.44);
  color: #fbd47a;
  background: rgba(34, 20, 56, 0.56);
}

body[data-theme="retro"] .ticket-conversation-empty {
  border-color: rgba(251, 191, 36, 0.44);
  color: #fbd47a;
  background: rgba(34, 20, 56, 0.56);
}

body[data-theme="retro"] .ticket-chat-head,
body[data-theme="retro"] .ticket-chat-messages,
body[data-theme="retro"] .ticket-chat-form,
body[data-theme="retro"] .ticket-chat-composer textarea {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(34, 20, 56, 0.9);
}

body[data-theme="retro"] .ticket-chat-item.active {
  border-color: rgba(253, 224, 71, 0.6);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 9px,
      rgba(251, 191, 36, 0.09) 9px,
      rgba(251, 191, 36, 0.09) 10px
    ),
    linear-gradient(135deg, rgba(62, 35, 90, 0.92), rgba(30, 18, 52, 0.9));
}

body[data-theme="retro"] .ticket-chat-item-state {
  background: rgba(66, 34, 96, 0.86);
  color: #fbd47a;
}

body[data-theme="retro"] .ticket-chat-item-state[data-state="closed"] {
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
}

body[data-theme="retro"] .ticket-chat-item-state[data-state="open"] {
  background: rgba(120, 53, 15, 0.5);
  color: #fde68a;
}

body[data-theme="retro"] .ticket-chat-avatar {
  border-color: rgba(253, 224, 71, 0.62);
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.95), rgba(236, 72, 153, 0.82));
  color: #fff8e8;
}

body[data-theme="retro"] .ticket-open-unlock,
body[data-theme="retro"] .ticket-chat-refresh-btn,
body[data-theme="retro"] .ticket-chat-send {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(236, 72, 153, 0.74));
  color: #fff8e8;
}

body[data-theme="retro"] .ticket-auth-close {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(34, 20, 56, 0.86);
  color: #ffe8a5;
}

body[data-theme="retro"] .ticket-chat-closed {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.34);
  color: #fecaca;
}

@media (max-width: 900px) {
  .ticket-auth-grid {
    grid-template-columns: 1fr;
  }

  .ticket-chat-workspace {
    grid-template-columns: 1fr;
  }

  .ticket-chat-list {
    display: flex;
    gap: 8px;
    overflow: auto;
    max-height: none;
    padding-bottom: 4px;
  }

  .ticket-chat-item {
    min-width: 220px;
  }

  .ticket-chat-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ticket-card-head {
    align-items: stretch;
  }

  .ticket-open-unlock {
    width: 100%;
  }

  .ticket-auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-auth-actions .primary,
  .ticket-auth-cancel {
    width: 100%;
  }

  .ticket-chat-head {
    flex-wrap: wrap;
  }

  .ticket-chat-refresh-btn {
    width: 100%;
  }

  .ticket-chat-composer {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-chat-send {
    width: 100%;
  }

  .ticket-chat-panel {
    min-height: min(74vh, 620px);
  }

  .ticket-msg-bubble {
    max-width: 100%;
  }

  .ticket-chat-meta {
    grid-template-columns: 1fr;
  }
}

/* Ambient motion surfaces */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-footer::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 58%),
    repeating-linear-gradient(
      116deg,
      rgba(148, 163, 184, 0.15) 0 1px,
      transparent 1px 16px
    );
  background-size: 100% 100%, 190% 190%;
  opacity: 0.48;
  animation: navLineDrift 24s linear infinite;
}

.site-footer::after {
  background:
    radial-gradient(circle at 14% 24%, rgba(56, 189, 248, 0.22), transparent 52%),
    radial-gradient(circle at 84% 78%, rgba(34, 197, 94, 0.18), transparent 48%);
  opacity: 0.42;
  animation: navFieldShift 22s ease-in-out infinite;
}

body[data-theme="dark"] .site-footer::after {
  background:
    radial-gradient(circle at 14% 24%, rgba(56, 189, 248, 0.18), transparent 52%),
    radial-gradient(circle at 84% 78%, rgba(16, 185, 129, 0.14), transparent 48%);
}

body[data-theme="retro"] .site-footer::before {
  background:
    linear-gradient(120deg, rgba(253, 224, 71, 0.12), transparent 58%),
    repeating-linear-gradient(
      116deg,
      rgba(251, 191, 36, 0.14) 0 1px,
      transparent 1px 16px
    );
  opacity: 0.62;
}

body[data-theme="retro"] .site-footer::after {
  background:
    radial-gradient(circle at 14% 24%, rgba(251, 191, 36, 0.24), transparent 52%),
    radial-gradient(circle at 84% 78%, rgba(236, 72, 153, 0.2), transparent 48%);
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.top-nav::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.24), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(16, 255, 136, 0.2), transparent 44%),
    conic-gradient(from 140deg, rgba(34, 211, 238, 0.22), rgba(16, 255, 136, 0.18), rgba(59, 130, 246, 0.18), rgba(34, 211, 238, 0.22)),
    repeating-linear-gradient(
      128deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 20px
    );
  background-size: 150% 150%, 160% 160%, 180% 180%, 210% 210%;
  background-position: 0% 0%, 100% 100%, 25% 40%, 0% 0%;
  animation: navFieldShift 18s ease-in-out infinite;
}

body[data-theme="dark"] .top-nav::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.16), transparent 44%),
    conic-gradient(from 140deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.18), rgba(56, 189, 248, 0.2)),
    repeating-linear-gradient(
      128deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 20px
    );
}

body[data-theme="retro"] .top-nav::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.24), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(236, 72, 153, 0.2), transparent 44%),
    conic-gradient(from 140deg, rgba(251, 191, 36, 0.22), rgba(236, 72, 153, 0.16), rgba(251, 191, 36, 0.22)),
    repeating-linear-gradient(
      128deg,
      rgba(251, 191, 36, 0.1) 0 1px,
      transparent 1px 20px
    );
}

.support-dialog::before,
.ticket-access-dialog::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(56, 189, 248, 0.11) 0 1px,
      transparent 1px 16px
    ),
    repeating-linear-gradient(
      16deg,
      rgba(34, 197, 94, 0.09) 0 1px,
      transparent 1px 22px
    );
  background-size: 100% 100%, 200% 200%, 180% 180%;
  animation: navLineDrift 22s linear infinite;
}

body.exchange-body[data-theme="retro"] .exchange-card::before {
  background:
    linear-gradient(120deg, rgba(253, 224, 71, 0.12), transparent 58%),
    repeating-linear-gradient(
      118deg,
      rgba(251, 191, 36, 0.14) 0 1px,
      transparent 1px 16px
    );
  opacity: 0.72;
}

body.exchange-body[data-theme="retro"] .exchange-card::after {
  background:
    radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.24), transparent 62%),
    radial-gradient(circle at 76% 72%, rgba(236, 72, 153, 0.22), transparent 60%);
}

/* SEO/perf mobile polish */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

@media (min-width: 1101px) {
  .top-nav {
    gap: 16px;
    padding: 14px 20px;
    border-radius: 18px;
    border-color: rgba(148, 163, 184, 0.26);
    background:
      linear-gradient(140deg, rgba(8, 22, 38, 0.9), rgba(7, 22, 36, 0.86)),
      radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.16), transparent 45%),
      radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.14), transparent 45%);
    box-shadow: 0 18px 34px rgba(4, 12, 22, 0.36);
  }

  .home-body .top-nav {
    border-color: rgba(148, 163, 184, 0.24);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.9)),
      radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.12), transparent 45%),
      radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.12), transparent 45%);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
  }

  .top-nav::before {
    opacity: 0.45;
  }

  .top-nav::after {
    opacity: 0.14;
  }

  .nav-left {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .nav-actions {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 14px;
    background: linear-gradient(130deg, rgba(7, 18, 30, 0.7), rgba(9, 24, 38, 0.58));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 16px rgba(3, 10, 18, 0.28);
    overflow: visible;
  }

  .home-body .nav-actions {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9));
    border-color: rgba(148, 163, 184, 0.26);
  }

  .nav-link {
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 0.73rem;
    border-color: rgba(148, 163, 184, 0.24);
    background: linear-gradient(145deg, rgba(11, 24, 40, 0.76), rgba(10, 24, 38, 0.68));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 6px 12px rgba(4, 12, 22, 0.2);
  }

  .nav-link.active {
    box-shadow:
      0 10px 20px rgba(37, 99, 235, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand h1 {
    font-size: 1.02rem;
  }

  .brand p {
    font-size: 0.74rem;
    margin-top: 2px;
  }

  .status-pill {
    flex: 0 0 auto;
    min-width: 205px;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.24);
    background: linear-gradient(135deg, rgba(8, 20, 34, 0.78), rgba(8, 20, 34, 0.66));
  }

  .site-footer {
    margin-top: 30px;
    padding: 24px 22px;
    border-radius: 18px;
    border-color: rgba(148, 163, 184, 0.24);
    background: linear-gradient(150deg, rgba(8, 20, 34, 0.9), rgba(9, 24, 40, 0.85));
    box-shadow: 0 20px 34px rgba(5, 12, 20, 0.34);
  }

  .home-body .site-footer {
    background: linear-gradient(150deg, rgba(245, 249, 255, 0.95), rgba(236, 244, 255, 0.9));
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
    color: #1f2a44;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-col {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(10, 22, 36, 0.5);
    padding: 12px;
  }

  .home-body .footer-col {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(148, 163, 184, 0.28);
  }

  .home-body[data-theme="dark"] .site-footer {
    background: linear-gradient(150deg, rgba(10, 20, 34, 0.94), rgba(8, 18, 32, 0.9));
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 18px 30px rgba(2, 6, 16, 0.42);
    color: #dbe7ff;
  }

  .home-body[data-theme="dark"] .footer-col {
    background: rgba(12, 24, 40, 0.62);
    border-color: rgba(148, 163, 184, 0.24);
  }

  .home-body[data-theme="dark"] .footer-col h4 {
    color: #d6e7ff;
  }

  .home-body[data-theme="dark"] .footer-col p,
  .home-body[data-theme="dark"] .footer-col li,
  .home-body[data-theme="dark"] .footer-col a,
  .home-body[data-theme="dark"] .footer-bottom span {
    color: #b7cce9;
  }

  .footer-col h4 {
    font-size: 0.8rem;
    margin-bottom: 7px;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .footer-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top-color: rgba(148, 163, 184, 0.2);
  }
}

@media (max-width: 1100px) {
  body:not(.exchange-body) {
    padding: 22px 10px 30px;
  }

  .top-nav {
    gap: 10px;
    padding: 12px 14px;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
  }

  .status-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-lite,
  .contact-hero,
  .track-hero,
  .ticket-card,
  .track-card,
  .contact-card,
  .faq-card {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  body:not(.exchange-body) {
    padding: 14px 8px 22px;
  }

  .top-nav {
    border-radius: 16px;
  }

  .brand {
    width: 100%;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .brand p {
    font-size: 0.68rem;
  }

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

  .nav-link,
  .theme-toggle,
  .sound-toggle,
  .top-lang,
  .top-currency {
    width: 100%;
    justify-content: center;
  }

  .top-currency {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    border-radius: 12px;
    padding: 6px 8px;
  }

  .currency-label {
    display: block;
  }

  .currency-select {
    width: 100%;
    max-width: none;
  }

  .lang-toggle {
    width: 100%;
    justify-content: center;
  }

  .lang-menu,
  .theme-menu {
    width: min(320px, calc(100vw - 28px));
  }

  .hero-lite-copy h2,
  .track-hero-copy h2,
  .contact-hero-copy h2,
  .section-head h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .hero-lite-actions .btn {
    width: 100%;
  }

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

  .asset-tile {
    padding: 12px;
  }

  .hero-lite-metrics,
  .status-bar {
    grid-template-columns: 1fr;
  }

  .exchange-frame {
    height: min(1320px, 185vh);
  }

  .chat-panel {
    width: min(380px, calc(100vw - 24px));
  }
}

@media (max-width: 520px) {
  .nav-actions {
    grid-template-columns: 1fr;
  }

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

  .exchange-frame {
    height: min(1380px, 195vh);
  }
}

/* Mobile nav + compact exchange tuning */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, rgba(7, 18, 32, 0.72), rgba(11, 30, 46, 0.65));
  color: #e2efff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(4, 14, 22, 0.28);
}

.nav-mobile-toggle-icon {
  display: inline-grid;
  gap: 3px;
}

.nav-mobile-toggle-icon span {
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile-toggle.open .nav-mobile-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-mobile-toggle.open .nav-mobile-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.open .nav-mobile-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.22), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(34, 197, 94, 0.18), transparent 42%),
    rgba(3, 10, 20, 0.62);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 9700;
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-drawer-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .top-nav.mobile-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .top-nav.mobile-ready.mobile-open {
    z-index: 9710 !important;
    isolation: isolate;
  }

  .top-nav.mobile-ready .nav-left {
    width: 100%;
  }

  .top-nav.mobile-ready .nav-left .brand {
    width: auto;
    max-width: calc(100vw - 160px);
  }

  .top-nav.mobile-ready .nav-left .brand,
  .top-nav.mobile-ready .status-pill {
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .top-nav.mobile-ready .nav-mobile-toggle {
    display: inline-flex;
    justify-self: end;
    z-index: 9720;
  }

  .top-nav.mobile-ready .nav-actions {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 72px 14px 20px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background:
      linear-gradient(150deg, rgba(7, 20, 34, 0.985), rgba(8, 25, 40, 0.985)),
      repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.2s ease, visibility 0.2s step-end;
    z-index: 9715;
    overflow-y: auto;
  }

  .top-nav.mobile-ready.mobile-open .nav-actions {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.22s ease, opacity 0.2s ease;
  }

  .top-nav.mobile-ready.mobile-open .nav-left .brand,
  .top-nav.mobile-ready.mobile-open .status-pill {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .top-nav.mobile-ready.mobile-open .nav-mobile-toggle {
    position: fixed;
    right: 14px;
    top: 12px;
    z-index: 9725;
  }

  .top-nav.mobile-ready.mobile-open .nav-link,
  .top-nav.mobile-ready.mobile-open .top-lang,
  .top-nav.mobile-ready.mobile-open .top-currency,
  .top-nav.mobile-ready.mobile-open .theme-toggle,
  .top-nav.mobile-ready.mobile-open .sound-toggle {
    width: min(420px, 100%);
    margin-inline: auto;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .top-nav.mobile-ready.mobile-open .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: auto;
    min-height: 42px;
    padding: 9px 12px;
  }

  .top-nav.mobile-ready.mobile-open .theme-toggle .theme-toggle-label {
    display: inline-flex;
  }

  .top-nav.mobile-ready.mobile-open .theme-toggle .theme-icon {
    margin-left: auto;
  }

  .top-nav.mobile-ready.mobile-open .nav-link {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .top-nav.mobile-ready .status-pill {
    grid-column: 1 / -1;
    margin-top: 2px;
    width: 100%;
    justify-content: flex-start;
  }

  .top-nav.mobile-ready .top-currency {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 12px;
    padding: 8px 10px;
  }

  .top-nav.mobile-ready .currency-label {
    display: block;
    font-size: 0.62rem;
  }

  .top-nav.mobile-ready .currency-select {
    width: 100%;
  }

  .top-nav.mobile-ready .top-lang {
    display: grid;
    gap: 6px;
  }

  .top-nav.mobile-ready .lang-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .top-nav.mobile-ready .lang-menu,
  .top-nav.mobile-ready .theme-menu {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: none;
  }

  .top-nav.mobile-ready .lang-menu {
    display: none;
  }

  .top-nav.mobile-ready .top-lang.open .lang-menu {
    display: grid;
  }

  .top-nav.mobile-ready .theme-toggle {
    justify-content: flex-start;
  }

  .top-nav.mobile-ready .theme-menu {
    background: rgba(8, 18, 32, 0.84);
    border-color: rgba(148, 163, 184, 0.28);
  }

  .top-nav.mobile-ready .theme-option {
    color: #e6efff;
  }

  .top-nav.mobile-ready .theme-option:hover,
  .top-nav.mobile-ready .theme-option.active {
    background: rgba(59, 130, 246, 0.24);
    color: #ffffff;
  }

  body.exchange-body {
    padding: 12px 8px 18px;
  }

  body.exchange-body::before {
    inset: -66vmax;
    opacity: 0.5;
  }

  body.exchange-body::after {
    inset: -66vmax;
    opacity: 0.34;
  }

  body.exchange-body .exchange-shell::before,
  body.exchange-body .exchange-shell::after {
    inset: -56px -34px -50px;
    opacity: 0.56;
  }

  body.exchange-body.matrix-mode .matrix-rain {
    display: none;
  }

  body.exchange-body .exchange-shell {
    gap: 10px;
  }

  body.exchange-body .exchange-card,
  body.exchange-body .compact-card {
    padding: 12px;
    border-radius: 16px;
  }

  body.exchange-body .exchange-card-head {
    gap: 6px;
  }

  body.exchange-body .exchange-card-head h2 {
    font-size: 0.96rem;
  }

  body.exchange-body .exchange-card-subtitle {
    margin-top: 2px;
    font-size: 0.66rem;
  }

  body.exchange-body .exchange-steps {
    display: flex;
    gap: 6px;
    margin: 6px 0 8px;
    padding: 6px;
    overflow-x: auto;
    grid-template-columns: none;
    scrollbar-width: none;
  }

  body.exchange-body .exchange-steps::-webkit-scrollbar {
    display: none;
  }

  body.exchange-body .exchange-step {
    min-width: 88px;
    flex: 0 0 auto;
    padding: 6px 7px;
    border-radius: 10px;
    gap: 5px;
  }

  body.exchange-body .exchange-step span {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 0.62rem;
  }

  body.exchange-body .exchange-step strong {
    font-size: 0.66rem;
  }

  body.exchange-body .exchange-step small {
    display: none;
  }

  body.exchange-body .exchange-form,
  body.exchange-body .compact-form {
    margin-top: 8px;
    gap: 8px;
  }

  body.exchange-body .exchange-stage {
    gap: 8px;
  }

  body.exchange-body .exchange-rate,
  body.exchange-body .compact-rate {
    padding: 7px 8px;
    border-radius: 12px;
  }

  body.exchange-body .rate-left strong {
    font-size: 0.74rem;
  }

  body.exchange-body .rate-left small {
    font-size: 0.62rem;
  }

  body.exchange-body .mode-btn {
    padding: 5px 9px;
    font-size: 0.66rem;
  }

  body.exchange-body .anon-inline {
    padding: 6px 8px;
    font-size: 0.67rem;
  }

  body.exchange-body .compact-block,
  body.exchange-body .exchange-card .ss-block {
    padding: 8px;
    border-radius: 10px;
  }

  body.exchange-body .field-help,
  body.exchange-body .field-error,
  body.exchange-body .field-approx {
    margin: 4px 0 0;
    font-size: 0.66rem;
  }

  body.exchange-body .ss-row input,
  body.exchange-body .ss-row select,
  body.exchange-body input,
  body.exchange-body select,
  body.exchange-body textarea {
    padding: 10px 11px;
    font-size: 16px;
    line-height: 1.25;
  }

  body.exchange-body .swap-action {
    width: 34px;
    height: 34px;
  }

  body.exchange-body .quote-details,
  body.exchange-body .compact-details,
  body.exchange-body .exchange-quote {
    padding: 8px 9px;
    border-radius: 12px;
  }

  body.exchange-body .exchange-insights {
    padding: 8px 9px;
  }

  body.exchange-body .exchange-insights p {
    font-size: 0.62rem;
  }

  body.exchange-body .exchange-insights strong {
    font-size: 0.74rem;
  }

  body.exchange-body .timeline {
    gap: 6px;
  }

  body.exchange-body .timeline li {
    padding: 8px 10px;
  }

  body.exchange-body .qr-wrap {
    padding: 10px;
    gap: 8px;
  }

  .exchange-frame {
    height: min(760px, 92vh);
  }

  .site-footer {
    margin-top: 20px;
    padding: 16px 12px;
    border-radius: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-col {
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(10, 20, 34, 0.44);
  }

  .footer-col h4 {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .footer-brand {
    margin-bottom: 6px;
  }

  .footer-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .footer-bottom {
    margin-top: 12px;
    padding-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .footer-badges {
    gap: 8px;
    align-items: flex-start;
  }

  .provider-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .provider-pill {
    flex: 0 0 auto;
    font-size: 0.64rem;
  }
}

@media (max-width: 520px) {
  .exchange-frame {
    height: min(700px, 88vh);
  }
}

/* FAQ v2 redesign */
.faq-body {
  background:
    radial-gradient(760px 420px at 14% -8%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 420px at 88% -10%, rgba(34, 197, 94, 0.16), transparent 58%),
    linear-gradient(180deg, #eef5ff 0%, #f2f7ff 42%, #f6f9ff 100%);
  color: #0f172a;
}

.faq-page {
  margin-top: 18px;
  margin-bottom: 26px;
  display: grid;
  gap: 14px;
}

.faq-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.14), transparent 54%),
    radial-gradient(circle at 96% 10%, rgba(34, 197, 94, 0.12), transparent 56%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.92));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.faq-hero-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.faq-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.14);
  color: #0c4a6e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.08rem, 1.15rem + 0.45vw, 1.48rem);
  line-height: 1.35;
  color: #0f1d35;
}

.faq-hero-copy p {
  margin: 0;
  color: #445777;
  line-height: 1.65;
  font-size: 0.92rem;
}

.faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.faq-hero-actions a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid transparent;
}

.faq-hero-actions .primary {
  color: #0b2236;
  background: linear-gradient(140deg, #8be6ff, #88f6cf);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 12px 20px rgba(14, 165, 233, 0.2);
}

.faq-hero-actions .secondary {
  color: #0f1d35;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.35);
}

.faq-hero-metrics {
  display: grid;
  gap: 10px;
  align-content: stretch;
}

.faq-hero-metrics article {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.faq-hero-metrics strong {
  display: block;
  font-size: 1.18rem;
  color: #0f1d35;
}

.faq-hero-metrics span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: #4a5f81;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 84px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.88));
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 8px;
}

.faq-sidebar h3 {
  margin: 0 0 3px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #476085;
}

.faq-jump {
  display: block;
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #0f1d35;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.faq-jump:hover {
  transform: translateX(2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(224, 242, 254, 0.68);
}

.faq-stack {
  display: grid;
  gap: 12px;
}

.faq-group {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.93), rgba(244, 249, 255, 0.9));
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  scroll-margin-top: 90px;
}

.faq-group-head {
  margin-bottom: 10px;
}

.faq-group-head h3 {
  margin: 0;
  color: #0f1d35;
  font-size: 1rem;
}

.faq-group-head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #516683;
}

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

.faq-page .faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-page .faq-item summary {
  padding: 12px 13px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #0f1d35;
}

.faq-page .faq-item summary::after {
  width: 24px;
  height: 24px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #0c4a6e;
  box-shadow: none;
}

.faq-page .faq-item[open] {
  transform: none;
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow:
    0 10px 20px rgba(14, 165, 233, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.faq-page .faq-item[open] summary::after {
  content: "-";
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #065f46;
}

.faq-page .faq-item p {
  padding: 0 13px 12px;
  font-size: 0.81rem;
  line-height: 1.65;
  color: #435a7a;
}

.faq-body[data-theme="dark"] {
  background:
    radial-gradient(720px 410px at 16% -8%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(720px 400px at 86% -6%, rgba(34, 197, 94, 0.13), transparent 58%),
    linear-gradient(180deg, #081625 0%, #0a1e2f 45%, #0e2435 100%);
  color: #e8f2ff;
}

.faq-body[data-theme="dark"] .faq-hero-panel,
.faq-body[data-theme="dark"] .faq-sidebar,
.faq-body[data-theme="dark"] .faq-group {
  border-color: rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 56%),
    linear-gradient(145deg, rgba(8, 24, 40, 0.95), rgba(10, 32, 49, 0.92));
  box-shadow:
    0 18px 30px rgba(3, 9, 16, 0.4),
    inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

.faq-body[data-theme="dark"] .faq-kicker {
  color: #9ee9ff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.18);
}

.faq-body[data-theme="dark"] .faq-hero-copy h2,
.faq-body[data-theme="dark"] .faq-group-head h3 {
  color: #eef6ff;
}

.faq-body[data-theme="dark"] .faq-hero-copy p,
.faq-body[data-theme="dark"] .faq-group-head p,
.faq-body[data-theme="dark"] .faq-hero-metrics span {
  color: #b4c8e5;
}

.faq-body[data-theme="dark"] .faq-hero-metrics article {
  background: rgba(9, 27, 44, 0.7);
  border-color: rgba(148, 163, 184, 0.22);
}

.faq-body[data-theme="dark"] .faq-hero-metrics strong {
  color: #f1f7ff;
}

.faq-body[data-theme="dark"] .faq-jump {
  background: rgba(8, 26, 43, 0.7);
  border-color: rgba(148, 163, 184, 0.24);
  color: #deedff;
}

.faq-body[data-theme="dark"] .faq-jump:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(12, 37, 60, 0.82);
}

.faq-body[data-theme="dark"] .faq-page .faq-item {
  background: rgba(8, 26, 43, 0.74);
  border-color: rgba(148, 163, 184, 0.22);
}

.faq-body[data-theme="dark"] .faq-page .faq-item summary {
  color: #e7f2ff;
}

.faq-body[data-theme="dark"] .faq-page .faq-item p {
  color: #b8cae6;
}

.faq-body[data-theme="dark"] .faq-page .faq-item summary::after {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #baf3ff;
}

.faq-body[data-theme="dark"] .faq-page .faq-item[open] {
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 12px 22px rgba(5, 14, 24, 0.45);
}

.faq-body[data-theme="retro"] {
  background:
    radial-gradient(820px 440px at 14% -8%, rgba(251, 191, 36, 0.2), transparent 60%),
    radial-gradient(740px 400px at 86% -10%, rgba(236, 72, 153, 0.15), transparent 58%),
    linear-gradient(180deg, #1a1130 0%, #120b24 48%, #1d1538 100%);
  color: #fde68a;
}

.faq-body[data-theme="retro"] .faq-hero-panel,
.faq-body[data-theme="retro"] .faq-sidebar,
.faq-body[data-theme="retro"] .faq-group {
  border-color: rgba(251, 191, 36, 0.34);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 10px,
      rgba(251, 191, 36, 0.07) 10px,
      rgba(251, 191, 36, 0.07) 11px
    ),
    linear-gradient(140deg, rgba(30, 19, 49, 0.95), rgba(23, 14, 39, 0.92));
  box-shadow: 0 18px 30px rgba(10, 6, 18, 0.4);
}

.faq-body[data-theme="retro"] .faq-kicker {
  color: #ffd98a;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.16);
}

.faq-body[data-theme="retro"] .faq-hero-copy h2,
.faq-body[data-theme="retro"] .faq-group-head h3,
.faq-body[data-theme="retro"] .faq-hero-metrics strong {
  color: #fff4c4;
}

.faq-body[data-theme="retro"] .faq-hero-copy p,
.faq-body[data-theme="retro"] .faq-group-head p,
.faq-body[data-theme="retro"] .faq-hero-metrics span {
  color: #fbd47a;
}

.faq-body[data-theme="retro"] .faq-hero-actions .primary {
  color: #23113a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(236, 72, 153, 0.78));
  border-color: rgba(251, 191, 36, 0.6);
}

.faq-body[data-theme="retro"] .faq-hero-actions .secondary {
  color: #fde68a;
  background: rgba(32, 19, 52, 0.88);
  border-color: rgba(251, 191, 36, 0.34);
}

.faq-body[data-theme="retro"] .faq-hero-metrics article {
  background: rgba(34, 20, 56, 0.8);
  border-color: rgba(251, 191, 36, 0.28);
}

.faq-body[data-theme="retro"] .faq-jump {
  background: rgba(32, 19, 52, 0.82);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.faq-body[data-theme="retro"] .faq-jump:hover {
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(44, 24, 68, 0.9);
}

.faq-body[data-theme="retro"] .faq-page .faq-item {
  background: rgba(32, 19, 52, 0.84);
  border-color: rgba(251, 191, 36, 0.3);
}

.faq-body[data-theme="retro"] .faq-page .faq-item summary {
  color: #fff4c4;
}

.faq-body[data-theme="retro"] .faq-page .faq-item p {
  color: #fbd47a;
}

.faq-body[data-theme="retro"] .faq-page .faq-item summary::after {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  color: #ffe2a5;
}

@media (max-width: 1100px) {
  .faq-items.faq-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
  }

  .faq-sidebar h3 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
}

@media (max-width: 760px) {
  .faq-page {
    gap: 12px;
  }

  .faq-hero-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .faq-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-hero-metrics article {
    padding: 10px;
  }

  .faq-group {
    padding: 12px;
    border-radius: 16px;
  }

  .faq-page .faq-item summary {
    padding: 11px 12px;
  }

  .faq-page .faq-item p {
    padding: 0 12px 11px;
  }
}

@media (max-width: 560px) {
  .faq-page {
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .faq-hero-copy p {
    font-size: 0.84rem;
  }

  .faq-hero-actions {
    flex-direction: column;
  }

  .faq-hero-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .faq-hero-metrics {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    grid-auto-columns: minmax(130px, 1fr);
  }

  .faq-jump {
    font-size: 0.8rem;
    padding: 9px 10px;
  }

  .faq-group-head h3 {
    font-size: 0.92rem;
  }

  .faq-page .faq-item summary {
    font-size: 0.81rem;
  }

  .faq-page .faq-item p {
    font-size: 0.77rem;
  }
}

/* Trustpilot entry points */
.home-body .btn-trustpilot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  text-decoration: none;
  box-shadow:
    0 12px 20px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-body .btn-trustpilot:hover {
  color: #0f172a;
  border-color: rgba(51, 65, 85, 0.42);
  transform: translateY(-2px);
  box-shadow:
    0 16px 26px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.trustpilot-hero-logo {
  width: clamp(116px, 11vw, 146px);
  height: auto;
  max-height: 30px;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .home-body .btn-trustpilot {
    width: auto;
    padding: 8px 12px;
  }

  .trustpilot-hero-logo {
    width: clamp(108px, 35vw, 132px);
  }
}

/* Mobile refinements: Trustpilot, live swap tracker, routing highlights */
@media (max-width: 760px) {
  .home-body .hero-lite-actions {
    justify-content: center;
  }

  .home-body .hero-lite-actions .btn-trustpilot {
    width: fit-content;
    margin-inline: auto;
  }

  .swap-tracker {
    padding: 12px;
    border-radius: 14px;
  }

  .swap-tracker-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .swap-tracker-status {
    align-self: flex-start;
  }

  .swap-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "pair pair"
      "amount time";
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    padding: 10px;
  }

  .swap-item .swap-pair {
    grid-area: pair;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .swap-item .swap-amount {
    grid-area: amount;
    min-width: 0;
  }

  .swap-item .swap-time {
    grid-area: time;
    justify-self: end;
    white-space: nowrap;
    text-align: right;
  }

  .swap-item .swap-symbol {
    overflow-wrap: anywhere;
  }

  .route-card {
    gap: 8px;
    padding: 11px 12px;
  }

  .route-top,
  .route-details,
  .route-action,
  .route-error {
    padding-left: 8px;
  }

  .route-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .route-action {
    justify-content: stretch;
  }

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

  .footer-bottom {
    text-align: center;
    align-items: center;
  }

  .footer-badges {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .provider-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex-wrap: initial;
    overflow: visible;
    padding-bottom: 0;
  }

  .provider-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7px 10px;
  }
}

@media (max-width: 420px) {
  .swap-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pair"
      "amount"
      "time";
  }

  .swap-item .swap-time {
    justify-self: start;
    text-align: left;
  }

  .route-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .provider-pills {
    grid-template-columns: 1fr;
  }
}
