/* Orai — identidade devocional e acolhedora: fundo quente escuro (vela/
   amanhecer), dourado suave como acento, texto marfim. Tipografia serifada
   (Cormorant Garamond) nas orações e títulos; Poppins na interface.
   Nada de robôs/futurismo — calor, calma e reverência. */
:root {
  --bg: #171310;
  --panel: #211a15;
  --panel-2: #2a211a;
  --line: #4a3a28;
  --text: #f7efe2;
  --muted: #c9b797;
  --gold: #e8b45a;
  --gold-core: #ffd98f;
  --gold-deep: #a5762a;
  --rose: #d9977f;
  --danger: #ff8b7e;
  --ok: #8fd9a8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* brilhos quentes de fundo (luz de vela / amanhecer) */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-a { width: 560px; height: 560px; background: rgba(232, 180, 90, .13); top: -200px; left: -140px; }
.glow-b { width: 480px; height: 480px; background: rgba(217, 151, 127, .10); bottom: -220px; right: -120px; }

.topbar, main, footer { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  max-width: 880px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 46px;
  letter-spacing: .5px;
  color: var(--gold-core);
  text-shadow: 0 0 18px rgba(232, 180, 90, .45), 0 0 46px rgba(165, 118, 42, .35);
}
.logo-small { font-size: 24px; }

.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: var(--text);
}
.tagline strong { color: var(--gold); font-weight: 600; }
.tagline-small { font-size: 18px; }

.top-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600;
}
.lang-btn.active { background: var(--gold); color: #241a08; }

.session { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.balance {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}
.balance b { color: var(--gold-core); }
.user-email { color: var(--muted); font-size: 14px; }

main { max-width: 880px; margin: 0 auto; padding: 8px 20px 40px; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.auth-card { max-width: 520px; margin: 5vh auto 22px; }
.auth-card h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
.card h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin-bottom: 6px; }
.accent { color: var(--gold-core); }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 16px; }

.hero-card { text-align: center; padding: 40px 26px; }
.hero-card h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 44px; line-height: 1.1; margin: 6px 0 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; color: var(--gold); margin: 0; }
.cta-card { text-align: center; }
.cta-card p { line-height: 1.6; }

.pill {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--gold-core);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

.prayer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px; font-weight: 600; margin: 8px 0 6px; line-height: 1.2;
}
.verse {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-size: 19px; color: var(--gold-core);
  margin: 4px 0 10px; line-height: 1.45;
}
.verse .ref { display: block; font-size: 14px; color: var(--muted); font-style: normal; margin-top: 2px; }
.prayer-body { font-size: 16px; line-height: 1.75; white-space: pre-wrap; margin: 8px 0 14px; }

.audio-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.audio-row audio { flex: 1; min-width: 220px; height: 40px; }

.tabs { display: flex; gap: 8px; margin: 18px 0; }
.tab {
  flex: 1; padding: 10px; border-radius: 12px; cursor: pointer;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); font: inherit; font-weight: 600;
}
.tab.active { background: var(--gold); color: #241a08; border-color: var(--gold); }

.app-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.nav-tab {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); font: inherit; font-weight: 600; font-size: 14px;
}
.nav-tab.active { background: var(--gold); color: #241a08; border-color: var(--gold); }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0; }
label input, label textarea, label select {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-weight: 400;
}
.switch-line { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.switch-line input { width: auto; margin: 0; accent-color: var(--gold); }

.btn {
  border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  padding: 11px 20px; font: inherit; font-weight: 600;
  background: var(--panel); color: var(--text);
}
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #241a08; }
.btn-primary:hover:not(:disabled) { background: var(--gold-core); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
.back-link { margin-top: 18px; }

.form-msg { min-height: 20px; font-size: 14px; margin: 10px 0 0; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

.create-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cost { color: var(--muted); font-size: 13.5px; }

.intention-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.intention-btn {
  padding: 14px 8px; border-radius: 14px; cursor: pointer; text-align: center;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); font: inherit; font-weight: 600; font-size: 14px;
}
.intention-btn .emoji { display: block; font-size: 22px; margin-bottom: 6px; }
.intention-btn.active { border-color: var(--gold); background: rgba(232, 180, 90, .12); color: var(--gold-core); }

.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.history-item .h-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.history-item .h-title { font-weight: 600; }
.history-item .h-meta { color: var(--muted); font-size: 12.5px; }
.history-item .h-body { font-size: 14.5px; line-height: 1.6; margin: 8px 0 0; white-space: pre-wrap; }
.history-item audio { width: 100%; height: 38px; margin-top: 10px; }
.status-pill { font-size: 11.5px; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); }
.status-pill.approved { color: var(--ok); border-color: var(--ok); }
.status-pill.pending { color: var(--gold-core); border-color: var(--gold); }
.status-pill.rejected { color: var(--danger); border-color: var(--danger); }

.pray-for-btn {
  margin-top: 10px; background: transparent; border: 1px solid var(--gold);
  color: var(--gold-core); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.pray-for-btn:disabled { opacity: .55; cursor: default; }

footer {
  max-width: 880px; margin: 0 auto; padding: 10px 28px 34px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}

@media (max-width: 640px) {
  .logo { font-size: 36px; }
  .hero-card h1 { font-size: 34px; }
  .topbar { padding: 16px; }
  .card { padding: 20px; }
}
