body {
  background: #222221;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
}

.main-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 18px;
}

.logo-large {
  width: 300px;
  margin-bottom: 18px;
  display: block;
}

.swap-card {
  background: #222221;
  border-radius: 14px;
  max-width: 350px;
  width: 100%;
  padding: 32px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  border: none;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

.red-btn {
  width: 100%;
  background: #ac1929;
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  padding: 10px 0;
  border: none;
  border-radius: 7px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .18s;
}
.red-btn:hover {
  background: #8e1421;
}

.help-text {
  width: 100%;
  text-align: center;
  font-size: 1em;
  color: #fff;
  margin-bottom: 10px;
}

.wallet-status {
  width: 100%;
  text-align: center;
  font-size: 1em;
  color: #FFD700;
  margin-bottom: 8px;
}

.swap-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.swap-input {
  width: 100%;
  padding: 9px 8px;
  font-size: 1em;
  border-radius: 7px;
  border: none;
  background: #343434;
  color: #fff;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  margin-bottom: 8px;
}

.swap-input::placeholder {
  color: #bbb;
  font-size: 1em;
}

.swap-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.swap-label {
  color: #fff;
  font-size: 1em;
  font-weight: 700;
}

.switch-btn {
  background: #343434;
  color: #FFD700;
  border: none;
  border-radius: 5px;
  font-size: 1.35em;
  cursor: pointer;
  margin-left: 8px;
  padding: 2px 9px;
  transition: background 0.18s;
}
.switch-btn:hover {
  background: #ac1929;
  color: #fff;
}

.swap-slippage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 0.96em;
  font-weight: 600;
  margin-bottom: 8px;
}

.edit-slippage {
  font-size: 1.1em;
  margin-left: 3px;
  cursor: pointer;
}

#slippageValue {
  margin-left: 10px;
  color: #FFD700;
}

.rate-display {
  width: 100%;
  text-align: left;
  font-size: 1em;
  color: #FFD700;
  margin-bottom: 8px;
}

.tx-status {
  width: 100%;
  font-size: 0.97em;
  color: #ffbdbd;
  margin-top: 10px;
  text-align: center;
  word-break: break-word;
}

@media (max-width: 500px) {
  .logo-large {
    width: 120px;
  }
  .swap-card {
    max-width: 99vw;
    padding: 16px 3vw;
  }
  h2 {
    font-size: 1.1rem;
  }
}