:root {
  --primary: #0044cc;
  --secondary: #ffd700;
  --accent: #2eb85c;
  --neon: #7cf5a3;
  --deep: #001f5b;
  --bg-light: #f7f9fc;
  --text-dark: #1a202c;
  --muted: #4a5568;
  --card: #ffffff;
  --border: #d9e4f5;
  --shadow-soft: 0 14px 40px rgba(0, 68, 204, 0.08);
  --shadow-strong: 0 30px 60px rgba(0, 68, 204, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(120deg, #ffffff 0%, #f7f9ff 55%, #ffffff 100%) !important;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(255, 215, 0, 0.25);
}

.shell {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 68, 204, 0.06);
  box-shadow: 0 12px 30px rgba(0, 68, 204, 0.08);
  z-index: 9999;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: conic-gradient(from 30deg, #0044cc, #2eb85c, #ffd700, #0044cc);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-soft);
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 14px;
  background: #fff;
  padding: 4px 6px;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
}

.footer-mark {
  box-shadow: none;
  background: conic-gradient(from 45deg, #2eb85c, #0044cc, #ffd700, #2eb85c);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: #0a63ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.brand-subtitle {
  font-size: 13px;
  color: #2b5fa5;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.18s ease;
}

.main-nav a:hover {
  background: rgba(0, 68, 204, 0.08);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header:not(.site-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--primary);
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0044cc, #2eb85c);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 68, 204, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 70%;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav.mobile {
  position: absolute;
  top: 70px;
  right: 16px;
  background: rgba(0, 31, 91, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  min-width: 220px;
}

.main-nav.mobile.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(120deg, #ffd700, #f5a300);
  color: #1a1a1a;
  box-shadow: 0 18px 38px rgba(245, 163, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(245, 163, 0, 0.42);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(0, 68, 204, 0.06);
  color: var(--primary);
  border-color: rgba(0, 68, 204, 0.1);
}

.btn-ghost:hover {
  background: rgba(0, 68, 204, 0.12);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.45);
}

/* Typography helpers */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 6px;
}

.lead {
  font-size: 18px;
  color: #dce6ff;
  margin: 10px 0 20px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 8px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.pill.highlight {
  background: rgba(46, 184, 92, 0.16);
  border-color: rgba(46, 184, 92, 0.24);
}

.subtle-pill {
  background: rgba(0, 68, 204, 0.05);
  border-color: rgba(0, 68, 204, 0.1);
  color: var(--muted);
}

.dot-online {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  box-shadow: 0 0 0 6px rgba(46, 184, 92, 0.15);
}

/* Hero */
.hero {
  padding: 110px 0 70px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 10%, #0044cc 0%, #001f5b 42%, #000c2e 100%);
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.24), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  margin: 12px 0 10px;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -1px;
}

.hero-copy h1 .accent {
  color: var(--secondary);
}

.hero .eyebrow {
  color: #aebbff;
}

.hero .map-description {
  color: rgba(255, 255, 255, 0.8);
}

.hero .map-footnote {
  color: #cbd5e1;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.support-note {
  color: #e6ecff;
  font-weight: 700;
  margin-top: 6px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.metric-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
}

.metric-label {
  display: block;
  color: #e3ebff;
  font-weight: 700;
  margin-top: 4px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}

.hero-map {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 20, 60, 0.35);
  backdrop-filter: blur(14px);
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.map-description {
  margin: 4px 0 0;
  color: var(--muted);
}

.state-pill {
  background: rgba(0, 68, 204, 0.08);
  border-color: rgba(0, 68, 204, 0.14);
}

.panel.full-map {
  margin: 4px 0 8px;
}

.map-shell {
  position: relative;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  border: none;
}

#map {
  width: 100%;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent !important;
}

.leaflet-container {
  background: transparent !important;
}

.leaflet-pane path {
  transition: all 0.18s ease;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.full-map #map {
  height: 70vh;
  min-height: 460px;
}

.map-footnote {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

/* Tooltip de estados do mapa */
.state-tooltip {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  font-family: 'Manrope', sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  padding: 0;
}

.state-label-neon {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #7cf5a3;
  font-weight: 800;
  font-size: 11px;
  font-family: 'Manrope', sans-serif;
  text-shadow:
    0 0 6px rgba(124, 245, 163, 0.8),
    0 1px 6px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  display: none;
}

.leaflet-container {
  background: transparent !important;
}

/* Trust bar */
.trust-bar {
  padding: 20px 0 8px;
  margin-top: -60px;
  position: relative;
  z-index: 20;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  background: rgba(0, 68, 204, 0.88);
  color: #e8eefc;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.trust-row.reveal { }

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2eb85c, #ffd700);
  color: #0b1230;
}

.trust-title {
  font-weight: 800;
  color: #ffffff;
}

.trust-text {
  color: #dfe7f7;
  font-weight: 600;
}

/* Fleet */
.fleet {
  padding: 72px 0;
  background: var(--bg-light);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
}

.fleet-copy h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--primary);
  letter-spacing: -1px;
}

.fleet-copy p {
  color: var(--muted);
  margin: 0 0 16px;
}

.fleet-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fleet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.stat-label {
  display: block;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-number {
  font-weight: 800;
  font-size: 18px;
}

.stat-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* Services */
.services {
  padding: 72px 0 56px;
  background: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 32px 32px;
}

.section-heading h2 {
  margin: 4px 0;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--primary);
  letter-spacing: -1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.18), 0 0 0 1px rgba(255, 215, 0, 0.22);
}

.service-card svg {
  filter: drop-shadow(0 4px 8px rgba(0, 68, 204, 0.25));
}

.service-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  color: var(--primary);
}

.service-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.icon-1 {
  background: linear-gradient(135deg, #2eb85c, #ffd700);
  color: #0b1230;
}

.icon-2 {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #0b1230;
}

.icon-3 {
  background: linear-gradient(135deg, #0044cc, #00d4ff);
  color: #0b1230;
}

.link-more {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

/* About */
.about {
  padding: 64px 0 96px;
  background: linear-gradient(120deg, rgba(0, 68, 204, 0.04), rgba(46, 184, 92, 0.06));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
}

.about-media {
  width: 100%;
}

.about-visual {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  background: #fff;
  object-fit: cover;
}

.about h2 {
  margin: 6px 0 8px;
  color: var(--primary);
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -1px;
}

.about-list {
  display: grid;
  gap: 10px;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}

.volunteers {
  padding: 78px 0 86px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.volunteers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(46, 184, 92, 0.14), transparent 42%);
  pointer-events: none;
}

.volunteers-card {
  display: grid;
  grid-template-columns: minmax(340px, 1.12fr) minmax(260px, 0.88fr);
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(145deg, rgba(0, 31, 91, 0.94), rgba(0, 68, 204, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  box-shadow:
    0 26px 60px rgba(0, 20, 80, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.volunteers-card::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22), transparent 62%);
  filter: blur(4px);
}

.volunteers-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.volunteers-copy {
  display: grid;
  gap: 14px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.volunteers-copy h2 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.6px;
}

.volunteers .section-sub {
  color: #dce6ff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.volunteers-card .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #dce7ff;
  border-color: rgba(255, 255, 255, 0.18);
}

.volunteers-message {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  border-left: 3px solid #ffd700;
  backdrop-filter: blur(4px);
}

.volunteers-message p {
  margin: 0 0 10px;
  color: #e7efff;
  font-weight: 600;
  line-height: 1.55;
}

.volunteers-message p:last-child {
  margin-bottom: 0;
}

.volunteers-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.volunteers-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #f8fbff;
}

.volunteers-list li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #2eb85c);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.volunteers-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.volunteers-actions .btn {
  box-shadow: 0 18px 30px rgba(245, 163, 0, 0.35);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.volunteers-aside {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr;
  position: relative;
  z-index: 1;
}

.volunteer-badge {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(0, 196, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.volunteer-badge h3 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 20px;
}

.volunteer-badge p {
  margin: 0;
  color: #dce7ff;
  font-weight: 600;
}

.volunteer-badge::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.volunteer-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  grid-auto-rows: 1fr;
}

.stat-card.mini {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 6px;
  align-content: flex-start;
  min-height: 130px;
  backdrop-filter: blur(4px);
}

.stat-card.mini .stat-label {
  color: #b8d4ff;
}

.stat-card.mini .stat-number {
  color: #ffd700;
}

.stat-card.mini .stat-text {
  color: #dbe7ff;
}

@media (max-width: 980px) {
  .volunteers-card {
    grid-template-columns: 1fr;
  }
  .volunteers-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .volunteers-card {
    padding: 16px;
    width: 100%;
  }
  .volunteers-card::after {
    inset: 8px;
    border-radius: calc(var(--radius-lg) - 14px);
  }
  .volunteers-copy h2 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
  }
  .volunteers .section-sub {
    font-size: 15px;
    line-height: 1.5;
  }
  .volunteers-message {
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }
  .volunteers-message p,
  .volunteers-list li {
    font-size: 14px;
    line-height: 1.45;
  }
  .volunteers-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .volunteers-actions .btn,
  .contact-pill {
    width: 100%;
    justify-content: center;
  }
  .volunteers-aside {
    gap: 12px;
  }
  .volunteer-badge {
    padding: 14px;
  }
  .volunteer-badge h3 {
    font-size: 18px;
  }
  .volunteer-badge p,
  .stat-card.mini .stat-text {
    font-size: 14px;
    line-height: 1.45;
  }
  .stat-card.mini {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .volunteers-card {
    padding: 14px;
    border-radius: 18px;
  }
  .volunteers-card::after {
    inset: 6px;
  }
  .volunteers-copy h2 {
    font-size: clamp(20px, 7vw, 24px);
  }
  .volunteers .section-sub {
    font-size: 14px;
  }
  .volunteers-message p,
  .volunteers-list li,
  .volunteer-badge p,
  .stat-card.mini .stat-text {
    font-size: 13px;
  }
  .volunteers-message,
  .volunteers-copy,
  .volunteers .section-sub,
  .volunteers-list,
  .volunteer-badge,
  .stat-card.mini {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
  }
  .volunteers-actions .btn,
  .contact-pill {
    font-size: 14px;
    padding: 11px 14px;
  }
}

/* Plans */
.plans {
  padding: 72px 0 56px;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 32px 32px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.plan-card.featured {
  border: 2px solid #ffd700;
  background: #fffdf5;
  box-shadow: 0 24px 50px rgba(255, 215, 0, 0.3);
}

.plan-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(46, 184, 92, 0.2), 0 0 0 1px rgba(46, 184, 92, 0.2);
}

.plan-lead {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--text-dark);
  font-weight: 700;
}

.plan-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.plan-card .btn {
  margin-top: 4px;
}

/* Footer */
footer {
  background: radial-gradient(circle at 85% 10%, #0044cc 0%, #001f5b 42%, #000c2e 100%);
  color: #e4eaf4;
  padding: 52px 0 18px;
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-branding {
  display: grid;
  gap: 10px;
}

.footer-visual {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  background: var(--primary);
}

.footer-brand {
  margin: 10px 0 8px;
  font-size: 20px;
}

.footer-text {
  margin: 0;
  color: #c8d3e6;
  font-weight: 600;
}

.footer-heading {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.footer-links li {
  margin: 6px 0;
  color: #e6ecff;
  font-weight: 600;
}

.footer-links .admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6ecff;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-links .admin-link::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #2eb85c);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.footer-links .admin-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8d3e6;
  font-weight: 700;
  flex-wrap: wrap;
}

/* Modal serviços */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 60, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal-servicos-card {
  background: #fff;
  width: min(960px, 96%);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.service-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.service-tile:hover,
.service-tile.active {
  border-color: rgba(0, 68, 204, 0.3);
  box-shadow: 0 12px 26px rgba(0, 68, 204, 0.12);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 22px;
}

.service-title {
  font-weight: 800;
  color: var(--primary);
}

.service-desc {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-card .btn-ghost {
  background: rgba(0, 68, 204, 0.12);
  color: #0b1224;
  border-color: rgba(0, 68, 204, 0.16);
}

.modal-card .btn-ghost:hover {
  background: rgba(0, 68, 204, 0.18);
  transform: translateY(-2px);
}

/* Cards and layout (shared) */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 24px 48px;
}

.layout.auth-layout {
  align-items: center;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.layout.profile-layout {
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.auth-card {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(0, 68, 204, 0.08);
}

.auth-center {
  justify-self: center;
  width: 100%;
}

.profile-card {
  border: 1px solid rgba(0, 68, 204, 0.08);
  box-shadow: 0 18px 40px rgba(0, 68, 204, 0.12);
}

.hero-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 8px 0 4px;
  font-size: 20px;
  letter-spacing: -0.15px;
  color: var(--primary);
}

.card-sub {
  margin: 0 0 12px;
  color: var(--muted);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  padding: 24px 24px 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.meta-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7fafc;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.18s ease;
}

.meta-item:hover {
  border-color: rgba(0, 68, 204, 0.14);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 68, 204, 0.08);
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.meta-value {
  font-weight: 700;
  display: block;
}

.hero-title {
  font-size: 28px;
  margin: 0;
  color: var(--primary);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--card);
  box-shadow: 0 6px 18px rgba(0, 68, 204, 0.12);
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-container {
  margin-top: 4px;
}

.state-chip {
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Forms */
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
  font-size: 15px;
  transition: all 0.18s ease;
}

.input:focus {
  outline: 2px solid rgba(46, 184, 92, 0.25);
  border-color: rgba(46, 184, 92, 0.4);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input {
  padding-left: 40px;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: var(--muted);
}

.input-wrapper .toggle-password {
  left: auto;
  right: 15px;
  cursor: pointer;
}

.auth-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.toggle-btn {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.toggle-btn.active {
  border-color: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 12px 20px rgba(46, 184, 92, 0.16);
}

/* Auth page - glassmorphism */
.auth-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
}

.auth-shell {
  width: min(1080px, 94%);
  display: flex;
  justify-content: center;
}

.glass-auth {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.auth-logo-wrap .brand-name {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.auth-logo-wrap .brand-subtitle {
  color: #e8f0ff;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.glass-auth .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.glass-auth .card-title {
  color: #fff;
  margin: 10px 0 6px;
  font-size: 26px;
}

.glass-auth .card-sub {
  color: #d9e6ff;
}

.glass-auth .state-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.glowing-chip {
  position: relative;
}

.glowing-chip::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22), transparent 55%);
  z-index: -1;
  filter: blur(14px);
}

.auth-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  gap: 8px;
  margin: 12px 0 16px;
}

.auth-toggle .toggle-btn {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid transparent;
}

.auth-toggle .toggle-btn.active {
  background: linear-gradient(120deg, #ffffff, #ffe89e);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(255, 215, 0, 0.32);
}

.glass-auth label {
  color: #f8fafc;
}

.glass-auth .input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-auth .input:focus {
  outline: 2px solid rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.8);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.glass-auth .input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.glass-auth .input-wrapper i {
  color: var(--secondary);
}

.glass-auth .input-wrapper .toggle-password {
  color: #e2e8f0;
}

.glass-auth .btn-primary {
  width: 100%;
  border: none;
}

.glass-auth .error {
  background: rgba(185, 28, 28, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fecdd3;
}

.glass-auth .success {
  background: rgba(14, 165, 80, 0.15);
  border-color: rgba(255, 255, 255, 0.18);
  color: #d1fae5;
}

.upload-area {
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  inset: -40% 0 0 50%;
  background: linear-gradient(120deg, rgba(255, 215, 0, 0.14), rgba(0, 68, 204, 0.14));
  opacity: 0.45;
  filter: blur(40px);
  transform: skewX(-12deg);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-label {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.upload-label:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.upload-label.dragover {
  border-color: var(--secondary);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36), 0 0 0 2px rgba(255, 215, 0, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--secondary);
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.upload-title {
  font-weight: 800;
  font-size: 16px;
}

.upload-hint {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 13px;
}

.file-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding-top: 4px;
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.back-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 800;
}

.back-map:hover {
  background: rgba(255, 255, 255, 0.12);
}

.back-map i {
  color: var(--secondary);
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.success {
  color: #065f46;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

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

.upload-box {
  border: 2px dashed var(--border);
  padding: 48px;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--accent);
  background: #f0f8ff;
}

.upload-box i {
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 12px;
}

.upload-box-text {
  font-weight: 700;
  color: var(--muted);
  font-size: 16px;
}

.upload-box .input {
  display: none;
}

/* Lists & documents */
.list {
  display: grid;
  gap: 12px;
}

.doc-item {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.18s ease;
  background: #fff;
}

.doc-item:hover {
  border-color: rgba(0, 68, 204, 0.16);
  background: #f9fcff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 68, 204, 0.06);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-info::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWZpbGUiPjxwYXRoIGQ9Ik0xNSAySDZDMi43IDIgMiAyLjcgMiA2djEyYzAgMy4zLjcgNCA0IDRoMTJjMy4zIDAgNC0uNyA0LTRWN0wiLz48cGF0aCBkPSJNMTQgMnp2NWg1Ii8+PC9zdmc+');
}

.doc-item[data-ext="pdf"] .doc-info::before { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNlMjVjNGIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTUgMkg2QzIuNyAyIDIgMi43IDIgNnYxMmMwIDMuMy43IDQgNCA0aDEyYzMuMyAwIDQtLjcgNC00VjdabS0yLjIgMS41QTEuNSAxLjUgMCAwIDEgMTUgNEgxMGwtOCA4djJhMS41IDEuNSAwIDAgMCAxLjUgMS41aDEuNWMxLjQgMCAyLjYtMS4xIDMuMi0yLjNsLjQtLjdjLjItLjQuNS0uNi45LS42aDEuOWMxLjUgMCAyLjguNyAzLjYgMS43bDIsMi45VjIwSDZWMTRoNEw2IDhIOHYtLjRsNS4yLTVaIi8+PHBhdGggZD0iTTE0IDJ2NWg1Ii8+PC9zdmc+'); }
.doc-item[data-ext="png"] .doc-info::before, .doc-item[data-ext="jpg"] .doc-info::before, .doc-item[data-ext="jpeg"] .doc-info::before { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMxNmE1NSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxrectpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgeD0iMyIgeT0iMyIgcng9IjIiIHJ5PSIyIi8+PGNpcmNsZSBjeD0iOC41IiBjeT0iOC41IiByPSIyLjUiLz48cG9seWxpbmUgcG9pbnRzPSIxNSAxMC41IDE5IDIgMjEgNCIvPjwvc3ZnPg=='); }
.doc-item[data-ext="doc"] .doc-info::before, .doc-item[data-ext="docx"] .doc-info::before { background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMzg0YzciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTIgMkg2Yy0xLjEgMC0yIC45LTIgMnYxNmMwIDEuMS45IDIgMiAyaDEyYzEuMSAwIDItLjkgMi0yVjhMMTIgMloiLz48cGF0aCBkPSJNMTIgMnY2aDYiLz48cGF0aCBkPSJNMTYgMTNoLTRabTAtNGgtNFoiLz48L3N2Zz4='); }

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-actions .btn {
  min-width: 92px;
  text-align: center;
}

.doc-name {
  font-weight: 700;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0, 68, 204, 0.18);
  max-width: 360px;
  width: 100%;
  display: grid;
  gap: 12px;
}

.modal-title {
  font-weight: 800;
  margin: 0;
  font-size: 18px;
  color: #0b1224;
}

.modal-text {
  margin: 0;
  color: var(--text-dark);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.badge-admin {
  background: rgba(0, 68, 204, 0.12);
  color: var(--primary);
}

.badge-user {
  background: rgba(46, 184, 92, 0.16);
  color: #1c7c42;
}

#users-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Map adjustments */

.leaflet-interactive {
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
}

.leaflet-interactive:focus,
.leaflet-marker-icon:focus {
  outline: none;
  box-shadow: none;
}

.leaflet-tooltip {
  background: rgba(0, 68, 204, 0.9);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 68, 204, 0.2);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
}

.state-label {
  background: rgba(0, 68, 204, 0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .header-row {
    flex-wrap: wrap;
  }
  .hero {
    padding-top: 80px;
  }
  #map {
    height: 460px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .hero-map {
    order: -1;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.mobile {
    display: grid;
  }
}

@media (max-width: 768px) {
  .table {
    white-space: normal;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table thead {
    display: none;
  }

  .table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #fff;
  }

  .table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px solid var(--border);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 38px;
  }

  .table td:last-child {
    border-bottom: none;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: calc(50% - 24px);
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--muted);
  }

  .header-row {
    padding: 14px 0;
  }

  #map {
    height: 380px;
  }
}

/* Tiny mobile: keep header buttons side by side */
@media (max-width: 480px) {
  .header-row {
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .header-actions .btn-primary {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Auth card: prevent back button overlap on mobile */
@media (max-width: 600px) {
  .auth-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .auth-card-top .back-map {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== Perfil Ubrasileirinho (Dark Tech) ===== */
body.admin-page.profile-view {
  background: radial-gradient(circle at 50% 0%, #002b66 0%, #000c2e 100%) !important;
  color: #e5edff;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

.profile-shell {
  width: min(1240px, 96vw);
  margin: 0 auto;
  padding: 90px 0 50px;
  display: grid;
  gap: 18px;
}

.glass-panel.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 31, 91, 0.88), rgba(0, 12, 46, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  padding: 24px 24px 28px;
}

.glass-panel.profile-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 196, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.profile-identity {
  display: contents;
}

.avatar-stack {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.avatar-glow {
  width: 168px;
  height: 168px;
  border-radius: 26px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.35), rgba(255, 215, 0, 0.32));
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 0 30px rgba(0, 196, 255, 0.4),
    0 20px 45px rgba(0, 0, 0, 0.45);
}

.avatar-glow img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.3);
  background: #0a1025;
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e8f4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-button:hover {
  border-color: rgba(0, 196, 255, 0.4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.icon-button.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.identity-body {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding: 6px 0 10px;
}

.profile-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  color: #ffffff;
  letter-spacing: -0.6px;
  font-weight: 800;
  text-shadow: none;
}

.identity-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.identity-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

body.admin-page .meta-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.meta-label {
  color: #9fb3d9;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
}

.meta-value {
  color: #f8fbff;
  font-weight: 800;
}

.feedback-area {
  display: grid;
  gap: 8px;
}

.glass-panel.docs-panel {
  display: grid;
  gap: 14px;
  background: rgba(8, 16, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.profile-view .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.doc-grid {
  display: grid;
  gap: 12px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.doc-row:hover {
  border-color: rgba(0, 196, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 196, 255, 0.2);
}

.doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0b1224;
  font-size: 18px;
  background: linear-gradient(135deg, #00c4ff, #7cf5a3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.doc-icon.pdf { background: linear-gradient(135deg, #ff6b6b, #ffd166); }
.doc-icon.img { background: linear-gradient(135deg, #6dd3ff, #7cf5a3); }
.doc-icon.word { background: linear-gradient(135deg, #4f9bff, #00c4ff); }
.doc-icon.generic { background: linear-gradient(135deg, #ffd166, #2eb85c); }

.doc-body {
  flex: 1;
  display: grid;
  gap: 4px;
}

.doc-name {
  font-weight: 800;
  color: #f8fbff;
}

.doc-meta {
  color: #9fb3d9;
  font-weight: 600;
}

.doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-actions .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.settings-modal .doc-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #e8f4ff;
}

.settings-modal .doc-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.upload-area-block {
  display: grid;
  gap: 10px;
}

.dark-upload {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.dark-upload:hover,
.dark-upload.dragover {
  border-color: rgba(0, 196, 255, 0.6);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38), 0 0 20px rgba(0, 196, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.upload-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6fe1ff, #9efdd8);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(56, 189, 248, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(111, 225, 255, 0.45);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.upload-icon-lg i {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(111, 225, 255, 0.6);
}

.upload-copy {
  display: grid;
  gap: 4px;
}

.upload-title {
  font-weight: 800;
  color: #f8fbff;
}

.upload-hint {
  color: #9fb3d9;
  font-weight: 600;
}

.settings-modal {
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  padding: 16px;
}

.settings-modal .settings-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5edff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  width: min(560px, 94vw);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-modal .settings-card .input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.settings-modal .settings-card .input:focus {
  outline: 2px solid rgba(0, 196, 255, 0.35);
  border-color: rgba(0, 196, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.settings-modal .settings-card .auth-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.settings-modal .settings-card .auth-toggle .toggle-btn {
  color: #cbd5e1;
}

.settings-modal .settings-card .auth-toggle .toggle-btn.active {
  background: linear-gradient(120deg, #00c4ff, #ffd166);
  color: #0b1224;
  border: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.settings-panels {
  overflow-y: auto;
  padding-right: 2px;
  max-height: calc(85vh - 160px);
}

.settings-modal .panel {
  gap: 12px;
}

.settings-modal .panel .form-grid {
  gap: 12px;
}

.profile-footer {
  text-align: center;
  padding: 14px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: none;
}

@media (max-width: 900px) {
  .profile-shell {
    padding-top: 70px;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }

  .identity-tags {
    justify-content: center;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-row {
    align-items: flex-start;
  }

  .doc-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- CORREÇÕES ESPECÍFICAS DO PERFIL (DARK MODE) --- */

/* 1. Consertar Textos Apagados (Contraste) */
.profile-shell .meta-label,
.profile-shell .eyebrow,
.profile-shell .card-sub,
.profile-shell .muted {
  color: #e3ecff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.profile-shell .meta-value {
  color: #ffffff !important;
  font-size: 15px;
}

#user-email {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* 2. Melhorar os Quadradinhos de Info */
.profile-shell .meta-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(5px);
}

/* 3. Consertar o Grid Desalinhado */
.identity-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
}

/* 4. Ajuste do Botão de Configuração (Engrenagem) */
#settings-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  margin-top: 10px;
}

/* 5. Ajuste do Card de Arquivo (Estava muito largo/feio) */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.doc-item {
  background: rgba(0, 20, 40, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Ajustes extras de legibilidade no painel de documentos --- */
.docs-panel {
  background: linear-gradient(135deg, rgba(10, 24, 60, 0.9), rgba(6, 14, 36, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42);
}

.upload-area-block .card-title,
.upload-area-block .upload-title {
  color: #f5f8ff !important;
}

.upload-area-block .upload-hint {
  color: #e1e9ff !important;
  font-weight: 700;
}

.dark-upload {
  border: 1px dashed rgba(124, 245, 163, 0.4) !important;
  background: rgba(4, 10, 28, 0.55) !important;
  color: #e9f0ff;
}

.dark-upload:hover,
.dark-upload.dragover {
  background: rgba(4, 12, 34, 0.65) !important;
  border-color: rgba(255, 215, 0, 0.55) !important;
}

/* Espaçamento e respiro no painel de documentos */
.docs-panel {
  gap: 18px;
  padding: 18px 18px 22px;
}

.docs-panel .divider {
  margin: 14px 0 18px;
}

.doc-grid {
  gap: 14px;
}

.upload-area-block {
  margin-top: 12px;
  padding-top: 6px;
  gap: 14px;
}

.doc-meta {
  color: #d5e2ff !important;
  font-weight: 700;
}

.upload-area-block form {
  margin-top: 4px;
}
