:root {
  --bg: #0D0E10; --surface: #17191C; --sunken: #0F1012; --line: #2A2D31; --line2: #3A3E44;
  --text: #ECE8E1; --soft: #C9C5BE; --muted: #A3A09A;
  --accent: #E8743B; --accent-hi: #F29A6B;
  --good-bg: #16261C; --good-line: #2F6B45; --good: #9FE0B5;
  --warn-bg: #2B1A12; --warn-line: #8A4424; --warn: #F4B58F;
  --display: 'Barlow Condensed', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.display { font-family: var(--display); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* Cabeçalho */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.brand b { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .14em; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .24em; color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--accent-hi); }
.badge18 { border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 14px; padding: 2px 8px; letter-spacing: .06em; }
.dot { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line2); background: transparent; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--bg); }
.btn.light { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.small { min-height: 38px; font-size: 15px; padding: 0 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
label { display: block; font-size: 14px; color: var(--soft); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--sunken); border: 1px solid var(--line2); color: var(--text); padding: 11px 13px; font-size: 16px; border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 200px; min-width: 0; }

.msg { padding: 12px 16px; border: 1px solid; font-weight: 500; margin: 12px 0; }
.msg.ok { background: var(--good-bg); border-color: var(--good-line); color: var(--good); }
.msg.err { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.msg.info { background: var(--sunken); border-color: var(--line2); color: var(--soft); }

.btn-google { background: #fff; border-color: #fff; color: #1f1f1f; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; font-size: 16px; }
.btn-google:hover { background: #f1f1f1; border-color: #f1f1f1; color: #1f1f1f; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.divisor { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.divisor::before, .divisor::after { content: ''; flex: 1; border-top: 1px solid var(--line2); }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 28px; }
.kicker { margin: 0 0 10px; font-family: var(--display); font-weight: 600; letter-spacing: .24em; font-size: 15px; color: var(--accent); text-transform: uppercase; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 6vw, 68px); text-transform: uppercase; max-width: 900px; }
.hero p.lead { margin: 16px 0 0; max-width: 640px; color: var(--soft); font-size: 18px; }

/* Filtros */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.chip { border: 1px solid var(--line2); background: transparent; color: var(--soft); padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: 15px; }
.chip[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* Seções e cards */
.section { padding-top: 8px; padding-bottom: 48px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.section-head h2 { font-size: 34px; text-transform: uppercase; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--line2); color: var(--text); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); border-bottom: 1px solid var(--line); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; left: 10px; top: 10px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 3px 8px; background: var(--text); color: var(--bg); }
.status.urgente { background: var(--accent); }
.status.fechado { background: var(--line); color: var(--soft); }
.status.breve { background: var(--sunken); color: var(--soft); border: 1px solid var(--line2); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.3; }
.card .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 6px; }
.card .lbl { font-size: 12px; color: var(--muted); }
.card .val { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.card .tmr { font-family: var(--display); font-weight: 600; font-size: 21px; font-variant-numeric: tabular-nums; text-align: right; }
.tag-lider { font-size: 12px; font-weight: 600; color: var(--good); }
.tag-superado { font-size: 12px; font-weight: 600; color: var(--warn); }
.empty { border: 1px dashed var(--line2); padding: 28px; color: var(--muted); text-align: center; }

/* Página do lote */
.lot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gal info" "desc info"; grid-template-rows: auto 1fr; gap: 20px 32px; background: var(--surface); border: 1px solid var(--line); padding: 24px; margin: 28px 0 40px; }
.lot > .col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lot .a-gal { grid-area: gal; } .lot .a-info { grid-area: info; } .lot .a-desc { grid-area: desc; }
@media (max-width: 860px) { .lot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gal" "info" "desc"; grid-template-rows: auto; } }
.gallery .main { position: relative; background: var(--sunken); border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs button { width: 72px; height: 56px; padding: 0; border: 1px solid var(--line2); background: var(--sunken); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current=true] { border-color: var(--accent); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lot h1 { font-weight: 600; font-size: 34px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--sunken); border: 1px solid var(--line); padding: 14px 16px; }
.stat.urgente { border-color: var(--accent); }
.stat .k { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.urgente .v { color: var(--accent-hi); }
.stat .s { font-size: 14px; color: var(--muted); }
.bidbox { border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick .btn { font-weight: 600; font-size: 18px; text-transform: none; letter-spacing: 0; white-space: nowrap; padding: 0 6px; }
.bidrow { display: flex; gap: 8px; flex-wrap: wrap; }
.bidrow input { flex: 1 1 180px; min-width: 0; }
.bidrow .btn { flex: none; }
.hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist .eu { color: var(--accent); font-weight: 600; }
.desc { white-space: pre-line; color: var(--soft); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }

/* Formulários de página */
.panel { background: var(--surface); border: 1px solid var(--line); padding: 28px; max-width: 560px; margin: 36px auto 60px; }
.panel h1 { font-size: 36px; text-transform: uppercase; margin-bottom: 18px; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--sunken); white-space: nowrap; }
td .acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* Arremates */
.pedidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pedido { background: var(--surface); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pedido-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pedido-top a { color: var(--text); text-decoration: none; }
.pill-st { font-size: 12px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line2); white-space: nowrap; }
.pill-st.aguardando { border-color: var(--accent); color: var(--accent-hi); }
.pill-st.pago { border-color: var(--good-line); color: var(--good); }
.pill-st.expirado, .pill-st.cancelado { color: var(--muted); }
.valores { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.valores div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.valores dt { color: var(--muted); }
.valores dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.valores .total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.valores .total dt { color: var(--text); }

/* Abas */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; }
.tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--soft); padding: 12px 16px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 32px; }
.steps h3 { font-size: 20px; color: var(--accent); }
.steps p { margin: 6px 0 0; color: var(--soft); }

footer { border-top: 1px solid var(--line); margin-top: 20px; }
footer .wrap { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }

.toast { position: fixed; right: 16px; bottom: 16px; left: 16px; max-width: 420px; margin-left: auto; background: var(--surface); border: 1px solid var(--accent); padding: 14px 16px; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast a { display: inline-block; margin-top: 6px; }

.prose { max-width: 760px; color: var(--soft); }
.prose h2 { color: var(--text); font-size: 26px; margin: 28px 0 8px; text-transform: uppercase; }
.prose li { margin: 6px 0; }

@media (max-width: 560px) {
  .tabs button { padding: 10px 10px; font-size: 16px; }
  .nav { gap: 4px 14px; font-size: 14px; }
  .lot { padding: 16px; gap: 20px; }
  .stat .v { font-size: 25px; }
  .stat { padding: 12px; }
  .quick .btn { font-size: 15px; }
  .lot h1 { font-size: 28px; }
  .panel { padding: 20px; margin: 20px auto 40px; }
  .brand b { font-size: 24px; }
}
