* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(120deg, #f4e4ba 0%, #af4d98 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 8px 32px rgba(175, 77, 152, 0.18);
  transition: box-shadow 0.3s;
}

form button {
  transition: background 0.2s, transform 0.2s;
}

form button:hover {
  background-color: #c75fa3;
  transform: scale(1.05);
}

/* Card style for container */
.container {
  background: #fff;
  box-shadow: 0 8px 32px rgba(175, 77, 152, 0.12);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  margin: 2rem auto;
}

/* Gradient header */
.header {
  background: linear-gradient(90deg, #af4d98 0%, #f4e4ba 100%);
  border-radius: 1rem 1rem 0 0;
  padding: 1rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
}

.header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.fa-coins {
  margin-right: 0.5rem;
}

/* Swap button style */
.dropdown i {
  background: #af4d98;
  color: #fff;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(175, 77, 152, 0.15);
  transition: background 0.2s;
  cursor: pointer;
}

.dropdown i:hover {
  background: #c75fa3;
}

/* Responsive design */
@media (max-width: 500px) {
  .container {
    padding: 1rem;
    min-width: unset;
    width: 95vw;
  }

  .header h2 {
    font-size: 1.3rem;
  }

  .select-container {
    width: 4rem;
  }
}

form {
  margin: 2rem 0 2rem 0.5
}

form select,
button,
input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
}

form input {
  border: 1px solid lightgray;
  font-size: 1rem;
  height: 2rem;
  padding-left: 0.5rem;
}

.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.select-container img {
  max-width: 2rem;
}

.select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  border-radius: 0.5rem;
  border: 1px solid lightgray;
}

.select-container select {
  font-size: 1rem;
  width: auto;
}

.msg {
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 4rem;
  margin-right: 2rem;
}

form button {
  height: 2rem;
  background-color: #af4d98;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}