body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #4e227c 0%, #a259e6 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.mystical-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: radial-gradient(circle at 30% 40%, #ad7bef55 0, transparent 60%),
              radial-gradient(circle at 70% 60%, #df9cff44 0, transparent 65%),
              radial-gradient(circle at 50% 80%, #6c0b8e33 0, transparent 80%);
  pointer-events: none;
  filter: blur(4px);
}

header {
  text-align: center;
  padding: 3rem 1rem 0 1rem;
  z-index: 1;
  position: relative;
}

.magic-glow {
  
  color: #cdb4ff;
  font-size: 3rem;
  text-shadow:
    0 0 12px #fff3,
    0 0 40px #e0aaff,
    0 0 10px #7037a8;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #fff, #e0aaff 60%, #b983ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: #e0aaff;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px #7037a866;
}

.magical-description {
  margin: 1.2rem auto 0.7rem auto;
  font-size: 1.1rem;
  max-width: 525px;
  color: #fff;
  background: linear-gradient(90deg, #b983ff88 0%, #e0aaff33 100%);
  border-radius: 1.3rem;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 1.5px 9px #e0aaff33;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px #e0aaff22;
}

/* Mystical Highlights styles */
.highlights-mystical {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.2rem 0 1.4rem 0;
  min-height: 76px;
  z-index: 3;
  /* So that particles and content stack */
}

.highlight-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  /* Simple animated particles using box-shadows and CSS animation */
  background: transparent;
}
.highlight-particles::before,
.highlight-particles::after {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  pointer-events: none;
  left: 0; top: 0;
}
.highlight-particles::before {
  background:
    radial-gradient(circle at 12% 48%, #e0aaff55 0 6px, transparent 9px),
    radial-gradient(circle at 36% 18%, #b983ff44 0 8px, transparent 11px),
    radial-gradient(circle at 73% 71%, #a259e655 0 7px, transparent 11px),
    radial-gradient(circle at 89% 23%, #fff7 0 6px, transparent 9px);
  animation: particles-move1 6s linear infinite;
}
.highlight-particles::after {
  background:
    radial-gradient(circle at 18% 68%, #e0aaff22 0 7px, transparent 11px),
    radial-gradient(circle at 51% 41%, #b983ff33 0 9px, transparent 15px),
    radial-gradient(circle at 64% 15%, #a259e655 0 7px, transparent 14px),
    radial-gradient(circle at 81% 54%, #fff5 0 6px, transparent 10px);
  animation: particles-move2 8s linear infinite;
  opacity: 0.9;
}
@keyframes particles-move1 {
  0% { background-position: 0 0, 0 0, 0 0, 0 0;}
  100% { background-position: 40px 0, 0 20px, -30px 30px, 0 -18px;}
}
@keyframes particles-move2 {
  0% { background-position: 0 0, 0 0, 0 0, 0 0;}
  100% { background-position: -22px 18px, 18px -17px, 11px 27px, 0 0;}
}

.highlight-content {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  /* Mystical gradient border/background */
  background: linear-gradient(90deg, #b983ff44, #e0aaff88 70%, #a259e655);
  border-radius: 1.5rem;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 1px 12px #a259e655, 0 0.5px 7px #fff3;
  font-size: 1.18rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: transform 0.18s;
  border: 1.2px solid #e0aaff55;
  overflow: hidden;
}
.highlight:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 2px 20px #e0aaff66, 0 1.5px 10px #a259e6bb;
  background: linear-gradient(90deg, #e0aaffbb 10%, #b983ff88 90%);
}

.highlight-icon {
  font-size: 1.45em;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 7px #b983ff99);
  margin-right: 0.18em;
}

/* Swap card and form */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60vh;
  z-index: 2;
  position: relative;
}

.swap-section {
  margin-top: 0.5rem;
}

.swap-card {
  background: rgba(46, 22, 68, 0.95);
  border-radius: 1.2rem;
  box-shadow: 0 6px 32px 0 #5f19ae44, 0 1.5px 6px 0 #a259e633;
  padding: 2.5rem 2rem;
  max-width: 340px;
  width: 100%;
  margin: auto;
  z-index: 2;
  border: 2px solid #a259e644;
  position: relative;
  overflow: hidden;
}

.swap-title {
  text-align: center;
  font-family: 'UnifrakturCook', cursive;
  color: #e0aaff;
  margin-bottom: 1.7rem;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #a259e6bb;
}

.swap-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.token-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.token-row label {
  min-width: 45px;
  font-size: 1rem;
  color: #fff8;
}

.token-row select, .token-row input {
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: #7444b7bb;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.token-row select:focus, .token-row input:focus {
  box-shadow: 0 0 0 2px #e0aaff55;
}

.token-row input[readonly] {
  background: #b983ff33;
  color: #fff8;
}

.swap-arrows {
  text-align: center;
  font-size: 2rem;
  margin: 0.5rem 0;
  color: #e0aaff;
  filter: drop-shadow(0 0 8px #a259e6bb);
}

.swap-btn {
  margin-top: 0.7rem;
  padding: 0.8rem;
  background: linear-gradient(90deg, #a259e6 0%, #6c0b8e 100%);
  border: none;
  border-radius: 0.7rem;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px #b983ff33;
  transition: background 0.2s, transform 0.1s;
}

.swap-btn:hover, .swap-btn:focus {
  background: linear-gradient(90deg, #fff 0%, #a259e6 100%);
  color: #6c0b8e;
  transform: scale(1.03);
}

.swap-info {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: #e0aaffcc;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Currency list section */
.currency-list-section {
  margin: 2.5rem auto 0 auto;
  max-width: 380px;
  background: rgba(46, 22, 68, 0.93);
  border-radius: 1rem;
  box-shadow: 0 3px 16px #a259e622;
  padding: 1.5rem 1rem 2rem 1rem;
  text-align: center;
}

.currency-list-title {
  font-family: 'UnifrakturCook', cursive;
  color: #e0aaff;
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
  text-shadow: 0 0 8px #a259e6bb;
}

.currency-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 1.7rem;
}

.currency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: #fff;
}

.currency-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  border: 2px solid #a259e6;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 6px #a259e644;
}

footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #e0aaff99;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 500px) {
  .swap-card {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  header {
    padding-top: 2rem;
  }
  .swap-section {
    margin-top: 1rem;
  }
  .highlight-content {
    gap: 1rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: center;
  }
  .currency-list-section {
    padding: 1rem 0.2rem 1.5rem 0.2rem;
  }
}
