/* ============================================================
   Vida Apostólica — Design System
   Brasa (ember) · Marrom profundo · Papel quente
   ============================================================ */

:root {
  /* Cor */
  --paper: #f7f2ee;
  --paper-2: #f1e9e3;
  --surface: #ffffff;
  --sand: #eadfd7;
  --ink: #1f0e09;
  --ink-2: #5d4840;
  --ink-3: #9b8981;
  --line: rgba(31, 14, 9, 0.08);
  --line-2: rgba(31, 14, 9, 0.14);

  --ember: #d4461b;
  --ember-2: #e8612b;
  --ember-deep: #a83110;
  --flame: #c8302b;
  --maroon: #3d1309;
  --night: #190704;
  --cream: #fbe9df;

  --ok: #2f7d4f;
  --ok-bg: #e3f1e8;
  --warn: #b26a00;
  --warn-bg: #fbf0dc;

  /* Tipo */
  /* Tipografia da ID: humanista da família Myriad (logo "vida apostólica").
     Base e destaque na mesma família, no contraste do logo: black + light. */
  --display: 'Source Sans 3', 'Myriad Pro', system-ui, sans-serif;
  --sans: 'Source Sans 3', 'Myriad Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Forma */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(61, 19, 9, 0.06), 0 2px 8px rgba(61, 19, 9, 0.04);
  --shadow-md: 0 6px 24px -8px rgba(61, 19, 9, 0.22), 0 2px 6px rgba(61, 19, 9, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(61, 19, 9, 0.45);
  --shadow-ember: 0 14px 30px -12px rgba(212, 70, 27, 0.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
  --tabbar-h: 84px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- Shell do app (web / PWA) ----------
   Mobile-first: no celular ocupa a tela toda.
   No desktop, por enquanto, vira uma coluna central sobre o fundo da marca
   (a versão desktop com layout próprio vem depois). */

.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(1200px 700px at 85% 110%, rgba(212, 70, 27, 0.5), transparent 60%),
    radial-gradient(900px 600px at -10% -20%, rgba(168, 49, 16, 0.4), transparent 60%),
    var(--night);
}

.device {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  body {
    background: var(--paper);
  }
  .device {
    box-shadow: none;
  }
}

/* ---------- Estrutura de tela ---------- */

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: calc(var(--tabbar-h) + 32px + var(--safe-bottom));
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen--no-tab {
  padding-bottom: 140px;
}

.pad {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.top-space {
  height: calc(var(--safe-top) + 20px);
}

.section {
  margin-top: 34px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 28px;
  line-height: 1;
}

.section__title em {
  color: var(--ember);
}

.link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 44px;
  line-height: 0.95;
}

.page-title em {
  color: var(--ember);
}

.muted {
  color: var(--ink-2);
}

.faint {
  color: var(--ink-3);
}

/* ---------- Header home ---------- */

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-head__logo {
  height: 34px;
  width: auto;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  flex: none;
}

.icon-btn--glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.icon-btn__dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  border: 2px solid var(--surface);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ember);
}

.greet {
  margin-top: 26px;
}

.greet__hello {
  font-size: 15px;
  color: var(--ink-2);
}

.greet__name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 46px;
  line-height: 0.95;
  margin-top: 4px;
}

.greet__name em {
  color: var(--ember);
}

/* ---------- Hero "próximo culto" ---------- */

.hero {
  position: relative;
  margin: 22px var(--gutter) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 7, 4, 0.1) 0%, rgba(25, 7, 4, 0) 30%, rgba(25, 7, 4, 0.55) 62%, rgba(25, 7, 4, 0.92) 100%),
    linear-gradient(110deg, rgba(212, 70, 27, 0.35), transparent 60%);
}

.hero__top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill--glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pill--ember {
  background: var(--ember);
  color: #fff;
}

.pill--soft {
  background: var(--cream);
  color: var(--ember-deep);
}

.pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill--line {
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8a5c;
  box-shadow: 0 0 0 0 rgba(255, 138, 92, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 138, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 92, 0);
  }
}

.hero__kicker {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 38px;
  line-height: 1;
  margin-top: 6px;
}

.hero__meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.countdown {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.countdown__cell {
  min-width: 52px;
  padding: 8px 6px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.countdown__n {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__l {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 3px;
}

/* ---------- Botões ---------- */

.btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(180deg, var(--ember-2), var(--ember) 55%, var(--ember-deep));
  color: #fff;
  box-shadow: var(--shadow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--ink);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}

.btn--ghost {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
}

.btn--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Versículo ---------- */

.verse {
  position: relative;
  margin: 0 var(--gutter);
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.verse__mark {
  position: absolute;
  right: -10px;
  top: -24px;
  width: 120px;
  opacity: 0.07;
}

.verse__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ember);
}

.verse__text {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 24px;
  line-height: 1.18;
  margin-top: 12px;
}

.verse__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verse__ref {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.verse__actions {
  display: flex;
  gap: 6px;
}

.mini-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink-2);
}

.mini-btn.is-on {
  color: var(--flame);
  background: var(--cream);
}

/* ---------- Atalhos ---------- */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 var(--gutter);
}

.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.quick__icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ember);
  transition: transform 0.2s var(--ease);
}

.quick__item:active .quick__icon {
  transform: scale(0.94);
}

.quick__icon--ember {
  background: linear-gradient(150deg, var(--ember-2), var(--ember-deep));
  color: #fff;
  box-shadow: var(--shadow-ember);
}

/* ---------- Carrossel ---------- */

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  scroll-snap-align: start;
  flex: none;
}

.ev-card {
  position: relative;
  width: 232px;
  height: 312px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.ev-card img.ev-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}

.ev-card:active img.ev-card__img {
  transform: scale(1.05);
}

.ev-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0) 35%, rgba(25, 7, 4, 0.85) 100%);
}

.date-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 50px;
  padding: 7px 0 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.date-chip__m {
  font-size: 10px;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.04em;
}

.date-chip__d {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1;
}

.ev-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ev-card__kicker {
  font-size: 12px;
  opacity: 0.75;
}

.ev-card__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.ev-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
}

/* ---------- Faces / avatares empilhados ---------- */

.faces {
  display: flex;
  align-items: center;
}

.faces img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--face-border, #fff);
  margin-left: -8px;
}

.faces img:first-child {
  margin-left: 0;
}

.faces__count {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Horários fixos ---------- */

.schedule {
  margin: 0 var(--gutter);
  border-radius: var(--r-lg);
  background: var(--maroon);
  color: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.schedule__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.9;
}

.schedule__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.schedule__row + .schedule__row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule__time {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 34px;
  line-height: 1;
  min-width: 78px;
}

.schedule__name {
  font-weight: 700;
}

.schedule__note {
  font-size: 13px;
  opacity: 0.7;
}

.schedule__addr {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 13px;
}

/* ---------- Testemunhos ---------- */

.story {
  width: 270px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story__q {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 22px;
  line-height: 1.2;
}

.story__q::before {
  content: '“';
  color: var(--ember);
}

.story__q::after {
  content: '”';
  color: var(--ember);
}

.story__who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.story__who img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Agenda ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  position: relative;
  height: 38px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  flex: none;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}

.chip.is-on {
  color: #fff;
  box-shadow: none;
}

.chip__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  z-index: -1;
}

.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--gutter) 4px;
  scrollbar-width: none;
}

.days::-webkit-scrollbar {
  display: none;
}

.dayc {
  position: relative;
  flex: none;
  width: 52px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.dayc__w {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.dayc__n {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1;
}

.dayc__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  margin-top: 3px;
}

.dayc.is-on {
  color: #fff;
}

.dayc.is-on .dayc__w {
  color: rgba(255, 255, 255, 0.75);
}

.dayc.is-on .dayc__dot {
  background: #fff;
}

.dayc__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--ember-2), var(--ember-deep));
  z-index: -1;
  box-shadow: var(--shadow-ember);
}

.month-label {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 22px;
  padding: 0 var(--gutter);
  margin: 26px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.month-label small {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.row-card {
  display: flex;
  gap: 14px;
  margin: 0 var(--gutter) 12px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  align-items: stretch;
  transition: transform 0.2s var(--ease);
}

.row-card:active {
  transform: scale(0.985);
}

.row-card__img {
  position: relative;
  width: 96px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
}

.row-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 4px 2px 0;
}

.row-card__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--ember);
}

.row-card__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 3px;
}

.row-card__meta {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.row-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ellipsis {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-card__meta .row-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.row-card__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 4px 2px 0;
}

.price {
  font-weight: 700;
  font-size: 14px;
}

.price--free {
  color: var(--ok);
}

.status-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  color: var(--ok);
}

/* ---------- Detalhe do evento ---------- */

.detail-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.detail-hero__img {
  position: absolute;
  inset: -20px 0 0 0;
  width: 100%;
  height: calc(100% + 40px);
  object-fit: cover;
  z-index: -2;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 7, 4, 0.45) 0%, rgba(25, 7, 4, 0) 26%, rgba(25, 7, 4, 0) 45%, rgba(25, 7, 4, 0.88) 100%);
}

.detail-nav {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

.detail-nav__right {
  display: flex;
  gap: 8px;
}

.detail-hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 44px;
}

.detail-hero__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 52px;
  line-height: 0.92;
  margin-top: 10px;
}

.sheet-body {
  position: relative;
  margin-top: -26px;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  padding-top: 26px;
  z-index: 2;
}

.info-list {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.info {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.info + .info {
  border-top: 1px solid var(--line);
}

.info__ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ember);
  flex: none;
}

.info__t {
  font-weight: 600;
  font-size: 14.5px;
}

.info__s {
  font-size: 13px;
  color: var(--ink-2);
}

.info__chev {
  margin-left: auto;
  color: var(--ink-3);
}

.prose {
  padding: 0 var(--gutter);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ticks {
  list-style: none;
  padding: 0 var(--gutter);
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.ticks li svg {
  color: var(--ember);
  flex: none;
}

.going {
  margin: 0 var(--gutter);
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.going .faces img {
  width: 34px;
  height: 34px;
  margin-left: -10px;
}

.going .faces img:first-child {
  margin-left: 0;
}

.capacity {
  margin-top: 8px;
  height: 6px;
  border-radius: 6px;
  background: var(--sand);
  overflow: hidden;
}

.capacity span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember-2), var(--ember-deep));
}

.map {
  margin: 0 var(--gutter);
  height: 150px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #eadfd7, #e3d4ca);
}

.map__road {
  position: absolute;
  background: #fff;
  border-radius: 8px;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 48%;
  translate: -50% -100%;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--ember);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-ember);
}

.map__pin img {
  rotate: 45deg;
  width: 20px;
}

.map__cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

/* CTA fixo */
.cta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 14px var(--gutter) calc(18px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(247, 242, 238, 0) 0%, var(--paper) 30%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-bar__price small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.cta-bar__price strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cta-bar .btn {
  flex: 1;
}

/* ---------- Sheet (modal inferior) ---------- */

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(25, 7, 4, 0.5);
  z-index: 80;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  background: var(--paper);
  border-radius: 32px 32px 0 0;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
}

.sheet__grab {
  width: 40px;
  height: 5px;
  border-radius: 5px;
  background: var(--line-2);
  margin: 10px auto 0;
  flex: none;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px var(--gutter) 6px;
  gap: 12px;
}

.sheet__title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 32px;
  line-height: 1;
}

.sheet__scroll {
  overflow-y: auto;
  padding: 10px var(--gutter) calc(24px + var(--safe-bottom));
  scrollbar-width: none;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--ink-2);
  flex: none;
}

/* Tipo de ingresso */
.tk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 10px;
  transition: box-shadow 0.2s;
}

.tk.is-on {
  box-shadow: inset 0 0 0 2px var(--ember);
}

.tk.is-out {
  opacity: 0.5;
}

.tk__name {
  font-weight: 700;
}

.tk__note {
  font-size: 12.5px;
  color: var(--ink-2);
}

.tk__price {
  font-weight: 700;
  margin-top: 2px;
}

.stepper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border-radius: 99px;
  padding: 4px;
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stepper button[disabled] {
  opacity: 0.35;
}

.stepper span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary {
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
}

.summary__row--total {
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-weight: 800;
  font-size: 17px;
}

.paymethod {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--ember);
  margin-top: 12px;
}

.pix-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6f6f3;
  color: #32bcad;
  flex: none;
}

/* Pix */
.pix-amount {
  text-align: center;
  margin-top: 4px;
}

.pix-amount__v {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 54px;
  line-height: 1;
}

.qr-card {
  margin: 20px auto 0;
  width: 248px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
}

.qr-card__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px #fff;
}

.qr-card__logo img {
  width: 24px;
}

.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.timer strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.copy-box {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.copy-box code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
}

.steps li::before {
  content: counter(s);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ember-deep);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex: none;
}

.waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  border-top-color: var(--ember);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-note {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Sucesso */
.success {
  text-align: center;
  padding: 10px 0 6px;
}

.success__burst {
  width: 120px;
  height: 120px;
  margin: 10px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(212, 70, 27, 0.18), rgba(212, 70, 27, 0) 70%);
  position: relative;
}

.success__ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ember-2), var(--ember-deep));
  color: #fff;
  box-shadow: var(--shadow-ember);
}

.success__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 38px;
  line-height: 1;
  margin-top: 18px;
}

.success__text {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  padding: 0 10px;
}

/* ---------- Ingresso ---------- */

.ticket {
  margin: 0 var(--gutter) 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.ticket__top {
  position: relative;
  height: 150px;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.ticket__top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.ticket__top::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0.05), rgba(25, 7, 4, 0.82));
}

.ticket__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ticket__status {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ticket__perf {
  position: relative;
  height: 24px;
}

.ticket__perf::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  border-top: 2px dashed var(--line-2);
}

.ticket__perf i {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--paper);
}

.ticket__perf i:first-child {
  left: -12px;
}

.ticket__perf i:last-child {
  right: -12px;
}

.ticket__body {
  padding: 4px 18px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.ticket__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}

.ticket__grid small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

.ticket__grid strong {
  font-size: 14px;
  font-weight: 700;
}

.ticket__qr {
  padding: 8px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  flex: none;
}

/* ---------- Ofertar ---------- */

.give-hero {
  position: relative;
  margin: 0;
  padding: calc(var(--safe-top) + 28px) var(--gutter) 34px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 36px 36px;
}

.give-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.give-hero .page-title em {
  color: #ffb08c;
}

.amount {
  margin-top: 26px;
  text-align: center;
}

.amount__label {
  font-size: 13px;
  opacity: 0.75;
}

.amount__v {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 76px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.amount__v small {
  font-size: 28px;
  margin-top: 12px;
  opacity: 0.7;
}

.amount__cents {
  font-size: 34px;
  opacity: 0.7;
  margin-top: 8px;
}

.presets {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.preset {
  height: 36px;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.preset.is-on {
  background: #fff;
  color: var(--ember-deep);
}

.funds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
}

.fund {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: box-shadow 0.2s;
  position: relative;
}

.fund.is-on {
  box-shadow: inset 0 0 0 2px var(--ember);
}

.fund__ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ember);
  margin-bottom: 12px;
}

.fund__n {
  font-weight: 700;
}

.fund__d {
  font-size: 12px;
  color: var(--ink-2);
}

.fund__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: grid;
  place-items: center;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 var(--gutter);
}

.key {
  height: 54px;
  border-radius: 16px;
  font-size: 24px;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.key:active {
  background: var(--sand);
}

.history {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.history__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.history__row + .history__row {
  border-top: 1px solid var(--line);
}

.history__amt {
  margin-left: auto;
  font-weight: 700;
}

/* ---------- Células ---------- */

.cell-card {
  margin: 0 var(--gutter) 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cell-card__img {
  height: 150px;
  position: relative;
}

.cell-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.cell-card__body {
  padding: 16px 18px 18px;
}

.cell-card__name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.cell-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.cell-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cell-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

/* ---------- Perfil ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ember);
}

.profile__name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 36px;
  line-height: 1;
  margin-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px var(--gutter) 0;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 16px 8px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1;
}

.stat small {
  font-size: 12px;
  color: var(--ink-2);
}

.menu {
  margin: 0 var(--gutter);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
}

.menu__item + .menu__item {
  border-top: 1px solid var(--line);
}

.menu__ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  flex: none;
}

.menu__t {
  font-weight: 600;
  font-size: 14.5px;
}

.menu__s {
  font-size: 12.5px;
  color: var(--ink-3);
}

.menu__right {
  margin-left: auto;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-n {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: var(--ember);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.brand-foot {
  margin: 40px auto 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
}

.brand-foot img {
  width: 34px;
  margin: 0 auto 10px;
  opacity: 0.85;
}

.brand-foot__tag {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 17px;
  color: var(--ink-2);
}

/* ---------- Tab bar ---------- */

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  height: 68px;
  border-radius: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  background: rgba(31, 14, 9, 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow:
    0 18px 40px -12px rgba(25, 7, 4, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab {
  position: relative;
  flex: 1;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10.5px;
  font-weight: 600;
  isolation: isolate;
  transition: color 0.25s;
}

.tab.is-on {
  color: #fff;
}

.tab__bg {
  position: absolute;
  inset: 0 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.tab__dot {
  position: absolute;
  top: 9px;
  right: calc(50% - 16px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-2);
}

.tab--give .tab__flame {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ember-2), var(--ember-deep));
  box-shadow: 0 8px 20px -6px rgba(232, 97, 43, 0.9);
  color: #fff;
}

.tab--give .tab__flame img {
  width: 16px;
}

/* ---------- Toast ---------- */

.toast {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) + 14px);
  z-index: 100;
  translate: -50% 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px 12px 14px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.toast svg {
  color: #7fd6a2;
}

/* ---------- Header simples ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.empty {
  margin: 30px var(--gutter);
  padding: 34px 24px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-2);
  color: var(--ink-2);
}

.empty img {
  width: 40px;
  margin: 0 auto 14px;
  opacity: 0.8;
}

.empty h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
}

.seg {
  display: flex;
  margin: 0 var(--gutter);
  padding: 4px;
  border-radius: 99px;
  background: var(--sand);
}

.seg button {
  position: relative;
  flex: 1;
  height: 38px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  isolation: isolate;
}

.seg button.is-on {
  color: var(--ink);
}

.seg__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  z-index: -1;
}

.field {
  display: block;
  margin-top: 12px;
}

.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 0 14px;
  outline: none;
  transition: box-shadow 0.2s;
}

.field input:focus {
  box-shadow: inset 0 0 0 2px var(--ember);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Cabeçalho fixo
   ============================================================ */

:root {
  --header-h: 54px;
}

.has-header .top-space {
  height: calc(var(--safe-top) + var(--header-h) + 8px);
}

.has-header .greet {
  margin-top: 6px;
}

.has-header .give-hero {
  margin: 12px var(--gutter) 0;
  padding: 18px 16px 18px;
  border-radius: var(--r-lg);
}

.has-header .give-hero .amount {
  margin-top: 0;
  display: block;
  width: 100%;
}

.has-header .give-hero .amount__v {
  font-size: 54px;
}

.has-header .give-hero .presets {
  margin-top: 12px;
}

/* Card da construção */
.build-card {
  position: relative;
  display: block;
  width: calc(100% - var(--gutter) * 2);
  margin: 4px var(--gutter) 0;
  height: 168px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  text-align: left;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}

.build-card.is-on {
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 5px var(--ember),
    var(--shadow-md);
}

.build-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.build-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0.1) 20%, rgba(25, 7, 4, 0.82) 100%);
}

.build-card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.build-card strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.1;
}

.build-card small {
  font-size: 12.5px;
  opacity: 0.8;
}

.app-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 45;
  height: calc(var(--safe-top) + var(--header-h));
  padding: var(--safe-top) 14px 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(247, 242, 238, 0.78);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition:
    box-shadow 0.3s,
    background 0.3s;
}

.app-header.is-scrolled {
  background: rgba(247, 242, 238, 0.9);
  box-shadow:
    0 1px 0 var(--line),
    0 10px 30px -18px rgba(61, 19, 9, 0.35);
}

.app-header__logo {
  justify-self: center;
  display: grid;
  place-items: center;
  height: 44px;
}

.hdr-seal {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hdr-wordmark {
  height: 32px;
  width: auto;
}

.hdr-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s;
}

.hdr-btn:active {
  background: var(--sand);
}

.hdr-badge {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--ember);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.hdr-avatar {
  justify-self: start;
  margin-left: 4px;
}

.hdr-btn {
  justify-self: end;
}

.hdr-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 3.5px var(--ember);
}

/* Botão central (Início) */
.tab--home .tab__flame {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ember-2), var(--ember-deep));
  box-shadow: 0 8px 20px -6px rgba(232, 97, 43, 0.9);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.tab--home .tab__flame img {
  width: 18px;
}

.tab--home.is-on .tab__flame {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px rgba(232, 97, 43, 0.28),
    0 12px 24px -6px rgba(232, 97, 43, 1);
}

/* ============================================================
   Gaveta de notificações
   ============================================================ */

.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(88%, 400px);
  z-index: 81;
  background: var(--paper);
  border-radius: 30px 0 0 30px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--safe-top) + 22px) 18px 4px;
}

.drawer__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
}

.drawer__tools .seg {
  margin: 0;
  flex: 1;
}

.seg--sm button {
  height: 32px;
  font-size: 12.5px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ember);
  white-space: nowrap;
}

.text-btn[disabled] {
  color: var(--ink-3);
  opacity: 0.6;
}

.drawer__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px calc(24px + var(--safe-bottom));
  scrollbar-width: none;
}

.ntf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ntf {
  position: relative;
  margin-bottom: 8px;
  border-radius: 18px;
}

.ntf__under {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--flame);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 18px;
}

.ntf__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 8px 12px 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  touch-action: pan-y;
}

.ntf__card.is-unread {
  background: linear-gradient(0deg, rgba(212, 70, 27, 0.05), rgba(212, 70, 27, 0.05)), var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(212, 70, 27, 0.16),
    var(--shadow-sm);
}

.ntf__main {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  text-align: left;
}

.ntf__ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--cream);
  color: var(--ember);
}

.ntf__ic--payment {
  background: var(--ok-bg);
  color: var(--ok);
}

.ntf__ic--cell {
  background: #e8eef6;
  color: #3c5d8a;
}

.ntf__ic--prayer {
  background: #f1eaf5;
  color: #7a4c93;
}

.ntf__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ntf__title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ntf__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
}

.ntf__body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.38;
}

.ntf__time {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 3px;
}

.ntf__actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ntf__actions button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition:
    background 0.2s,
    color 0.2s;
}

.ntf__actions button:hover,
.ntf__actions button:active {
  background: var(--paper);
  color: var(--ink);
}

/* Preferência de cabeçalho (Mais) */
.style-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
}

.style-pick button {
  height: 92px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.style-pick button.is-on {
  box-shadow: inset 0 0 0 2px var(--ember);
  color: var(--ink);
}

.style-pick img {
  height: 40px;
  width: auto;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 var(--gutter) 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   Transparência
   ============================================================ */

.fin-sum {
  margin: 18px var(--gutter) 0;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.fin-sum__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fin-sum__label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}

.fin-sum__value {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: 50px;
  line-height: 1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.fin-sum__value.is-neg {
  color: var(--ember-deep);
}

.fin-sum__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.fin-sum__grid > div {
  padding-top: 14px;
}

.fin-sum__grid > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.fin-sum__grid small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}

.fin-sum__grid strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.fin-sum__note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.4;
}

.fin-sum__note svg {
  flex: none;
  margin-top: 2px;
}

.chart {
  padding: 14px 12px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart__grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart__zero {
  stroke: var(--ink-3);
  stroke-width: 1;
}

.chart__val {
  font-size: 11.5px;
  font-weight: 800;
  fill: var(--ink);
  font-family: var(--sans);
}

.chart__x {
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink-3);
  font-family: var(--sans);
}

.chart__x.is-on {
  fill: var(--ink);
  font-weight: 800;
}

.chart__legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}

.chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.bk {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.bk__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bk__ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.bk__ic--in {
  background: #e7eef8;
  color: #2f6fb8;
}

.bk__ic--out {
  background: var(--cream);
  color: var(--ember);
}

.bk__title {
  font-weight: 800;
}

.bk__total {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bk__row {
  padding: 8px 0;
}

.bk__line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}

.bk__v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bk__v small {
  color: var(--ink-3);
  font-weight: 600;
  margin-left: 4px;
}

.bk__bar {
  height: 5px;
  border-radius: 5px;
  background: var(--paper-2);
  margin-top: 6px;
  overflow: hidden;
}

.bk__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bk__fill--in {
  background: #2f6fb8;
}

.bk__fill--out {
  background: var(--ember);
}

.transp-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px var(--gutter) 0;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
}

.transp-link__ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  flex: none;
}

.transp-link small {
  display: block;
  font-size: 12.5px;
  opacity: 0.65;
}

/* Destaque no estilo do logo: palavra em light, na cor brasa */
.page-title em,
.section__title em,
.greet__name em,
.sheet__title em,
.give-hero .page-title em {
  font-style: normal;
  font-weight: 300;
}
.brand-foot__tag {
  font-style: normal;
  font-weight: 600;
}

/* Foto de perfil */
.avatar-edit {
  position: relative;
  border-radius: 50%;
}

.avatar-edit__badge {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 3px var(--paper);
}

.photo-preview {
  display: grid;
  place-items: center;
  margin-top: 6px;
}

.photo-preview img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 6px var(--ember),
    var(--shadow-md);
}

.share-preview {
  display: grid;
  place-items: center;
  min-height: 200px;
}

.share-preview img {
  height: min(52vh, 440px);
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Calendário do mês (Agenda)
   ============================================================ */

.seg--icons {
  margin: 0;
  width: 92px;
}

.seg--icons button {
  height: 36px;
  display: grid;
  place-items: center;
}

.cal {
  margin: 0 var(--gutter);
  padding: 14px 12px 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
}

.cal__title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.cal__title span {
  font-weight: 300;
  color: var(--ember);
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  justify-items: center;
}

.cal__wk {
  padding: 6px 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.cal__wk span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
}

.cal__day {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.cal__day[disabled] {
  cursor: default;
  color: var(--ink-3);
  font-weight: 500;
}

.cal__day.is-event {
  background: var(--ember);
  color: #fff;
  font-weight: 800;
}

.cal__day.is-culto {
  background: var(--cream);
  color: var(--ember-deep);
  font-weight: 800;
}

.cal__day.is-today {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.cal__day.is-event.is-today {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--ink);
}

.cal__day.is-on {
  background: var(--ink);
  color: #fff;
  transform: scale(1.08);
}

.cal__legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal__legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lg-event {
  background: var(--ember);
}

.lg-culto {
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(168, 49, 16, 0.3);
}

.lg-today {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.month-label .link {
  font-family: var(--sans);
}

/* ============================================================
   Ajuste minimalista / premium — escala mais contida
   ============================================================ */

.page-title { font-size: 30px; line-height: 1; }
.section { margin-top: 28px; }
.section__head { margin-bottom: 12px; }
.section__title { font-size: 21px; }
.month-label { font-size: 17px; margin: 22px 0 10px; }

/* Home: card do próximo evento */
.hero { min-height: 268px; padding: 18px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.hero__top { top: 14px; left: 14px; right: 14px; }
.hero__title { font-size: 30px; }
.hero__kicker { font-size: 12.5px; }
.countdown { margin-top: 12px; gap: 5px; }
.countdown__cell { min-width: 44px; padding: 6px 4px 5px; border-radius: 12px; }
.countdown__n { font-size: 21px; }
.countdown__l { font-size: 9.5px; }
.hero__actions { margin-top: 14px; }
.hero__actions .btn { height: 44px; font-size: 14px; }
.hero__actions .icon-btn { width: 44px; height: 44px; }

/* Atalhos */
.quick__icon { aspect-ratio: auto; height: 54px; border-radius: 18px; }
.quick__item { font-size: 11.5px; gap: 6px; }

/* Cards de evento (carrossel) */
.ev-card { width: 196px; height: 250px; padding: 14px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.ev-card__title { font-size: 17px; }
.ev-card__kicker { font-size: 11px; }
.date-chip { width: 42px; padding: 5px 0 4px; border-radius: 12px; }
.date-chip__d { font-size: 19px; }
.date-chip__m { font-size: 9px; }

/* Linhas da agenda */
.row-card { padding: 8px; gap: 12px; margin-bottom: 10px; }
.row-card__img { width: 76px; height: 88px; border-radius: 12px; }
.row-card__title { font-size: 15.5px; }
.row-card__kicker { font-size: 11.5px; }

/* Versículo */
.verse { padding: 22px 20px 18px; }
.verse__text { font-size: 20px; position: relative; }
.verse__label, .verse__foot { position: relative; }
.verse__mark {
  right: auto;
  top: 50%;
  left: 50%;
  width: 150px;
  translate: -50% -50%;
  opacity: 0.06;
}

/* Horários / testemunhos */
.schedule__row { padding: 14px 18px; }
.schedule__time { font-size: 26px; min-width: 64px; }
.story { width: 240px; padding: 16px; gap: 12px; }
.story__q { font-size: 17px; }

/* Ofertar */
.build-card { height: 128px; }
.build-card strong { font-size: 17px; }
.has-header .give-hero { padding: 14px 14px 16px; }
.has-header .give-hero .amount__v { font-size: 44px; }
.has-header .give-hero .amount__v small { font-size: 20px; margin-top: 8px; }
.has-header .give-hero .amount__cents { font-size: 24px; margin-top: 6px; }
.fund { padding: 12px; }
.fund__ic { width: 32px; height: 32px; margin-bottom: 8px; }

/* Ingressos / células / detalhe */
.ticket__top { height: 116px; }
.ticket__title { font-size: 19px; }
.cell-card__img { height: 112px; }
.cell-card__name { font-size: 17px; }
.detail-hero { height: 400px; }
.detail-hero__title { font-size: 38px; }
.profile__avatar { width: 84px; height: 84px; }
.profile__name { font-size: 26px; margin-top: 14px; }
.stat strong { font-size: 24px; }
.fin-sum__value { font-size: 40px; }
.sheet__title { font-size: 24px; }

/* Faixa de datas compacta (lista da agenda) */
.days { gap: 6px; }
.dayc { width: 44px; height: 58px; border-radius: 14px; }
.dayc__n { font-size: 19px; }
.dayc__w { font-size: 9.5px; }

/* Calendário compacto e recolhível */
.cal { padding: 10px 10px 6px; border-radius: var(--r-md); }
.cal__head { padding: 0 4px 6px; }
.cal__title { font-size: 17px; }
.cal__head .mini-btn { width: 30px; height: 30px; }
.cal__wk { padding: 4px 0 6px; margin-bottom: 4px; }
.cal__wk span { font-size: 10.5px; }
.cal__weeks { display: grid; gap: 3px; }
.cal__day { width: 34px; height: 34px; font-size: 13.5px; }
.cal__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
  padding: 6px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ember);
  border-top: 1px solid var(--line);
}
.cal__legend { margin-top: 2px; padding-top: 6px; font-size: 11px; }
.cal__legend i { width: 10px; height: 10px; }
.seg--icons { width: 84px; }
.seg--icons button { height: 32px; }

/* ============================================================
   Agenda limpa — lista colorida (estilo calendário da igreja)
   ============================================================ */

.ag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 var(--gutter);
  padding: 12px 2px;
}

.ag-row + .ag-row {
  border-top: 1px solid var(--line);
}

.ag-row.is-past {
  opacity: 0.45;
}

.ag-date {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  line-height: 1;
}

.ag-date b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ag-date span {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 2px;
}

.ag-body {
  flex: 1;
  min-width: 0;
}

.ag-title {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ag-meta {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-info {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-cta {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
}

/* dias do calendário: cor do evento */
.cal__day.is-event {
  color: #fff;
}

.poster {
  display: block;
  margin: 0 var(--gutter);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.poster img {
  width: 100%;
  height: auto;
}

/* Subpágina: voltar na mesma linha do título */
.subhead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn {
  width: 34px;
  height: 34px;
  margin-left: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  flex: none;
}

.back-btn:active {
  background: var(--sand);
}

.cell-card__img { height: 150px; }

/* Página do evento enxuta */
.screen--detail {
  overscroll-behavior: none;
}

.detail-hero {
  height: 330px;
}

.detail-hero__img {
  inset: 0;
  height: 100%;
}

.detail-hero__content {
  bottom: 40px;
}

.detail-hero__title {
  font-size: 32px;
  margin-top: 8px;
}

.detail-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.88;
}

.detail-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--gutter);
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.badge svg {
  color: var(--ember);
}

html, body { overscroll-behavior: none; }

/* ============================================================
   Agenda na linguagem da Home: card escuro da marca + profundidade
   ============================================================ */

.cal--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--maroon);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-lg);
  padding: 14px 12px 6px;
}

.cal__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cal--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0.35), rgba(25, 7, 4, 0.7));
}

.cal--dark .cal__title {
  color: #fff;
}

.cal--dark .cal__title span {
  color: #ffb08c;
}

.cal--dark .mini-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.cal--dark .cal__wk {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.cal--dark .cal__wk span {
  color: rgba(255, 255, 255, 0.55);
}

.cal--dark .cal__day {
  color: rgba(255, 255, 255, 0.82);
}

.cal--dark .cal__day[disabled] {
  color: rgba(255, 255, 255, 0.45);
}

.cal--dark .cal__day.is-event {
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 78%, white), var(--c) 55%, color-mix(in oklab, var(--c) 72%, black));
  box-shadow:
    0 6px 16px -4px color-mix(in oklab, var(--c) 80%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cal--dark .cal__day.is-today {
  box-shadow:
    0 0 0 2px rgba(25, 7, 4, 0.6),
    0 0 0 4px #fff;
}

.cal--dark .cal__day.is-on {
  background: #fff;
  color: var(--ink);
  transform: scale(1.1);
}

.cal--dark .cal__toggle {
  color: #ffb08c;
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* Lista dentro de card branco */
.ag-list {
  margin: 0 var(--gutter);
  padding: 4px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.ag-list .ag-row {
  margin: 0;
  padding: 13px 0;
}

.ag-date {
  width: 50px;
  height: 54px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 75%, white), var(--c) 55%, color-mix(in oklab, var(--c) 70%, black));
  box-shadow:
    0 8px 18px -8px color-mix(in oklab, var(--c) 90%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ag-date b {
  font-size: 19px;
}

.ag-info {
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  color: color-mix(in oklab, var(--c) 80%, black);
  background: color-mix(in oklab, var(--c) 13%, white);
}

.ag-cta {
  background: linear-gradient(180deg, var(--ember-2), var(--ember) 55%, var(--ember-deep));
  box-shadow: 0 8px 16px -8px rgba(212, 70, 27, 0.8);
}

/* ============================================================
   Ofertar — topo com a obra + card de valor + destinos compactos
   ============================================================ */

.give-top {
  position: relative;
  height: 300px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.give-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.give-top::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0.25) 0%, rgba(25, 7, 4, 0) 35%, rgba(25, 7, 4, 0.85) 100%);
}

.give-top__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 44px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.give-top__title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 27px;
  line-height: 1.05;
}

.give-hero.give-hero--card {
  margin: 0 var(--gutter);
  padding: 16px 14px 16px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.give-hero--card .amount {
  margin-top: 0;
}

.give-hero--card .amount__v {
  font-size: 46px;
}

.give-hero--card .amount__v small {
  font-size: 20px;
  margin-top: 8px;
}

.give-hero--card .amount__cents {
  font-size: 24px;
  margin-top: 6px;
}

.give-hero--card .presets {
  margin-top: 12px;
  gap: 6px;
  flex-wrap: wrap;
}

.give-hero--card .preset {
  padding: 0 11px;
  height: 34px;
}

.quick__item[aria-pressed] {
  cursor: pointer;
}

/* ============================================================
   Agenda — lista no estilo das referências (datas tingidas, cards)
   ============================================================ */
.ag-stack {
  display: grid;
  gap: 10px;
  padding: 0 var(--gutter);
}

.ag-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(61, 19, 9, 0.05), 0 10px 24px -16px rgba(61, 19, 9, 0.35);
}

.ag-card.is-past {
  opacity: 0.5;
}

.ag-tile {
  width: 54px;
  height: 58px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
  background: color-mix(in oklab, var(--c) 11%, white);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 18%, white);
}

.ag-tile b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}

.ag-tile span {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: color-mix(in oklab, var(--c) 70%, var(--ink));
}

.ag-card .ag-title {
  font-size: 15.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ag-card .ag-meta {
  font-size: 12.5px;
  margin-top: 3px;
  color: var(--ink-2);
}

.ag-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-stack { grid-template-columns: minmax(0, 1fr); }
.ag-card { min-width: 0; }
.ag-card .ag-body { flex: 1; min-width: 0; }
.ag-card .ag-cta { flex: none; }

.give-hero--card .presets { flex-wrap: nowrap; gap: 5px; justify-content: center; }
.give-hero--card .preset { padding: 0 9px; height: 32px; font-size: 12px; }

/* Ofertar — card de valor sobe sobre a foto; base da foto com desfoque + escuro */
.give-top {
  height: 320px;
}

.give-top::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  z-index: -1;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

.give-top::after {
  background: linear-gradient(180deg, rgba(25, 7, 4, 0.2) 0%, rgba(25, 7, 4, 0) 30%, rgba(25, 7, 4, 0.55) 62%, rgba(25, 7, 4, 0.92) 100%);
}

.give-top__content {
  bottom: 112px;
}

.give-top + .sheet-body {
  background: transparent;
  margin-top: -84px;
  padding-top: 0;
}

.give-top + .sheet-body .give-hero--card {
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 40px -20px rgba(25, 7, 4, 0.7);
}

.give-top + .sheet-body > :not(.give-hero--card) {
  position: relative;
}

/* valores numa linha, larguras proporcionais */
.give-hero--card .presets {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.give-hero--card .preset {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
  height: 32px;
  font-size: 12px;
}

.give-hero--card .preset:last-child {
  flex: 1.6 1 0;
}

/* 3 destinos em cards */
.funds--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.funds--3 .fund {
  padding: 12px 10px;
  text-align: left;
}

.funds--3 .fund__ic {
  margin-bottom: 10px;
}

.funds--3 .fund__n {
  font-size: 13.5px;
}

.funds--3 .fund__check {
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
}

/* Evento: foto mais baixa para caber sem rolagem */
.detail-hero {
  height: clamp(220px, 31vh, 270px);
}

.detail-hero__content {
  bottom: 36px;
}

.detail-hero__title {
  font-size: 28px;
  margin-top: 6px;
}

.detail-hero__meta {
  margin-top: 6px;
  font-size: 12.5px;
}

.screen--detail.screen--no-tab {
  padding-bottom: 110px;
}

.screen--detail .prose {
  font-size: 15px;
  line-height: 1.5;
}

.screen--detail .badges {
  margin-top: 12px;
}

/* ==========================================================================
   DESIGN SYSTEM v2 — "soft premium"
   Mantém a ID (brasa, marrom, logo, Source Sans 3); muda a pegada:
   fundo claro com manchas de cor desfocadas, cards leves, tons pastel,
   CTA escuro com círculo de seta, tab bar escura com pílula ativa.
   ========================================================================== */

:root {
  --paper: #faf6f1;
  --paper-2: #f3ece4;
  --sand: #efe6dd;
  --line: rgba(31, 14, 9, 0.06);
  --line-2: rgba(31, 14, 9, 0.1);
  --r-md: 22px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(61, 19, 9, 0.04), 0 10px 26px -18px rgba(61, 19, 9, 0.22);
  --shadow-md: 0 2px 6px rgba(61, 19, 9, 0.04), 0 22px 44px -26px rgba(61, 19, 9, 0.4);
  --tint-peach: #fde3d4;
  --tint-sand: #f5ebd9;
  --tint-rose: #f9dcd5;
  --tint-clay: #efe3da;
  --ink-btn: #1f0e09;
}

/* Fundo com manchas de cor (tons da marca) */
.device {
  background:
    radial-gradient(62% 34% at 104% -2%, rgba(255, 168, 128, 0.5), transparent 70%),
    radial-gradient(58% 32% at -8% 18%, rgba(246, 226, 194, 0.95), transparent 72%),
    radial-gradient(70% 40% at 50% 104%, rgba(249, 205, 192, 0.6), transparent 70%),
    radial-gradient(40% 26% at 85% 55%, rgba(253, 227, 212, 0.7), transparent 70%),
    var(--paper);
}

.sheet-body {
  background: var(--paper);
}

/* Cabeçalho: vidro claro, sino em círculo branco */
.app-header {
  background: rgba(250, 246, 241, 0.55);
}

.app-header.is-scrolled {
  background: rgba(250, 246, 241, 0.82);
}

.hdr-btn {
  width: 38px;
  height: 38px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hdr-badge {
  top: -2px;
  right: -3px;
}

/* ---------- Tab bar: escura, pílula ativa com nome ---------- */
.tabbar {
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  height: 64px;
  padding: 6px;
  border-radius: 34px;
  justify-content: space-between;
  gap: 2px;
  background: var(--ink-btn);
  backdrop-filter: none;
  box-shadow:
    0 20px 40px -16px rgba(25, 7, 4, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tab {
  flex: 0 0 auto;
  flex-direction: row;
  height: 52px;
  min-width: 52px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tab.is-on {
  color: #fff;
  padding: 0 18px 0 15px;
}

.tab__pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--ember-2), var(--ember) 60%, var(--ember-deep));
  box-shadow: 0 8px 18px -8px rgba(232, 97, 43, 0.9);
}

.tab__ic {
  display: grid;
  place-items: center;
}

.tab__flame-img {
  width: 17px;
  opacity: 0.75;
}

.tab.is-on .tab__flame-img {
  opacity: 1;
}

.tab__label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.tab__dot {
  top: 12px;
  right: 12px;
  border: 2px solid var(--ink-btn);
  width: 9px;
  height: 9px;
}

/* ---------- Botões ---------- */
.btn--primary {
  background: var(--ink-btn);
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(31, 14, 9, 0.75);
}

.btn--go {
  justify-content: space-between;
  height: 58px;
  padding: 0 7px 0 24px;
  font-size: 15.5px;
}

.btn__go {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, var(--ember-2), var(--ember) 60%, var(--ember-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn__lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--ghost {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.cta-bar {
  background: linear-gradient(180deg, rgba(250, 246, 241, 0) 0%, rgba(250, 246, 241, 0.92) 35%);
}

/* ---------- Atalhos em tons pastel ---------- */
.quick__icon {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ember-deep);
  border-radius: 20px;
}

.quick__item:nth-child(2) .quick__icon { background: var(--tint-peach); }
.quick__item:nth-child(3) .quick__icon { background: var(--tint-sand); }
.quick__item:nth-child(4) .quick__icon { background: var(--tint-rose); }

.quick__icon--ember {
  border: 0;
  color: #fff;
}

/* ---------- Cards leves ---------- */
.verse {
  background: linear-gradient(145deg, #fffaf5 0%, #fde9dc 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.mini-btn {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(61, 19, 9, 0.06);
}

.info-list,
.going,
.history,
.menu,
.stats,
.ag-card,
.cell-card,
.ticket,
.fin-sum,
.chart,
.bk,
.story,
.row-card,
.fund,
.badge {
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.fund {
  background: #fff;
}

.fund.is-on {
  background: linear-gradient(160deg, #fff, var(--tint-peach));
}

.chip {
  background: rgba(255, 255, 255, 0.85);
}

.seg {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}

.badge {
  background: rgba(255, 255, 255, 0.85);
}

.pill--warn {
  background: #fbefd9;
}

/* Agenda: data em tom pastel com borda branca */
.ag-tile {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Títulos de página: um pouco mais leves e grandes, como a referência */
.page-title {
  font-size: 32px;
}

/* ==========================================================================
   Tipografia v3 — na pegada da referência (Veilo):
   sans geométrica limpa (Manrope) + destaque em serifa itálica (Instrument Serif)
   ========================================================================== */
:root {
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Manrope', system-ui, sans-serif;
  --accent: 'Instrument Serif', Georgia, serif;
}

body {
  font-size: 14.5px;
}

/* palavra de destaque: serifa itálica, como "fully invisible" */
.page-title em,
.section__title em,
.greet__name em,
.sheet__title em,
.cal__title span,
.give-hero .page-title em {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section__title em,
.page-title em {
  font-size: 1.12em;
}

/* escala mais contida */
.page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.section__title { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.hero__title { font-size: 26px; font-weight: 700; }
.detail-hero__title { font-size: 26px; }
.give-top__title { font-size: 22px; font-weight: 700; }
.ev-card__title { font-size: 15.5px; font-weight: 700; }
.ag-title, .ag-card .ag-title { font-size: 14.5px; font-weight: 700; }
.row-card__title { font-size: 14.5px; font-weight: 700; }
.cell-card__name { font-size: 16px; font-weight: 700; }
.ticket__title { font-size: 17px; font-weight: 700; }
.profile__name { font-size: 21px; font-weight: 700; }
.fin-sum__value { font-size: 34px; font-weight: 300; }
.sheet__title { font-size: 21px; font-weight: 700; }
.cal__title { font-size: 16px; font-weight: 700; }
.month-label { font-size: 15px; font-weight: 700; }
.verse__text { font-size: 18px; font-weight: 400; }
.story__q { font-size: 15.5px; }
.quick__item { font-size: 11px; font-weight: 600; }
.countdown__n { font-weight: 500; }

/* Cabeçalho "Olá, nome" */
.app-header--hello {
  grid-template-columns: 1fr auto;
  padding: var(--safe-top) 16px 0;
}

.hdr-hello {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hdr-hello img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, var(--shadow-sm);
  flex: none;
}

.hdr-hello span {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.hdr-hello small {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.hdr-hello strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header--hello .hdr-btn {
  width: 38px;
  height: 38px;
  justify-self: end;
}

/* Rodapé: logotipo na aba Início */
.tab__logo {
  height: 22px;
  width: auto;
  display: block;
}

/* Notificações — versão limpa */
.drawer__head {
  align-items: center;
  padding: calc(var(--safe-top) + 20px) 18px 2px 20px;
}

.drawer__readall {
  margin: 4px 20px 6px;
}

.drawer__scroll {
  padding: 4px 0 calc(24px + var(--safe-bottom));
}

.ntf2 {
  position: relative;
  overflow: hidden;
}

.ntf2 + .ntf2 {
  border-top: 1px solid var(--line-2);
}

.ntf2__under {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 22px;
  background: var(--flame);
  color: #fff;
}

.ntf2__row {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  background: var(--paper);
  touch-action: pan-y;
}

.ntf2__dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  flex: none;
  background: transparent;
}

.ntf2__row.is-unread .ntf2__dot {
  background: var(--ember);
}

.ntf2__text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ntf2__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ntf2__top strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ntf2__row:not(.is-unread) .ntf2__top strong {
  font-weight: 500;
  color: var(--ink-2);
}

.ntf2__top time {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: none;
}

.ntf2__body {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer__clear {
  display: block;
  margin: 14px auto 0;
  color: var(--ink-3);
}

.drawer__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 50px 0;
  color: var(--ink-3);
}

/* Agenda — lista limpa, sem cards */
.ag-stack {
  gap: 0;
}

.ag-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
}

.ag-card + .ag-card {
  border-top: 1px solid var(--line-2);
}

.ag-tile {
  width: 46px;
  height: 50px;
  border-radius: 14px;
}

.ag-tile b {
  font-size: 20px;
}

.ag-tile span {
  font-size: 10.5px;
}

.ag-cta {
  height: 28px;
  padding: 0 11px;
  font-size: 11.5px;
  background: var(--ink-btn);
  box-shadow: none;
}

/* Ofertar — card dividido: valor à esquerda, sugestões à direita */
.give-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 18px 18px;
}

.give-split__amount {
  text-align: left;
  min-width: 0;
}

.give-split .amount__label {
  font-size: 12px;
}

.give-split .amount__v {
  justify-content: flex-start;
  font-size: 44px;
  margin-top: 2px;
}

.give-split__presets {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 5px;
}

.give-split .preset {
  height: 28px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}

.give-split .preset--wide {
  grid-column: 1 / -1;
  font-size: 11px;
}

/* Destino: segmentado premium */
.fund-seg {
  display: flex;
  margin: 16px var(--gutter) 0;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(10px);
}

.fund-seg button {
  position: relative;
  flex: 1;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  isolation: isolate;
  transition: color 0.2s;
}

.fund-seg button.is-on {
  color: var(--ink);
  font-weight: 700;
}

.fund-seg button.is-on svg {
  color: var(--ember);
}

.fund-seg__thumb {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(61, 19, 9, 0.08), 0 6px 14px -8px rgba(61, 19, 9, 0.35);
}

/* Botão Ofertar como antes (brasa) */
.btn--ember {
  background: linear-gradient(180deg, var(--ember-2), var(--ember) 55%, var(--ember-deep));
  color: #fff;
  box-shadow: var(--shadow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Etiquetas menores, com ícone e tom próprio */
.detail-hero .pill {
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.badges {
  gap: 6px;
}

.badge {
  height: 26px;
  padding: 0 10px 0 8px;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  border: 0;
  box-shadow: none;
}

.badge--t0 { background: #fde3d4; color: #9a3412; }
.badge--t1 { background: #f5ebd9; color: #7c5a12; }
.badge--t2 { background: #f9dcd5; color: #9f1d1d; }
.badge--t3 { background: #e5efe1; color: #2f6b3a; }
.badge--t4 { background: #e3ecf7; color: #2a5a8f; }
.badge--t5 { background: #eee5f5; color: #6b3d8f; }
.badge svg { color: currentColor; }

.fund-seg button { font-size: 12.5px; gap: 5px; padding: 0 4px; white-space: nowrap; }
.fund-seg button svg { width: 14px; height: 14px; flex: none; }

.tab__logo { height: 30px; }
.tab.is-on:has(.tab__logo) { padding: 0 16px; }

/* Rodapé de vidro: o conteúdo passa por trás e aparece desfocado dentro da barra */
.tabbar {
  background: rgba(31, 14, 9, 0.62);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    0 20px 40px -18px rgba(25, 7, 4, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tab-fade {
  display: none;
}

/* bolinha presa ao ícone (sem deslizar ao trocar de aba) */
.tab__ic {
  position: relative;
}

.tab__ic .tab__dot {
  top: -3px;
  right: -4px;
  width: 9px;
  height: 9px;
  transition: none;
}

.tab__ic .tab__dot { border: 0; width: 8px; height: 8px; }

/* Início: chama → logotipo com transição suave */
.tab__brand {
  position: relative;
  display: block;
  height: 30px;
  overflow: hidden;
}

.tab__brand .tab__flame-img {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -11px;
  width: 17px;
}

.tab__brand .tab__logo {
  position: absolute;
  left: 0;
  top: 0;
  height: 30px;
  width: auto;
  max-width: none;
}

.tab:has(.tab__brand) {
  transition: padding 0.3s var(--ease);
}

.page-sub {
  padding: 0 var(--gutter);
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tab__brand .tab__flame-img { width: auto; height: 24px; top: 3px; margin-top: 0; }

.ag-card .ag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}

.ag-card .ag-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ag-card .ag-meta svg {
  color: var(--c);
  flex: none;
}

/* ==========================================================================
   Vidro fosco (estilo Apple) para tudo que fica sobre foto/fundo escuro
   ========================================================================== */
.pill--glass,
.countdown__cell,
.preset,
.icon-btn--glass,
.btn--glass,
.cal--dark .mini-btn,
.ev-card__badge .pill,
.detail-hero .pill,
.give-top .pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 6px 16px -10px rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* selecionado continua sólido e claro */
.preset.is-on {
  background: #fff;
  color: var(--ember-deep);
  border-color: #fff;
}

.pill--glass,
.countdown__cell,
.preset:not(.is-on),
.icon-btn--glass,
.btn--glass,
.cal--dark .mini-btn,
.ev-card__badge .pill,
.detail-hero .pill,
.give-top .pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(18px) saturate(115%) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(115%) brightness(1.08);
}

/* Eventos — grade de cards verticais (2 por linha) */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--gutter);
  margin-top: 18px;
}

.ev-grid .empty {
  grid-column: 1 / -1;
  margin: 10px 0;
}

.ev-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ev-tile__img {
  position: relative;
  aspect-ratio: 1 / 1.05;
  margin: 6px 6px 0;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.ev-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-tile__date {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.ev-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}

.ev-tile__kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember);
}

.ev-tile__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-tile__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ev-tile__price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.ev-tile__price.is-free {
  color: var(--ok);
}

/* Abas de Eventos: ativa preenchida em escuro, com ícone e contador */
.seg--strong {
  padding: 5px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.seg--strong button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-3);
}

.seg--strong button.is-on {
  color: #fff;
}

.seg--strong .seg__bg {
  background: var(--ink-btn);
  box-shadow: 0 8px 18px -10px rgba(31, 14, 9, 0.8);
}

.seg__count {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--sand);
  color: var(--ink-2);
}

.seg--strong button.is-on .seg__count {
  background: var(--ember);
  color: #fff;
}

/* Células: infos do card mais compactas */
.cell-card__body { padding: 12px 14px 14px; }
.cell-card__name { font-size: 15px; }
.cell-card__meta { gap: 3px 12px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.cell-card__meta svg { width: 12px; height: 12px; color: var(--ember); }
.cell-card__foot { margin-top: 12px; }
.cell-card__foot .link { font-size: 12px; }
.cell-card__foot .btn--sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.cell-card__img { height: 130px; }

/* Eventos: foto de ponta a ponta no card, metade da altura */
.ev-tile__img {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 2 / 1.05;
}

.seg--strong button { font-size: 12px; gap: 5px; height: 38px; }
.seg--strong button svg { width: 14px; height: 14px; }
.seg__count { min-width: 17px; height: 17px; font-size: 10px; padding: 0 5px; }

.ev-tile__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ev-tile__foot .ev-tile__price {
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}

.ev-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 8px 0 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-2);
  white-space: nowrap;
}

.ev-tile__foot .ev-tile__price { white-space: nowrap; }

.ag-card .ag-meta svg { color: var(--ink-3); width: 11px; height: 11px; }
.ag-card .ag-meta { gap: 2px 10px; }
.ag-card .ag-meta span { gap: 4px; }

/* Etiqueta do ministério no card de destaque */
.hero__ministry {
  align-self: flex-start;
  height: 24px;
  padding: 0 10px 0 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.hero__ministry img {
  height: 13px;
  width: auto;
}

/* Nossos cultos: coluna do horário com largura fixa */
.schedule__time {
  width: 84px;
  min-width: 84px;
  flex: none;
}

/* Abas de Eventos no mesmo estilo do seletor Dízimo/Oferta/Construção */
.fund-seg--tabs {
  margin-top: 16px;
}

.fund-seg--tabs .seg__count {
  background: var(--sand);
  color: var(--ink-3);
}

.fund-seg--tabs button.is-on .seg__count {
  background: var(--ember);
  color: #fff;
}

/* Ofertar: topo centralizado, etiqueta menor, sem palavra viúva */
.give-top__content {
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.give-top .pill {
  height: 24px;
  padding: 0 10px 0 8px;
  font-size: 11px;
  gap: 5px;
}

.give-top .pill svg {
  width: 12px;
  height: 12px;
}

.give-top__title {
  text-wrap: balance;
  max-width: 300px;
}

/* Card de evento: camadas com ordem fixa (foto < desfoque < escurecido < conteúdo) */
.ev-card::before {
  display: none;
}

.ev-card img.ev-card__img {
  z-index: 0;
}

.ev-card__blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
}

.ev-card__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 7, 4, 0) 35%, rgba(25, 7, 4, 0.55) 70%, rgba(25, 7, 4, 0.88) 100%);
}

.ev-card__kicker,
.ev-card__title,
.ev-card__foot {
  position: relative;
  z-index: 3;
}

.ev-card > .date-chip,
.ev-card > .ev-card__badge {
  z-index: 3;
}

/* desfoque sem backdrop-filter: cópia da foto desfocada, só na parte de baixo */
.ev-card img.ev-card__blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.12);
  -webkit-mask-image: linear-gradient(to top, #000 32%, transparent 62%);
  mask-image: linear-gradient(to top, #000 32%, transparent 62%);
  pointer-events: none;
}

.tab, .tab.is-on { font-weight: 500; }
.tab__label { font-weight: 500; }

/* Rodapé: sem saltos de layout — mesmo padding sempre; o espaço do nome é animado */
.tab,
.tab.is-on {
  gap: 0;
  padding: 0 15px;
  transition: color 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.tab__label {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.tab__label-in {
  display: inline-block;
  padding-left: 8px;
}

/* Card de evento: camadas sempre promovidas (sem reorganizar no toque/arraste) */
.rail > div {
  will-change: transform;
}

.ev-card {
  transform: translateZ(0);
}

.ev-card img.ev-card__img,
.ev-card:active img.ev-card__img {
  transform: translateZ(0);
  transition: none;
  will-change: transform;
}

.ev-card img.ev-card__blur {
  transform: translateZ(0) scale(1.12);
  will-change: transform;
}

.ev-card__shade,
.ev-card__kicker,
.ev-card__title,
.ev-card__foot,
.ev-card > .date-chip,
.ev-card > .ev-card__badge {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.profile__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

/* Perfil: etiquetas em vidro claro */
.profile__badges .badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px -10px rgba(61, 19, 9, 0.35);
  color: var(--ink-2);
}

.profile__badges .badge svg {
  color: var(--ember);
}

/* Eventos: os mesmos cards da Home, 2 por linha */
.ev-grid .ev-card {
  width: 100%;
  height: 232px;
  padding: 12px;
}

.ev-grid .ev-card__title {
  font-size: 14.5px;
}

.ev-grid .ev-card__kicker {
  font-size: 10.5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-grid .ev-card__foot {
  font-size: 11px;
}

.ev-grid .ev-card__foot .faces img {
  width: 20px;
  height: 20px;
}

.ev-grid .date-chip {
  top: 10px;
  left: 10px;
}

.ev-grid .ev-card__badge {
  top: 10px;
  right: 10px;
}

.ev-grid .ev-card__badge .pill {
  height: 24px;
  padding: 0 8px;
  font-size: 10.5px;
}

/* Plano de leitura */
.plan-img {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.plan-img img {
  width: 100%;
  height: auto;
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}


.ev-grid .ev-card__foot .faces img { display: none; }
.ev-grid .ev-card__foot span { white-space: nowrap; }

/* Ingresso: titular ocupa a linha inteira */
.ticket__holder {
  grid-column: 1 / -1;
}

.ticket__holder strong {
  font-size: 15px;
}

/* Baixar aplicativo */
.menu__ic--ember {
  background: linear-gradient(160deg, var(--ember-2), var(--ember-deep));
  color: #fff;
}

.install-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.install-hero img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.install-hero strong {
  display: block;
  font-size: 15px;
}

.install-hero small {
  font-size: 12.5px;
  color: var(--ink-3);
}

.install-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  font-size: 13.5px;
}

.install-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.install-steps__n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, var(--ember-2), var(--ember-deep));
}

.install-steps strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.install-steps strong svg {
  color: var(--ember);
}

.install-steps small {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Evento: dia e local na mesma linha quando couber */
.detail-hero__meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px 14px;
}

.detail-hero__meta span {
  white-space: nowrap;
}

/* Evento: informações sobre a foto centralizadas */
.detail-hero__content {
  text-align: center;
}

.detail-hero__content > div > div:first-child {
  justify-content: center;
}

.detail-hero__meta {
  justify-content: center;
}

/* Desktop (até a versão responsiva completa): app em cartão arredondado, sem encostar nas bordas */
@media (min-width: 560px) and (min-height: 600px) {
  .stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 28px 0;
  }
  .device {
    max-width: 430px;
    height: calc(100dvh - 56px);
    max-height: 940px;
    border-radius: 28px;
    box-shadow:
      0 40px 90px -20px rgba(0, 0, 0, 0.85),
      0 12px 30px -10px rgba(0, 0, 0, 0.6);
  }
}

/* Recorte da foto de perfil */
.crop {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(14px + var(--safe-top)) 22px calc(22px + var(--safe-bottom));
  background: #120604;
  color: #fff;
}
.crop__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}
.crop__link {
  width: 64px;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 15px;
}
.crop__frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: auto 0 0;
  overflow: hidden;
  border-radius: 24px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop__frame:active { cursor: grabbing; }
.crop__frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  pointer-events: none;
}
.crop__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  /* escurece fora do círculo: mostra como a foto vai ficar no perfil */
  background: radial-gradient(circle closest-side, transparent 99%, rgba(18, 6, 4, 0.62) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.crop__hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.crop__zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 340px);
  margin: 18px 0 auto;
  color: rgba(255, 255, 255, 0.75);
}
.crop__zoom input { flex: 1; accent-color: var(--ember); }
.crop__ok { width: min(100%, 340px); }

.pn-boot { min-height: 100dvh; background: #190704; }
