:root {
  --pink: #ec0978;
  --pink-600: #d0086c;
  --pink-50: #fff4fa;
  --ink: #0f172a;
  --sky: #f8fafc;
  --footer: #1e2433;
  --muted: #6b7280;
  --radius: 16px;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0 }
html { height: 100% }
body {
  min-height: 100%;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
  color: #111827;
  background: var(--footer);
  -webkit-font-smoothing: antialiased;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--pink);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px }
.brand img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1) }
.avatar { display: flex; align-items: center; gap: 8px }
.badge {
  height: 36px; width: 36px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(255,255,255,.2); color: white;
  font-weight: 700; font-size: .85rem;
}
.user-info { text-align: right; line-height: 1.3 }
.user-name { color: #fff; font-weight: 600; font-size: .85rem; white-space: nowrap }
.user-cpf-header { color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .03em }

/* ===== Hero ===== */
.hero {
  flex: 1;
  padding: 24px 16px 40px;
  background:
    radial-gradient(ellipse 900px 500px at 65% -5%, rgba(236,9,120,.07) 0, transparent 70%),
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(236,9,120,.04) 0, transparent 70%),
    #f9fafb;
}
.shell { max-width: 540px; margin: 0 auto; display: grid; gap: 20px }

/* ===== Card ===== */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 32px rgba(236,9,120,.06);
  overflow: hidden;
  transition: box-shadow .3s;
}
.card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 12px 40px rgba(236,9,120,.1);
}
.card-head {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  background: linear-gradient(180deg, #fff 0%, #fffafd 100%);
}
.card-title { font-weight: 700; color: #111827; font-size: .95rem }
.card-body { padding: 20px }

/* Status dot */
.status-dot {
  height: 10px; width: 10px; border-radius: 999px;
  background: #22c55e; position: relative; flex-shrink: 0;
}
.status-dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 999px; background: #22c55e; opacity: .4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .4 }
  50% { transform: scale(1.6); opacity: 0 }
}

/* ===== Guia de Pagamento (documento) ===== */
.guia {
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(30,58,95,.015) 39px,
      rgba(30,58,95,.015) 40px
    ),
    linear-gradient(180deg, #fcfdff 0%, #fff 100%);
  font-size: .82rem;
  position: relative;
}
.guia::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #1e3a5f, #162d4a, #2a4d6e, #1e3a5f);
  z-index: 1;
}

/* Topo institucional */
.guia-topo {
  background: linear-gradient(135deg, #1e3a5f, #162d4a);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guia-topo-left { display: flex; align-items: center; gap: 10px }
.guia-topo-left img { height: 28px; filter: brightness(0) invert(1) }
.guia-topo-left .doc-title {
  font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.guia-topo-right {
  text-align: right; font-size: .7rem;
  line-height: 1.4; opacity: .85;
}

/* Faixa do acordo */
.guia-acordo-bar {
  background: #f1f5f9;
  border-bottom: 1.5px solid #cbd5e1;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.guia-acordo-num {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  letter-spacing: .05em;
}
.guia-acordo-status {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.guia-acordo-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* Seções */
.guia-section {
  padding: 14px 18px 10px;
  border-bottom: 1.5px solid #e2e8f0;
}
.guia-section:last-of-type { border-bottom: none }
.guia-section:nth-child(odd) {
  background: rgba(248,250,252,.6);
}
.guia-section-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1e3a5f;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(30,58,95,.1);
}

/* Grid de campos */
.guia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.guia-grid-3 { grid-template-columns: 1fr 1fr 1fr }
.guia-campo {
  padding: 8px 10px;
  border: .5px solid #e8ecf1;
  min-height: 48px;
  background: rgba(255,255,255,.7);
}
.guia-campo:nth-child(even) {
  background: rgba(248,250,252,.8);
}
.guia-campo-full { grid-column: 1 / -1 }
.guia-campo-label {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-bottom: 2px;
}
.guia-campo-value {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* Financeiro */
.guia-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #eef1f5;
  font-size: .8rem;
}
.guia-fin-row:last-child { border-bottom: none }
.guia-fin-row:nth-child(even) { background: rgba(248,250,252,.5) }
.guia-fin-label { color: #64748b; font-weight: 500 }
.guia-fin-value { color: var(--ink); font-weight: 600 }
.guia-fin-desconto { color: #059669; font-weight: 700 }

/* Linha de recorte */
.guia-recorte {
  border: none;
  border-top: 1.5px dashed #94a3b8;
  margin: 0;
  position: relative;
}
.guia-recorte::before {
  content: "\2702";
  position: absolute;
  top: -10px; left: 12px;
  font-size: .85rem;
  color: #94a3b8;
  background: #fff;
  padding: 0 4px;
}

/* Valor total destaque */
.guia-total-box {
  background: linear-gradient(135deg, #eef3f9, #e8eef6);
  border: 1.5px solid rgba(30,58,95,.15);
  margin: 10px;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guia-total-label {
  font-weight: 700;
  font-size: .9rem;
  color: #1e3a5f;
}
.guia-total-value {
  font-weight: 900;
  font-size: 1.35rem;
  color: #1e3a5f;
  letter-spacing: -.02em;
}

/* Rodapé da guia */
.guia-rodape {
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.guia-rodape-info {
  font-size: .68rem;
  color: #94a3b8;
  line-height: 1.5;
}
.guia-selo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  background: #fff;
}
.guia-selo svg { flex-shrink: 0 }

/* Código de controle */
.guia-barcode {
  text-align: center;
  padding: 10px 18px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.guia-barcode-lines {
  display: flex;
  justify-content: center;
  gap: 1.5px;
  margin-bottom: 4px;
}
.guia-barcode-lines span {
  display: block;
  width: 2px;
  height: 28px;
  background: var(--ink);
  opacity: .7;
}
.guia-barcode-lines span.thin { width: 1px }
.guia-barcode-lines span.gap { width: 4px; background: transparent }
.guia-barcode-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: .68rem;
  color: #64748b;
  letter-spacing: .1em;
}

/* ===== Button ===== */
.btn {
  display: block; width: 100%;
  padding: 14px;
  border: none; border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: scale(.98) }
.btn-pink {
  background: var(--pink);
  box-shadow: 0 4px 14px rgba(236,9,120,.3);
}
.btn-pink:hover { background: var(--pink-600); box-shadow: 0 6px 20px rgba(236,9,120,.35) }

.btn-green {
  background: #22c55e;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
}
.btn-green:hover { background: #16a34a; box-shadow: 0 6px 20px rgba(34,197,94,.35) }

.btn-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.btn-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--muted); font-weight: 500;
}
.btn-secure svg { flex-shrink: 0 }

/* ===== Reviews / Provas Sociais ===== */
.reviews-title {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  text-align: center; margin-bottom: 14px;
}
.review {
  display: flex; gap: 14px;
  padding: 18px 0;
  border-bottom: 1.5px solid #e2e8f0;
}
.review:last-child { border-bottom: none }
.review:first-child { padding-top: 6px }

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.review-content { flex: 1; min-width: 0 }
.review-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.review-name { font-weight: 700; font-size: .85rem; color: var(--ink) }
.review-name-lg { font-weight: 800; font-size: 1rem; color: var(--ink) }
.review-avatar-square { border-radius: 8px }
.review-stars { display: flex; gap: 1px }
.review-stars svg { width: 14px; height: 14px }
.review-text { font-size: .8rem; color: #4b5563; line-height: 1.5 }
.review-date { font-size: .7rem; color: #9ca3af; margin-top: 4px }

/* ===== Footer ===== */
footer {
  background: var(--footer);
  color: #94a3b8;
  font-size: .8rem;
}
.foot {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.foot-logo { height: 20px; width: auto; opacity: .7 }
.foot-sep { opacity: .4 }
.foot a { color: #cbd5e1; text-decoration: none; transition: color .2s }
.foot a:hover { color: #fff }

/* ===== Notificações FOMO ===== */
.fomo {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 12px 16px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  pointer-events: none;
}
.fomo.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.fomo-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
}
.fomo-svg-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fomo-svg-icon svg { width: 18px; height: 18px }
.fomo-text {
  font-size: .8rem;
  color: #374151;
  line-height: 1.4;
}
.fomo-text strong { color: var(--ink); font-weight: 700 }
.fomo-time {
  font-size: .65rem;
  color: #9ca3af;
  margin-top: 2px;
}
.fomo-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: #9ca3af; font-size: .75rem;
  cursor: pointer; line-height: 1;
  padding: 2px;
}
.fomo-close:hover { color: #6b7280 }

@media (max-width: 580px) {
  .fomo {
    left: 10px; right: 10px; bottom: 12px;
    max-width: none;
  }
  .hero { padding: 16px 10px 32px }
  .card-body { padding: 16px }
  .guia-row { font-size: .8rem }
  .guia-row-total .guia-value { font-size: 1.05rem }
}
