/*
 * ============================================================
 *  Exchanged Place — Global Stylesheet
 * ============================================================
 *
 *  Пошаговая форма без линий. Карточки в потоке,
 *  чередуются лево-право. Переходы: глитч текущей,
 *  плавный скролл, импульс-волна на новой.
 *
 *  Палитра:
 *    --accent .... #00f6ac  (зелёный)
 *    --bg ........ #020202  (чёрный)
 *    --text ...... #ffffff  (белый)
 *
 * ============================================================
 */

@font-face {
  font-family: 'Matrix';
  src: url('/fonts/matrix-squadron.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='3' fill='none' stroke='%2300f6ac' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%2300f6ac'/%3E%3C/svg%3E") 10 10, crosshair;
}

:root {
  --accent: #00f6ac;
  --accent-dim: rgba(0, 246, 172, 0.15);
  --accent-glow: rgba(0, 246, 172, 0.3);
  --accent-hover: #00d996;
  --purple: #b446ff;
  --pink: #ff50b4;
  --bg: #020202;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.4);
  --text-mid: rgba(255, 255, 255, 0.65);
  --radius: 16px;
  --radius-sm: 10px;
  --blur: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 20%, rgba(0,246,172,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(0,246,172,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes stepReveal {
  0% { opacity: 0; transform: scale(0.92); filter: blur(8px) brightness(1.5); }
  40% { opacity: 0.6; filter: blur(2px) brightness(1.1); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
}

@keyframes hardGlitch {
  0% { transform: translate(0); filter: none; clip-path: inset(0); }
  10% { transform: translate(-4px, 2px); filter: hue-rotate(40deg) saturate(2); clip-path: inset(10% 0 20% 0); }
  20% { transform: translate(5px, -1px); filter: hue-rotate(-30deg) brightness(1.4); clip-path: inset(30% 0 5% 0); }
  30% { transform: translate(-2px, 0); filter: saturate(0.5); clip-path: inset(0 10% 40% 0); }
  40% { transform: translate(3px, 2px); filter: hue-rotate(20deg) brightness(0.9); clip-path: inset(50% 0 0 5%); }
  50% { transform: translate(0, -3px); filter: none; clip-path: inset(0); }
  60% { transform: translate(-3px, 1px); filter: hue-rotate(-20deg) saturate(1.8); clip-path: inset(5% 0 60% 0); }
  70% { transform: translate(2px, 0); filter: brightness(1.3); clip-path: inset(0); }
  80% { transform: translate(0); filter: none; clip-path: inset(0); }
  100% { transform: translate(0); filter: none; clip-path: inset(0); }
}

@keyframes pixelScatter {
  0%, 90%, 100% { opacity: 0; }
  92% { opacity: 1; transform: translate(0, 0) scale(1); }
  94% { opacity: 0.8; transform: translate(2px, -3px) scale(1.1); }
  96% { opacity: 0.5; transform: translate(-3px, 2px) scale(0.9); }
  98% { opacity: 0.2; }
}

@keyframes glitchBurst {
  0%, 80%, 100% { transform: translate(0); opacity: 0; }
  82% { transform: translate(-3px, 0); opacity: 1; }
  84% { transform: translate(3px, 0); opacity: 1; }
  86% { transform: translate(-2px, 1px); opacity: 0.9; }
  88% { transform: translate(4px, -1px); opacity: 1; }
  90% { transform: translate(0); opacity: 0; }
}

@keyframes glitchBurstAlt {
  0%, 78%, 100% { transform: translate(0); opacity: 0; }
  80% { transform: translate(3px, 1px); opacity: 1; }
  83% { transform: translate(-4px, 0); opacity: 0.8; }
  86% { transform: translate(2px, -1px); opacity: 1; }
  89% { transform: translate(0); opacity: 0; }
}

@keyframes glitchLine {
  0%, 100% { opacity: 0; }
  5% { opacity: 1; transform: translateY(0) scaleY(1); }
  5.5% { opacity: 0; }
  50% { opacity: 0; }
  50.5% { opacity: 0.6; transform: translateY(100px) scaleY(0.5); }
  51% { opacity: 0; }
}

@keyframes holoPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.02); } }
@keyframes holoShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes loaderScan { 0% { left: -30%; } 100% { left: 130%; } }
@keyframes nodeGlow { 0%, 100% { box-shadow: 0 0 4px var(--accent-dim); } 50% { box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-dim); } }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,246,172,0); } 50% { box-shadow: 0 0 20px 4px rgba(0,246,172,0.15); } }

@keyframes waveExpand {
  0% { height: 0; opacity: 0.8; }
  60% { opacity: 0.4; }
  100% { height: 250%; opacity: 0; }
}

@keyframes glowSweep {
  0% { height: 0; opacity: 1; }
  40% { opacity: 0.6; }
  100% { height: 100%; opacity: 0; }
}

.holo-decoration { position: fixed; pointer-events: none; z-index: 1; }

.holo-orb {
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,246,172,0.08) 0%, transparent 70%);
  filter: blur(60px); animation: holoPulse 6s ease-in-out infinite;
}

.holo-orb-1 { top: 10%; left: -5%; }
.holo-orb-2 { bottom: 15%; right: -5%; width: 250px; height: 250px; animation-delay: -3s; }

.holo-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,246,172,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,246,172,0.015) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index: 0;
}

.scanline-effect {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(180deg, transparent, rgba(0,246,172,0.06), transparent);
  animation: scanline 8s linear infinite; pointer-events: none; z-index: 2;
}

.glitch-line {
  position: fixed; left: 0; width: 100%; height: 2px;
  background: rgba(0,246,172,0.15); pointer-events: none; z-index: 2;
  animation: glitchLine 4s linear infinite;
}

.glitch-line:nth-child(2) { animation-delay: -2s; height: 1px; background: rgba(180,70,255,0.1); }

.ticker-bar {
  background: rgba(0,246,172,0.02); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,246,172,0.06);
  padding: 11px 0; overflow: hidden; white-space: nowrap;
  position: relative; z-index: 10;
}

.ticker-content { display: inline-flex; gap: 48px; animation: ticker 35s linear infinite; padding: 0 24px; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.ticker-item .symbol { color: var(--text-dim); font-weight: 500; }
.ticker-item .price { color: var(--accent); font-weight: 600; }

.ticker-icon-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(0,246,172,0.2);
  box-shadow: 0 0 6px rgba(0,246,172,0.1);
}

.fa-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.fa-icon-circle i {
  line-height: 1;
}

.ticker-icon-img.fa-icon-circle {
  width: 22px;
  height: 22px;
  font-size: 10px;
  border: 1px solid rgba(0,246,172,0.2);
  box-shadow: 0 0 6px rgba(0,246,172,0.1);
}

.selected-icon-inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.selected-icon-inner.fa-icon-circle {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.select-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.select-with-icon select {
  flex: 1;
}

.selected-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
  overflow: visible;
}

.selected-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0,246,172,0.4),
    rgba(0,246,172,0.15),
    rgba(0,246,172,0.4),
    rgba(0,246,172,0.15),
    rgba(0,246,172,0.4)
  );
  animation: iconRingSpin 6s linear infinite;
  z-index: -1;
}

.selected-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
  z-index: -1;
}

@keyframes iconRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.selected-icon img,
.selected-icon .fa-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.select-with-icon .selected-icon + select {
  padding-left: 52px;
}

.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px; border-bottom: 1px solid var(--glass-border);
  position: relative; z-index: 10;
  background: rgba(2,2,2,0.6); backdrop-filter: blur(16px);
}

a.logo { text-decoration: none; color: var(--text); opacity: 1; }
a.logo:hover { opacity: 0.85; }

.logo {
  font-family: 'Matrix', var(--font); font-size: 24px; font-weight: 700;
  letter-spacing: 1px; color: var(--text); text-transform: uppercase;
}

.logo-accent { color: var(--accent) !important; }

.nav { display: flex; gap: 8px; }

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 15px;
  transition: all 0.3s;
  text-decoration: none;
}

.nav-icon:hover {
  color: var(--text);
  border-color: rgba(0,246,172,0.2);
  box-shadow: 0 0 16px rgba(0,246,172,0.1);
  background: rgba(0,246,172,0.05);
  opacity: 1;
}

.nav-icon-accent {
  border-color: rgba(0,246,172,0.15);
  color: var(--accent);
}

.nav-icon-accent:hover {
  background: rgba(0,246,172,0.1);
  color: var(--accent);
}

.glitch-text { position: relative; display: inline-block; color: var(--text); }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.glitch-text::before { color: #00f6ac; text-shadow: 0 0 8px rgba(0,246,172,0.4); animation: glitchBurst 3s ease-in-out infinite; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
.glitch-text::after { color: #b446ff; text-shadow: 0 0 8px rgba(180,70,255,0.3); animation: glitchBurstAlt 3s ease-in-out infinite; clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }

.exchange-zone {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 5;
}

.exchange-title { text-align: center; margin-bottom: 12px; }
.exchange-title h2 { font-size: 20px; font-weight: 600; }
.exchange-title h2 i { margin-right: 6px; font-size: 18px; }

.terminal-subtitle {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  opacity: 0.5; margin-top: 8px; min-height: 18px; text-align: center;
}

.hud-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 28px auto 36px; max-width: 400px;
}

.hud-node {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.03); border: 1.5px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-dim); z-index: 2;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0;
}

.hud-node.active { border-color: var(--accent); color: var(--accent); background: rgba(0,246,172,0.06); animation: nodeGlow 2s ease-in-out infinite; }
.hud-node.done { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.hud-node.done i { font-size: 12px; }

.hud-connector { flex: 1; height: 2px; background: var(--glass-border); position: relative; overflow: hidden; z-index: 1; }
.hud-connector-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.hud-connector.lit .hud-connector-fill { width: 100%; }

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  position: relative;
  margin-bottom: 0;
}

.step-card:nth-child(even) { margin-left: auto; }

.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), rgba(180,70,255,0.2), transparent);
  opacity: 0; transition: opacity 0.5s;
}

.step-card.active {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding: 28px;
  margin-bottom: 16px;
  filter: none;
  z-index: 5;
  animation: stepReveal 0.7s ease-out;
}

.step-card.active::before { opacity: 1; }

.step-card.active .step-terminal,
.step-card.active .step-content,
.step-card.active .step-hint {
  animation: stepReveal 0.5s ease-out 0.15s both;
}

.step-card.glitching { animation: hardGlitch 0.4s ease-in-out; }

.step-card.done {
  max-height: 70px;
  opacity: 0.5;
  transform: translateY(0);
  pointer-events: auto;
  padding: 14px 20px;
  margin-bottom: 8px;
  filter: none;
  z-index: 2;
  cursor: pointer;
}

.step-card.done .step-content,
.step-card.done .step-hint,
.step-card.done .card-glitch-pixels,
.step-card.done .back-btn,
.step-card.done .ripple-container {
  display: none;
}

.step-card.done .step-terminal {
  margin-bottom: 0;
  opacity: 0.5;
}

.step-card.done:hover { opacity: 0.7; border-color: rgba(0,246,172,0.15); cursor: pointer; }

.step-card .back-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,246,172,0.1); border: 1px solid rgba(0,246,172,0.3);
  color: var(--accent); font-size: 11px; font-family: var(--mono);
  padding: 5px 12px; border-radius: 8px; cursor: pointer;
  transition: all 0.3s; display: none; z-index: 50;
  backdrop-filter: blur(8px); font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 0 8px rgba(0,246,172,0.3);
  pointer-events: auto;
}

.step-card.active .back-btn { display: block; }
.step-card .back-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,246,172,0.15); box-shadow: 0 0 16px rgba(0,246,172,0.2); }

.card-glitch-pixels { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.card-glitch-pixels span { position: absolute; width: 3px; height: 3px; border-radius: 1px; animation: pixelScatter 6s ease-in-out infinite; }
.card-glitch-pixels span:nth-child(1) { background: var(--accent); top: 12%; right: 8%; }
.card-glitch-pixels span:nth-child(2) { background: var(--purple); top: 25%; right: 15%; width: 2px; height: 2px; animation-delay: 0.15s; }
.card-glitch-pixels span:nth-child(3) { background: var(--pink); bottom: 20%; left: 10%; animation-delay: 0.3s; }
.card-glitch-pixels span:nth-child(4) { background: var(--accent); bottom: 35%; right: 5%; width: 4px; height: 2px; animation-delay: 0.1s; }
.card-glitch-pixels span:nth-child(5) { background: var(--purple); top: 50%; left: 6%; width: 2px; height: 4px; animation-delay: 0.25s; }
.card-glitch-pixels span:nth-child(6) { background: var(--pink); top: 8%; left: 20%; width: 3px; height: 1px; animation-delay: 0.4s; }

.step-terminal { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 16px; opacity: 0.6; display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; max-width: calc(100% - 80px); }
.terminal-prompt { color: var(--accent); font-weight: 600; }
.terminal-cmd { overflow: hidden; white-space: nowrap; }
.terminal-cursor { animation: blink 0.8s step-end infinite; font-weight: 600; }

.step-content { position: relative; z-index: 1; }
.step-content label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.step-content label i { color: var(--accent); font-size: 15px; margin-right: 5px; opacity: 0.7; }

.step-hint {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  margin-top: 16px; padding: 8px 12px;
  background: rgba(0,246,172,0.04); border-left: 2px solid rgba(0,246,172,0.3);
  border-radius: 0 6px 6px 0; opacity: 0; transition: opacity 0.4s;
  position: relative; z-index: 1; letter-spacing: 0.02em;
}

.step-hint::before { content: '//'; color: rgba(0,246,172,0.3); margin-right: 6px; font-weight: 600; }
.step-card.active .step-hint { opacity: 0.7; }

.ripple-container { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); pointer-events: none; z-index: 0; }

.ripple-wave {
  position: absolute; top: -20%; left: -50%; width: 200%; height: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,246,172,0.12) 0%, rgba(0,246,172,0.04) 40%, transparent 70%);
  animation: waveExpand 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.ripple-wave:nth-child(2) { animation-delay: 0.15s; }
.ripple-wave:nth-child(3) { animation-delay: 0.35s; }

.ripple-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(180deg, rgba(0,246,172,0.15) 0%, rgba(0,246,172,0.03) 60%, transparent 100%);
  animation: glowSweep 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

select,
input[type="text"],
input[type="number"],
input[type="password"] {
  width: 100%; padding: 14px 20px;
  background: rgba(255,255,255,0.03); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: 50px;
  color: var(--text); font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

select:focus, input:focus {
  border-color: rgba(0,246,172,0.3);
  box-shadow: 0 0 0 3px rgba(0,246,172,0.06), 0 0 20px rgba(0,246,172,0.05);
  background: rgba(255,255,255,0.05);
}

select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f6ac' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px;
}

select option { background: #0a0a0a; color: var(--text); }
.amount-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.form-group { margin-bottom: 0; }
.min-amount { font-size: 12px; color: var(--accent); margin-top: 6px; opacity: 0.7; }

.swap-btn-wrap {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 4px;
}

.swap-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,246,172,0.06); border: 1px solid rgba(0,246,172,0.2);
  color: var(--accent); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0;
  backdrop-filter: blur(8px);
  text-shadow: 0 0 8px rgba(0,246,172,0.3);
}

.swap-btn:hover {
  background: rgba(0,246,172,0.15); border-color: rgba(0,246,172,0.4);
  box-shadow: 0 0 16px rgba(0,246,172,0.2); transform: rotate(180deg);
}

.swap-btn.active {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,246,172,0.3);
  transform: rotate(180deg);
}

.swap-btn.active:hover { transform: rotate(0deg); }

.amount-error-overlay {
  display: none; padding: 16px; text-align: center;
  font-family: var(--mono); position: relative;
}

.amount-error-overlay.visible { display: block; }

.amount-error-overlay.clickable { cursor: pointer; }

.error-glitch-title {
  font-size: 28px; font-weight: 900; color: #ff4757;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255,71,87,0.6), 2px 0 #ff4757, -2px 0 #b446ff;
  animation: errorGlitchTitle 0.8s ease-in-out;
  position: relative;
}

.error-glitch-title.fade-out {
  animation: errorTitleFade 0.4s ease-out forwards;
}

.error-typing {
  font-size: 13px; color: #ff4757; text-align: left;
  line-height: 1.6; min-height: 20px;
  text-shadow: 0 0 8px rgba(255,71,87,0.3);
}

.error-cursor-blink {
  animation: blink 0.8s step-end infinite; font-weight: 600;
}

@keyframes errorGlitchTitle {
  0% { opacity: 0; transform: scale(1.3) translateX(-5px); filter: blur(4px); }
  15% { opacity: 1; transform: scale(1) translateX(3px); filter: blur(0); }
  25% { transform: translateX(-3px) skewX(-2deg); }
  35% { transform: translateX(2px) skewX(1deg); }
  45% { transform: translateX(-1px); }
  55% { opacity: 0.7; transform: translateX(4px) skewX(-3deg); filter: hue-rotate(20deg); }
  65% { opacity: 1; transform: translateX(-2px); filter: none; }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes errorTitleFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); filter: blur(4px); }
}

.submit-section { margin: 24px auto 0; position: relative; z-index: 10; }

.submit-loader {
  position: relative; height: 44px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
  border-radius: 10px; overflow: hidden; margin-bottom: 16px;
  display: none; backdrop-filter: blur(8px);
}

.submit-loader.active { display: block; }

.loader-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(0,246,172,0.15), var(--accent), rgba(0,246,172,0.15));
  border-radius: 10px; transition: width 0.2s linear; position: relative;
}

.loader-bar::after {
  content: ''; position: absolute; top: 0; width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: loaderScan 1.5s linear infinite;
}

.loader-info {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 16px; font-family: var(--mono); font-size: 11px; color: var(--text); z-index: 2;
}

.loader-percent { font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.loader-status { color: var(--text-dim); }

.btn {
  width: 100%; padding: 16px;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}

.btn:hover { background: var(--accent-hover); box-shadow: 0 0 30px rgba(0,246,172,0.25); transform: translateY(-1px); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.25; cursor: not-allowed; box-shadow: none; transform: none; }
.btn i { margin-right: 6px; font-size: 13px; }

.btn-submit:not(:disabled) { animation: btnPulse 2s ease-in-out infinite; border: 1px solid rgba(0,246,172,0.3); }
.btn-submit:not(:disabled):hover { animation: none; box-shadow: 0 0 40px rgba(0,246,172,0.3), 0 0 80px rgba(0,246,172,0.1); }

.reviews-section { margin-top: 72px; position: relative; z-index: 5; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 20px; }

.reviews-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.reviews-header h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.reviews-header h3 i {
  margin-right: 6px;
  opacity: 0.5;
}

.reviews-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.reviews-scroll-wrap {
  position: relative;
  overflow: hidden;
}

.reviews-scroll-wrap:hover .reviews-track {
  animation-play-state: paused;
}

.reviews-track {
  display: flex;
  gap: 16px;
  padding: 8px 0 16px;
  animation: reviewsScroll 600s linear infinite;
  width: max-content;
}

@keyframes reviewsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  min-width: 300px;
  max-width: 340px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,246,172,0.15), transparent);
}

.review-card:hover {
  border-color: rgba(0,246,172,0.12);
  box-shadow: 0 8px 32px rgba(0,246,172,0.06);
  transform: translateY(-2px);
}

.review-card .review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.review-card .review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,246,172,0.08);
  border: 1px solid rgba(0,246,172,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}

.review-card .review-meta {
  display: flex;
  flex-direction: column;
}

.review-card .author { color: var(--accent); font-size: 13px; font-weight: 600; }
.review-card .date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.review-card .text { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
.review-card .review-quote { color: rgba(0,246,172,0.15); font-size: 20px; margin-bottom: 6px; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(2,2,2,0.85); backdrop-filter: blur(8px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }

.modal {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.modal-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon {
  font-size: 28px;
  color: var(--accent);
  z-index: 1;
}

.modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0,246,172,0.2);
  animation: modalRingPulse 2s ease-in-out infinite;
}

@keyframes modalRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 20px rgba(0,246,172,0.15); }
}

.modal h3 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }

.modal-order-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.modal-order-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-order-label i { color: var(--accent); margin-right: 4px; }

.order-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal .order-id {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px var(--accent-glow);
  cursor: pointer;
}

.copy-btn {
  background: rgba(0,246,172,0.08);
  border: 1px solid rgba(0,246,172,0.15);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(0,246,172,0.15);
  box-shadow: 0 0 12px rgba(0,246,172,0.15);
}

.copy-toast {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  margin-top: 6px;
}

.copy-toast.show { opacity: 1; }

.modal-queue {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(0,246,172,0.03);
  border-left: 2px solid rgba(0,246,172,0.2);
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.modal-status-link { margin: 16px 0; }
.modal-status-link a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s;
}

.modal-status-link a:hover {
  box-shadow: 0 0 20px rgba(0,246,172,0.3);
  transform: translateY(-1px);
  opacity: 1;
}

.modal-status-link a i { margin-right: 6px; }

.modal .btn { margin-top: 12px; }

.footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 72px;
  position: relative;
  z-index: 5;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 0;
  width: 120px;
  text-align: center;
  border-radius: 50px;
  background: rgba(0,246,172,0.04);
  border: 1px solid rgba(0,246,172,0.12);
  letter-spacing: 0.04em;
}

.footer-badge i {
  margin-right: 5px;
  opacity: 0.6;
}

.footer-copy {
  margin-top: 8px;
}

.footer-terminal {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.page-content { max-width: 680px; margin: 0 auto; padding: 48px 20px; position: relative; z-index: 5; }

.page-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.page-title-row h1 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.page-title-row h1 i {
  margin-right: 8px;
  opacity: 0.5;
}

.page-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.page-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.page-terminal {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 20px;
}

.page-card p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}

.rule-item:last-child { border-bottom: none; }

.rule-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.5;
  min-width: 24px;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .header { padding: 18px 20px; }
  .amount-row { grid-template-columns: 1fr; gap: 8px; }
  .swap-btn-wrap { padding: 4px 0; }
  .swap-btn { width: 32px; height: 32px; font-size: 11px; transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
  .swap-btn.active { transform: rotate(270deg); }
  .swap-btn.active:hover { transform: rotate(90deg); }
  .reviews-track { flex-wrap: nowrap; justify-content: flex-start; }
  .review-card { min-width: 260px; }
  .holo-orb { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .header { flex-direction: column; gap: 14px; padding: 16px; }
  .nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .step-card { padding: 20px; border-radius: 12px; }
  .step-card .back-btn { top: 6px; right: 6px; padding: 4px 10px; font-size: 10px; }
  .step-terminal { max-width: calc(100% - 70px); font-size: 11px; }
  .modal { padding: 28px 20px; width: 94%; }
  .review-card { min-width: 240px; padding: 18px; }
  .holo-orb-1, .holo-orb-2 { display: none; }
  .footer { margin-top: 48px; padding: 24px 14px; }
  .hud-node { width: 30px; height: 30px; font-size: 10px; }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-6px); }
  20% { transform: translateX(6px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  70% { transform: translateX(0); }
}

@keyframes errorFlicker {
  0%, 100% { opacity: 1; }
  10% { opacity: 0.3; }
  20% { opacity: 1; }
  30% { opacity: 0.5; }
  40% { opacity: 1; }
  50% { opacity: 0.2; }
  60% { opacity: 1; }
  80% { opacity: 0.8; }
}

.amount-error-anim {
  width: 100%; padding: 14px 20px; min-height: 48px;
  background: rgba(255,40,40,0.04);
  border: 1px solid rgba(255,40,40,0.3); border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  animation: errorShake 0.6s ease-in-out;
}

.error-glitch {
  font-family: var(--mono); font-size: 18px; font-weight: 800;
  color: #ff2828; letter-spacing: 0.3em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,40,40,0.5), 2px 0 #ff0000, -2px 0 #ff4444;
  animation: errorFlicker 1.2s ease-in-out;
}

.error-min-text {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: #ff4444; letter-spacing: 0.02em;
}

.error-cursor {
  animation: blink 0.8s step-end infinite;
  font-weight: 600; color: #ff4444;
}
