/* ==============================================
   ESPÓLIO DE WILSON ALEXANDRE — PASSIVO TRIBUTÁRIO
   CSS Principal — Mobile First
   ============================================== */

:root {
  --blue:        #2563eb;
  --blue-soft:   #eff6ff;
  --blue-mid:    #bfdbfe;
  --green:       #059669;
  --green-soft:  #ecfdf5;
  --green-mid:   #a7f3d0;
  --amber:       #b45309;
  --amber-soft:  #fffbeb;
  --amber-mid:   #fcd34d;
  --red:         #dc2626;
  --red-soft:    #fef2f2;
  --red-mid:     #fecaca;
  --gray:        #4b5563;
  --gray-soft:   #f3f4f6;
  --gray-mid:    #d1d5db;
  --text:        #0f172a;
  --muted:       #475569;
  --muted2:      #64748b;
  --line:        #e2e8f0;
  --bg:          #f8fafc;
  --card:        #ffffff;
  --shadow-sm:   0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow:      0 4px 20px rgba(15,23,42,.09), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg:   0 12px 40px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.06);
  --radius:      18px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --transition:  all .2s cubic-bezier(.4,0,.2,1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max:         1080px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, iframe { display: block; }
strong { font-weight: 700; }

/* ---- CONTAINER ---- */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ---- SPACING HELPERS ---- */
.mt-16  { margin-top: 16px; }
.mt-20  { margin-top: 20px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }

/* ==============================================
   TOPBAR
   ============================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 10px 0;
}
.brand-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--muted2);
  margin-top: 3px;
}

/* Desktop nav */
.topnav {
  display: none;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topnav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
  white-space: nowrap;
}
.topnav a:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }

/* Hamburger */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.menu-btn:hover { background: var(--gray-soft); }
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 199;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  animation: slideDown .2s ease;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .topnav { display: flex; }
}

/* ==============================================
   HERO
   ============================================== */
.hero { padding: 28px 0 18px; }
.hero-card {
  border-radius: 26px;
  padding: 32px 24px 28px;
  background:
    radial-gradient(ellipse at top left, rgba(96,165,250,.35), transparent 40%),
    radial-gradient(ellipse at top right, rgba(52,211,153,.22), transparent 40%),
    linear-gradient(155deg, #0f172a 0%, #111827 45%, #1a2744 100%);
  color: white;
  box-shadow: 0 20px 60px rgba(15,23,42,.28);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5v-4h-4v4h4zm-4-4h-4v4h4v-4zm0-4H8v4h4v-4zm-4-4H2v4h4v-4zm16 0h-4v4h4v-4zm-4-4h-4v4h4v-4zm-4 4h-4v4h4v-4zm4 0h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 {
  font-size: clamp(30px, 8vw, 56px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  position: relative;
}
.hero-accent {
  background: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  margin-bottom: 26px;
  position: relative;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.hstat {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hstat:last-child { border-bottom: none; }
.hstat-val {
  display: block;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hstat-val.green { color: #34d399; }
.hstat-val.amber { color: #fbbf24; }
.hstat-lbl { display: block; font-size: 12px; color: rgba(255,255,255,.62); margin-top: 3px; }
.hstat-divider { display: none; }

@media (min-width: 540px) {
  .hero-stats { flex-direction: row; }
  .hstat { flex: 1; border-bottom: none; border-right: 1px solid rgba(255,255,255,.08); }
  .hstat:last-child { border-right: none; }
}
@media (min-width: 768px) {
  .hero-card { padding: 48px 44px 40px; }
}

/* ==============================================
   ALERTA URGENTE
   ============================================== */
.alert-urgent {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--red-soft);
  border: 1px solid var(--red-mid);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.alert-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.alert-body strong {
  display: block;
  color: var(--red);
  font-size: 14px;
  margin-bottom: 5px;
}
.alert-body p {
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.55;
}

/* ==============================================
   SECTION BASE
   ============================================== */
.section { padding: 36px 0 12px; }
.section.alt { background: linear-gradient(180deg, transparent 0%, rgba(241,245,249,.6) 100%); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
  background: var(--gray-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p { font-size: 14px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ==============================================
   GLASS CARD
   ============================================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.card.glass {
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card-body { padding: 20px; }
@media (min-width: 640px) { .card-body { padding: 28px 32px; } }

/* ==============================================
   STAT CARDS
   ============================================== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .cards-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cards-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.card-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 16px 12px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-stat.green { border-color: var(--green-mid); background: var(--green-soft); }
.card-stat.amber { border-color: var(--amber-mid); background: var(--amber-soft); }
.card-stat.red   { border-color: var(--red-mid);   background: var(--red-soft);   }
.card-stat.gray  { border-color: var(--gray-mid);  background: var(--gray-soft);  }
.card-stat.mini.green { border-color: var(--green-mid); background: var(--green-soft); }
.card-stat.mini.amber { border-color: var(--amber-mid); background: var(--amber-soft); }
.card-stat.mini.red   { border-color: var(--red-mid);   background: var(--red-soft);   }
.card-stat.mini.blue  { border-color: var(--blue-mid);  background: var(--blue-soft);  }
.card-stat.mini.gray  { border-color: var(--gray-mid);  background: var(--gray-soft);  }
.cs-label { font-size: 11px; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.cs-value { font-size: clamp(17px, 4vw, 22px); font-weight: 800; color: var(--text); letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cs-value.sm { font-size: clamp(15px, 3.5vw, 19px); }
.cs-sub { font-size: 11px; color: var(--muted2); margin-top: 6px; }
.cs-bar { height: 3px; border-radius: 2px; margin: 12px -16px -12px; opacity: .3; }

/* ==============================================
   COMPOSIÇÃO BAR
   ============================================== */
.comp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 8px;
}
.comp-title { font-size: 14px; font-weight: 700; color: var(--text); }
.comp-total { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted2); }
.comp-bar-wrap { margin-bottom: 14px; }
.comp-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
}
.cb-seg { height: 100%; border-radius: 2px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.cb-seg.green { background: var(--green); }
.cb-seg.gray  { background: var(--gray);  }
.cb-seg.red   { background: var(--red);   }
.cb-seg.amber { background: var(--amber); }
.cb-seg.blue  { background: var(--blue);  }
.comp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cl-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dot.green { background: var(--green); }
.dot.gray  { background: var(--gray);  }
.dot.red   { background: var(--red);   }
.dot.amber { background: var(--amber); }
.dot.blue  { background: var(--blue);  }

/* ==============================================
   TABLES
   ============================================== */
.table-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.dtable { width: 100%; border-collapse: collapse; min-width: 460px; }
.dtable th {
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted2);
  background: var(--gray-soft);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.dtable td {
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dtable tr:last-child td { border-bottom: none; }
.dtable .r { text-align: right; }
.dtable .mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.td-main { font-weight: 600; font-size: 13px; }
.td-sub  { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.subtotal-row td { background: var(--gray-soft); font-size: 13px; }
.total-row td { background: #f1f5f9; }

/* Color helpers */
.green-t { color: var(--green); }
.amber-t { color: var(--amber); }
.red-t   { color: var(--red);   }
.blue-t  { color: var(--blue);  }
.gray-t  { color: var(--muted2); }

/* ==============================================
   IMÓVEL SECTIONS
   ============================================== */
.imovel-section { padding: 40px 0; }
.imovel-section.alt { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.imovel-header { margin-bottom: 24px; }
.imovel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.imovel-badge.blue  { background: var(--blue-soft);  color: #1d4ed8; border: 1px solid var(--blue-mid);  }
.imovel-badge.green { background: var(--green-soft); color: #047857; border: 1px solid var(--green-mid); }
.imovel-header h2 { font-size: clamp(20px, 5vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.imovel-insc { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ==============================================
   PARCELAMENTO CARDS
   ============================================== */
.parc-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gray);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.parc-card.green { border-left-color: var(--green); }
.parc-card.amber { border-left-color: var(--amber); }
.parc-card.red   { border-left-color: var(--red);   }
.parc-card.gray  { border-left-color: var(--gray);  }
.parc-card.blue  { border-left-color: var(--blue);  }

.parc-card-header {
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .parc-card-header { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

.parc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  width: fit-content;
}
.parc-badge.green { background: var(--green-soft); color: #047857; border: 1px solid var(--green-mid); }
.parc-badge.amber { background: var(--amber-soft); color: #92400e; border: 1px solid var(--amber-mid); }
.parc-badge.red   { background: var(--red-soft);   color: #991b1b; border: 1px solid var(--red-mid);   }
.parc-badge.gray  { background: var(--gray-soft);  color: #374151; border: 1px solid var(--gray-mid);  }
.parc-badge.blue  { background: var(--blue-soft);  color: #1d4ed8; border: 1px solid var(--blue-mid);  }

.parc-info h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.parc-info p  { font-size: 13px; color: var(--muted); }

.parc-totals { display: flex; gap: 20px; flex-shrink: 0; }
.pt-item { display: flex; flex-direction: column; gap: 3px; }
.pt-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted2); }
.pt-val { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }

.parc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.parc-comprov {
  padding: 14px 20px;
  background: var(--green-soft);
  border-top: 1px solid var(--green-mid);
}
.btn-comprov {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
  transition: var(--transition);
}
.btn-comprov:hover { color: var(--green); text-decoration: underline; }

/* ==============================================
   INFO NOTE
   ============================================== */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.info-note svg { flex-shrink: 0; margin-top: 2px; }
.info-note.gray { background: var(--gray-soft); color: #374151; border: 1px solid var(--gray-mid); }
.info-note.red  { background: var(--red-soft);  color: #991b1b; border: 1px solid var(--red-mid); margin: 0 20px 16px; }
.info-note.blue { background: var(--blue-soft); color: #1e40af; border: 1px solid var(--blue-mid); }
.info-note.blue.mb-16 { margin-bottom: 16px; }

/* ==============================================
   BADGE (inline)
   ============================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: #047857; }
.badge.amber { background: var(--amber-soft); color: #92400e; }
.badge.red   { background: var(--red-soft);   color: #991b1b; }
.badge.blue  { background: var(--blue-soft);  color: #1e40af; }
.badge.gray  { background: var(--gray-soft);  color: #374151; }

/* ==============================================
   COMPROVANTES SECTION
   ============================================== */
.comprov-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.comprov-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}
.comprov-header h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 6px 0 4px; }
.comprov-header p  { font-size: 13px; color: var(--muted); }

.pdf-viewer-wrap { position: relative; }
.pdf-viewer {
  width: 100%;
  height: 480px;
  border: none;
}
@media (min-width: 768px) { .pdf-viewer { height: 640px; } }

/* Fallback para quando o iframe não funcionar */
.pdf-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.pdf-fallback p { font-size: 14px; }

.comprov-download {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--gray-soft);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--blue);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }

/* ==============================================
   PENDÊNCIAS
   ============================================== */
.pend-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pend-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pend-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.pend-number.red   { background: var(--red-soft);   color: var(--red);   border: 2px solid var(--red-mid); }
.pend-number.amber { background: var(--amber-soft); color: var(--amber); border: 2px solid var(--amber-mid); }
.pend-number.blue  { background: var(--blue-soft);  color: var(--blue);  border: 2px solid var(--blue-mid); }
.pend-number.green { background: var(--green-soft); color: var(--green); border: 2px solid var(--green-mid); }
.pend-number.gray  { background: var(--gray-soft);  color: var(--gray);  border: 2px solid var(--gray-mid); }
.pend-body { flex: 1; }
.pend-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
}
.pend-badge.red   { background: var(--red-soft);   color: var(--red);   }
.pend-badge.amber { background: var(--amber-soft); color: var(--amber); }
.pend-badge.blue  { background: var(--blue-soft);  color: var(--blue);  }
.pend-badge.green { background: var(--green-soft); color: var(--green); }
.pend-badge.gray  { background: var(--gray-soft);  color: var(--gray);  }
.pend-body h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.pend-body p  { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.pend-meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 28px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand strong { display: block; color: white; font-size: 14px; margin-bottom: 4px; }
.footer-brand span   { font-size: 12px; }
.footer-info { font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dot-sep { color: rgba(255,255,255,.3); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ==============================================
   SCROLL PROGRESS BAR
   ============================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ==============================================
   COMPROVANTES — IMAGEM INLINE
   ============================================== */
.comprov-img-wrap {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 20px 28px;
}
.comprov-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  /* garante que a img carregue mesmo com referrer policy restrito */
  background: white;
}

/* Lightbox ao clicar na imagem */
.comprov-img {
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.comprov-img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Overlay lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, .92);
  z-index: 500;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox-overlay.open {
  display: flex;
  animation: lb-in .2s ease;
}
.lightbox-overlay img {
  max-width: min(860px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {
  .topbar, .progress-bar { position: static; }
  .menu-btn, .topnav { display: none; }
  .hero-card { background: #0f172a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-viewer { height: 200px; }
  .parc-card, .pend-card, .comprov-wrap { break-inside: avoid; }
}
