* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fundo: #F4EEE3;
  --fundo-card: #FDFAF5;
  --texto-principal: #1A1410;
  --texto-secundario: #7A6A55;
  --texto-terciario: #9A8A72;
  --borda: #DDD1BB;
  --dourado: #C4832A;
  --dourado-claro: rgba(196,131,42,0.12);
  --escuro: #1A1410;
  --erro: #B83A2A;
  --sucesso: #2A5A2A;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--fundo);
  color: var(--texto-principal);
  min-height: 100vh;
}

/* AUTH */
.pagina-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background: var(--fundo-card);
  border: 0.5px solid var(--borda);
  border-radius: 20px;
  padding: 36px 32px;
}

.auth-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--texto-principal);
  text-align: center;
  margin-bottom: 6px;
}

.auth-logo span {
  color: var(--dourado);
}

.auth-subtitulo {
  font-size: 13px;
  color: var(--texto-terciario);
  text-align: center;
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 0.5px solid var(--borda);
  border-radius: 10px;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-terciario);
  cursor: pointer;
  transition: all .15s;
}

.tab.active {
  background: var(--escuro);
  color: #E8D9BC;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo label {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-secundario);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.campo input,
.campo select {
  padding: 11px 14px;
  border: 0.5px solid var(--borda);
  border-radius: 10px;
  background: var(--fundo);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--texto-principal);
  outline: none;
  transition: border-color .15s;
}

.campo input:focus,
.campo select:focus {
  border-color: var(--dourado);
}

.btn-principal {
  width: 100%;
  padding: 13px;
  background: var(--escuro);
  color: #E8D9BC;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .04em;
  margin-top: 4px;
  transition: opacity .15s;
}

.btn-principal:hover {
  opacity: .85;
}

.mensagem-erro {
  font-size: 12px;
  color: var(--erro);
  text-align: center;
  min-height: 16px;
}

.mensagem-sucesso {
  font-size: 12px;
  color: var(--sucesso);
  text-align: center;
  min-height: 16px;
}/* FEED */
.topbar {
  background: #1A1410;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: #E8D9BC;
}

.topbar-logo span { color: #C4832A; }

.topbar-icons { display: flex; gap: 12px; }

.icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,131,42,0.12);
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.icon-btn svg { width: 16px; height: 16px; stroke: #C4832A; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nav-pills {
  background: #1A1410;
  padding: 0 20px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.pill {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .03em;
}

.pill.active { background: #C4832A; color: #F4EEE3; }
.pill.inactive { background: rgba(196,131,42,0.1); color: #8A7A65; border: 0.5px solid rgba(196,131,42,0.2); }

.feed {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* CARTÃO */
.cartao {
  background: #FDFAF5;
  border-radius: 16px;
  border: 0.5px solid #DDD1BB;
  overflow: hidden;
}

.cartao-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid #EDE5D5;
}

.vendedor-info { display: flex; align-items: center; gap: 8px; }

.vendedor-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #3A2D1E;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: #C8B99A;
  flex-shrink: 0;
}

.vendedor-nome { font-size: 12px; font-weight: 500; color: #3A2D1E; }
.vendedor-local { font-size: 10px; color: #9A8A72; }
.cartao-tempo { font-size: 10px; color: #9A8A72; }

.cartao-imagem {
  width: 100%;
  height: 200px;
  background: linear-gradient(160deg, #E8DCC8 0%, #D4C5A9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.capa-livro {
  width: 90px;
  height: 130px;
  border-radius: 3px 6px 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  position: relative;
}

.capa-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.capa-autor {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 300;
  position: relative;
  z-index: 1;
  opacity: 0.8;
}

.cartao-corpo { padding: 12px 14px; }

.livro-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: #1A1410;
  line-height: 1.25;
  margin-bottom: 2px;
}

.livro-autor { font-size: 12px; color: #7A6A55; margin-bottom: 10px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
}

.tag-condicao { background: #EDE5D5; color: #6A5A42; }
.tag-edicao { background: #E8F0E8; color: #4A6A4A; }
.tag-especial { background: #FFF0E0; color: #7A4A10; }

.leilao-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 0.5px solid #EDE5D5;
  margin-bottom: 10px;
}

.licitacao-label { font-size: 10px; color: #9A8A72; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.licitacao-valor { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #1A1410; line-height: 1; }
.licitacao-count { font-size: 10px; color: #9A8A72; margin-top: 2px; }

.timer-label { font-size: 10px; color: #9A8A72; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; text-align: right; }
.timer-valor { font-size: 14px; font-weight: 500; color: #C4832A; text-align: right; font-family: 'DM Sans', sans-serif; }
.timer-valor.urgente { color: #B83A2A; }

.btn-licitar {
  display: block;
  width: 100%;
  padding: 11px;
  background: #1A1410;
  color: #E8D9BC;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
}

/* BOTTOM NAV */
.bottom-nav {
  background: #1A1410;
  border-top: 0.5px solid #2E2620;
  padding: 10px 0 24px;
  display: flex;
  justify-content: space-around;
  position: sticky;
  bottom: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-item svg { width: 20px; height: 20px; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.nav-item.active svg { stroke: #C4832A; }
.nav-item.inactive svg { stroke: #5A4A38; }
.nav-item-label { font-size: 9px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: .04em; }
.nav-item.active .nav-item-label { color: #C4832A; }
.nav-item.inactive .nav-item-label { color: #5A4A38; }

/* ESTADO VAZIO */
.feed-vazio {
  text-align: center;
  padding: 60px 20px;
  color: #9A8A72;
}

.feed-vazio h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #3A2D1E;
}

.feed-vazio p { font-size: 13px; line-height: 1.6; }