/* Leilão na Live — tokens da marca */
:root {
  --coral: #FF5A1F;
  --coral-2: #FF7A45;
  --coral-soft: rgba(255, 90, 31, .14);
  --ink: #0E0F11;
  --ink-2: #17191C;
  --ink-3: #212429;
  --line: #2E3238;
  --text: #F5F3EF;
  --muted: #9EA2AA;
  --ok: #2BD67B;
  --ok-soft: rgba(43, 214, 123, .14);
  --warn: #FFC542;
  --danger: #FF4D5E;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: var(--coral-2); }
button, input, textarea, select { font: inherit; color: inherit; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.brand b i { color: var(--coral); font-style: normal; }

/* blocos */
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
.wrap.wide { max-width: 1120px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 16px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }
.hide { display: none !important; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ink-3); color: var(--muted); }
.pill.live { background: var(--coral); color: #fff; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.pill.ready { background: rgba(255, 197, 66, .16); color: var(--warn); }
.pill.paused { background: rgba(255, 197, 66, .16); color: var(--warn); }
.pill.closed { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled { background: rgba(255, 77, 94, .14); color: var(--danger); }
@keyframes blink { 50% { opacity: .25; } }

/* formulários */
label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.input, textarea.input, select.input { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; font-size: 16px; }
.input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.prefix > .input { padding-left: 34px; }
.prefix.money > .input { padding-left: 42px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; background: var(--ink-3); color: var(--text); text-decoration: none; transition: transform .06s ease, background .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--coral); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--coral-2); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: rgba(255, 77, 94, .14); color: var(--danger); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #062a16; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal .card { width: 100%; max-width: 420px; }
.modal h3 { margin: 0 0 6px; }

/* feed de lances */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .amt { font-family: var(--display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.feed .amt em { font-style: normal; color: var(--coral); }
.feed .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed li.void { opacity: .5; }
.feed li.void .amt { text-decoration: line-through; }
.feed li.new { animation: pop .5s ease; }
@keyframes pop { from { background: var(--coral-soft); } to { background: transparent; } }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* rodapé de crédito */
.credit { text-align: center; padding: 24px 16px 32px; font-size: 13px; color: var(--muted); }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--coral); }
