/* Swap specific styles */
.swap-body {
  background: #0E0F1E;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.back-link {
  color: #9CA3AF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  font-size: 1rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.back-link:hover {
  color: white;
}

/* Rest of the file remains exactly the same */
.swap-container {
  background: #1C1F2E;
  color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #374151;
  margin-bottom: 2rem;
}

.tab-button {
  flex: 1;
  padding: 12px 8px;
  font-weight: 600;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.tab-button.active {
  color: #6366F1;
  border-bottom: 2px solid #6366F1;
}

.tab-button:hover:not(.active) {
  color: #e5e7eb;
}

.swap-box {
  background: rgba(28, 31, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.swap-box:last-of-type {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 16px;
  padding: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: #1f2937;
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 8px;
}

.dropdown-content a {
  color: #d1d5db;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #374151;
}

.dropdown-content img {
  width: 20px;
  height: 20px;
}

.show {
  display: block;
}

.down-arrow {
  border: solid #9ca3af;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-left: 12px;
}

.token-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.token-price {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.swap-input {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  text-align: right;
  width: 100%;
  outline: none;
}

.swap-input::placeholder {
  color: #4B5563;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

.max-button {
  color: #3B82F6;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  margin-left: 0.5rem;
}

.swap-arrow {
  width: 2rem;
  height: 2rem;
  margin: -1rem auto;
  background: #1C1F2E;
  border: 4px solid #0E0F1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  color: #9CA3AF;
  position: relative;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  color: #9CA3AF;
  font-size: 0.875rem;
}

.points-text {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.referral-link {
  color: #9CA3AF;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.referral-link:hover {
  color: #FCD34D;
  text-decoration: underline;
}

.approve-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  margin-bottom: 2rem;
}

.approve-text {
  color: white;
  font-size: 1.125rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 2rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: .4s;
  border-radius: 2rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.5rem;
  width: 1.5rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3B82F6;
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

.swap-button {
  width: 100%;
  padding: 1rem;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.swap-button:hover {
  background: #1D4ED8;
}

.clickable {
  cursor: pointer;
}

@media (max-width: 640px) {
  .swap-container {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
}