﻿:root {
  --bg: #071A1F;
  --surface: #0D252B;
  --surface-light: #16343C;
  --teal: #0F8B8D;
  --gold: #D7B56D;
  --green: #27AE60;
  --blue: #2980B9;
  --orange: #e8551e;
  --border: #1A3540;
  --text-main: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-muted: #8BA8AE;
  --nav-h: 72px;
  --font-display: 'Space Grotesk', 'Outfit', sans-serif;
  --app-bg: var(--bg);
  --app-fg: var(--text-main);
  --app-muted: var(--text-muted);
  --app-card: rgba(255, 255, 255, 0.06);
  --app-border: rgba(255, 255, 255, 0.12);
  --app-accent: var(--teal);
  --app-glass: rgba(11, 30, 38, 0.4);
  --app-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] {
  --bg: #f4f1ec;
  --surface: #FFFFFF;
  --surface-light: #EDE9E3;
  --teal: #0F8B8D;
  --gold: #B8862A;
  --green: #1E8449;
  --blue: #1A6EA8;
  --orange: #e8551e;
  --border: #D8D2C8;
  --text-main: #0D0F1A;
  --text-primary: #0D0F1A;
  --text-muted: #6B6459;
  --app-bg: var(--bg);
  --app-fg: var(--text-main);
  --app-muted: var(--text-muted);
  --app-card: rgba(255, 255, 255, 0.72);
  --app-border: rgba(18, 18, 18, 0.12);
  --app-accent: var(--teal);
  --app-glass: rgba(255, 255, 255, 0.58);
  --app-shadow: 0 12px 34px rgba(44, 34, 20, 0.12);
}

html.dark {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--app-bg);
  color: var(--app-fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.route-open {
  overflow: hidden;
}

html:has(body.home-fixed),
body.home-fixed {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.home-fixed #app {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

#app {
  padding-bottom: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding-top: 80px;
}

#tabProjetos {
  padding-top: 72px;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.app-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 24px, 1080px);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  border-radius: 30px;
  background: var(--app-glass);
  border: 1px solid var(--app-border);
  backdrop-filter: saturate(200%) blur(32px);
  -webkit-backdrop-filter: saturate(200%) blur(32px);
  box-shadow:
    var(--app-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mmap-glass {
  background: var(--app-glass);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .mmap-glass {
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .app-header {
    position: fixed;
    transform: none;
    left: 0;
    top: 0;
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 14px 20px;
  }
  .tab-content {
    padding-top: 0;
  }
  .tab-content:not(#tabHome) {
    padding-top: 76px;
  }
  #tabProjetos {
    padding-top: 76px;
  }
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--app-border);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.22), transparent 38%),
    var(--app-card);
  color: var(--app-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--app-accent);
  transform: scale(1.04);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 24px;
  height: 24px;
  overflow: visible;
  transform: rotate(0deg);
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1);
}

.theme-toggle__sun,
.theme-toggle__rays path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 12px 12px;
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease, fill 0.28s ease;
}

.theme-toggle__sun {
  fill: rgba(215, 181, 109, 0.26);
}

html.dark .theme-toggle__icon {
  transform: rotate(-38deg);
}

html.dark .theme-toggle__rays path {
  opacity: 0;
  transform: scale(0.35);
}

html.dark .theme-toggle__sun {
  fill: rgba(245, 245, 245, 0.12);
  transform: scale(0.72);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle__icon,
  .theme-toggle__sun,
  .theme-toggle__rays path {
    transition: none;
  }
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#map {
  height: 55vh;
  width: 100%;
  background: var(--bg);
  z-index: 1;
  position: relative;
}

.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(13, 37, 43, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.map-ctrl-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.leaflet-container {
  background: var(--bg) !important;
}

.content-area {
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.progress-card {
  margin: 0 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.global-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: -1px;
}

.global-count small {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.add-country-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.add-country-btn:hover { transform: scale(1.1); opacity: 0.9; }

/* ── Route View (páginas dedicadas) ── */
.route-view {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 8000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.route-view.active { display: block; }

.route-back-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.route-back-btn:hover { background: rgba(255,255,255,0.28); }

/* Hero colorido */
.rp-hero {
  padding: 56px 24px 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rp-hero-inner { display: flex; flex-direction: column; gap: 10px; }

.rp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.rp-tag--sphere { background: rgba(255,255,255,0.35); }

.rp-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.rp-sub { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 4px 0 0; }

.rp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.rp-fact { display: flex; flex-direction: column; gap: 2px; }
.rp-fact-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.rp-fact-val { font-size: 0.95rem; font-weight: 700; color: #fff; }

/* Body layout */
.rp-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.rp-body--single { max-width: 680px; }

.rp-section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.rp-section:last-child { border-bottom: none; }
.rp-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.rp-text { color: var(--text-muted); line-height: 1.7; font-size: 0.93rem; }

.rp-modules { display: flex; flex-direction: column; gap: 10px; }
.rp-module-item { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: var(--text); }
.rp-module-num {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff; flex-shrink: 0;
}

.rp-turma {
  border-left: 3px solid;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-turma-title { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.rp-turma-meta { font-size: 0.78rem; color: var(--text-muted); }
.rp-turma-badge {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  width: fit-content;
}

.rp-sphere-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Sidebar */
.rp-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rp-apply-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.rp-apply-btn:hover { opacity: 0.88; }
.rp-sidebar-org-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rp-sidebar-org-name { font-weight: 700; color: var(--text); margin-top: 4px; }
.rp-sidebar-org-loc { font-size: 0.82rem; color: var(--text-muted); }

/* País / Missionário hero simples */
.rp-country-hero, .rp-missionary-hero {
  background: var(--surface);
  padding: 56px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.rp-country-flag { font-size: 4rem; }
.rp-missionary-avatar { font-size: 3.5rem; }
.rp-country-hero .rp-title, .rp-missionary-hero .rp-title { color: var(--text); }
.rp-country-hero .rp-sub, .rp-missionary-hero .rp-sub { color: var(--text-muted); }
.rp-country-hero .route-back-btn, .rp-missionary-hero .route-back-btn {
  background: var(--border); color: var(--text); align-self: flex-start;
}
.rp-coming-soon { color: var(--text-muted); font-size: 0.95rem; text-align: center; padding: 40px 0; }

/* Missionário — hero completo */
.rp-miss-full-hero {
  background: linear-gradient(160deg, #0a5f61 0%, #0F8B8D 60%, #0a9e9e 100%);
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
}
.rp-miss-full-hero .route-back-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  align-self: flex-start;
  border-color: rgba(255,255,255,0.2);
}
.rp-miss-full-hero .rp-title { color: #fff; }
.rp-miss-full-hero .rp-sub { color: rgba(255,255,255,0.8); }
.rp-miss-full-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 3px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.rp-miss-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-top: 4px;
}
.rp-miss-church-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 0;
}
.rp-miss-church-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rp-miss-church-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.92rem;
}

/* Desktop: sidebar ao lado */
@media (min-width: 768px) {
  .rp-hero { padding: 72px 48px 48px; }
  .rp-title { font-size: 2.8rem; }
  .rp-body { flex-direction: row; align-items: flex-start; padding: 0 48px 80px; gap: 40px; }
  .rp-main { flex: 1; }
  .rp-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 24px; padding-top: 28px; }
  .rp-body--single { flex-direction: column; }
}

/* Modal de adicionar país */
.add-country-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding:
    max(22px, env(safe-area-inset-top))
    18px
    max(28px, env(safe-area-inset-bottom));
}
.add-country-modal-overlay.open { display: flex; }

.add-country-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(92vw, 420px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}

.add-country-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.add-country-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.add-country-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.add-country-modal-close:hover { background: var(--border); }

.add-country-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}

.add-country-search {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}
.add-country-search:focus { border-color: var(--orange); }

.add-country-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}
.add-country-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.add-country-list-item:hover { background: var(--border); }
.add-country-list-item.selected { background: rgba(var(--orange-rgb, 230,81,0), 0.15); border: 1px solid var(--orange); }
.add-country-list-item .item-flag { font-size: 1.3rem; }
.add-country-list-item .item-status { margin-left: auto; display: flex; gap: 4px; font-size: 0.75rem; }
.add-country-list-item .item-clear {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  font-size: 0.82rem;
  margin-left: auto;
}

.add-country-list-item .item-status:not(:empty) + .item-clear {
  margin-left: 4px;
}

.add-country-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  background: var(--surface);
}
.selected-country-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.add-country-actions {
  display: flex;
  gap: 8px;
}
.add-country-confirm {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 11px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}
.add-country-confirm:hover { opacity: 0.88; }

@media (max-width: 767px) {
  .add-country-modal-overlay {
    align-items: flex-start;
    justify-content: center;
  }

  .add-country-modal {
    width: min(92vw, 460px);
    max-height: calc(100svh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-top: calc(env(safe-area-inset-top) + 18px);
    margin-bottom: calc(env(safe-area-inset-bottom) + 26px);
  }

  .add-country-modal:focus-within {
    max-height: min(50svh, 420px);
    transform: translateY(-2px);
  }

  .add-country-modal-header {
    padding: 16px 20px 10px;
  }

  .add-country-modal-body {
    padding: 12px 20px;
  }

  .add-country-modal:focus-within .add-country-modal-body {
    flex: 0 1 auto;
    max-height: min(30svh, 220px);
  }

  .add-country-list {
    min-height: 96px;
    overflow-y: auto;
  }

  .add-country-modal:focus-within .add-country-list {
    min-height: 76px;
    max-height: min(18svh, 132px);
  }

  .add-country-list:has(.add-country-list-item:only-child) {
    min-height: 76px;
  }

  .add-country-list-item {
    min-height: 58px;
  }
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  width: 0;
  transition: width 0.8s ease-out;
}

.progress-meta {
  display: flex;
  gap: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.status-pill.gold {
  color: var(--gold);
}

.status-pill.green {
  color: var(--green);
}

.status-pill.blue {
  color: var(--blue);
}

.section-heading {
  padding: 0 20px 12px;
}

.section-heading h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── Home Sections ── */
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 4px;
}
.section-desc {
  padding: 0 20px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px 20px 16px;
}
.home-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}
.home-ver-todos-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.home-ver-todos-btn:hover { background: var(--border); }

/* Oportunidades: scroll horizontal no mobile, grid no desktop */
.home-opp-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 20px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-opp-scroll::-webkit-scrollbar { display: none; }

.home-opp-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  min-height: 200px;
  transition: transform 0.18s;
}
.home-opp-card:hover { transform: translateY(-3px); }
.home-opp-card--soon {
  background: linear-gradient(135deg, #0F8B8D, #1a2456);
  cursor: default;
}
.home-opp-card--soon:hover { transform: none; }
.home-opp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.home-opp-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.home-opp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.2;
  flex: 1;
}
.home-opp-org {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
.home-opp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.home-opp-duration {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.home-opp-ver {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.home-opp-ver:hover { background: rgba(255,255,255,0.35); }

/* 7 Esferas: grid 2 col */
.home-spheres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px 32px;
}
.home-sphere-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 3px solid var(--sphere-color);
}
.home-sphere-icon { font-size: 1.5rem; }
.home-sphere-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.home-sphere-count { font-size: 0.75rem; color: var(--text-muted); }

/* Desktop: opp grid 3 colunas */
@media (min-width: 768px) {
  .home-opp-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: 0 20px 24px;
  }
  .home-opp-card {
    flex: unset;
    min-height: 220px;
  }
  .home-spheres-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .home-section-title { font-size: 2rem; }
}

.section-top {
  padding: 60px 20px 20px;
}

.section-top h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 640px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.field-search-wrap {
  padding: 0 20px 14px;
}

.field-search-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 37, 43, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.field-search-box:focus {
  border-color: rgba(39, 174, 96, 0.58);
  box-shadow:
    0 0 0 3px rgba(39, 174, 96, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.16);
}

.cat-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ccc;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-tab.active {
  background: rgba(39, 174, 96, 0.15);
  border-color: rgba(39, 174, 96, 0.5);
  color: #27ae60;
  font-weight: 600;
}

/* ── Oportunidades: hero ── */
.opp-hero {
  background: #0d0f1a;
  padding: 80px 20px 36px;
  position: relative;
  overflow: hidden;
}

.opp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(232,85,30,0.18) 0%, transparent 60%),
              radial-gradient(circle at 85% 20%, rgba(26,36,86,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.opp-hero-inner {
  position: relative;
}

.opp-hero-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}

.opp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 0.95;
  margin: 0 0 12px;
}

.opp-hero-title span { color: var(--orange); }

.opp-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.5;
}

.coming-soon-panel {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 34px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 104px 24px 54px;
  position: relative;
}

.coming-soon-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coming-soon-panel h2 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.02;
}

.coming-soon-panel p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.coming-soon-copy {
  position: relative;
  z-index: 1;
}

.coming-soon-orbit {
  position: absolute;
  inset: 80px auto auto 28px;
  width: 180px;
  height: 180px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  border-radius: 50%;
  opacity: 0.65;
  animation: orbitPulse 5s ease-in-out infinite;
}

.coming-soon-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 24px color-mix(in srgb, var(--orange) 60%, transparent);
  animation: orbitDot 7s linear infinite;
}

.coming-soon-orbit span:nth-child(1) { top: -6px; left: calc(50% - 6px); }
.coming-soon-orbit span:nth-child(2) { right: 18px; bottom: 22px; animation-delay: -2.3s; background: var(--teal); }
.coming-soon-orbit span:nth-child(3) { left: 12px; bottom: 46px; animation-delay: -4.6s; background: #e8af46; }

.suggestion-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}

.suggestion-label {
  margin: 0 0 5px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.suggestion-box h3 {
  margin: 0 0 18px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
}

.suggestion-grid {
  display: grid;
  gap: 10px;
}

.suggestion-input,
.suggestion-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-main);
  font: inherit;
  font-size: 0.94rem;
  padding: 12px 13px;
}

.suggestion-textarea {
  margin-top: 10px;
  min-height: 112px;
  resize: vertical;
}

.suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.suggestion-feedback {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.suggestion-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

@keyframes orbitDot {
  from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

@media (max-width: 760px) {
  .coming-soon-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 88px 18px 32px;
  }

  .coming-soon-panel h2 {
    font-size: 2rem;
  }

  .coming-soon-orbit {
    inset: 70px 16px auto auto;
    width: 118px;
    height: 118px;
    opacity: 0.34;
  }

  .coming-soon-orbit span {
    animation: none;
  }

  .suggestion-box {
    padding: 18px;
  }

  .suggestion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-submit {
    width: 100%;
  }
}

/* ── Oportunidades: filtros ── */
.opp-filters-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-chip.active {
  background: rgba(232, 85, 30, 0.12);
  border-color: rgba(232, 85, 30, 0.5);
  color: var(--orange);
  font-weight: 700;
}

.filter-selects {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.filter-select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}

/* ── Oportunidades: grid de cards ── */
.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 16px 24px;
  background: var(--bg);
}

.opp-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.opp-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--sphere-color, var(--orange));
  flex-shrink: 0;
}

.opp-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  border-color: var(--sphere-color, var(--orange));
}

.opp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.opp-sphere {
  font-family: var(--font-display);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--sphere-color, var(--orange)) 15%, transparent);
  color: var(--sphere-color, var(--orange));
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.opp-duration {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.opp-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.opp-org {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.opp-price {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-top: auto;
  padding-top: 6px;
}

/* ── Painel detalhe oportunidade ── */
.opp-detail-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.opp-price-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(232, 175, 70, 0.15);
  color: #E8AF46;
  font-weight: 600;
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

/* ── Opp card: expansão ── */
.opp-card-expand {
  display: none;
  padding: 0 14px 14px;
  flex-direction: column;
  gap: 10px;
  animation: fadeSlide 0.2s ease;
}

.opp-card.expanded .opp-card-expand {
  display: flex;
}

.opp-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.opp-card-btns {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.opp-btn-more {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.opp-btn-more:hover {
  border-color: var(--sphere-color, var(--orange));
  color: var(--sphere-color, var(--orange));
}

.opp-btn-apply {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: none;
  background: var(--sphere-color, var(--orange));
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.opp-btn-apply:hover { opacity: 0.88; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Opp detail panel hero ── */
.opp-detail-hero {
  padding: 28px 24px 24px;
  position: relative;
}

.opp-detail-hero-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 0;
}

.opp-detail-hero-sphere {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.opp-detail-hero h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--text-main);
}

.opp-detail-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.opp-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opp-fact {
  background: var(--surface-light);
  border-radius: 12px;
  padding: 12px 14px;
}

.opp-fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.opp-fact-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.opp-detail-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opp-detail-section h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}

.opp-detail-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.opp-apply-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.opp-apply-btn:hover { opacity: 0.88; }

/* ── Apply full-screen view ── */
.apply-view {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
}

.apply-view.active {
  transform: translateX(0);
}

.apply-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.apply-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.apply-topbar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apply-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.apply-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.apply-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}

.apply-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  margin: 0 0 6px;
}

.apply-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.apply-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.apply-step-bar {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--border);
  transition: background 0.3s;
}

.apply-step-bar.done {
  background: var(--orange);
}

.apply-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.apply-field {
  margin-bottom: 18px;
}

.apply-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.apply-field input,
.apply-field textarea,
.apply-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  appearance: none;
}

.apply-field input:focus,
.apply-field textarea:focus,
.apply-field select:focus {
  border-color: var(--orange);
}

.apply-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.apply-field-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
}

.apply-summary {
  background: var(--surface-light);
  border-radius: 14px;
  padding: 20px;
}

.apply-summary-row {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
}

.apply-summary-key {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.apply-summary-val {
  color: var(--text-main);
}

.apply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.apply-btn-back {
  padding: 13px 24px;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.apply-btn-next {
  flex: 1;
  padding: 13px 24px;
  border-radius: 100px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.apply-btn-next:hover { opacity: 0.88; }

.apply-btn-next.green { background: #27AE60; }

.apply-success {
  text-align: center;
  padding: 40px 20px;
}

.apply-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #27AE60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.apply-success h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: var(--text-main);
}

.apply-success p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}

/* hidden on mobile, shown only in desktop @media block */
.apply-modal-close { display: none; }

/* ── Opp panel action row ── */
.opp-panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ── Detail full-screen view ── */
.detail-hero {
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.detail-hero-inner {
  padding: 20px 20px 28px;
  position: relative;
  z-index: 1;
}

.detail-back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  margin-bottom: 20px;
  display: inline-block;
}

.detail-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.detail-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 24px;
}

.detail-facts-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}

.detail-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.detail-fact-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-content {
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin: 0 0 14px;
}

.detail-body-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.detail-modules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-module-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-main);
}

.detail-module-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.detail-sidebar {
  padding: 0 20px 32px;
}

.detail-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.detail-turmas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-turma {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
}

.detail-turma-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.detail-turma-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-turma-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(39,174,96,0.15);
  color: #27AE60;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
}

.detail-apply-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 20px;
}

.detail-apply-btn:hover { opacity: 0.88; }

.detail-sidebar-base {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.detail-sidebar-base-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-sidebar-base-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.detail-sidebar-base-loc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-box {
  width: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text-main);
  outline: none;
}

.search-box::placeholder {
  color: var(--text-muted);
}

.featured-list {
  display: flex;
  overflow-x: auto;
  padding: 0 20px 20px;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-list::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 160px;
  min-width: 160px;
  height: 200px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(7,26,31,0.92) 100%);
  pointer-events: none;
}

.feature-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-flag {
  font-size: 1.5rem;
}

.feature-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.2px;
}

.feature-level {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.feature-card[data-score] {
  border-color: rgba(39, 174, 96, 0.5);
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.2), 0 8px 20px rgba(0,0,0,0.3);
}

.feature-card[data-score^="4"]:not([data-score="4"]),
.feature-card[data-score^="5"],
.feature-card[data-score^="6"],
.feature-card[data-score^="7"] {
  border-color: rgba(232, 175, 70, 0.6);
  box-shadow: 0 0 10px rgba(232, 175, 70, 0.25), 0 8px 20px rgba(0,0,0,0.3);
}

.feature-card[data-score^="8"],
.feature-card[data-score^="9"],
.feature-card[data-score="100"] {
  border-color: rgba(216, 67, 21, 0.65);
  box-shadow: 0 0 12px rgba(216, 67, 21, 0.3), 0 8px 20px rgba(0,0,0,0.3);
}

.feature-card:hover {
  transform: translateY(-3px) scale(1.02);
}

.country-list {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.region-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text-main);
}

.region-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.region-cards::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(14px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 37, 43, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scroll-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-50%) translateY(14px) scale(1.1);
}

.scroll-btn.left  { left: 0; }
.scroll-btn.right { right: 0; }

@media (max-width: 767px) {
  .scroll-btn {
    display: none;
  }
}

.region-card {
  flex: 0 0 calc((100vw - 60px) / 2.5);
  min-width: calc((100vw - 60px) / 2.5);
  scroll-snap-align: start;
  height: 210px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 0%, var(--country-theme-soft), transparent 38%),
    linear-gradient(145deg, rgba(15, 43, 49, 0.94), rgba(4, 17, 22, 0.98));
  box-shadow:
    0 18px 34px rgba(0,0,0,0.36),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 24px var(--country-theme-soft);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.region-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(130deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 36%),
    radial-gradient(circle at 82% 20%, var(--country-theme-soft), transparent 30%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.region-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.region-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(7,26,31,0.92) 100%);
  background:
    linear-gradient(180deg, rgba(3,12,16,0.1) 0%, rgba(3,12,16,0.58) 50%, rgba(3,12,16,0.94) 100%),
    linear-gradient(135deg, var(--country-theme-soft), rgba(0,0,0,0) 46%),
    radial-gradient(circle at 50% 110%, var(--country-theme-soft), transparent 46%);
  pointer-events: none;
}

.region-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.region-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.region-card-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 2px 10px rgba(0,0,0,0.48);
}

.region-card-flag {
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.42));
}

.region-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255,255,255,0.78);
  font-size: 0.72rem;
  line-height: 1.2;
}

.region-card-meta span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.region-card:hover,
.region-card:focus-visible {
  border-color: var(--country-theme);
  box-shadow:
    0 24px 44px rgba(0,0,0,0.46),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 32px var(--country-theme-soft);
  transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-5px) scale(1.02);
}

.region-card:hover::before,
.region-card:focus-visible::before {
  opacity: 0.82;
}

.region-card:hover .region-card-bg,
.region-card:focus-visible .region-card-bg {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.11) translateY(-2px);
}

.region-card:focus-visible {
  outline: 2px solid var(--country-theme);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .region-card {
    flex: 0 0 220px;
    min-width: 220px;
    height: 260px;
  }

  .region-card-content {
    padding: 16px;
  }

  .region-card-name {
    font-size: 1.18rem;
  }
}

@media (max-width: 420px) {
  .country-list {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  .region-cards {
    gap: 12px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .region-card {
    flex-basis: min(76vw, 220px);
    min-width: min(76vw, 220px);
    height: 214px;
  }

  .region-card-content {
    padding: 12px;
  }

  .region-card-name {
    font-size: 1rem;
  }

  .region-card-meta {
    font-size: 0.68rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .region-card,
  .region-card-bg {
    transition: none;
  }

  .region-card:hover,
  .region-card:focus-visible,
  .region-card:hover .region-card-bg,
  .region-card:focus-visible .region-card-bg {
    transform: none;
  }
}

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.list-item:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
}

.list-icon {
  font-size: 1.8rem;
  width: 40px;
  text-align: center;
}

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

.list-title {
  font-weight: 700;
}

.list-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.missionary-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.profile-panel {
  padding: 100px 20px 40px;
  text-align: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--surface));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  border: 4px solid var(--surface-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px;
}

.profile-stats {
  margin-top: 24px;
}

.data-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.data-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.slide-panel.active {
  transform: translateX(0);
}

.panel-header {
  padding: 0 0 20px;
  display: grid;
  gap: 0;
}

.panel-hero {
  width: 100%;
  aspect-ratio: 900 / 500;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
}

.panel-top {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-flag {
  font-size: 3.2rem;
  line-height: 1;
}

.panel-title-group {
  display: grid;
  gap: 6px;
}

.panel-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.panel-region {
  color: var(--text-muted);
  margin-top: 0;
}

.panel-info-btn {
  align-self: start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.panel-info-btn:hover {
  transform: translateY(-1px);
  background: rgba(232, 85, 30, 0.16);
  border-color: rgba(232, 85, 30, 0.4);
}

.panel-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 16px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.panel-card .data-label {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.panel-card .data-value {
  font-size: 1.1rem;
  color: var(--text-main);
}

.panel-section {
  padding: 0 24px 20px;
  display: grid;
  gap: 14px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-title-row h4 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.carousel-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-row::-webkit-scrollbar {
  display: none;
}

.opportunity-card {
  flex: 0 0 220px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.opportunity-card h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.opportunity-category {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.opportunity-btn {
  margin-top: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.opportunity-btn:hover {
  opacity: 0.85;
}

.circle-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.circle-row::-webkit-scrollbar {
  display: none;
}

.circle-avatar,
.circle-missionary {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.circle-avatar {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.circle-missionary {
  min-width: 72px;
}

.circle-missionary .avatar-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.circle-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-region {
  color: var(--text-muted);
  margin-top: 8px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.text-section {
  padding: 0 24px 24px;
}

.text-section h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.text-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 40px;
}

.btn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-action.visited.active {
  background: rgba(215, 181, 109, 0.22);
  border-color: rgba(215, 181, 109, 0.45);
  color: var(--gold);
}

.btn-action.donated.active {
  background: rgba(39, 174, 96, 0.22);
  border-color: rgba(39, 174, 96, 0.45);
  color: var(--green);
}

.btn-action.praying.active {
  background: rgba(41, 128, 185, 0.22);
  border-color: rgba(41, 128, 185, 0.45);
  color: var(--blue);
}

.btn-action:hover {
  border-color: var(--teal);
}

/* Map-first home */
#tabHome {
  padding-top: 0;
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

#tabHome #map {
  height: 100dvh;
  min-height: 100dvh;
}

#tabHome .map-controls {
  top: max(92px, env(safe-area-inset-top) + 18px);
  right: 18px;
}

.map-impact-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
  z-index: 650;
  margin-top: 0;
  pointer-events: none;
}

.map-impact-area .progress-card {
  width: min(430px, calc(100vw - 32px));
  margin: 0 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(9, 24, 31, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  pointer-events: auto;
}

[data-theme="light"] .map-impact-area .progress-card {
  background: rgba(255, 255, 255, 0.82);
}

.map-impact-area .global-count {
  font-size: 1.45rem;
}

.map-impact-area .progress-bar {
  margin: 12px 0;
}

.map-impact-area .progress-meta {
  gap: 10px;
  font-size: 0.6rem;
}

@media (min-width: 768px) {
  #tabHome {
    padding-top: 0;
  }

  #tabHome .map-controls {
    top: 110px;
    right: 28px;
  }

  .map-impact-area {
    bottom: 34px;
  }

  .map-impact-area .progress-card {
    width: 380px;
    margin-left: 28px;
    margin-right: auto;
  }
}

/* Country detail panel inspired by mobile travel apps */
#countryPanel {
  max-width: 520px;
}

#countryPanel .panel-scroll {
  background: var(--bg);
}

#countryPanel .panel-close {
  top: calc(env(safe-area-inset-top) + 18px);
  left: 18px;
  right: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  z-index: 20;
}

.country-hero {
  min-height: min(58vh, 520px);
  background: linear-gradient(145deg, #12323b, #0f8b8d);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.country-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.78) 100%);
}

.country-hero-top {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 22px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.country-map-pill {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.24);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.country-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 92px;
}

.country-hero-flag {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.country-hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 5.4rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: 0;
  margin: 0;
}

.country-hero-content p {
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  margin-top: 8px;
}

.country-hero-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 0;
  gap: 8px;
}

.country-hero-actions .btn-action {
  min-height: 58px;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.country-detail-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  padding: 14px 6px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.16);
}

.country-detail-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  min-width: 0;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05;
  cursor: pointer;
  position: relative;
}

.country-detail-tab.active {
  color: #5b2bff;
}

.country-detail-tab.active::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: #5b2bff;
}

.country-tab-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.country-tab-content {
  background: var(--bg);
}

.country-tab-pane {
  padding: 22px 0 42px;
  animation: countryTabIn 0.18s ease-out;
}

@keyframes countryTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.country-tab-pane .panel-card-grid {
  padding-top: 0;
}

.country-tab-pane .text-section {
  padding-left: 0;
  padding-right: 0;
}

.country-card-list {
  display: grid;
  gap: 12px;
  padding: 0 24px;
}

.country-empty-card {
  margin: 0 24px;
  min-width: 0;
}

.country-empty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  color: var(--text-muted);
}

.country-circle-list {
  padding: 0 24px 8px;
}

.country-route-page {
  min-height: 100dvh;
  background: var(--bg);
}

.country-route-page .country-hero {
  min-height: min(58vh, 620px);
}

.country-route-close {
  top: calc(env(safe-area-inset-top) + 18px);
  left: 18px;
  right: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  z-index: 20;
}

.country-route-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

@media (max-width: 767px) {
  #countryPanel {
    max-width: none;
  }

  .country-hero {
    min-height: 54vh;
  }

  .country-detail-tab {
    font-size: 0.54rem;
    height: 78px;
  }

  .country-tab-icon {
    font-size: 1.5rem;
  }
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.bottom-nav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 16px;
  width: calc(100vw - 16px);
  max-width: 374px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-radius: 34px;
  padding: 0 8px;
  background: rgba(10, 24, 34, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: saturate(220%) blur(32px);
  -webkit-backdrop-filter: saturate(220%) blur(32px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
}

.nav-item.active {
  color: var(--teal);
}

.nav-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.nav-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nav-label {
    font-size: 0.52rem;
  }
}

@media (min-width: 640px) {
  .app-header {
    padding: 24px 32px;
  }

  .section-top {
    padding: 96px 32px 24px;
  }

  .country-list,
  .featured-list {
    padding-left: 32px;
    padding-right: 32px;
  }

  .progress-card {
    margin-left: 32px;
    margin-right: 32px;
  }
}

/* ═══════════════════════════════════════════════════
   DESKTOP RESPONSIVE — min-width: 768px
   ═══════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ── Bottom nav: hide, show top nav ── */
  #app { padding-bottom: 0; }
  .bottom-nav { display: none; }

  /* ── Header desktop ── */
  .app-header {
    padding: 16px 56px;
    background: rgba(11, 30, 38, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: saturate(200%) blur(32px);
    -webkit-backdrop-filter: saturate(200%) blur(32px);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .app-title { font-size: 1.4rem; }

  /* ── Desktop nav tabs ── */
  .desktop-nav {
    display: flex !important;
    justify-content: center;
    width: 100%;
    gap: 8px;
    align-items: center;
  }
  .desktop-nav-btn {
    padding: 9px 18px;
    border-radius: 100px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }
  .desktop-nav-btn:hover,
  .desktop-nav-btn.active {
    background: var(--surface);
    color: var(--text-main);
    font-weight: 700;
  }

  /* ── Tabs: pad for fixed header ── */
  .tab-content {
    padding-top: 72px;
    min-height: 100vh;
  }
  #tabProjetos { padding-top: 72px; }

  /* ── Slide panel: wider on desktop ── */
  .slide-panel { max-width: 560px; }

  /* ══════════════════════════════════════════
     OPP CARDS — bigger, more readable
  ══════════════════════════════════════════ */
  .opp-hero { padding: 120px 64px 56px; }
  .opp-hero-inner { max-width: 960px; margin: 0 auto; }
  .opp-hero-title { font-size: 4rem; letter-spacing: -3px; }
  .opp-hero-sub { font-size: 18px; }

  .opp-filters-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
  }
  .filter-bar { padding: 14px 20px 12px; gap: 10px; }
  .filter-chip { font-size: 14px; padding: 9px 18px; }
  .filter-selects { padding: 0 20px 20px; gap: 14px; }
  .filter-select { font-size: 14px; padding: 10px 16px; }

  .opp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 64px 64px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Bigger card body */
  .opp-card { border-radius: 18px; }
  .opp-card-body { padding: 24px 24px 20px; gap: 14px; }
  .opp-sphere { font-size: 11px; padding: 5px 12px; letter-spacing: 0.08em; }
  .opp-title { font-size: 20px; line-height: 1.25; }
  .opp-org { font-size: 13px; }
  .opp-price {
    font-size: 17px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .opp-card::before { height: 5px; }

  /* ══════════════════════════════════════════
     DETAIL VIEW — true full-page, 2-column
  ══════════════════════════════════════════ */
  .apply-view#detailView {
    background: var(--bg);
    overflow-y: auto;
    display: block;
  }
  .apply-view#detailView .apply-scroll {
    background: transparent;
    border-radius: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    overflow-y: visible;
    flex: none;
    height: auto;
    padding-bottom: 80px;
  }
  .apply-view#detailView .apply-scroll::before { display: none; }

  /* Hero */
  .detail-hero { min-height: 380px; }
  .detail-hero-inner {
    padding: 72px 80px 64px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .detail-back-btn { font-size: 15px; margin-bottom: 28px; }
  .detail-hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    letter-spacing: -2.5px;
    max-width: 760px;
  }
  .detail-hero-sub { font-size: 19px; margin-bottom: 48px; }
  .detail-facts-row { gap: 56px; padding-top: 40px; }
  .detail-fact-val { font-size: 22px; }
  .detail-fact-label { font-size: 12px; letter-spacing: 0.06em; }

  /* Two-column body */
  .detail-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 56px 80px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
  }
  .detail-content { padding: 0; }
  .detail-sidebar { padding: 0; position: sticky; top: 32px; }
  .detail-sidebar-card { padding: 32px; border-radius: 20px; }

  .detail-section { margin-bottom: 48px; }
  .detail-section-title { font-size: 1.75rem; margin-bottom: 20px; letter-spacing: -0.5px; }
  .detail-body-text { font-size: 16px; line-height: 1.75; }

  .detail-module-item { padding: 22px 28px; font-size: 15px; border-radius: 14px; }
  .detail-module-num { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }

  .detail-turma { padding: 20px 24px; border-radius: 14px; margin-bottom: 14px; }
  .detail-turma-title { font-size: 17px; }

  .detail-apply-btn { font-size: 17px; padding: 20px; border-radius: 14px; margin-top: 28px; }

  /* ══════════════════════════════════════════
     APPLY VIEW — centered modal on desktop
  ══════════════════════════════════════════ */
  #applyView {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  #applyView.active { opacity: 1; pointer-events: all; }
  #applyView .apply-topbar { display: none; }
  #applyView .apply-scroll {
    background: var(--bg);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  }
  #applyView .apply-inner { padding: 48px 48px 56px; }
  #applyView .apply-scroll::before { display: none; }
  #applyView .apply-label { font-size: 13px; }
  #applyView .apply-title { font-size: 2rem; }

  .apply-modal-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--surface-light);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    z-index: 10;
  }

  /* ── OppPanel facts grid ── */
  .opp-detail-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .opp-fact { padding: 16px 18px; }
  .opp-fact-value { font-size: 16px; }
  .opp-fact-label { font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
══════════════════════════════════════════════════════════════════════════════ */

/* Login */
.adm-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.adm-login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.adm-login-logo { font-size: 48px; margin-bottom: 12px; }
.adm-login-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
.adm-login-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }
.adm-login-error { color: #e74c3c; font-size: 13px; margin-top: 8px; }

/* Layout */
.adm-panel {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
}

/* Sidebar */
.adm-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.adm-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.adm-sidebar-logo { font-size: 22px; }
.adm-sidebar-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text-main); }
.adm-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.adm-nav-item:hover { background: var(--surface-light); color: var(--text-main); }
.adm-nav-item.active { background: var(--teal); color: #fff; }
.adm-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-logout { color: #e74c3c !important; }
.adm-logout:hover { background: rgba(231,76,60,0.12) !important; }

/* Main */
.adm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adm-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.adm-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-main); margin: 0; }
.adm-section-count { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.adm-search-bar { padding: 12px 24px 8px; }
.adm-table-container { flex: 1; overflow-y: auto; padding: 0 24px 24px; }

/* Table */
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-main);
}
.adm-table thead tr { border-bottom: 1px solid var(--border); }
.adm-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-table tbody tr:hover { background: var(--surface-light); }
.adm-actions { display: flex; gap: 6px; }
.adm-empty { color: var(--text-muted); padding: 32px 0; text-align: center; font-size: 14px; }

/* Buttons */
.adm-btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.adm-btn-primary:hover { opacity: 0.85; }
.adm-btn-secondary {
  background: var(--surface-light);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.adm-btn-sm {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
}
.adm-btn-danger { border-color: rgba(231,76,60,0.4); }
.adm-btn-danger:hover { background: rgba(231,76,60,0.15); }

/* Input */
.adm-input {
  width: 100%;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.adm-input:focus { border-color: var(--teal); }
.adm-textarea { resize: vertical; min-height: 72px; }

/* Modal */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.adm-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.adm-modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-main); margin: 0; }
.adm-modal-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.adm-modal-close:hover { background: var(--surface-light); }
.adm-modal-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.adm-modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); }

/* Form */
.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-field-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; display: block; }

/* ══════════════════════════════════════════════════════════════════
   CAMPO TAB — Circle Grid
══════════════════════════════════════════════════════════════════ */

.campo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 12px;
  padding: 16px 20px 40px;
}

.field-empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 22px;
  text-align: center;
}

.campo-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.campo-circle-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 40%, var(--surface-light)));
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.campo-circle:hover .campo-circle-avatar,
.campo-circle:active .campo-circle-avatar {
  transform: scale(1.1);
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(15, 139, 141, 0.18);
}

.campo-circle-avatar.org-avatar {
  background: var(--surface-light);
  border-color: var(--border);
  font-size: 2rem;
  color: var(--text-main);
}

.campo-circle-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  max-width: 84px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.campo-circle-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 84px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .campo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .campo-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 16px;
    padding: 16px 32px 48px;
  }
  .campo-circle-avatar { width: 84px; height: 84px; font-size: 1.9rem; }
  .campo-circle-name   { font-size: 0.8rem; max-width: 90px; }
}

/* ══════════════════════════════════════════════════════════════════
   MISSIONARY CARDS — novo layout da aba Campo
══════════════════════════════════════════════════════════════════ */

.miss-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 16px 16px 48px;
}

@media (min-width: 600px) {
  .miss-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .miss-cards-grid { grid-template-columns: repeat(3, 1fr); padding: 20px 24px 56px; }
}

.miss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.miss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

/* Faixa colorida no topo — altura fixa, sem conteúdo interno */
.miss-card-header {
  height: 72px;
  border-radius: 16px 16px 0 0;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

/* Avatar flutuando sobre a faixa */
.miss-card-avatar {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.miss-card-avatar--initial {
  line-height: 1;
  text-align: center;
}

.miss-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Corpo: padding-top acomoda o avatar que flutua */
.miss-card-body {
  padding: 38px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.miss-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.miss-card-org {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.miss-card-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
}

.miss-card-country-pill {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Rodapé: barra de progresso + link */
.miss-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.miss-card-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.miss-card-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.miss-card-progress-label {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.miss-card-progress-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.miss-card-bar {
  height: 5px;
  background: var(--surface-light);
  border-radius: 10px;
  overflow: hidden;
}

.miss-card-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.miss-card-bar-fill.reached {
  background: var(--green);
}

.miss-card-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.miss-card-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, #1a2d4a 25%, #1e3557 50%, #1a2d4a 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton-wave {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

.miss-skeleton-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px 20px;
}

.miss-skeleton-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.miss-skeleton-name {
  width: 60%;
  height: 22px;
}

.miss-skeleton-org {
  width: 40%;
  height: 14px;
}

.miss-skeleton-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.miss-skeleton-line {
  height: 13px;
  border-radius: 6px;
}

.miss-skeleton-bar {
  height: 8px;
  width: 100%;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════
   MISS PANEL — Hero
══════════════════════════════════════════════════════════════════ */

.miss-panel-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 22px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.miss-panel-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 40%, var(--surface-light)));
  border: 3px solid color-mix(in srgb, var(--teal) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(15, 139, 141, 0.25);
}

.miss-panel-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin: 0;
  line-height: 1.1;
}

.miss-panel-org {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 700;
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.miss-panel-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

.miss-country-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(15, 139, 141, 0.1);
  color: var(--teal);
  border: 1px solid rgba(15, 139, 141, 0.22);
  font-family: var(--font-display);
}

/* ══════════════════════════════════════════════════════════════════
   MISS PANEL — Finance block (PIX + progress)
══════════════════════════════════════════════════════════════════ */

.miss-finance-block {
  padding: 0 24px 20px;
}

.miss-pix-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  flex-wrap: nowrap;
  position: relative;
  overflow: hidden;
}

.miss-pix-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  flex-shrink: 0;
}

.miss-pix-key {
  font-size: 13px;
  color: var(--text-main);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.miss-pix-copy {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.miss-pix-copy:hover,
.miss-pix-copy.copied,
.miss-pix-copy.is-copying {
  background: var(--teal);
  color: #fff;
}

.miss-pix-copy:hover {
  transform: translateY(-1px);
}

.miss-pix-copy.copied {
  box-shadow: 0 12px 28px rgba(15, 139, 141, 0.28);
}

.miss-progress-wrap {
  margin-top: 14px;
}

.miss-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.miss-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-display);
}

.miss-progress-values {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
}

.miss-progress-sep { color: var(--border); margin: 0 2px; }

.miss-progress-bar {
  height: 8px;
  border-radius: 100px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  overflow: hidden;
}

.miss-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 60%, #27AE60));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.miss-progress-fill.reached {
  background: linear-gradient(90deg, #27AE60, #2ecc71);
}

/* Badge "Meta Alcançada" */
.miss-goal-reached {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 9px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #27AE60, #2ecc71);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
  animation: miss-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes miss-badge-pop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Confete CSS puro */
.miss-confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.miss-confetti-wrap::before,
.miss-confetti-wrap::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  animation: miss-confetti-fall 1.4s ease-in infinite;
}

.miss-confetti-wrap::before {
  background: #FFD700;
  left: 18%;
  top: -6px;
  animation-delay: 0s;
  transform: rotate(30deg);
}

.miss-confetti-wrap::after {
  background: #FF6B9D;
  left: 78%;
  top: -6px;
  animation-delay: 0.5s;
  transform: rotate(-20deg);
}

@keyframes miss-confetti-fall {
  0%   { transform: translateY(-6px) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(38px) rotate(360deg); opacity: 0; }
}

/* Valores quando meta alcançada */
.miss-progress-values.reached { color: #27AE60; font-weight: 700; }
.miss-check {
  color: #27AE60;
  font-weight: 900;
  margin-left: 3px;
}

.miss-progress-pct {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   MISS PANEL — WhatsApp CTA
══════════════════════════════════════════════════════════════════ */

.miss-whatsapp-block {
  padding: 0 24px 20px;
}

.miss-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.miss-whatsapp-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════
   MISS PANEL — Feed de Atualizações
══════════════════════════════════════════════════════════════════ */

.miss-feed-block {
  padding: 0 24px 32px;
}

.miss-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  position: relative;
}

.miss-feed::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.miss-feed-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}

.miss-feed-item:last-child { padding-bottom: 0; }

.miss-feed-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--bg);
  margin-top: 2px;
  box-shadow: 0 0 0 2px var(--teal);
  z-index: 1;
}

.miss-feed-content { flex: 1; min-width: 0; }

.miss-feed-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.miss-feed-relative {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
  font-size: 0.65rem;
}

.miss-feed-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 767px) {
  #missPanel {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  }

  #missPanel .panel-scroll {
    padding-bottom: 18px;
  }

  #missPanel .panel-close {
    top: 12px;
    right: 12px;
  }

  #missPanel .miss-panel-hero {
    padding: 42px 18px 22px;
  }

  #missPanel .miss-panel-name,
  #missPanel .miss-panel-org,
  #missPanel .text-section p,
  #missPanel .miss-feed-text,
  #missPanel .miss-pix-key {
    overflow-wrap: anywhere;
  }

  #missPanel .text-section {
    box-sizing: border-box;
    width: 100%;
    padding: 0 18px 24px;
  }

  #missPanel #mDonate {
    padding-bottom: 30px;
  }

  #missPanel .miss-finance-block,
  #missPanel .miss-whatsapp-block,
  #missPanel .miss-feed-block {
    padding-left: 0;
    padding-right: 0;
  }

  #missPanel .miss-pix-row {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MISSIONARY ROUTE PAGE (mrp-*) — página completa /@username
══════════════════════════════════════════════════════════════════ */

/* Body da página: padding controlado, sem max-width excessivo */
.mrp-body {
  box-sizing: border-box;
  width: 100%;
  padding: 0 18px 80px;
}

/* Label de seção — uppercase pequeno */
.mrp-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Nome da igreja enviadora */
.mrp-church-name {
  font-weight: 600;
  color: var(--text-main);
  margin-top: 4px;
}

/* Tags: foco ministerial, países */
.mrp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mrp-tag {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Versículo — blockquote com borda lateral colorida */
.mrp-verse {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--teal);
  background: var(--surface-light);
  border-radius: 0 10px 10px 0;
}

.mrp-verse p {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0 0 6px;
}

.mrp-verse cite {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-style: normal;
}

/* Galeria de fotos — scroll horizontal */
.mrp-photos-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 10px;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.mrp-photo-thumb {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* Pills de países no hero */
.mrp-hero-countries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  max-width: 100%;
}

/* Botões de ação no hero */
.mrp-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 360px;
}

.mrp-btn-primary {
  padding: 9px 24px;
  border-radius: 100px;
  border: none;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s;
}

.mrp-btn-primary:hover { opacity: 0.88; }

.mrp-btn-secondary {
  padding: 9px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}

.mrp-btn-secondary:hover { background: rgba(255,255,255,0.22); }

/* Redes sociais */
.mrp-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mrp-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface-light);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}

.mrp-social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

@media (max-width: 767px) {
  .rp-missionary {
    width: 100%;
    overflow-x: hidden;
  }

  .rp-miss-full-hero {
    width: auto;
    margin: 10px 10px 0;
    padding: 76px 18px 32px;
    border-radius: 24px;
    overflow: hidden;
  }

  .rp-missionary .route-back-btn {
    position: fixed;
    top: max(22px, calc(env(safe-area-inset-top) + 12px));
    left: 36px;
    z-index: 8100;
    margin: 0;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .rp-body.rp-body--single.mrp-body {
    max-width: none;
    padding: 0 22px 96px;
  }

  .rp-section {
    padding: 24px 0;
  }

  .rp-miss-full-hero .rp-title,
  .rp-miss-full-hero .rp-sub,
  .rp-text,
  .miss-pix-key {
    overflow-wrap: anywhere;
  }

  .miss-country-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .miss-pix-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
  }

  .miss-pix-key {
    flex-basis: 100%;
    white-space: normal;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text-main);
  }

  .miss-pix-label {
    font-size: 0.78rem;
  }

  .rp-missionary #mrp-copy-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    isolation: isolate;
    overflow: hidden;
  }

  .rp-missionary #mrp-copy-btn.is-copying {
    border-color: transparent;
  }

  .rp-missionary #mrp-copy-btn .copy-plane {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transform: translateY(-1px);
    transform-origin: center;
    will-change: transform, opacity;
    z-index: 2;
  }

  .rp-missionary #mrp-copy-btn .copy-plane-icon {
    width: 30px;
    height: 18px;
    display: block;
    fill: currentColor;
    stroke: none;
  }

  .rp-missionary #mrp-copy-btn .copy-label {
    display: inline-block;
    position: relative;
    z-index: 1;
    will-change: opacity, transform;
  }

  .rp-missionary #mrp-copy-btn.is-copying .copy-plane {
    position: absolute;
    left: 18px;
    top: 50%;
    margin: 0;
    animation: copy-plane-straight 0.72s cubic-bezier(0.35, 0, 0.2, 1) both;
  }

  .rp-missionary #mrp-copy-btn.is-copying .copy-label {
    animation: copy-label-cut 0.72s ease both;
  }

  .rp-missionary #mrp-copy-btn.copied .copy-plane {
    opacity: 0;
    transform: translate3d(18px, -1px, 0);
  }

  .rp-missionary #mrp-copy-btn.copied .copy-label {
    animation: copy-done-pop 0.24s ease-out both;
  }

  @keyframes copy-plane-straight {
    0% {
      opacity: 1;
      transform: translate3d(0, -50%, 0) rotate(0deg);
    }
    100% {
      opacity: 0;
      transform: translate3d(calc(100vw - 96px), -50%, 0) rotate(0deg);
    }
  }

  @keyframes copy-label-cut {
    0%, 32% {
      opacity: 1;
      transform: translateX(0);
    }
    48%, 100% {
      opacity: 0;
      transform: translateX(8px);
    }
  }

  @keyframes copy-done-pop {
    0% {
      opacity: 0;
      transform: scale(0.96);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  .miss-progress-header {
    align-items: flex-start;
    gap: 6px;
    flex-direction: column;
  }

  .mrp-btn-primary,
  .mrp-btn-secondary {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .mrp-body {
    padding: 0 48px 80px;
  }
}

/* ── User Auth ────────────────────────────────────────────────────────────── */

.user-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  gap: 6px;
}
.user-auth-btn:hover { background: var(--hover-bg, rgba(128,128,128,0.12)); }

.user-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-auth-initials {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.user-auth-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.user-auth-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 210px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-auth-dropdown-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 2px;
}

.user-auth-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.user-auth-dropdown-info strong { font-size: 0.9rem; }
.user-auth-dropdown-info span   { font-size: 0.78rem; color: var(--muted); }

.user-auth-dropdown-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.user-auth-dropdown-btn:hover { background: var(--hover-bg, rgba(128,128,128,0.12)); }
.user-auth-dropdown-btn.google { border-color: #4285f4; color: #4285f4; }

/* ── Missionary Cinematic Landing (mcl-*) ────────────────────────────────── */

.mcl-page {
  background: #080e12;
  min-height: 100vh;
  color: #e8eef2;
  overflow-x: hidden;
}

/* Hero */
.mcl-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px 48px;
  overflow: hidden;
  background: linear-gradient(160deg, #060d12 0%, #0a1a22 60%, #0d2230 100%);
}

.mcl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15,139,141,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mcl-hero .route-back-btn {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 10px));
  left: 18px;
  z-index: 8100;
  background: rgba(255,255,255,0.1);
  color: #e8eef2;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.mcl-hero-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(15,139,141,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mcl-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* Retrato */
.mcl-hero-portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 6px rgba(15,139,141,0.15), 0 16px 48px rgba(0,0,0,0.5);
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
}

.mcl-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mcl-hero-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  background: linear-gradient(135deg, rgba(15,139,141,0.4) 0%, rgba(13,25,35,0.8) 100%);
}

/* Pills de países */
.mcl-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mcl-country-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Nome do missionário — editorial grande */
.mcl-hero-name {
  font-family: 'Kanit', var(--font-display), sans-serif;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(180deg, #d6e4ea 0%, #8fb8c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.mcl-hero-positioning {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: rgba(200,220,230,0.7);
  font-weight: 400;
  line-height: 1.5;
  max-width: 480px;
}

/* Botões hero */
.mcl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.mcl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.18s, background 0.18s, transform 0.12s;
}

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

.mcl-btn--primary {
  background: #fff;
  color: #080e12;
}

.mcl-btn--primary:hover { opacity: 0.88; }

.mcl-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #e8eef2;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mcl-btn--ghost:hover { background: rgba(255,255,255,0.18); }

.mcl-btn--wa {
  background: rgba(37,211,102,0.15);
  color: #25d366;
  border: 1.5px solid rgba(37,211,102,0.35);
}

.mcl-btn--wa:hover { background: rgba(37,211,102,0.25); }

.mcl-btn--sowfund {
  background: rgba(100,160,80,0.12);
  color: #7ab65a;
  border: 1.5px solid rgba(100,160,80,0.3);
}

.mcl-btn--sowfund:hover { background: rgba(100,160,80,0.22); }

/* Conteúdo principal */
.mcl-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* Seções */
.mcl-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.mcl-section.mcl-visible {
  opacity: 1;
  transform: translateY(0);
}

.mcl-section:last-child { border-bottom: none; }

.mcl-section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 18px;
}

/* Texto principal das seções */
.mcl-body-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.75;
  color: rgba(220,235,242,0.88);
  font-weight: 400;
  margin-bottom: 16px;
}

.mcl-body-text--muted {
  font-size: 0.95rem;
  color: rgba(180,200,210,0.6);
}

/* Versículo */
.mcl-verse {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: rgba(15,139,141,0.08);
  border-radius: 0 12px 12px 0;
}

.mcl-verse p {
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(220,235,242,0.85);
  line-height: 1.65;
  margin: 0 0 8px;
}

.mcl-verse cite {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-style: normal;
}

/* Meta rows: igreja / org */
.mcl-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
}

.mcl-meta-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(140,170,180,0.7);
}

.mcl-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(220,235,242,0.9);
}

/* Países grid */
.mcl-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.mcl-country-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.18s, border-color 0.18s;
}

.mcl-country-card.mcl-visible {
  opacity: 1;
  transform: translateY(0);
}

.mcl-country-card--link {
  cursor: pointer;
}

.mcl-country-card--link:hover {
  background: rgba(15,139,141,0.12);
  border-color: rgba(15,139,141,0.35);
}

.mcl-country-flag { font-size: 1rem; flex-shrink: 0; }

.mcl-country-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(220,235,242,0.88);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mcl-country-arrow {
  color: var(--teal);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Frentes de atuação */
.mcl-focus-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.mcl-focus-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mcl-focus-item.mcl-visible {
  opacity: 1;
  transform: translateY(0);
}

.mcl-focus-item:last-child { border-bottom: none; }

.mcl-focus-num {
  font-family: 'Kanit', var(--font-display), sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  color: rgba(15,139,141,0.35);
  line-height: 1;
  min-width: 56px;
  flex-shrink: 0;
}

.mcl-focus-name {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: rgba(220,235,242,0.9);
  line-height: 1.3;
}

/* Fotos */
.mcl-photos-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.mcl-photo-thumb {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Timeline de atualizações */
.mcl-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(15,139,141,0.25);
}

.mcl-timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mcl-timeline-item.mcl-visible {
  opacity: 1;
  transform: translateY(0);
}

.mcl-timeline-item:last-child { padding-bottom: 0; }

.mcl-timeline-dot {
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #080e12;
  box-shadow: 0 0 0 3px rgba(15,139,141,0.25);
}

.mcl-timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(140,170,180,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.mcl-timeline-rel {
  color: var(--teal);
  font-weight: 600;
}

.mcl-timeline-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(210,228,236,0.85);
}

/* Seção apoio */
.mcl-section--apoio {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px 24px !important;
  margin: 8px 0;
}

.mcl-apoio-cta {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(200,220,230,0.75);
  margin-bottom: 24px;
  font-style: italic;
}

/* Progress */
.mcl-progress-wrap {
  background: rgba(15,139,141,0.08);
  border: 1px solid rgba(15,139,141,0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 4px;
}

.mcl-goal-reached {
  font-size: 1rem;
  font-weight: 800;
  color: #27AE60;
  margin-bottom: 10px;
}

.mcl-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.mcl-progress-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(140,170,180,0.7);
}

.mcl-progress-values {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(220,235,242,0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mcl-progress-sep { color: rgba(140,170,180,0.4); }

.mcl-check {
  color: #27AE60;
  font-size: 1rem;
  margin-left: 4px;
}

.mcl-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mcl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, #3dd6d8 100%);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.mcl-progress-fill.reached {
  background: linear-gradient(90deg, #27AE60 0%, #52D68A 100%);
}

.mcl-progress-pct {
  font-size: 0.78rem;
  color: rgba(140,170,180,0.65);
}

/* Compartilhar */
.mcl-section--share {
  text-align: center;
  border: none !important;
}

.mcl-share-text {
  font-size: 0.95rem;
  color: rgba(180,200,210,0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mcl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(220,235,242,0.88);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.mcl-share-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

/* Desktop */
@media (min-width: 768px) {
  .mcl-hero {
    min-height: 88vh;
    padding: 0 48px 64px;
  }

  .mcl-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 40px;
    max-width: 900px;
  }

  .mcl-hero-portrait {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 4px;
  }

  .mcl-hero-content {
    flex: 1;
  }

  .mcl-content {
    max-width: 820px;
    padding: 0 48px 120px;
  }

  .mcl-countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Light mode overrides — mantém legibilidade */
[data-theme="light"] .mcl-page {
  background: #f0f4f6;
  color: #0d1a22;
}

[data-theme="light"] .mcl-hero {
  background: linear-gradient(160deg, #0d2030 0%, #1a3a50 60%, #0d2d40 100%);
}

[data-theme="light"] .mcl-body-text { color: rgba(15,30,40,0.85); }
[data-theme="light"] .mcl-body-text--muted { color: rgba(15,30,40,0.55); }
[data-theme="light"] .mcl-section { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mcl-country-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .mcl-country-name { color: #0d1a22; }
[data-theme="light"] .mcl-focus-name { color: #0d1a22; }
[data-theme="light"] .mcl-timeline-text { color: rgba(15,30,40,0.82); }
[data-theme="light"] .mcl-section--apoio { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mcl-apoio-cta { color: rgba(30,60,80,0.7); }
[data-theme="light"] .mcl-progress-wrap { background: rgba(15,139,141,0.06); border-color: rgba(15,139,141,0.25); }
[data-theme="light"] .mcl-progress-values { color: #0d1a22; }
[data-theme="light"] .mcl-share-text { color: rgba(30,60,80,0.6); }
[data-theme="light"] .mcl-share-btn { color: #0d1a22; border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.04); }
[data-theme="light"] .mcl-timeline { border-color: rgba(15,139,141,0.3); }
[data-theme="light"] .mcl-meta-value { color: #0d1a22; }
