:root {
  --blue: #4a90e2;
  --amber: #f5a623;
  --grey: #f0f0f0;
  --ink: #1d2733;
  --ok: #2e9e5b;
  --danger: #d0453a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--grey);
  color: var(--ink);
}
header {
  background: var(--blue);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header a { color: #fff; text-decoration: none; font-weight: 600; }
header nav a { margin-left: 16px; opacity: 0.85; }
main { max-width: 640px; margin: 0 auto; padding: 24px 20px 80px; }
h1 { font-size: 1.3rem; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h3 { margin-top: 0; }
label { display: block; font-size: 0.85rem; margin: 10px 0 4px; font-weight: 600; }
input[type=text], input[type=number] {
  width: 100%;
  padding: 10px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  font-size: 1rem;
}
button, .btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
}
button.amber, .btn.amber { background: var(--amber); }
button.ghost, .btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
button.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.created { background: #e3eafc; color: var(--blue); }
.badge.matched { background: #fff2de; color: #a3671a; }
.badge.escrowed { background: #fff2de; color: var(--amber); }
.badge.released { background: #e3f6ea; color: var(--ok); }
.badge.canceled, .badge.refunded { background: #fbe6e4; color: var(--danger); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: #6b7786; font-size: 0.85rem; }
.empty { color: #6b7786; font-style: italic; }
.price { font-weight: 700; font-size: 1.05rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
