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

body {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

.card {
  background: #fff;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

h1 {
  font-size: 22px;
  color: #333;
}

.atualizar {
  background: #eafaf1;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: transform 0.4s;
}

.atualizar:hover {
  transform: rotate(180deg);
}

.status {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}

.status.erro {
  color: #e74c3c;
}

.cotacoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.moeda-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f6f9f7;
  border-radius: 12px;
}

.moeda-item .emoji {
  font-size: 26px;
}

.moeda-item .nome {
  flex: 1;
}

.moeda-item .nome strong {
  display: block;
  color: #333;
  font-size: 15px;
}

.moeda-item .nome span {
  font-size: 12px;
  color: #999;
}

.moeda-item .preco {
  text-align: right;
}

.moeda-item .preco strong {
  display: block;
  font-size: 16px;
  color: #222;
}

.variacao {
  font-size: 12px;
  font-weight: bold;
}

.variacao.sobe {
  color: #16a34a;
}

.variacao.desce {
  color: #dc2626;
}

.conversor {
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.conversor h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.linha {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.linha input,
.linha select {
  padding: 10px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.linha input {
  width: 100px;
}

.linha input:focus,
.linha select:focus {
  border-color: #11998e;
}

.igual {
  color: #999;
}

#resultado {
  color: #11998e;
  font-size: 17px;
}

footer {
  margin-top: 18px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}
