/* Fontes elegantes (importadas antes de qualquer regra) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap");

:root {
  --bg: #faf6ef;
  --bg-2: #f3ece0;
  --card: #fffdfa;
  --ink: #2c2824;
  --muted: #94897b;
  --gold: #b3924f;
  --gold-dark: #957738;
  --gold-soft: #e7d9b8;
  --ok: #4f7a5b;
  --danger: #b45a44;
  --line: #ece3d4;
  --shadow: 0 18px 40px rgba(90, 68, 30, 0.10);
  --shadow-sm: 0 6px 18px rgba(90, 68, 30, 0.07);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- HERO */
header.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  position: relative;
}

.monogram {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}

header.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold-dark);
}
header.hero .kicker::before,
header.hero .kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

header.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0.8rem 0 0.4rem;
  letter-spacing: 0.01em;
}
header.hero h1 .amp {
  display: block;
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold-dark);
  margin: 0.1rem 0;
  font-weight: 400;
}

header.hero p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #6f6558;
  max-width: 34rem;
  margin: 1rem auto 0;
}

/* -------------------------------------------------------------- LAYOUT */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 5rem;
}

.section-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 2rem;
  position: relative;
}
.section-title::after {
  content: "❦";
  display: block;
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}

/* ---------------------------------------------------------------- CARD */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card.pago { opacity: 0.7; }

.card .foto {
  height: 190px;
  position: relative;
  background: linear-gradient(135deg, var(--gold-soft), #efe3c6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .foto::after {
  content: "❧";
  font-family: var(--serif);
  font-size: 2.6rem;
  color: rgba(149, 119, 56, 0.35);
  position: absolute;
}
.card .foto img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.card .desc {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.card .valor {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0.2rem 0 0.4rem;
}

/* ------------------------------------------------------------- BOTÕES */
button, .btn {
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  background: var(--gold);
  color: #fff;
  transition: all 0.2s ease;
}
button:hover, .btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
button:disabled { opacity: 0.6; cursor: progress; }

.badge {
  align-self: center;
  background: transparent;
  color: var(--ok);
  border: 1px solid #c9dcce;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.state {
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.3rem;
  padding: 3rem 1rem;
}

/* --------------------------------------------------- PÁGINAS DE RETORNO */
.result {
  max-width: 540px;
  margin: 4.5rem auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  text-align: center;
}
.result .emoji { font-size: 3rem; }
.result h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.2rem;
  margin: 0.8rem 0 0.6rem;
}
.result p { color: #6f6558; font-family: var(--serif); font-size: 1.2rem; }
.result a.btn { display: inline-block; margin-top: 1.6rem; text-decoration: none; }

/* --------------------------------------------------------- PAINEL ADMIN */
.login {
  max-width: 400px;
  margin: 5.5rem auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2.2rem;
  text-align: center;
}
.login h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 0.4rem 0 1rem; }
.login input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0.6rem 0 1rem;
  background: #fdfbf7;
}
.login input:focus { outline: none; border-color: var(--gold); }

.stats { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.stat {
  flex: 1;
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat .n { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-dark); }
.stat .l { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
th {
  background: #f6efe2;
  color: var(--gold-dark);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
tr:last-child td { border-bottom: none; }
.tag-ok { color: var(--ok); font-weight: 500; }
.tag-pend { color: var(--muted); }

.msg-erro { color: var(--danger); font-size: 0.9rem; min-height: 1.2rem; }

/* --------------------------------------------------------------- RODAPÉ */
footer.rodape {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}
footer.rodape::before {
  content: "❦";
  display: block;
  color: var(--gold);
  font-style: normal;
  margin-bottom: 0.6rem;
}
