:root {
  --bg: #140804;
  --card: #1f100c;
  --line: rgba(255,255,255,0.12);
  --text: #fff7f2;
  --muted: #d7b8aa;
  --accent: #e85d2c;
  --accent-2: #f3c15b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #c2410c 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}
.wrap {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 8px;
}
h1 { margin: 0 0 10px; font-size: 1.7rem; line-height: 1.25; }
.lead { color: var(--muted); margin: 0 0 28px; }
.lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.search { position: relative; }
input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
}
#suggest {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  left: 0; right: 0;
  background: #2a1611;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 240px;
  overflow: auto;
  z-index: 5;
}
#suggest li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
#suggest li:hover, #suggest li.active { background: rgba(232, 93, 44, 0.22); }
#suggest small { display: block; color: var(--muted); }
.card {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.k { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.v { font-size: 1.2rem; font-weight: 700; margin: 4px 0 14px; }
.btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.status { min-height: 1.4em; color: var(--accent-2); margin-top: 16px; }
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box {
  width: min(420px, 100%);
  background: #2b1712;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--line);
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
