:root {
  --haze: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --surface: rgba(15, 23, 42, 0.65);
  --text-primary: #f8fafc;
  --text-secondary: rgba(241, 245, 249, 0.75);
  --accent-start: #38bdf8;
  --accent-end: #a855f7;
  --accent-alt: #f472b6;
  --shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.65);
  --field-border: rgba(148, 163, 184, 0.45);
  --field-bg: rgba(15, 23, 42, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.35), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.3), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.25), transparent 55%),
    #020617;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
}

body::before {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.75), rgba(168, 85, 247, 0.75));
  top: -180px;
  left: -140px;
}

body::after {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.65), rgba(56, 189, 248, 0.5));
  bottom: -220px;
  right: -120px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(92vw, 440px);
  padding: 2.75rem;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.container::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 110deg at 50% 50%, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.35), rgba(244, 114, 182, 0.15), transparent 65%);
  z-index: -1;
  animation: pulse 12s infinite linear;
}

.container h2 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.2rem;
}

form label,
.amount p,
.from p,
.to p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

form input,
form select,
form button {
  width: 100%;
  border: none;
  border-radius: 0.9rem;
  color: var(--text-primary);
}

form input {
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  font-size: 1.15rem;
  padding: 0.95rem 1.15rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

form input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}

.dropdown i {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4), 0 12px 30px -22px rgba(56, 189, 248, 1);
}

.select-container {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid var(--field-border);
  background: rgba(15, 23, 42, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.select-container img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.select-container select {
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
}

.select-container select:focus {
  outline: none;
}

.msg {
  margin-top: 0.5rem;
  padding: 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.12));
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

form button {
  height: 3.3rem;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end), var(--accent-alt));
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 20px 32px -18px rgba(59, 130, 246, 0.6);
}

form button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 26px 38px -18px rgba(244, 114, 182, 0.55);
  filter: saturate(1.2);
}

form button:active {
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .container {
    padding: 2.25rem;
  }

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

  .dropdown i {
    align-self: center;
    transform: rotate(90deg);
    margin: 0;
  }
}

@keyframes pulse {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .container::before,
  body::before,
  body::after {
    animation: none;
  }
}