* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1d12;
  color: #ffffff;
}

.app {
  background: #030804;
  border-radius: 16px;
  padding: 24px 28px;
  width: 360px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

h1 {
  font-size: 20px;
  margin-bottom: 18px;
  text-align: center;
}

.row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row.inline {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  color: #ffffff;
}

input,
select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  background: #232d25;
  color: #ffffff;
  outline: none;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: #151514;
  box-shadow: 0 0 0 1px rgba(18, 17, 17, 0.4);
}

.btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #a3a3a3, #a3a3a3);
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}

.btn:hover {
  opacity: 0.9;
}

#swap {
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #222720;
  color: #ffffff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#swap:hover {
  background: #111827;
}

.result {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  min-height: 22px;
}

.rate-info {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.error {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  font-size: 13px;
}

.hidden {
  display: none;
}

footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}
