.swap-box {
  padding: 1em;
  border: 0.1em solid #ccc;
  border-radius: 1em;
  background: #fdfdfd;
  text-align: center;
  max-width: 30em;
  margin: 0 auto;
}

.swap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin: 1em 0;
}

.swap-field {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swap-field input {
  width: 10em;
  padding: 0.4em;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  font-size: 1em;
  border-radius: 0.3em;
  border: 0.1em solid #aaa;
}

.swap-field button {
  padding: 0.3em 1em;
  font-weight: bold;
  border: none;
  background: #009688;
  color: white;
  border-radius: 0.3em;
  cursor: pointer;
}

.swap-field button:hover {
  background: #00796b;
}

.arrow {
  font-size: 2em;
  line-height: 1;
}

.swap-preview {
  font-size: 0.9em;
  color: #555;
  margin-top: 1em;
}

.arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  font-size: 1.8rem;
  color: white;
  line-height: 1;
}

.countdown-box {
  background: #1e1e1e;
  border: 0.12em solid #facc15;
  border-radius: 0.8em;
  padding: 1.2em 1.5em;
  max-width: 30em;
  margin: 1em auto;
  text-align: center;
  box-shadow: 0 0 1em rgba(250, 204, 21, 0.2);
  color: #fefce8;
  font-family: 'Segoe UI', sans-serif;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-size: 1.1em;
  margin-bottom: 0.6em;
}

.countdown-icon {
  font-size: 1.4em;
  color: #facc15;
}

.countdown-label {
  font-weight: 600;
  color: #fefce8;
}

.countdown-timer {
  font-size: 1.6em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 0.2em rgba(250, 204, 21, 0.3);
  transition: all 0.3s ease-in-out;
}

@media (max-width: 30em) {
  .countdown-box {
    padding: 1em;
    font-size: 0.95em;
  }
  .countdown-timer {
    font-size: 1.3em;
  }
}

@keyframes pulseTimer {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.countdown-timer {
  animation: pulseTimer 2s infinite;
}

@media (max-width: 768px) {
  .swap-container {
    flex-direction: column;
    gap: 1em;
  }

  .swap-box {
    max-width: 90vw;
    padding: 1.2em;
  }

  .swap-field input {
    width: 100%;
    font-size: 1em;
  }

  .arrow-container {
    flex-direction: row;
    gap: 0.5em;
    font-size: 2em;
  }

  .countdown-box {
    max-width: 90vw;
    padding: 1.2em;
    font-size: 1em;
  }

  .countdown-header {
    flex-direction: column;
    gap: 0.3em;
  }

  .countdown-icon {
    font-size: 1.6em;
  }

  .countdown-timer {
    font-size: 1.4em;
  }
}

.about-link-button {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.3em;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  color: #222;
  background: linear-gradient(145deg, #f7d774, #e6c35c);
  border-radius: 0.5em;
  box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

.about-link-button:hover {
  background: linear-gradient(145deg, #ffe88a, #f7d774);
  transform: scale(1.05);
  box-shadow: 0 0.3em 0.7em rgba(0, 0, 0, 0.3);
}
