/* Conta, telas de acesso, lista de presentes e janela de compra. Carregado depois de creator.css. */

[hidden] { display: none !important; }

/* barra do topo com navegação da conta */
.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px 4px;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #ffe9bd; font-size: 0.95rem; }

.nav-who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }

.nav-pill {
  display: inline-block;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  color: #fff3d1;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px;
  transition: background 0.15s;
}

.nav-pill:hover:not(:disabled) { background: rgba(255, 255, 255, 0.26); }
.nav-credits { color: #8c0f1b; background: #fff3d1; }
.nav-credits:hover:not(:disabled) { background: #fff; }
.nav-quiet { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); }

@media (max-width: 560px) {
  .topbar { justify-content: center; }
  .nav-who { display: none; }
}

/* páginas de uma coluna só */
main.single { display: block; max-width: 520px; padding-top: 16px; }

.panel + .panel { margin-top: 20px; }

.auth h1, .single h1 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--green);
}

.lead { margin: 0 0 16px; color: #6a4a38; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; background: #f1dfb4; border-radius: 14px; }
.tabs button { flex: 1; background: transparent; border-radius: 10px; }
.tabs button[aria-selected='true'] { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }

.link-btn {
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--red);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.link-btn:hover:not(:disabled) { background: none; color: #7d0c17; }

.form-links { display: flex; justify-content: space-between; margin: -4px 0 16px; font-size: 0.92rem; }

/* avisos */
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; line-height: 1.4; }
.notice.error { color: #7d0c17; background: #fde4e4; border: 2px solid #f0a8a8; }
.notice.ok { color: #14532d; background: #e3f6e8; border: 2px solid #9bd5ac; }

.form-error { margin: 0 0 12px; padding: 10px 12px; color: #7d0c17; background: #fde4e4; border: 2px solid #f0a8a8; border-radius: 12px; font-weight: 700; }

/* botão com aparência de link de ação */
.btn-link { display: block; text-align: center; text-decoration: none; }

a.btn, .btn {
  display: inline-block;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  color: #5a2a1c;
  text-decoration: none;
  background: #f1dfb4;
  border-radius: 12px;
  cursor: pointer;
}

a.btn:hover { background: #ebd49b; }

/* resultado da criação */
.result h2 { margin-bottom: 6px; }
.result p { margin: 0 0 12px; }
.result input[readonly] { font-weight: 700; margin-bottom: 12px; }
.result .row { flex-wrap: wrap; margin-bottom: 10px; }

/* lista de presentes */
.credit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credit-bar strong { font-size: 1.25rem; color: var(--green); }

.gift-list { display: grid; gap: 14px; margin-top: 18px; padding: 0; list-style: none; }

.gift-item {
  padding: 16px;
  background: #fff;
  border: 2px solid #ecdcb6;
  border-radius: 14px;
}

.gift-item h3 { margin: 0; font-family: var(--font-script); font-weight: 400; font-size: 2rem; color: var(--red); line-height: 1.1; }
.gift-item .meta { margin: 2px 0 8px; font-size: 0.88rem; color: #8a6a55; }
.gift-item .excerpt { margin: 0 0 12px; color: #5a3a2c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-item .url { display: block; margin-bottom: 12px; font-size: 0.9rem; word-break: break-all; color: #6a4a38; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-actions .danger { color: #7d0c17; background: #fde4e4; }

.empty { margin-top: 18px; padding: 26px 16px; text-align: center; color: #6a4a38; background: #fff; border: 2px dashed #e2cfa4; border-radius: 14px; }

/* janela de compra de créditos */
.buy-dialog {
  width: min(92vw, 440px);
  padding: 24px;
  color: #3b1a12;
  background: linear-gradient(#fffaf0, #f7ead0);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 3px #d9a441, 0 0 0 6px #fff3d1, 0 0 0 8px #d9a441, 0 24px 60px rgba(0, 0, 0, 0.55);
}

.buy-dialog::backdrop { background: rgba(40, 0, 8, 0.7); }
.buy-dialog h2 { margin: 0 0 10px; font-family: var(--font-title); font-size: 1.7rem; color: var(--green); }
.buy-dialog p { margin: 0 0 12px; line-height: 1.45; }
.buy-email { padding: 10px 12px; background: #fff3d1; border-radius: 10px; font-size: 0.95rem; }
.buy-email-value { word-break: break-all; font-weight: 800; }
.buy-status { min-height: 1.4em; margin: 10px 0 0 !important; font-weight: 700; color: #14532d; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.hint-small { font-size: 0.85rem; color: #8a6a55; }

/* campo-armadilha contra robôs: fora da tela, mas presente no HTML */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 0.92rem; line-height: 1.4; color: #5a3a2c; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.check a { color: var(--red); font-weight: 800; }

.turnstile-box { display: flex; justify-content: center; margin: 0 0 16px; min-height: 65px; }

.footer a { color: inherit; font-weight: 700; }

/* Termos de Uso e Política de Privacidade */
main.legal { max-width: 820px; }
.legal .panel { line-height: 1.65; }
.legal h1 { margin: 0 0 4px; font-family: var(--font-title); font-size: 2rem; color: var(--green); }
.legal h2 { margin: 26px 0 8px; font-family: var(--font-title); font-size: 1.35rem; color: var(--red); }
.legal p, .legal li { color: #4a2a1d; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .updated { margin: 0 0 18px; font-size: 0.9rem; color: #8a6a55; }
.legal .callout { margin: 16px 0; padding: 12px 14px; background: #fff3d1; border-radius: 12px; border: 2px solid #ecd49a; }
.legal-todo { padding: 0 4px; font-weight: 800; color: #7d0c17; background: #fde4e4; border-radius: 4px; }
.legal a { color: var(--red); font-weight: 700; }
